Siemens SINUMERIK 840D sl Programming Manual page 181

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Supplementary conditions
When making a return jump through several program levels, the
individual program levels are evaluated.
If, for a return jump over several program levels, a modal subprogram is active and if in one
of the skipped programs the deselection command
subprogram, then the modal subprogram remains active.
NOTICE
Programming error
The programmer must carefully ensure that for a return jump over several program levels,
the program continues with the correct modal settings. This can be achieved, e.g. by
programming an appropriate main block.
Examples
Example 1: Resuming in the main program after ASUB execution
Programming
N10010 CALL "UP1"
N11000 PROC UP1
N11010 CALL "UP2"
N12000 PROC UP2
...
N19000 PROC ASUB
...
N19100 RET("N10900", ,$P_STACK)
N10900
N10910 MCALL
N10920 G0 G60 G40 M5
Example 2: Character string (string>) to specify the target block search
Main program:
Program code
PROC MAIN_PROGRAM
N1000 DEF INT iVar1=1, iVar2=4
N1010 ...
N1200 subProg1
N1210 M2 S1000 X10 F1000
N1220 ......
N1400 subProg2
N1410 M3 S500 Y20
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
1.24 Subprogram technique
SAVE
is programmed for the modal
MCALL
Comment
;Program level 0 (main program)
; Program level 1
; Program level 2
; Program level 3 (ASUB execution)
; Subprogram return
; Resumption in main program.
; Deactivate modal subprogram.
; Correct additional modal settings.
Comment
; Calls subprogram "subProg1"
; Calls subprogram "subProg2"
Flexible NC programming
statements of the
181

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents