Meaning
SAVE: Saves the modal G commands before the subprogram call and restores after the end of
the subprogram.
Example
In the CONTOUR subroutine, the modal G command G91 applies (incremental dimension).
The modal G command G90 is effective in the main program (absolute dimension). G90 is
again effective in the main program after the end of the subprogram as a result of the
subprogram definition with SAVE.
Subprogram definition:
Program code Comment
PROC CONTOUR (REAL VALUE1) SAVE ; Subprogram definition with the SAVE parame-
ter
N10 G91 ... ; Modal G command G91: Incremental dimension
N100 M17 ; End of subprogram
Main program:
Program code Comment
N10 G0 X... Y... G90 ; Modal G command G90: Absolute dimensions
N20 ...
...
N50 CONTOUR (12.4) ;Subprogram call
N60 X... Y... ; Modal G command G90 reactivated using SAVE
Supplementary conditions
Frames
The behavior of frames regarding subprograms with the SAVE attribute depends on the frame
time and can be set using machine data.
3.2.2.5 Suppress single block execution (SBLOF, SBLON)
Even with active single block machining, the user can completely or partly process an NC
program without interruption. Single block machining is suppressed via the SBLOF command,
and reactivated via the SBLON command.
Suppressing single block machining for the complete NC program
If the deactivation of single block machining (SBLOF) is programmed in the first line (PROC ...)
of a main program, this remains valid until the end of the NC program or until the NC program
is canceled. The NC program is then executed without stopping when in the single block mode.
If deactivating single block machining (SBLOF) is programmed in the first line (PROC ...) of a
subprogram, this remains valid until the end of the NC program or until the NC program is
Work preparation
3.2 Subprogram technique
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 501