Indirect Subprogram Call (Call) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

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
...
IF $AC_ASUB == 0
ENDIF
...
Examples
Example 1
Program code
N10 G0 X0 Y0
N20 MCALL L70
N30 X10 Y10
N40 X20 Y20
...
N100 MCALL
N110 X0 Y0
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.
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
MCALL
Comment
; Call is not performed via search ASUB or overstore.
; Deactivate the "Modal subprogram call" function.
Comment
; Activate the modal subprogram call for L70.
; X10 Y10 is approached, and then L70 is called.
; X20 Y20 is approached, and then L70 is called.
; Deactivate the "Modal subprogram call" function.
; X0 Y0 is approached, L70 is not called.
Work preparation
3.2 Subprogram technique
529

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents