Parametric subroutine call (LL / L V.E. or macro)
Instead of using fixed names, local and global subroutines can be also be called by external variables or macros. This permits a parametrisable flow of the NC program.
External variables of be of the string or string array type (see also section External variables (V.E.)). The maximum string length of local subroutines is 83 characters. It is also 83 characters for global subroutines but this includes an absolute or relative path name.
Macros must be defined by L or LL before they are used. The macro content has a maximum string length of 80 characters.
A local subroutine is called from the main program by LL :
LL V.E. ... (Caution: Blank character between LL and V.E. .… is mandatory). |
or |
LL "<string> "(Caution: Blank character between LL and macro name is mandatory). |
V.E. ... | Name of local subroutine parameterised by external variable |
"<macro_name>" | Name of local subroutine parameterisable by macro. If the macro is not defined, the <macro name> is treated as a normal local subroutine name. |
A global subroutine is called by L :
LV.E. … or L V.E. … |
or |
L"<macro_name>" or L "<macro_name>" |
V.E. ... | Name of the file in which this global subroutine is stored when the file is parametrised by an external variable. |
"<macro_name>" | Name of the file in which this |
Programming Example
Parametric subroutine call (LL / L V.E. or macro)
Programming Example
Parametric subroutine call (LL / L V.E. or macro)