Hello
I see you have the M62 / M63 P# for turning on and off outputs , is there a way to use a M? / M? P# code to read input ( wait-until input hi or low then continue )
below is from the turbo cnc list of M codes
M70 Set PLC handshake output to inactive
Function: Set PLC handshake output to inactive
Notes:
Two PLC handshaking lines can be configured in TurboCNC. These are for telling external logic, such as an automatic tool changer or what-have-you to do some work. M70 sets the output handshake line to the inactive state. This can also be used to control extra solenoids or relays.
M71 Set PLC handshake output to active
Function: Set PLC handshake output to active
Notes:
Similar to M70, M71 sets the output handshake line to the active state.
M72 Wait for PLC handshake input to go inactive
Function: Wait for PLC handshake input to go inactive
Notes:
When this code is called, the program stops running and waits for the PLC input line (separate from the output line) to go to the inactive state. This is intended to be used to synchronize the program with external logic that might be loading more stock, or performing some other function.
M73 Wait for PLC handshake input to go active
Function: Wait for PLC handshake input to go active
Notes:
Similar to M72, this pauses until the PLC line goes to the active state. With either of these two codes, the user can press a key to bypass the wait condition.