10
12.97 Motion-Synchronous Action
10.3 S
ecial real-time variables for s
nchronized actions
10
840D
NCU 572
NCU 573
810D
CCU2
840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
10-355
10.3.4 Access to R parameters $Rxx
Function
Data type: REAL
These static variables are used for calculations in
the part program etc. They can be addressed in the
interpolation cycle by appending
$
.
Examples:
WHEN $AA_IM[X]>=40.5 DO $R10=$AA_MM[Y]
Write access to the R parameter 10.
WHEN $AA_IM[X]>=6.7 DO $R[$AC_MARKER[1]]=30.6 ;
Read access to the R parameter whose
number is given in flag 1
Notes
Application:
The use of R parameters in synchronized actions
permits
•
Storage of values that you want to retain beyond
the end of program, NC reset, and Power On.
•
Display of stored value in the R parameter display
•
Archiving of values determined for synchronized
actions
The R parameters must be used either as "normal"
arithmetic variables Rxx
or
as real-time variables $Rxx.
If you want the R parameter to be used as a
"normal" arithmetic variable again after it has been
used in a synchronized action, make sure that the
preprocessing stop is programmed explicitly with
STOPRE for synchronization of preprocessing and
the main run.
Example:
WHEN $AA_IM[X]>=40.5 DO $R10=$AA_MM[Y]
Use of R10 in synchronized actions
G01 X500 Y70 F1000
STOPRE
Preprocessing stop
IF R10>20
Evaluation of the arithmetic variable