Jump commands folder

Application

In the Jump commands folder of the Insert NC function window, the control provides the functions FN 9 to FN 12 for jumps with if-then decisions.

In if-then decisions, the control compares a Q parameter with another Q parameter or a numerical value. If the condition is fulfilled, then the control continues the NC program at the label that is programmed after the condition.

If the condition is not fulfilled, the control continues with the next NC block.

Description of function

The Jump commands folder contains the following functions for if-then decisions:

Icon

Function

ProgramFn9Icon

FN 9: IF EQUAL, JUMP
e. g., FN 9: IF +Q1 EQU +Q3 GOTO LBL "UPCAN25"
If both values or parameters are equal, jump to specified label

FN 9: IF UNDEFINED, JUMP
e. g., FN 9: IF +Q1 IS UNDEFINED GOTO LBL “UPCAN25“
If the specified parameter is undefined, then a jump is made to the specified label

FN 9: IF DEFINED, JUMP
e. g., FN 9: IF +Q1 IS DEFINED GOTO LBL “UPCAN25“
If the specified parameter is defined, then a jump is made to the specified label

ProgramFn10Icon

FN 10: IF UNEQUAL, JUMP
e. g., FN 10: IF +10 NE –Q5 GOTO LBL 10
If both values or parameters are unequal, jump to specified label

ProgramFn11Icon

FN 11: IF GREATER, JUMP
g. g., FN 11: IF+Q1 GT+10 GOTO LBL QS5
If the first value or parameter is greater than the second value or parameter, jump to specified label

ProgramFn12Icon

FN 12: IF LESS, JUMP
e. g., FN 12: IF+Q5 LT+0 GOTO LBL "ANYNAME"
If the first value or parameter is smaller than the second value or parameter, jump to specified label

For the IF condition, you can enter fixed or variable numbers or text.

  • For the jump address GOTO, you can enter the following values:
  • LBL NAME
  • LBL NUMBER
  • QS

Unconditional jump

Unconditional jumps are jumps whose condition is always fulfilled.

Example:

NC programs contained in this User's Manual are suggestions for solutions. The NC programs or individual NC blocks must be adapted before being used on a machine.

  • Change the following contents as needed:
  • Tools
  • Cutting parameters
  • Feed rates
  • Clearance height or safe position
  • Machine-specific positions, e.g. with M91
  • Paths of program calls

Some NC programs depend on the machine kinematics. Adapt these NC programs to your machine kinematics before the first test run.

In addition, test the NC programs using the simulation before the actual program run.

 
Tip

With a program test you determine whether the NC program can be used with the available software options, the active machine kinematics and the current machine configuration.

11 FN 9: IF+0 EQU+0 GOTO LBL1

You can use such jumps, for example, in a called NC program in which you work with subprograms. This way, you can ensure that the control does not execute the subprograms without a call, even without M30 or M2.

Subprograms

Definitions

Abbreviation

Definition

IF

If

EQU (equal)

Equal to

NE (not equal)

Not equal to

GT (greater than)

Greater than

LT (less than)

Less than

GOTO (go to)

Go to

UNDEFINED

Undefined

DEFINED

Defined