Siemens SINUMERIK 840D sl Programming Manual page 90

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

Advertisement

Subroutines, Macros
2.3 Subroutines with parameter transfer (PROC, VAR)
Note
The definition statement with PROC must be programmed in a separate NC block.
A maximum of 127 parameters can be declared for parameter transfer.
Example: parameter transfer between main program and subroutine
N10 DEF REAL LENGTH,WIDTH
N20 LENGTH=12 WIDTH=10
N30 BORDER(LENGTH,WIDTH)
The values assigned in N20 in the main program are transferred in N30 when the subroutine
is called. Parameters are transferred in the sequence stated.
The parameter names do not have to be identical in the main programs and subroutine.
2-6
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents