Predefined User Variables: Global Arithmetic Parameters (Rg) - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Example
Assignments to R-parameters and use of R-parameters in mathematical functions:
Program code
R0=3.5678
R[1]=-37.3
R3=-7
$R4=-0.1EX-5
$R[6]=1.874EX8
R7=SIN(25.3)
R[R2]=R10
R[(R1+R2)*R3]=5
X=(R1+R2)
Z=SQRT(R1*R1+R2*R2)
See also
Variables (Page 389)
3.1.1.3

Predefined user variables: Global arithmetic parameters (RG)

Function
In addition to the channel-specific R parameters, the user has access to global R parameters.
They exist once within the control unit and can be read and written from all channels.
Global R parameters are used, for example, to transfer information from one channel to the
next. Another example concerns global settings that should be evaluated for all channels, such
as the overhang of the raw part from the spindle.
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Comment
; Assignment in preprocessing
; Assignment in preprocessing
; Assignment in preprocessing
; Assignment in the main program run: R4 = -0.1 * 10^-5
; Assignment in the main program run: R6 = 1.874 * 10^8
; Assignment in preprocessing
; Indirect addressing using R-parameter
; Indirect addressing using math. expression
; Traverse axis X to the position resulting from the sum of
R1 and R2
; Traverse axis Z to the square root position (R1^2 + R2^2)
Work preparation
3.1 Flexible NC programming
393

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents