Save Modal G Functions (Save) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Flexible NC programming
1.24 Subprogram technique
1.24.2.4

Save modal G functions (SAVE)

Function
The
saved and are re-activated after the end of the subprogram.
NOTICE
Interrupt continuous-path mode
If, for active continuous-path mode, a sub-program is called with the
continuous-path mode is interrupted at the end of the sub-program (return jump).
Syntax
PROC <subprogram name> SAVE
Meaning
SAVE
Example
The modal G function
dimension). The modal G function
G90
subprogram definition with
Subprogram definition:
Program code
PROC CONTOUR (REAL VALUE1) SAVE
N10 G91 ...
N100 M17
Main program:
Program code
N10 G0 X... Y... G90
N20 ...
...
N50 CONTOUR (12.4)
N60 X... Y...
166
attribute means that before the subprogram call, active modal G functions are
SAVE
:
Saves the modal G functions before the subprogram call and restores after the
end of the subprogram.
is effective in the CONTOUR subprogram (incremental
G91
is again effective in the main program after the end of the subprogram due to the
is effective in the main program (absolute dimension).
G90
.
SAVE
Comment
; Subprogram definition with the SAVE
parameter
; Modal G function G91: Incremental dimension
; End of subprogram
Comment
; Modal G function G90: Absolute dimensions
; Subprogram call
; Modal G function G90 reactivated using SAVE
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
attribute, the
SAVE
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents