Flexible NC programming
1.24 Subprogram technique
1.24.2.2
Subprogram with call-by-value parameter transfer (PROC)
Function
A subprogram with call-by-value parameter transfer is defined using the
followed by the name of the program and a complete list of all the parameters expected by
the subprogram, with type and name. The definition operation must appear in the first
program line.
Call-by-value parameter transfer does not affect the calling program. The calling program
only transfers the values of the actual parameters to the subprogram.
Note
A maximum of 127 parameters can be transferred.
Syntax
PROC <prog_name> (<par_type> <par_1>[=<init_value_1>]{,
Par_2[=<init_value_1>]})
Meaning
PROC
<prog_name>
<par_type>
162
:
:
:
Definition operation at the beginning of a program
Name of the program
Data type of the parameter (e.g. REAL, INT, BOOL)
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
keyword
PROC
Job Planning