January 2012 8.15 Command Set 1717
8.15.66 JUMP IF LOGIC ACCUMULATOR = 1 (JPT)
Syntax: JPT (JUMP IF TRUE)
Operands: Label (LBL)
Action:
The JPT command is a conditional jump command. If the logic accumulator =
1, the control resumes the program at the label that you have entered. If the
logic accumulator = 0, the control does not jump. The JPT command interrupts
a logic sequence.
Example:
This example also applies to the JP and JPF commands.
Depending on the state of the input I5, skip a certain program section.
Initial state:
Input I5 = 1
Function STL Accumulator
content
Operand content
Load the operand content
into the logic
accumulator.
L I5 1 1
If logic accumulator =1,
jump to LBL 10.
JPT 10 1
Skip the function. L I3
Skip the function. O M500
Skip the function. = 020
Label LBL 10
Resume the program run. L M100
. . . . . . . .
00