beautypg.com

If-then decisions with q parameters -11, Jumps, Overview -11 – HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 200: If/then conditions, jumps, 4 if-then decisions with q parameters

background image

7-11

TNC 426/TNC 425/TNC 415 B/TNC 407

7

Programming with Q Parameters

7.4 If-Then Decisions with Q Parameters

The TNC can make logical If-Then decisions by comparing a Q parameter
with another Q parameter or with a numerical value.

Jumps

The jump target is specified by a label number in the decision block. 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 a program call with % (see page 6-8)
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:

If 10 equals 10, go to label 1

D09 P01 +10 P02 +10 P03 1

Select the jump function to display the following options:

Overview

Soft key

D9: IF EQUAL, JUMP
Example: D09 P01 +Q1 P02 +Q3 P03 5

If the two values or parameters are equal,
jump to the given label.

D10: IF NOT EQUAL, JUMP
Example: D10 P01 +10 P02 –Q5 P03 10

If the two values or parameters are not equal,
jump to the given label.

D11: IF GREATER THAN, JUMP
Example: D11 P01 +Q1 P02 +10 P03 5

If the first value or parameter is greater than the
second value or parameter, jump to the given label.

D12: IF LESS THAN, JUMP
Example: D12 P01 +Q5 P02 +0 P03 1

If the first value or parameter is less than the
second value or parameter, jump to the given label.