Programming Q Parameters | If-then decisions with Q parameters
9
348
HEIDENHAIN | TNC 320 | ISO Programming User's Manual | 10/2017
9.6 If-then decisions with Q parameters
Application
The control can make logical if-then decisions by comparing a Q
parameter with another Q parameter or with a numerical value. If
the condition is fulfilled, the control continues the program at the
label that is programmed after the condition.
Further information: "Labeling subprograms and program section
repeats", page 318
If it is not fulfilled, then the control executes the next block.
To call another program as a subprogram, enter a % program call
after the block with the label.
Unconditional jumps
An unconditional jump is programmed by entering a conditional
jump whose condition is always true. Example:
D09 P01 +10 P02 +10 P03 1 *