Meaning
CALL: Command for the indirect subprogram call.
<program name>:
Name of the subprogram (variable or constant) that contains the pro‐
gram section to be executed (specification optional).
Type: STRING
Note:
If a <program name> has not been programmed, the program section
designated by <start label> and <end label> is searched for in
the current program and executed.
BLOCK ... TO ... : Keyword combination for indirect program section execution
<start label>: Variable that refers to the start of the program section to be executed.
Type: STRING
<end label>: Variable that refers to the end of the program section to be executed.
Type: STRING
Example
Main program:
Program code Comment
...
DEF STRING[20] STARTLABEL, ENDLABEL ; Variable definition for the start and
end labels.
STARTLABEL="LABEL_1"
ENDLABEL="LABEL_2"
...
CALL "CONTUR_1" BLOCK STARTLABEL TO ENDLA-
BEL
; Indirect subprogram call and identifi-
er associated with the calling program
section.
...
Subprogram:
Program code Comment
PROC CONTUR_1 ...
LABEL_1 ; Start label: Start of program section execution.
N1000 G1 ...
...
LABEL_2 ; End label: End of program section execution.
...
3.2.3.7 Indirect call of a program programmed in ISO language (ISOCALL)
A program programmed in an ISO language can be called using the indirect program call
ISOCALL. The ISO mode set in the machine data is then activated. The original execution
mode becomes effective again at the end of the program. If no ISO mode is set in the machine
data, the subprogram is called in Siemens mode.
Work preparation
3.2 Subprogram technique
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 531