Programming and Operating Manual (Turning)
01/2017
125
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.
R0=3.5678 R1=-37.3 R2=2 R3=-7 R4=-45678.123
Use the
to assign an extended range of numbers:
± (10
-300
... 10
+300
)
The value of the exponent is written after the
characters; maximum total number of characters: 10 (including leading
signs and decimal point)
Range of values for EX: -300 to +300
;Meaning: R0 = -0.000 001
;Meaning: R1 = 187 400 000
everal 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).
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
;The new R1 is calculated from the old R1 plus 1
N20 R1=R2+R3 R4=R5-R6 R7=R8*R9 R10=R11/R12
;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
N60 R15=SQRT(R1*R1+R2*R2)
;The new R1 is the negative old R1
Programming example: Assign R parameters to the axes
N10 G1 G91 G94 X=R1 Z=R2 F300
;Separate blocks (traversing blocks)
;With arithmetic operations
Programming example: Indirect programming
;Assigning R1 directly value 5 (integer)