Local User Data (Lud) - Siemens SINUMERIK 808D ADVANCED Programming And Operating Manual

Computer numeric control
Hide thumbs Also See for SINUMERIK 808D ADVANCED:
Table of Contents

Advertisement

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
N100 R[R1]=27.123
M30
8.14.2

Local User Data (LUD)

Functionality
The operator/programmer (user) can define his/her own variable in the program from various data types (LUD = Local User
Data). These variables are only available in the program in which they were defined. The definition takes place immediately
at the start of the program and can also be associated with a value assignment at the same time. Otherwise the starting
value is zero.
108
;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)
;Indirectly assign R5 the value 27.123
Programming and Operating Manual (Turning)
6FC5398-5DP10-0BA2, 06/2015

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents