3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E 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
3 - 3 2 3
API Mnemonic
Operands
Function
135
D ATAN P
S, D
Floating Point Arctangent Operation
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C
D
E
F
S
*
*
*
D
*
DATAN, DATANP: 9
steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32 16
P
32
16
P
Operands:
S
: Specified source (binary floating point)
D
: Area where calculated result is stored
Description:
1. ATAN
value=TAN
-1
2.
See the figure below for the relation between radian and result:
S: Radian
R: Result
R
S
2
2
-
0
3.
If the result of D is 0, the zero flag M1020=ON.
Program Example:
When X0= ON, calculate the ATAN of the binary floating point value (D1, D0) and save the result in
(D11, D10). The result stored in (D11, D10) is in binary floating point format.
DATAN
X0
D0
D10
D1
D0
D11
D10
ATAN value
Binary floating point
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...