E L C P r o g r a m m i n g M a n u a l
F o r m o r e i n f o r m a t i o n v i s i t :
w w w. e a t o n . c o m
M N 0 5 0 0 3 0 0 3 E
3 - 3 1 6
Program Example 2:
When M1018= OFF, the radian mode is used. Select an angle of 30 degrees with X0 or 60 degrees
with X1 and convert the angle to a RAD value to calculate the SIN.
D10
FLT
M1000
D14
K31415926
K1800000000
D20
D14
D40
K30
MOVP
X0
D10
K60
X1
D10
D50
D40
DEDIV
DSIN
D20
MOVP
DEMUL
(K30 D10)
(K60 D10)
(D10 D15, D14)
( /180) (D21, D20)
π
(D15, D14) Degree x /180
π
(D41, D40) RAD binary floating point
(D41 D40) RAD (D51, D50) SIN
,
Binary
floating point
Binary floating point
Binary
floating point
binary floating point
Program Example 3:
When M1018= ON, the angle mode is used. When X0= ON, the SIN of the angle value in (D1, D0) is
calculated and the result is stored in (D11,D10). The angle range is: 0
°≦
angle value
<
360
°
. The
result is saved in (D11, D10) in the binary floating point format.
M1002
SET
M1018
X0
DSIN
D0
D10
D 1
D 0
D 11
D 10
Angle value
SIN value
(binary floating point)
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...