Page 1 of 1

How to add "Optional Stop" and "Block Skip" buttons to VCP?

Posted: Tue Jan 07, 2025 11:02 am
by RTech
Is there an easy way to add an "Optional Stop" and "Block Skip" button to the VCP? I have edited the VCP to add the button images, but I don't see an easy way to make them work.

I have looked through the PLC and have found how much code is there for the "Single Block" button. Will I have to mimic this code for each of the buttons or is there an easier way to do this?

The reason I would like to add them to the VCP is that it is very convenient to have all these buttons in one area when first running a program and testing it out. I also think having these buttons grouped together adds an element of safety...less time required to search for the buttons on the screen.

Any help is appreciated.
Centroid Program Run Buttons.PNG

Re: How to add "Optional Stop" and "Block Skip" buttons to VCP?

Posted: Tue Jan 07, 2025 1:14 pm
by ASPeters
RTech wrote: Tue Jan 07, 2025 11:02 am Is there an easy way to add an "Optional Stop" and "Block Skip" button to the VCP? I have edited the VCP to add the button images, but I don't see an easy way to make them work.

I have looked through the PLC and have found how much code is there for the "Single Block" button. Will I have to mimic this code for each of the buttons or is there an easier way to do this?

The reason I would like to add them to the VCP is that it is very convenient to have all these buttons in one area when first running a program and testing it out. I also think having these buttons grouped together adds an element of safety...less time required to search for the buttons on the screen.

Any help is appreciated.
The Optional Stop and Block Skip functionality is completely internal to CNC12. There is not a way for the PLC or VCP to alter this currently.

Re: How to add "Optional Stop" and "Block Skip" buttons to VCP?

Posted: Tue Jan 07, 2025 2:07 pm
by RTech
Well, that's not the answer I was hoping for. I do think it would be a great feature to add some time in the future.

Re: How to add "Optional Stop" and "Block Skip" buttons to VCP?

Posted: Tue Jan 07, 2025 10:35 pm
by cncsnw
You can roll your own optional stops, to work with a VCP key and just ignore the setting on the CNC12 run menu.

All you need is a VCP key that turns a bit (such as its own LED) on and off; and an M1 macro that does an M0 if (and only if) that bit is on.