EasyManuals Logo

Siemens SINUMERIK 810D Programming Manual

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
Page #96 background imageLoading...
Page #96 background image
Subroutines, Macros
2.4 Call subroutines (L or EXTERN)
Job planning
2-12 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Description
Caution
Subroutine definition corresponds to subroutine call
Both the variable types and the sequence of transfer must match the definitions declared
under PROC in the subroutine name. The parameter names can be different in the main
program and subroutines.
Definition in the subroutine:
PROC BORDER(REAL LENGTH, REAL WIDTH, REAL DEPTH)
Call in the main program:
N30 BORDER(LENGTH, WIDTH, DEPTH)
Incomplete parameter transfer
Back to the last example:
N40 BORDER(15.3, ,5)
The mean value 20.2 was omitted here.
1%25'(5
1/(1*7+ :,'7+ '(37+ 
0DLQSURJUDP
With incomplete parameter transfer, it is possible to tell by the system variable
$P_SUBPAR[i] whether the transfer parameter was programmed for subroutines or not.
The system variable contains as argument (i) the number of the transfer parameter.

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals