Arithmetic Parameter ($R[N]) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Motion synchronous actions
10.3 Main run variables for synchronized actions
10.3.7

Arithmetic parameter ($R[n])

Function
This static array variable is used for calculations in the part program and synchronized
actions.
Syntax
Programming in part program:
REAL R[n]
REAL Rn
Programming in synchronized actions:
REAL $R[n]
REAL $Rn
Arithmetic parameters
Using arithmetic parameters allows for:
● storage of values that you want to retain beyond the end of program, NC reset, and
● display of stored value in the R parameter display.
Examples
Program code
WHEN $AA_IM[X]>=40.5 DO $R10=$AA_MM[Y]
G01 X500 Y70 F1000
STOPRE
IF R10>20
Program code
SYG_AS[2]=X
SYG_IS[1]=1
WHEN $AA_IM[SGY_AS[2]]>10 DO $R3=$AA_EG_DENOM[SYG_AS[1]], SYG_AS[2]]
WHEN $AA_IM[SGY_AS[2]]>12 DO $AA_SCTRACE[SYG_AS[2]]=1
SYG_AS[1]=X
SYG_IS[0]=1
WHEN $AA_IM[SGY_AS[1]]>10 DO $R3=$$MA_POSCTRL_GAIN[SYG_IS[0]],SYG_AS[1]]
WHEN $AA_IM[SGY_AS[1]]>10 DO $R3=$$MA_POSCTRL_GAIN[SYG_AS[1]]
WHEN $AA_IM[SGY_AS[1]]>15 DO $$MA_POSCTRL_GAIN[SYG_AS[0]], SYG_AS[1]]=$R3
654
Power On
Comments
; Using R10 in synchronized
actions.
; Preprocessing stop
; Evaluation of the arithmetic
variable.
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Job Planning

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents