Arithmetic Parameters, Lud And Plc Variables - Siemens SINUMERIK 808D User Manual

Programming and operating manual (milling)
Hide thumbs Also See for SINUMERIK 808D:
Table of Contents

Advertisement

N o te
In addition to the M and H functions, T, D and S functions can also be transferred to the PLC (Programmable Logic
Controller). In all, a maximum of 10 function outputs of this type are possible in a part program block.
11.13

Arithmetic parameters, LUD and PLC variables

11.13.1
Arithmetic parameter R
Fu n ctionality
The arithmetic parameters are used if an NC program is not only to be valid for values assigned once, or if you must
calculate values. The required values can be calculated or set by the control system 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
R0=... to R299=...
R[R0]=...
X=R0
Va lue 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 e xponential 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
N o te
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:
a d dresses 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
126
;Assign values to the arithmetic parameters
;Indirect programming: Assign a value to the arithmetic parameter R, whose number can be
found, e.g. in R0
;Assign arithmetic parameters to the NC addresses, e.g. for the X axis
;Meaning: R0 = -0.000 001
;Meaning: R1 = 187 400 000
;Assignment to X axis
Programming and Operating Manual (Milling)
6FC5398-4DP10-0BA6, 09/2017

Advertisement

Table of Contents
loading

Table of Contents