Programming and Operating — Turning Page 74 808D ADVANCED
Additional
Information
Part 1
s
SEQUENCE
R
parameters
N10 G18 G90 G54
N20 T1 D1
N30 S2500 M03 M08
N40 G00 X-10.0 Z10
N50 R1=0 R2=0 R3=0
N60 STOPRE
N70 M00
N80 R1=1
N90 STOPRE
N100 M00
N110 R2=2
N120 STOPRE
N130 M00
N140 R3=R1+R2
N150 STOPRE
N160 G00 X=R3
N170 M30
The arithmetic parameters are used in a part program for value assignment,
and also for some necessary value calculations. The required values can
be set or calculated by the control system during program execution. Some
of the common arithmetic functions are shown below:
Arithmetic parameters Meaning
+ Addition
- Subtraction
* Multiplication
/ Division
= Equals
Sin() Sine
COS() Cosine
TAN() Tangent
ASIN() Arcsine
ACOS() Arccosine
ATAN2( , ) Arctangent2
SQRT() Square root
ABS() Absolute value
Note:
Preprocessing stop
Programming the STOPRE command in a block will stop block preprocess-
ing and buffering. The following block is not executed until all preprocessed
and saved blocks have been executed in full. The preceding block is
stopped in exact stop (as with G9).
The following program shows the interaction of the part program and the R
variables screen.
Press the “Offset” key on the PPU.
Press the “R var.” SK on the PPU.