Parametric sub-routine call (LL / L V.E. )

Instead of fixed names the call of local and global sub-routines can be done via external variables. This enables a parametric NC-program flow controled from outside. The external variables must be from type “string” respectively “string array 

The call of local sub-routines is done with

LL V.E. (Caution: Blank character between "LL" and V.E. … is mandatory).

V.E.… Via external variable defined name of the local sub-routine

The call of global sub-routines is done with

LV.E.  or L V.E. 

V.E.… Via external variable defined name of the file including the global sub-routine.

Otherwise the same programming rules are valid like described in the chapters 8.1 and 8.2.

Programming example1

Call of sup programs via external variables of type “string”

%L TASCHE (Local sub-routine) 
N10 .....
.
N99 M17
%MAIN (Main program)
N100 .....
N105 .....
N110 LL V.E.LUP (Call of local sub-routine via external variable)
(V.E.LUP, including the string TASCHE)
.
N200 L V.E.GUP (Call of global sub-routine via external variable)
(V.E.GUP, including the string of a file name)
N300 M30

Programming example2

Call of sup programs via external variables of type “string array”

%L TASCHE_1 (Local sub-routine 1) 
N10 .....
.
N99 M17
%L TASCHE_2 (Local sub-routine 2)
N10 .....
.
N99 M17
%L TASCHE_3 (Local sub-routine 3)
N10 .....
.
N99 M17
%MAIN (Main program)
N100 .....
N105 $FOR P1 = 1,3,1
N110 LL V.E.LUP[P1] ( Call of sub-routines via external variables )
(V.E.LUP[1], V.E.LUP[2],V.E.LUP[3] including)
(the strings TASCHE_1, TASCHE_2, TASCHE_3)
N120 $ENDFOR
.
N205 $FOR P2 = 1,5,1
N210 L V.E.GUP[P2] ( Call of sub-routines via external variables )
(V.E.GUP[1], V.E.GUP[2]..., including the)
(strings of the file names)
N220 $ENDFOR
N300 M30