Local sub-routines (Call LL <string>)

The call of local sub-routines is done with

LL <string> (Caution: Blank character between "LL" and <string> is mandatory).

<string> Name of the local sub-routine

Local sub-routines (LUP) together with the main program are located in a common data file, wherein all the sub-routines must be stated in front of the actual main program.

It should be noted that the local sub-routines can only be called from the main program in the same data file.

Local sub-routines begin with "%L" and a program designation. Between "L" and the program-designation, there must be a minimum of one parting character.

The end of the sub-routine is marked by the functions M17 or M29. Program-abortion is possible with M02 and M30. Then a warning is put out.

If these program end codes are missing “%” (first character of the following main program) will end the sub-routine.

Programming example

Structure of a data file, consisting of NC main program and local sub-routines:

%L UP1 (1st local sub-routine) 
N1 .....
N2 .....
N9 M17 (M17 can also be left out)
%L UP2 (2nd local sub-routine)
N11 .....
N12 .....
N19 M29 (M29 can also be left out)
%100 (Main program)
N100 .....
N105 .....
N200 LL UP1 (Call of 1st LUP)
.
N250 LL UP2 (Call of 2nd LUP)
.
N300 M30 ( Main program end)

In front of the definition of a program, no NC commands are permitted. This is an exception to the rule that the sequence in the NC block for program execution is of no consequence (see chapter 2.5).