Siemens SINUMERIK User Manual page 125

Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Value assignments
You can assign values in the following range to the R parameters:
±(0.000 0001 ... 9999 9999)
(8 decimal places, arithmetic sign, and decimal point)
The decimal point can be omitted for integer values. A plus sign can always be omitted.
Example:
R0=3.5678 R1=-37.3 R2=2 R3=-7 R4=-45678.123
Use the exponential notation to assign an extended range of numbers:
± (10
... 10
)
-300
+300
The value of the exponent is written after the EX characters; maximum total number of characters: 10 (including leading
signs and decimal point)
Range of values for EX: -300 to +300
Example:
R0=-0.1EX-5
R1=1.874EX8
Note
There can be several assignments in one block incl. assignments of arithmetic expressions.
Assignments to other addresses
The flexibility of an NC program lies in assigning these arithmetic parameters or expressions with arithmetic parameters to
other NC addresses. Values, arithmetic expressions and arithmetic parameters can be assigned to all addresses; Exception:
addresses N, G, and L.
When assigning, write the " = " sign after the address character. It is also possible to have an assignment with a minus sign.
A separate block is required for assignments to axis addresses (traversing instructions).
Example:
N10 G0 X=R2
Arithmetic operations/arithmetic functions
When operators/arithmetic functions are used, it is imperative to use conventional mathematical notation. Machining
priorities are set with round brackets. Otherwise, multiplication and division take precedence over addition and subtraction.
Degrees are used for the trigonometric functions.
Programming example: Calculating with 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)
N70 R1= -R1
Programming example: Assign R parameters to the axes
N10 G1 G91 G94 X=R1 Z=R2 F300
N20 Z=R3
N30 X=-R4
N40 Z= SIN(25.3)-R5
M30
Programming example: Indirect programming
N10 R1=5
R2=6
R1=R2-1
Programming and Operating Manual (Turning)
01/2017
;Meaning: R0 = -0.000 001
;Meaning: R1 = 187 400 000
;Assignment to X axis
;The new R1 is calculated from the old R1 plus 1
;R13 equals sine of 25.3 degrees
;Multiplication and division take precedence over addi-
tion or subtraction R14=(R1*R2)+R3
;Result, the same as block N40
;Meaning:
;The new R1 is the negative old R1
;Separate blocks (traversing blocks)
;With arithmetic operations
;Assigning R1 directly value 5 (integer)
125

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 808dSinumerik 808d advanced

Table of Contents