That was what I expected. Your reflection has made me try again.
What I have discovered is that if I enable the charge pump in the Pokeys57CNC using the PoKeys software, when I move the motors manually with the MPG without connection to the PC, the 5 kHz pulse is generated by the pin 45. So far everything is fine.
If I connect Mach3 and in the plugin I do not have the "enable safety charge pump" box checked, the / Mach3 plugin modifies the configuration I made with the PoKeys software and the charge pump stops working. In the same way, if I activate the "enable safety charge pump" box of the plugin from Mach3, I always get the signal of 5khz when Mach3 is connected, even if the motors do not move! So it does not help me at all.
I can not use the signal from Estop. When connecting Mach3 would have a "signal" connection, since when starting Mach3 always starts with the Estop enabled and would be worth as a message for PoKeys57CNC: "Mach3 has come into operation, let it take control."
But the problem is to inform PoKeys57CNC when Mach3 stops working. I have clear how to activate a communication signal from Mach3 to PoKeys57CNC through macropump or a brain. But how do I send another signal to PoKeys57CNC when I press the button to close the application from the PC?
In other words. In macropump, how do I check if the red cross button was pressed to close the application? And how do I command through the macropump Mach3 shutdown ?. If I can control this, I will be able to program the disconnection of an OEM LED and then allow Mach3 to close.