HEIDENHAIN TNC 370 User Manual page 178

Conversational programming
Table of Contents

Advertisement

7
Programming
with Q Parameters
7.4
If-Then
Operations
with Q Parameters
d
Unconditional
jumps
Unconditional
jumps are jumps which
are always executed,
because the
condition
is always true.
Example:
FN 9: IF +I0 EQU +I0 GOT0 LBLI
Since it is always true that 1 O=lO, the jump will always be executed.
Program
example
When Q5 becomes
negative, a jump to program
100 will occur.
5
FNO: 05 = +I 0 ___.____...,....................................... Assign value (such as IO) to parameter
05
9
FN 2: 05 = +Q5 - +I2 .......................................
Reduce the value of Q5
10
FN 12: IF +Q5 LT +0 GOT0
LBL 5 ................... If +Q5 is less than 0, jump to label 5
15
LBL 5 ..................................................................
Label 5
16
PGM CALL 100 ..................................................
Jump to program
100
7-10
TNC370
-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents