EasyManuals Logo

Siemens SINUMERIK 828D Programming Manual

Siemens SINUMERIK 828D
822 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #159 background imageLoading...
Page #159 background image
Flexible NC programming
1.25 Subprogram technique
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
159
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.
1HZYDOXHVYDOLG
1HZYDOXHV
YDOLG
1HZYDOXH
DVVLJQPHQW
/(1*7+ 
:,'7+ 
6XESURJUDP
0DLQSURJUDP
9DOXH
DVVLJQPHQW
/(1*7+ 
:,'7+ 
/(1*7+:,'7+
/(1*7+:,'7+
Note
A maximum of 127 parameters can be transferred.
Note
Call-by-reference parameter transfer is then only necessary if the transferred variable was
defined in the calling program (LUD). Channel-global or NC-global variables do not have to
be transferred, since these cannot be accessed directly from within the subprogram.

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 828D and is the answer not in the manual?

Siemens SINUMERIK 828D Specifications

General IconGeneral
Control TypeCNC
Operating SystemWindows Embedded
ProcessorIntel Atom
Display10.4" color TFT display
InterfacesEthernet, USB
ProgrammingShopMill, ShopTurn
Operation Panel Size10.4"
Protection ClassIP65
PLC Memory2 MB
Spindle Capacity4 spindles
Hard DriveCompactFlash

Related product manuals