G38.2 will signal an error, and "halt the program" upon failure. Hence the entire o120 if branch for the failure handling is ignored. G38.3 would allow for the explicit error handling to take place.
If the probing operation failed, G38.2 and G38.4 will signal an error by posting an message on screen if the selected GUI supports that. And by halting program execution.
(https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g38)
|
G38.2 Z-[#<max_z_distance>] |
|
#<z_minus_probed> = #5063 |
|
|
|
(Probe Error check, #5070 will be 0 if failed) |
|
o120 if [#5070 EQ 0] |
G38.2will signal an error, and "halt the program" upon failure. Hence the entireo120 ifbranch for the failure handling is ignored.G38.3would allow for the explicit error handling to take place.(https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g38)
EasyProbe/macros/probe_z_minus.ngc
Lines 51 to 55 in f3fc62d