Add this plugin to ensure that the spindle cannot be
started whilst you have either a probe or a Haimer loaded. Combined
with ui_hooks.py, this is equivalent to the original probe protection code as
seen in the NYCCNC video.
Customisation.
At line 25 in the file, you'll find the code
# the tuple of tool numbers to protect from
spindle on
PROBE_TOOL_NUMBERS = (99,)
If you have multiple probes in your tool library, then
you can protect them all by editing this line. For example, to protect
tools 99, 100 and 101, edit it to read
# the tuple of tool numbers to protect from
spindle on
PROBE_TOOL_NUMBERS = (99, 100, 101)
As of 25/05/23, there's now an optional hal file.
If you copy this to the same location as the .py file, then in addition to
protecting against spindle on when a probe is loaded, you also gain
protection against probe trips causing program runs to abort when the tool
in the spindle is not in fact a probe.
Added hal file to allow
false probe trips during program runs to be disabled. This means
that during a run, if the tool in the spindle isn't one the
PROBE_TOOL_NUMBERS list, then the probe input is disabled and can't
interrupt the running program.
At all other times, the probe input acts exactly as previously, so
manual jogs are protected in the same way as previously.