OmniTurn   CNC Lathes Made in Oregon
 Fast... Precise... Affordable... Home Contact

M97 Conditional Jump to Subroutine (M97InCnPn)
(Requires Optional PLC Expanded I/O)
See also M95 Conditional Jump to Subroutine 1

In: The PLC input which is being tested
Cn: The condition; either 1 (“ON”) or 0 = (“OFF”)
Pn: The subroutine which will be executed

This command will cause the program to jump to any subroutine if any available PLC input is either "on" or "off".(Memory locations in the PLC that end in 8 or 9 can also be used).

The condition must exist before the command is executed. Use dwell (G04) if necessary to insure that the state of the input is stable before the program executes the M97 command


Back to G-Codes