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
...
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Flexible NC programming
1.25 Subprogram technique
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
PROGNAME variable.
213