EasyManuals Logo

Siemens SINUMERIK 840D Programming Manual

Siemens SINUMERIK 840D
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 #97 background imageLoading...
Page #97 background image
Subroutines, Macros
2.4 Call subroutines (L or EXTERN)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2-13
The system variable $P_SUBPAR returns
• TRUE, if the transfer parameter was programmed
• FALSE, if no value was set as transfer parameter.
If an impermissible parameter number was specified, parts program processing is aborted
with alarm output.
Call main program as subroutine
A main program can also be called as a subroutine. The end of program M2 or M30 set in
the main program is evaluated as M17 in this case (end of program with return to the calling
program).
You program the call specifying the program name.
Example:
N10 MPF739 or
N20 Shaft3
10



1
1:(//(
103)
$GGLWLRQDOPDLQ
SURJUDP
RU
0DLQSURJUDP
Note
A subroutine can also be started as a main program.

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals