EasyManuals Logo

Siemens SINUMERIK 840D Programming Guide

Siemens SINUMERIK 840D
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #40 background imageLoading...
Page #40 background image
1
Flexible NC Programming 04.00
1.6 Arithmetic o
p
erations/functions
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
1-40
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
Programming examples
R1=R1+1
New R1 = old R1 +1
R1=R2+R3 R4=R5-R6 R7=R8*R9
R10=R11/R12 R13=SIN(25.3)
R14=R1*R2+R3
Multiplication and division have priority over
addition and subtraction
R14=(R1+R2)*R3
Parentheses are calculated first
R15=SQRT(POT(R1)+POT(R2))
Inner parentheses are solved first
R15 = square root of (R1
2
+R2
2
)
RESFRAME= FRAME1:FRAME2
FRAME3=CTRANS(…):CROT(…)
The chain operator combines frames in a
resulting frame or assigns values to the
frame components
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.
80.1
30.5
-80
30
R3=ATAN2(30.5,80.1)
R3=ATAN2(30,-80)
1st vector
2nd vector
2nd vector
1st vector
Angle=20.8455°
Angle=159.444°

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840D and is the answer not in the manual?

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals