I'm creating my own qtpyvcp gui and am using probe basic as my model and trying to understand how it works.
I see that the probing gcode subroutines compare the #<probe_tool_number>, which is set from a widget in the gui, to what I think is a gcode user variable, $5400. As in the following:
Code:
(Probe Tool Safety Check)
o<110> if [#5400 NE #<probe_tool_number>]
(MSG, Specified probe tool #<probe_tool_number> not in spindle, aborting)
o<probe_x_plus_wco> return
o<110> endif
Placing some debug messages in the probing subroutines, I see that my #<probe_tool_number> is being set and passed to the subroutine correctly but I've googled and grepped my way through all of probe basic's code and subroutines and cannot find where or how the variable #5400 is set. So unless I set my tool # to 0, this comparison never succeeds and probing routine aborts. (I've set the variable, #5400 in linuxcnc.var but it always gets set back to zero.)
I'd sure welcome some enlightenment on this...
Thanks!
Yours truly, tripwire...