Hi Tom,
I tried to halt a stuck user thread with Kill(4) script command but the compiler does not recoqnize Kill.
I found Pausethread() from a thread in CNCzone. This works, but it looks that Pausethread is not mentioned in KFlop manual/list of script commands. You should update this :).
While testing this on Mach homing thread I found that my script works as I wanted as the user thread
is terminated.
To my surprise the axis kept on jogging. After second thinking that is no surprise as the homing issues a jog command and I terminated the thread before the stop command.
This brings up a safety issue suggestion: Should all motion commands be thread bound?
Meaning that if a thread that issues a motion command is terminated then motion is also terminated.
Rgds,
Tapio