Arithmetic Parameters And Program Jumps - Siemens SINUMERIK 840Di sl Programming Manual

Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Arithmetic Parameters and Program Jumps

10.1 Arithmetic parameter (R)
Example of assignment of axis values
N10 G1 G91 X=R1 Z=R2 F300
N20 Z=R3
N30 X=-R4
N40 Z=-R5
...
Value assignment
You can assign values in the following range to the arithmetic parameters:
±(0.000 0001 ... 9999 9999) (8 decimal places and 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.1234
It is possible to assign an extended numerical range by using exponential notation:
Example:
± (10
The value of the exponent is written after the EX characters; maximum total number of
characters: 10 (including signs and decimal point)
Range of values for EX: -300 to +300
Example:
R0=-0.1EX-5 ;Meaning: R0 = -0.000 001
R1=1.874EX8 ;Meaning: R1 = 187 400 000
Note
There can be several assignments in one block incl. assignments of arithmetic expressions.
Value assignment must be in a separate block.
Assignments to other addresses
The flexibility of an NC program comes down to being able to assign 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.
418
... 10
)
-300
+300
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents