6 if-then decisions with q parameters, Application, Unconditional jumps – HEIDENHAIN TNC 640 (34059x-05) User Manual

Page 307: Abbreviations used, If-then decisions with q parameters, If-then decisions with q parameters 9.6

Advertising
background image

If-then decisions with Q parameters

9.6

9

TNC 640 | User's Manual
HEIDENHAIN Conversational Programming | 1/2015

307

9.6

If-then decisions with Q parameters

Application

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 280). If it is not fulfilled, the TNC continues with the ne
xt
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

Abbreviations used:

IF

:

If

EQU

:

Equal to

NE

:

Not equal to

GT

:

Greater than

LT

:

Less than

GOTO

:

Go to

UNDEFINED

:

Undefined

DEFINED

:

Defined

Advertising