Background: CNCjs supports both g2core and TinyG from one chunk of code.
To stop a running job, it sends "!%" - feedhold and flush. On recent versions of g2core, that sequence has the problem that it leaves the spindle running. Bare ! pauses the spindle correctly, but then it comes back on when the stop sequence is issued.
To fix this on g2core, it works to send "!^d" - feedhold and kill job. But the TinyG docs don't mention ^d, so I don't know if it is supported.
What is the best way to support both g2core and TinyG in this situation? One possibility would be to recognize which one is running and issue a different sequence. Another might be to issue a combined sequence like "!^d%", in hopes that TinyG would ignore the ^d and still do the right thing.
Background: CNCjs supports both g2core and TinyG from one chunk of code. To stop a running job, it sends "!%" - feedhold and flush. On recent versions of g2core, that sequence has the problem that it leaves the spindle running. Bare ! pauses the spindle correctly, but then it comes back on when the stop sequence is issued. To fix this on g2core, it works to send "!^d" - feedhold and kill job. But the TinyG docs don't mention ^d, so I don't know if it is supported. What is the best way to support both g2core and TinyG in this situation? One possibility would be to recognize which one is running and issue a different sequence. Another might be to issue a combined sequence like "!^d%", in hopes that TinyG would ignore the ^d and still do the right thing.