Subprogram With Call-By-Reference Parameter Transfer (Proc, Var) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.25 Subprogram technique
1.25.2.3

Subprogram with call-by-reference parameter transfer (PROC, VAR)

Function
A subprogram with call-by-reference 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 the VAR keyword, type and name. The definition operation must appear
in the first program line.
With call-by-reference parameter transfer, references to arrays can also be transferred.
Call-by-reference parameter transfer affects the calling program. The calling program
transfers a reference to the actual parameter to the subprogram, thereby providing the
subprogram with direct access to the corresponding variable.
Note
A maximum of 127 parameters can be transferred.
176
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents