7 – 144 HEIDENHAIN Technical Manual TNC 426, TNC 430
7.7.67 JUMP IF LOGIC ACCUMULATOR = 1 (JPF)
Syntax: JPT (JUMP IF TRUE)
Operands: Label (LBL)
Action:
The JPT command is a conditional jump instruction. If the logic accumulator
= 1, the TNC resumes the program at the label that you have entered. If the
logic accumulator = 0, the TNC does not jump. JPT interrupts a logic
sequence.
Example:
This example also applies to the commands JP and JPF.
Depending on the state of the input I5, skip a certain program section.
Initial state:
Input I5 = 1
7.7.68 JUMP IF LOGIC ACCUMULATOR = 0 (JPF)
Syntax: JPT (JUMP IF FALSE)
Operands: Label (LBL)
Action:
The JPF command is a conditional jump instruction. If the logic accumulator
= 0, the TNC resumes the program at the label that you have entered. If the
logic accumulator = 1, the TNC does not jump. JPF interrupts a logic
sequence.
Example:
See JPT command.
Function STL Accumulator contents [bit] Operand contents [bit]
31..15 ..................... 7 .................. 0
Load the operand
content into the logic
accumulator.
L I5 x ..... x xxxxxxx1xxxxxxx 1
If logic accumulator
=1, jump to LBL 10.
JPT 10 x ..... x x x x x x x x 1 x x x x x x x
Skip the function. L I3
Skip the function. O M500
Skip the function. = 020
Label LBL 10
Resume the
program run.
L M100 .
. . . . . . .
x ..... x xxxxxxx0xxxxxxx 0