The 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 variable or fixed value with another variable or fixed value. If the condition is fulfilled, the control jumps to the label programmed for 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

FN 9: jump if equal

Example: FN 9: IF +Q1 EQU +Q3 GOTO LBL “UPCAN25“

If both values are equal, the control jumps to the defined label.

FN 9: jump if undefined

Example: FN 9: IF +Q1 IS UNDEFINED GOTO LBL “UPCAN25“

If the variable is undefined, the control jumps to the defined label.

FN 9: jump if defined

Example: FN 9: IF +Q1 IS DEFINED GOTO LBL “UPCAN25“

If the variable is defined, the control jumps to the defined label.

FN 10: jump if not equal

Example: FN 10: IF +10 NE –Q5 GOTO LBL 10

If both values are not equal, the control jumps to the defined label.

FN 11: jump if greater than

Example: FN 11: IF+Q1 GT+10 GOTO LBL QS5

If the first value is greater than the second value, the control jumps to the defined label.

FN 12: jump if less than

Example: FN 12: IF+Q5 LT+0 GOTO LBL “ANYNAME“

If the first value is less than the second value, the control jumps to the defined label.

You can enter fixed or variable values for if-then decisions.

Unconditional jump

Unconditional jumps are jumps whose condition is always fulfilled.

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

; Unconditional jump with FN 9 whose condition is always fulfilled

You can use such jumps, for example, in a called NC program in which you work with subprograms. In an NC program without M30 or M2, you can prevent the control from executing subprograms without a call with LBL CALL. As the jump address, program a label that is located directly before the program end.

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