Page 1 of 1
Trigger an E-Stop
Posted: Wed Dec 18, 2024 10:34 am
by Gerral
Is CentroidAPI.CNCPipe.Job.CancelExecution the best way to simulate hitting the E-Stop or is there a better way. I'd want it to do the equivalent to a reset too, but don't see that in the API.
As ever thanks for your comments and remarks.
Re: Trigger an E-Stop
Posted: Wed Dec 18, 2024 12:01 pm
by ASPeters
Gerral wrote: ↑Wed Dec 18, 2024 10:34 am
Is CentroidAPI.CNCPipe.Job.CancelExecution the best way to simulate hitting the E-Stop or is there a better way. I'd want it to do the equivalent to a reset too, but don't see that in the API.
As ever thanks for your comments and remarks.
Job.CancelExecution cancels the currently running job only. It effectively does the same operations as cycle cancel would.
There is no way to perform an E-Stop programmatically.
To perform a Reset programmatically, you can use
Code: Select all
CNCPipe pipe = new CNCPipe();
pipe.plc.SetSkinEventState(56, 1); //Sets reset
//Additional logic
pipe.plc.SetSkinEventState(56, 0); //Clears reset
Skin Event 56 is currently the reset skin event for acorn. Please double check what your reset button is set to under C:\cncm\resources\vcp\Buttons\reset\reset.xml
Please note that the plc requires 20-30 ms to register the skin event change.