Programming manual
CNC 8070
STATEMENTS AND INSTRUCTIONS
Programming statements
15.
(SOFT V02.0X)
421
Subroutine execution
When calling a global subroutine indicating the full path, the search
is carried out only in the indicated directory. If the path is not indicated,
the search is carried out in this order and in these directories:
1. Directory selected with the #PATH instruction.
2. Directory of the program being executed.
3. Directory defined by machine parameter SUBPATH.
LL Call to a local subroutine
It calls a local subroutine.
The programming format is:
LL <sub>
L Call to a global subroutine
It calls a global subroutine whose full path may be defined.
The programming format is:
L <path><sub>
#CALL Call to a local or global subroutine
It calls a subroutine (local or global) whose full path may be defined.
The programming format is:
#CALL <path><sub>
When there are two subroutines, one local and the other one global,
with the same name, the following criteria is applied. If the path has
been defined in the call, the CNC will execute the global subroutine,
otherwise, it will execute the local one.
Parameter Meaning
<sub> Name of the subroutine
LL sub2.nc
Parameter Meaning
<path> Subroutine location.
<sub> Name of the subroutine
L C:\Cnc8070\Users\Prg\sub1.nc
L C:\Cnc8070\Users\sub2.nc
L Sub3.nc
Parameter Meaning
<path> Subroutine location.
<sub> Name of the subroutine