EasyManua.ls Logo

Siemens SINUMERIK 840DE

Siemens SINUMERIK 840DE
516 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
10-1
Arithmetic Parameters and Program Jumps
10
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 Arithmetic variables
n Number of the arithmetic parameter, n= 0 to max. See
machine data or machine manufacturer for max.; default
setting: max = 0-99
Range of values ±(0.000 0001 ... 9999 9999) (8 decimal places and leading
sign and decimal point) can be assigned to the arithmetic
parameters.
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 ;The new R1 is calculated from the
;old R1 plus 1
N20 R1=R2+R3 R4=R5-R6 R7=R8* R9 R10=R11/R12
N30 R13=SIN(25.3) ;R13 equals sine of 25.3 degrees
N40 R14=R1*R2+R3 ;Multiplication or division takes
precedence over addition or
subtraction ;R14=(R1*R2)+R3
N50 R14=R3+R2*R1 ;Result, the same as block N40
N60 R15=SQRT(R1*R1+R2*R2) ;Meaning: R15=square root of ;R1
2
+R2
2

Table of Contents

Other manuals for Siemens SINUMERIK 840DE

Related product manuals