Subprogram With Call-By-Value Parameter Transfer (Proc) - Siemens Sinumerik 840D sl Programming Manual

Job planning
Hide thumbs Also See for Sinumerik 840D sl:
Table of Contents

Advertisement

1.25.2.2

Subprogram with call-by-value parameter transfer (PROC)

Function
A subprogram with call-by-value parameter transfer is defined using the PROC keyword
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 <program name> (<parameter type> <parameter name>, etc.)
Significance
PROC:
<program name>:
<parameter type>:
<parameter name>:
NOTICE
The program name specified after the PROC keyword must match the program name
assigned on the user interface.
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Definition operation at the beginning of a program
Name of the program
Data type of the parameter (e.g. REAL, INT, BOOL)
Name of the parameter
Flexible NC programming
1.25 Subprogram technique
169

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents