Siemens sinumerik 840d Programming Manual page 40

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Flexible NC Programming
1
1.6
Arithmetic operations/functions
840D
840D
NCU 571
NCU 572
NCU 573
Programming examples
R1=R1+1
R1=R2+R3
R4=R5-R6
R10=R11/R12
R14=R1*R2+R3
R14=(R1+R2)*R3
R15=SQRT(POT(R1)+POT(R2))
RESFRAME= FRAME1:FRAME2
FRAME3=CTRANS(...):CROT(...)
Arithmetic function ATAN2( , )
The function calculates the angle of the resulting
vector from two vectors at right angles to each other.
The result is in one of four quadrants (–180 < 0 <
+180°). The angular reference is always based on
the 2nd value in the positive direction.
1-40
FM-NC
810D
840Di
R7=R8*R9
R13=SIN(25.3)
New R1 = old R1 +1
Multiplication and division have priority over
addition and subtraction
Parentheses are calculated first
Inner parentheses are solved first
R15 = square root of (R1
The chain operator combines frames in a
resulting frame or assigns values to the
frame components
R3=ATAN2(30.5,80.1)
30.5
2nd vector
R3=ATAN2(30,-80)
-80
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
2
+R2
2
)
Angle=20.8455°
80.1
30
Angle=159.444°
2nd vector
 Siemens AG 2000. All rights reserved
1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents