User's Manual TNC 360 (from 259 900-11) - heidenhain
User's Manual TNC 360 (from 259 900-11) - heidenhain
User's Manual TNC 360 (from 259 900-11) - heidenhain
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
7 Programming with Q Parameters<br />
7.4 If–Then Operations with Q Parameters<br />
Jumps<br />
Overview<br />
7-8<br />
If–Then conditional operations enable the <strong>TNC</strong> to compare a Q parameter<br />
with another Q parameter or with a numerical value.<br />
The jump target is specified in the block through a label number. If the<br />
programmed condition is true, the <strong>TNC</strong> continues the program at the<br />
specified label; if it is false, the next block is executed.<br />
To jump to another program, you enter a PGM CALL after the block with<br />
the target label (see page 6-8).<br />
Abbreviations used:<br />
IF If<br />
EQU Equals<br />
NE Not equal<br />
GT Greater than<br />
LT Less than<br />
GOTO Go to<br />
FN9: IF EQUAL, JUMP<br />
e.g. FN9: IF +Q1 EQU +Q3 GOTO LBL 5<br />
If the two values or parameters are equal,<br />
jump to the specified label.<br />
FN10: IF NOT EQUAL, JUMP<br />
e.g. FN10: IF +10 NE –Q5 GOTO LBL 10<br />
If the two parameters or values are not equal,<br />
jump to the specified label.<br />
FN<strong>11</strong>: IF GREATER THAN, JUMP<br />
e.g. FN<strong>11</strong>: IF +Q1 GT–10 GOTO LBL 5<br />
If the first value or parameter is greater<br />
than the second value or parameter,<br />
jump to the specified label.<br />
FN12: IF LESS THAN, JUMP<br />
e.g. FN12: IF +Q5 LT +0 GOTO LBL 1<br />
If the first value or parameter is less<br />
than the second value or parameter,<br />
jump to the specified label.<br />
<strong>TNC</strong> <strong>360</strong>