manually via overstore. In this situation, the "Modal subprogram call" function must not be
deselected because otherwise the search result is falsified. It is therefore recommended that
the deselection of the "Modal subprogram call" function in the tool change cycle is programmed
as follows:
Program code Comment
...
IF $AC_ASUB == 0 ; Call is not performed via search ASUB or overstore.
MCALL ; Deactivate the "Modal subprogram call" function.
ENDIF
...
Examples
Example 1
Program code Comment
N10 G0 X0 Y0
N20 MCALL L70 ; Activate the modal subprogram call for L70.
N30 X10 Y10 ; X10 Y10 is approached, and then L70 is called.
N40 X20 Y20 ; X20 Y20 is approached, and then L70 is called.
...
N100 MCALL ; Deactivate the "Modal subprogram call" function.
N110 X0 Y0 ; X0 Y0 is approached, L70 is not called.
Example 2
Program code
N10 G0 X0 Y0
N20 MCALL L70
N30 L80
In this example, the following NC blocks with programmed path axes are in subprogram L80.
L70 is called by L80.
3.2.3.5 Indirect subprogram call (CALL)
Depending on the prevailing conditions at a particular point in the program, different
subprograms can be called. The name of the subprogram is stored in a variable of the STRING
type. The subprogram call is realized with CALL and the variable name.
Note
The indirect subprogram call is only possible for subprograms without parameter transfer. For
a direct subprogram call, save the name in a STRING constant.
Work preparation
3.2 Subprogram technique
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 529