Trigger an E-Stop

Make your own CNC Control Apps

Moderator: cnckeith

Post Reply
Gerral
Posts: 33
Joined: Fri Nov 22, 2024 4:25 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: B4107B77A373-0905248481
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Trigger an E-Stop

Post 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.


ASPeters
Posts: 39
Joined: Thu Feb 10, 2022 5:55 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Trigger an E-Stop

Post 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.


Post Reply