Flexible NC programming
1.25 Subprogram technique
Job planning
158 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Significance
PROC: Definition operation at the beginning of a program
<program name>: Name of the program
<parameter type>: Data type of the parameter (e.g. REAL, INT, BOOL)
<parameter name>: Name of the parameter
NOTICE
The program name specified after the
PROC keyword must match the program name
assigned on the user interface.
Example
Definition of a subprogram with 2 REAL type parameters
Program code Comment
PROC SUB_PROG (REAL LENGTH, REAL WIDTH) ; Parameter 1: Type: REAL, name:
LENGTH
Parameter 2: Type: REAL, name:
WIDTH
...
N100 RET ; Subprogram return