Jump If Logic Accumulator = 1 (Jpf); Jump If Logic Accumulator = 0 (Jpf) - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.7.67 JUMP IF LOGIC ACCUMULATOR = 1 (JPF)

Function
Load the operand
content into the logic
accumulator.
If logic accumulator
=1, jump to LBL 10.
Skip the function.
Skip the function.
Skip the function.
Label
Resume the
program run.

7.7.68 JUMP IF LOGIC ACCUMULATOR = 0 (JPF)

7 – 144
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
STL
Accumulator contents [bit]
31..15 ..................... 7 .................. 0
L I5
x ..... x x x x x x x x 1 x x x x x x x
JPT 10
x ..... x x x x x x x x 1 x x x x x x x
L I3
O M500
= 020
LBL 10
L M100 .
x ..... x x x x x x x x 0 x x x x x x x
. . . . . . .
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.
HEIDENHAIN Technical Manual TNC 426, TNC 430
Operand contents [bit]
1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents