beautypg.com

6 if-then decisions with q parameters, Function, Unconditional jumps – HEIDENHAIN iTNC 530 (60642x-03) User Manual

Page 318

background image

318

Programming: Q parameters

9.6 If-then decisions with Q

p

ar

amet

ers

9.6 If-then decisions with

Q parameters

Function

The TNC 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 TNC continues the program at the label
that is programmed after the condition (for information on labels, see
"Labeling subprograms and program section repeats", page 292
). If it
is not fulfilled, the TNC continues with the next block.

To call another program as a subprogram, enter a PGM CALL program
call after the block with the target label.

Unconditional jumps

An unconditional jump is programmed by entering a conditional jump
whose condition is always true. Example:

FN 9: IF+10 EQU+10 GOTO LBL1