Jumps; Parameters - HEIDENHAIN TNC 370 User Manual

Conversational programming
Table of Contents

Advertisement

7
Programming
with Q Parameters
L
7.4
If-Then
Operations
with
0 Parameters
If-Then
conditional
operations
enable the TNC 370 to compare
a
Q parameter
with another
Q parameter
or with a numerical
value.
-_
Jumps
i
The jump target is specified
in the block through
a label number.
If the
programmed
condition
is true, the TNC continues
the program
at the
specified
label; if it is false, the next block is executed.
To jump to another
program,
you enter a PGM CALL after the block with
the target label (see page 6-8).
Abbreviations
used:
IF
If
EQU
Equals
NE
Not equal
GT
Greater than
LT
Less than
GOT0
Go to
FN9: IF EQUAL,
JUMP
e.g. FN9: IF +Ql
EQU +Q3 GOT0
LBL 5
If the two values or parameters
are equal,
jump to the specified
label.
FNIO: IF NOT EQUAL,
JUMP
e.g. FNIO: IF +I0
NE -Q5 GOT0
LBL 10
If the two parameters
or values are not equal,
jump to the specified
label.
FNII:
IF GREATER
THAN,
JUMP
e.g. FNI 1: IF +Ql
GT+lO
GOT0
LBL 5
If the first value or parameter
is greater than the second
value or parameter,
jump to the specified
label.
FN12: IF LESS THAN,
JUMP
e.g. FN12: IF +Q5 LT +0 GOT0
LBL 1
If the first value or parameter
is less than the second
value or parameter,
jump to the specified
label.
L
TNC 370
7-9
L

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents