EasyManuals Logo

Siemens SINUMERIK 804D sl Programming Manual

Siemens SINUMERIK 804D sl
1334 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 #499 background imageLoading...
Page #499 background image
New values valid
New values
valid
New value
assignment
LENGTH=20
WIDTH=15
Subprogram
Main program
Value
assignment
LENGTH=20
WIDTH=10
LENGTH, WIDTH
LENGTH, WIDTH
Note
The call-by-reference parameter transfer is then only necessary if the transferred variable was
defined locally 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.
Syntax
PROC <program name> (VAR <parameter type> <parameter name>, etc.)
PROC <program name> (VAR <array type> <array name>, [<m>,<n>,<o>],
etc.)
Note
Up to 127 parameters can be transferred.
Meaning
PROC: Definition operation at the beginning of a program
VAR: Keyword for parameter transfer via reference
<program name>: Name of the program
<parameter type>: Data type of the parameter (e.g. REAL, INT, BOOL)
<parameter name>: Name of the parameter
<array type>: Data type of the array elements (e.g. REAL, INT, BOOL)
<array name>: Name of the array
Work preparation
3.2 Subprogram technique
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 499

Table of Contents

Other manuals for Siemens SINUMERIK 804D sl

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 804D sl Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 804D sl
CategoryControl Systems
LanguageEnglish

Related product manuals