EasyManua.ls Logo

Siemens SINUMERIK 810D

Siemens SINUMERIK 810D
687 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
Loading...
Subroutines, Macros
2.3 Subroutines with parameter transfer (PROC, VAR)
Job planning
2-6 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
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)
2OGYDOXHVYDOLG
1HZYDOXHV
YDOLG
1HZYDOXH
DVVLJQPHQW
/(1*7+ 
:,'7+ 
6XESURJUDP
9DOXHDVVLJQPHQW
/(1*7+ 
:,'7+ 
0DLQSURJUDP
/(1*7+:,'7+
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.

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Related product manuals