Subprogram Call With Parameter Transfer (Extern) - Siemens SINUMERIK 828D Programming Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Example 2: Calling a main program as a subprogram
1.25.3.2

Subprogram call with parameter transfer (EXTERN)

Function
For a subprogram call with parameter transfer, variables or values can be transferred directly
(but not
Subprograms with parameter transfer must be declared with
before they are called in the main program (e.g., at the beginning of the program). The name
of the subprogram and the variable types are thereby specified in the sequence in which
they are transferred.
Both the variable types and the sequence of the transfer must match the definitions
declared under
program and the subprogram.
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
parameters).
VAR
CAUTION
in the subprogram. The parameter names can be different in the main
PROC
Flexible NC programming
1.25 Subprogram technique
in the main program
EXTERNAL
183

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents