Good morning
Before i go down a path of updating all the Probing routines i wanted a sanity check.
I am running 2.9-Pre1 and Probe Basic from the Python3 branch. Things are working great, I am at the stage of integrating the probe protection (Only allow probing to run when the probe is connected using
topcom.cz/products/smart/smartmer2/
allows combing of different NPN / PNP inputs and also dose disconnected device detection) For this to work i was going to add in M64Px and M65Px for signaling that probing operations should be enabled. (This is working fine in the ETS).
Is there a best practice for adding in and using a variable to pass into the different probing scripts or am i just going to need to do a copy / replace type action.
What i did for the ETS was the following.
In the Variables section
Code:
#<enable_probe_protection> = 1 ; Is probing protection required. 0 = no 1=yes
#<probe_protection_pin> = 0 ; Digital output pin to be used for probe protection signal
Then above the section with the G38.2 i put
Code:
o<115> if [#<enable_probe_protection> GT 0]
M64 P#<probe_protection_pin> ;Enable tool setting probing allowed pin
o<115> endif
and after the probing has stopped
Code:
o<125> if [# GT 0]
M65 P# ;Disable tool setting probing
o<125> endif
If the best approach is to use a global variable from linuxcnc.var and reference that in all the probe files is there register of variables so i dont tread on anyone else? (Would use 4 Variables, TS Probe Protection, TS Probe Protection Pin, Probe Protection, Probe Protection Pin).
hope that all makes sense.