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 #105 background imageLoading...
Page #105 background image
Subroutines, Macros
2.8 Indirect subroutine call (CALL)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
2-21
2.8 2.8 Indirect subroutine call (CALL)
Function
Depending on the prevailing conditions at a particular point in the program, different
subroutines can be called. The name of the subroutine is stored in a variable of type
STRING. The subroutine call is issued with CALL and the variable name.
Programming
CALL <program name>
Parameters
CALL Keyword for indirect subroutine call
<program_name> Variable or constant of type string
Name of the program containing the program section to run
Caution
The indirect subroutine call is only possible for subroutines without parameter transfer. For
direct calling of the subroutine, store the name in a string constant
Example
Direct call with string constant
CALL "/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
Indirect call via variable
DEF STRING[100] PROGNAME
PROGNAME="/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
CALL PROGNAME
The subroutine Part1 is assigned the variable PROGNAME. With CALL and the path name
you can call the subroutine indirectly.

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