Unconditional Jumps - HEIDENHAIN ITNC 530 User Manual

Conversational programming
Hide thumbs Also See for ITNC 530:
Table of Contents

Advertisement

11.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" on page 516).
If it is not fulfilled, the TNC continues with the next block.
To call another program as a subprogram, enter PGM 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:
FN9: IF+10 EQU+10 GOTO LBL1
Programming If-Then decisions
Press the JUMP soft key to call the If-Then conditions. The TNC then
displays the following soft keys:
Function
FN9: IF EQUAL, JUMP
Example: FN9: IF +Q1 EQU +Q3 GOTO LBL "UPCAN25"
If the two values or parameters are equal, jump to the
given label.
FN10: IF NOT EQUAL, JUMP
Example: FN10: IF +10 NE –Q5 GOTO LBL 10
If the two values or parameters are not equal, jump to
the given label.
FN11: IF GREATER THAN, JUMP
Example: FN11: IF+Q1 GT+10 GOTO LBL 5
If the first parameter or value is greater than the
second value or parameter, jump to the given label.
FN12: IF LESS THAN, JUMP
Example: FN12: IF+Q5 LT+0 GOTO LBL "ANYNAME"
If the first value or parameter is less than the second
value or parameter, jump to the given label.
540
Soft key
11 Programming: Q Parameters

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Itnc 530 e

Table of Contents