Indirect Subprogram Call With Specification Of The Calling Program Part - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.2 Subprogram technique
Syntax
CALL <program name>
Meaning
CALL:
<program name>:
Example
Direct call with STRING constant:
Program code
...
CALL "/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
...
Indirect call via variable:
Program code
...
DEF STRING[100] PROGNAME
PROGNAME="/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
CALL PROGNAME
...
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>
530
Command for the indirect subprogram call.
Name of the subprogram (variable or constant)
Type:
STRING
Comment
; Direct call to subprogram
PART1 with CALL.
Comment
: Define variable.
; Assign subprogram PART1 to
the PROGNAME variable.
; Indirect call to subprogram
PART1 via CALL and the PROG-
NAME variable.
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents