Programming
10.1 Fundamental principles of NC programming
Surface grinding
Programming and Operating Manual, 11/2012, 6FC5398-5CP10-3BA0
203
Address
Meaning
Value assignments Information
Programming
R0
to
R299
Arithmetic
parameters
± 0.0000001 ...
9999 9999
(8 decimal places)
or with specification
of an exponent:
± (10-300 ...
10+300 )
R1=7.9431 R2=4
with specification of an
exponent:
R1=-1.9876EX9; R1=-1 987
600 000
Arithmetic functions
In addition to the 4 basic
arithmetic functions using the
op - * /, there are the
following arithmetic functions:
SIN( )
sinusoidal
Degrees
R1=SIN(17.35)
COS()
Cosine
Degrees
R2=COS(R3)
TAN()
Tangent
Degrees
R4=TAN(R5)
ASIN()
Arc sine
R10=ASIN(0.35) ; R10:
20.487 degrees
ACOS()
Arc cosine
R20=ACOS(R2) ; R20: ...
Degrees
ATAN2( , )
Arctangent2
The angle of the sum vector is
calculated from 2 vectors
standing vertically one on
another. The 2nd vector
specified is always used for
angle reference.
Result in the range: -180 to
+180 degrees
R40=ATAN2(30.5,80.1) ;
R40: 20.8455 degrees
SQRT()
Square root
R6=SQRT(R7)
POT()
Square
R12=POT(R13)
ABS()
Absolute value
R8=ABS(R9)
TRUNC()
Truncate to integer
R10=TRUNC(R2)
LN()
Natural logarithm
R12=LN(R9)
EXP()
Exponential function
R13=EXP(R1)
RET
Subroutine end
Used instead of M2 - to
maintain the continuous-path
control mode
RET ;separate block
S...
Spindle speed
(master spindle)
0.001 ... 99
999.999
Unit of measurement of the
spindle r.p.m.
S...
S1=...
Spindle speed
for spindle 1
0.001 ... 99
999.999
Unit of measurement of the
spindle r.p.m.
S1=725 ; speed 725 r.p.m.
for spindle 1
S2=...
Spindle speed
for spindle 2
0.001 ... 99
999.999
Unit of measurement of the
spindle r.p.m.
S2=730 ; speed 730 r.p.m.
for spindle 2
S
Cutting rate
with G96 active
0.001 ... 99
999.999
Cutting rate unit m/min with
G96;
for master spindle only
G96
S...
S
Dwell time
in block with G4
0.001 ... 99
999.999
Dwell time in spindle revolutions G4 S... ;separate block
Содержание SINUMERIK 802D sl
Страница 10: ...Table of contents Surface grinding 10 Programming and Operating Manual 11 2012 6FC5398 5CP10 3BA0 ...
Страница 338: ...PLC diagnostics 13 3 Operating options Surface grinding 338 Programming and Operating Manual 11 2012 6FC5398 5CP10 3BA0 ...
Страница 364: ...Index Surface grinding 364 Programming and Operating Manual 11 2012 6FC5398 5CP10 3BA0 ...