EasyManua.ls Logo

Siemens SINUMERIK 802D sl - Page 176

Siemens SINUMERIK 802D sl
212 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...
Programming
8.7 Arithmetic parameters R, LUD and PLC variables
8-176
SINUMERIK 802D sl Operation and Programming Nibbling (BP-N), 06/2006 Edition
6FC5 398-3CP10-0BA0
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 arith-
metic parameters can be assigned to all addresses; Exception: The 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 ; Assignment to the X axis
Arithmetic operations/arithmetic functions
When operators/arithmetic functions are used, it is imperative to use conventional mathe-
matical notation. Machining priorities are set using round brackets. Otherwise, the following
rule applies: Multiplication and division first, and then addition and subtraction.
The trigonometric functions are to be specified using degrees.
For permissible arithmetic functions, please refer to: see Section “List of instructions”
Programming example: Calculating with R parameters
N10 R1= R1+1 ; The new R1 is obtained 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 results in a sine value of 25.3 degrees
N40 R14=R1
*
R2+R3 ; Note the order of operations R14=(R1
*
R2)+R3
N50 R14=R3+R2
*
R1 ; Same result as for block N40
N60 R15=SQRT(R1*R1+R2*R2)
R1
2
+ R2
2
Explanation: R15 =
;
N70 R1= –R1 ; The new R1 value is the negative old R1 value
Programming example: Assign R parameters to the axes
N10 G1 G91 X=R1 Y=R2 F300 ; Separate blocks (traversing blocks)
N20 Y=R3
N30 X= –R4
N40 Y= SIN(25.3)–R5 ; with arithmetic operations
...
Programming example: Indirect programming
N10 R1=5 ; Assign value 5 (integer) directly to R1
...
N100 R[R1]=27.123 ; Assign value 27.123 indirectly to R5

Table of Contents

Other manuals for Siemens SINUMERIK 802D sl

Related product manuals