EasyManuals Logo

Siemens MCP 398C Programming Manual

Siemens MCP 398C
1334 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 #530 background imageLoading...
Page #530 background image
Syntax
CALL <program name>
Meaning
CALL: Command for the indirect subprogram call.
<program name>: Name of the subprogram (variable or constant)
Type: STRING
Example
Direct call with STRING constant:
Program code Comment
…
CALL "/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF" ; Direct call to subprogram
PART1 with CALL.
…
Indirect call via variable:
Program code Comment
…
DEF STRING[100] PROGNAME : Define variable.
PROGNAME="/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF" ; Assign subprogram PART1 to
the PROGNAME variable.
CALL PROGNAME ; Indirect call to subprogram
PART1 via CALL and the PROG-
NAME variable.
…
3.2.3.6 Indirect subprogram call with specification of the calling program part (CALL BLOCK ...
TO ...)
CALL and the keyword combination BLOCK ... TO is used to call a subprogram indirectly and
execute the program section designated by the start and end labels.
Syntax
CALL <program name> BLOCK <start label> TO <end label>
CALL BLOCK <start label> TO <end label>
Work preparation
3.2 Subprogram technique
NC programming
530 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0

Table of Contents

Other manuals for Siemens MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals