Flexible NC programming
1.25 Subprogram technique
Job planning
184 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Syntax
EXTERNAL <program name>(<type_Par1>,<type_Par2>,<type_Par3>)
...
<program name>(<value_Par1>,<value_Par2>,<value_Par3>)
CAUTION
The subprogram call must always be programmed in a separate NC block.
Significance
<program name>: Name of subprogram
EXTERN: Keyword to declare a subprogram with
parameter transfer.
Note:
You only have to specify
EXTERNALif the
subprogram is in the workpiece or in the
global subprogram directory. Cycles do not
have to be declared as
EXTERN.
<type_par1>,<type_par2>,<type_par3>: Variable types of the parameters to be
transferred in the sequence of the transfer
<value_par1>,<value_par2>,<value_par3>: Variable values for the parameters to be
transferred