Toggle Flood with One Button
away from it for that reason. when i mean "slowed emc",
i mean it takes about 10 sec for emc to start whereas usually
emc starts before the "emc start image" goes off.
Not sure that I would use halui.program.is-idle for your power on/off as it is true even if the e-stop is active which means you can't turn the power on in that state. I would use halui.estop.is-activated with a not to invert the state of the pin as part of my and2.
i ended up with
net power-btn and2.11.in0 <= pyvcp.on-off
net power-ok and2.11.in1 not.3.out
net power-not not.3.in <= halui.estop.is-activated
net power-request toggle.4.in <= and2.11.out
net power-toggle toggle2nist.1.in <= toggle.4.out
net power-is-on toggle2nist.1.is-on <= halui.machine.is-on
net power-on halui.machine.on <= toggle2nist.1.on
net power-off halui.machine.off <= toggle2nist.1.off
works but it turns it on slow.off is normal