filmov
tv
FluidNC How To Macros in WebUI Probing Example CNC Controller TinyBee
Показать описание
Since it took me some time to figure out how to create a macro in Fluid NC, here is a short video:
1. First create a new button and name it. Important is the file name in the last window.
2. Copy it and create a new text file with the same name and ".g" format.
3. Insert the desired G-code from the macro (in my example an XYZ-probing) and save it.
4. Then upload the ".g" file in the "Manage local files" tab.
Now the macro should work.
Here is my example code for the XYZ probing from the previous video:
M3 (MSG Probing with 6mm Tool on Touchplate)
;Z-Probing:
M3 (MSG Z-Probing)
G38.2 G91 Z-30 F200 ;Fast Z-Probing
G0 Z3 F5000 ;Lift Z again to 3mm
G38.2 G91 Z-10 F50 ;Slow Z-Probing
G92 Z6.5 X0 Y0 ;Reset Coordinates but with probe Thickness for Z
G90 ;back to absolute coordinates
G0 Z20 F5000 ;Lift Z to 20mm Axis
;X-Probing:
M3 (MSG X-Probing)
G0 X30 F5000 ;Move X 30mm
G0 Z2 F200 ;Lower Z Again
G38.2 G91 X-30 F200 ;Fast X-Probing
G0 X3 F5000 ;Move X for slow probing
G38.2 G91 X-10 F50 ;Slow X-Probing
G92 X11 ;Reset X Coordinate (Tool Radius + Probe X side Thickness)
G90 ;Absolute coordinates
G0 X15 F5000 ;Move X for clearance
G0 Z20 F5000 ;Lift Z to 15mm Axis
G0 X-15 F5000 ;Move X Back for Y Probing
;Y-Probing:
M3 (MSG Y-Probing)
G0 Y-30 F5000 ;Move Y 30mm
G0 Z2 F200 ;Lower Z Again
G38.2 G91 Y30 F200 ;Fast Y-Probing
G0 Y-3 ;Move Y for slow probing
G38.2 G91 Y10 F50 ;Slow Y-Probing
G92 Y-11 ;Reset Y Coordinate (Tool Radius + Y Probe side Thickness)
G90 ;Absolute coordinates
G0 Y-15 F5000 ;Move Y for clearance
G0 Z20 F5000 ;Lift Z to 15mm Axis
G0 X0 Y0 Z10 F5000 ;Move to 10mm above origin
1. First create a new button and name it. Important is the file name in the last window.
2. Copy it and create a new text file with the same name and ".g" format.
3. Insert the desired G-code from the macro (in my example an XYZ-probing) and save it.
4. Then upload the ".g" file in the "Manage local files" tab.
Now the macro should work.
Here is my example code for the XYZ probing from the previous video:
M3 (MSG Probing with 6mm Tool on Touchplate)
;Z-Probing:
M3 (MSG Z-Probing)
G38.2 G91 Z-30 F200 ;Fast Z-Probing
G0 Z3 F5000 ;Lift Z again to 3mm
G38.2 G91 Z-10 F50 ;Slow Z-Probing
G92 Z6.5 X0 Y0 ;Reset Coordinates but with probe Thickness for Z
G90 ;back to absolute coordinates
G0 Z20 F5000 ;Lift Z to 20mm Axis
;X-Probing:
M3 (MSG X-Probing)
G0 X30 F5000 ;Move X 30mm
G0 Z2 F200 ;Lower Z Again
G38.2 G91 X-30 F200 ;Fast X-Probing
G0 X3 F5000 ;Move X for slow probing
G38.2 G91 X-10 F50 ;Slow X-Probing
G92 X11 ;Reset X Coordinate (Tool Radius + Probe X side Thickness)
G90 ;Absolute coordinates
G0 X15 F5000 ;Move X for clearance
G0 Z20 F5000 ;Lift Z to 15mm Axis
G0 X-15 F5000 ;Move X Back for Y Probing
;Y-Probing:
M3 (MSG Y-Probing)
G0 Y-30 F5000 ;Move Y 30mm
G0 Z2 F200 ;Lower Z Again
G38.2 G91 Y30 F200 ;Fast Y-Probing
G0 Y-3 ;Move Y for slow probing
G38.2 G91 Y10 F50 ;Slow Y-Probing
G92 Y-11 ;Reset Y Coordinate (Tool Radius + Y Probe side Thickness)
G90 ;Absolute coordinates
G0 Y-15 F5000 ;Move Y for clearance
G0 Z20 F5000 ;Lift Z to 15mm Axis
G0 X0 Y0 Z10 F5000 ;Move to 10mm above origin
Комментарии