I think what you want is to copy the machine enable state to your output. I would just use the PMC Editor (Configure > PMC) for that.
See attached image. This will run every 10 ms and copy the machine enabled signal to your output 49.
To do this, you can do this:
1. In PMC Window, click Settings > Code generator and select LUA
2. Instruction > Insert Contact
3. Double Click newly created contact and configure:
- Source: Core Output
- Name: machineEnabled
- Device: Signal
- Object: Machine Enabled
Accept with click on ok.
4. In PMC Window move the cursor behind your newly created contact by clicking there
5. Instruction > Insert Coil
6. Double Click newly created coil and configure:
- Source: Core Output
- Name: output49
- Device: Signal
- Object: Output #49
Accept with click on ok.
7. Click File save and save the pmc to C:\Mach4Hobby\Pmc
8. Click Generate and save the lua script there too
Then do what is described in this video at 4:47 to enable the PMC script:
https://youtu.be/jVhH9qyjjf0?t=287It should work then. Add in PMC another rung for cycle start and your other output. Dont forget to hit Generate again.