FluidNC How To Macros in WebUI Probing Example CNC Controller TinyBee

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

im having an issue with the xyz macro, it touches the x side the first time but when it retracts it moves towards the aluminum piece but crashes. on the x axis only, it does the z & y axis as it should

CESAR_H_ARIAS
Автор

Is the 6mm in " (MSG Probing with 6mm Tool on Touchplate)" the diameter of the tool or the thickness of the XYZ plate?

mciarlillo
Автор

Nice howto, but it is possible to have a macro for run a frame job (area job) before starting the gcode ? Do you know ?

NunoPereira
Автор

Does your macro probe from the right or from the left for X?

rpjames
Автор

Awesome video, can you share your config file (.yaml)?

clabrop
Автор

hi friend i did all you tell me about this yesterday but i got this problem
$LocalFS/Run=/probe.g
ok
[MSG:INFO: GCode Comment...Probing with 6mm Tool on Touchplate]
[GC:G0 G54 G17 G21 G90 G94 M3 M9 T0 F0 S0]
[MSG:INFO: GCode Comment...Z-Probing]
[MSG:INFO: ALARM: Probe Fail Initial]
ALARM:4
Probe fail. Probe is not in the expected initial state before starting probe cycle.
<Alarm|MPos:110.000, 0.000, 0.000|FS:0, 0|Pn:P|SD:10.21, /spiffs/probe.g>
[GC:G38.2 G54 G17 G21 G91 G94 M3 M9 T0 F200 S0]
[MSG:ERR: 9 (GCode cannot be executed in lock or alarm state) in /spiffs/probe.g at line 6]

cncrobotic