EasyManuals Logo

Siemens SINUMERIK 810D Programming Guide

Siemens SINUMERIK 810D
598 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
2
12.98 Subprograms, Macros
2.7 Callin
g
the sub
p
ro
g
ram indirectl
y
2
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
2-105
2.7 Calling the subprogram indirectly
Indirect subprogram call, CALL
Depending on the prevailing conditions at a
particular point in the program, different
subprograms can be called.
The name of the subprogram is stored in a variable
of type STRING. The subprogram call is issued with
CALL and the variable name.
The indirect subprogram call is only possible for
subprograms without parameter transfer.
For direct calling of the subprogram, store the name
in a string constant.
Example:
Direct call with string constant:
CALL "/_N_WCS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
Indirect call via variable:
DEF STRING[100] PROGNAME
PROGNAME="/_N_WCS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
CALL PROGNAME
The subprogram PART1 is assigned the variable
PROGNAME. With CALL and the path name you
can call the subprogram indirectly.

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