kcjengr / probe_basic

User interface for the LinuxCNC machine control.
https://kcjengr.github.io/probe_basic/
GNU General Public License v3.0
89 stars 55 forks source link

Add Probe protection subroutine for wireless probes #71

Open Alexfehr1987 opened 1 year ago

Alexfehr1987 commented 1 year ago

Currently in Probing routines its just checked if the Probe is in the Machine, but not if its "connected". Especially for Wireless Probes a check would save tips. I solved this by adding a probe protection subroutine in every probing routine, which checks if the connection is established and pauses the programm if its not connected:

o sub

= #5399

M66 P0 (Probe Protection) o100 while[# EQ 1] (MSG, Probe not active!) M0 M66 P0

= #5399

o100 endwhile o endsub M2 (end program)

Maybe something like this can be added to the routines in the future