Subprograms, Macros
2
2.2 Subprogram with SAVE mechanism
840D
840D
NCU 571
NCU 572
NCU 573
2.2
Subprogram with SAVE mechanism
For this, specify the additional command SAVE with
the definition statement with PROC.
At the end of the interrupt routine the modal G
functions are set to the value they had at the start of
the interrupt routine by means of the SAVE attribute.
The programmable zero offset and the basic offset
are reestablished in addition to the settable zero
offset (modal G function group 8). If the G function
group 15 (feed type) is changed, e.g. from G94 to
G95, the appropriate F value is also reestablished.
Example:
Subprogram definition
PROC CONTOUR SAVE
N10 G91 ...
N100 M17
Main program
%123
N10 G0
X... Y... G90
N20...
N50 CONTOUR
N60 X... Y...
In the CONTOUR subprogram G91 incremental
dimension applies. After returning to the main
program, absolute dimension applies again because
the modal functions of the main program were
stored with SAVE.
2-94
FM-NC
810D
840Di
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
12.98
2
Siemens AG 2000. All rights reserved