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