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 #93 background imageLoading...
Page #93 background image
Subroutines, Macros
2.4 Call subroutines (L or EXTERN)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2-9
2.4 2.4 Call subroutines (L or EXTERN)
Function
Calling subroutines without parameter transfer
In the main program, you call the subroutine either
• with the L address and the subroutine number or
• with the program name.
Example:
N10 L47 or
N10 SPIGOT_2
1
1/
6XESURJUDP
RU
0DLQSURJUDP
6SLJRWB
Programming
Subroutine with parameter transfer, explanation of EXTERN
EXTERN
Subroutines with parameter transfer must be listed with EXTERN in the main program before
they are called, e.g., at the beginning of the program.
The name of the subroutine and the variable types are declared in the sequence in which
they are transferred, see example.
Subroutines with parameter transfer
In the main program you call the subroutine by specifying the program name and parameter
transfer. When transferring parameters you can transfer variables or values directly (not for
VAR parameters), see example.

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