If it is a later version 0T then you may be able to display the ladder and find out what the M code is from that, M codes are decided and written into the ladder by the MTB.
This also applies as to how the M code functions.
You could bypass the CNC control and wire it into the external power circuit, many chip conveyors work this way and are not always Controller activated.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.