beautypg.com

4 if-then decisions with q parameters – HEIDENHAIN TNC 407 (280 580) User Manual User Manual

Page 194

background image

7-9

TNC 425/TNC 415 B/TNC 407

7

Programming with Q Parameters

7.4 If-Then Decisions with Q Parameters

The TNC can compare a Q parameter with another Q parameter or with a
numerical value for "if-then" decisions.

Jumps

The jump target is specified in the decision block through a label number.
If the programmed condition is fulfilled, the TNC continues the program at
the specified label. If it is not fulfilled, it continues with the next block.

To jump to another program, enter PGM CALL (see page 6-8) after the
block with the target label.

Abbreviations used:

IF

IF

IF

IF

IF

If

EQU

EQU

EQU

EQU

EQU

Equals

NE

NE

NE

NE

NE

Not equal

GT

GT

GT

GT

GT

Greater than

LT

LT

LT

LT

LT

Less than

GOTO

GOTO

GOTO

GOTO

GOTO

Go to

Unconditional jumps

An unconditional jump is programmed by entering a conditional jump
whose condition is always met, e.g.:

FN 9: IF+10 EQU+10 GOTO LBL1

Press the “jump” soft key to call the following options: