Yeah... the PMC rules for this kind of stuff. It is a one rung'er.
Unfortunately, I broke the PMC editor in builds 4394 to 4410. A new dev build will be there soon. But you can try it out just dropping the .pmc and .lua files in your Pmc directory and then telling the screen set to use them. Like I said, only the PMC Editor was broken. I tried to get fancy and had an epic failure. LOL
Both the scripts above and this pmc file raise ISIG_MOTION_INHIBIT (Gode/MDI) and ISIG_JOG_INHIBIT (jogging).
Steve
Awesome! It worked with both methods but the one with PMC is much simpler.
I did not know before what PMC was but just after watching the following video from the support I was able to install your script
successfully.
https://www.youtube.com/watch?v=jVhH9qyjjf0The script is basically fine and does it's job - prevents a crash.
There is one thing that I would like to fix though. When Cycle Start is pressed Mach4 will still run a first few lines of code. I assume that is because of cycle time being minimum 1 ms.
Is there a way to just grey out the Cycle start button until the machine is homed?