EasyManuals Logo

Siemens MCP 398C Programming Manual

Siemens MCP 398C
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 MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals