Arithmetic Parameters And Program Jumps; Arithmetic Parameter (R) - Siemens SINUMERIK 840DE Programming Manual

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Arithmetic Parameters and Program Jumps

10.1

Arithmetic parameter (R)

Function
The arithmetic parameters are used, for example, if an NC program is not only to be valid for
values assigned once, or if you need to calculate values. The required values can be set or
calculated by the control during program execution. Another possibility consists of setting the
arithmetic parameter values by operator inputs. If values have been assigned to the
arithmetic parameters, they can be assigned to other variable-setting NC addresses in the
program.
Programming
Rn=...
Parameters
R
n
Range of values
Machine manufacturer
The number of R parameters is set in the machine data, or see specifications of machine
manufacturer.
Example of R parameters
N10 R1= R1+1
N20 R1=R2+R3 R4=R5-R6 R7=R8* R9 R10=R11/R12
N30 R13=SIN(25.3)
N40 R14=R1*R2+R3
N50 R14=R3+R2*R1
N60 R15=SQRT(R1*R1+R2*R2)
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Arithmetic variables
Number of the arithmetic parameter, n= 0 to max. See
machine data or machine manufacturer for max.; default
setting: max = 0-99
±(0.000 0001 ... 9999 9999) (8 decimal places and leading
sign and decimal point) can be assigned to the arithmetic
parameters.
;The new R1 is calculated from the
;old R1 plus 1
;R13 equals sine of 25.3 degrees
;Multiplication or division takes
precedence over addition or
subtraction ;R14=(R1*R2)+R3
;Result, the same as block N40
;Meaning: R15=square root of ;R1
10
2
2
+R2
10-1

Advertisement

Table of Contents
loading

Table of Contents