Calculating the arc tangent of single-precision real number
ATAN(P)/DATAN(P)
These instructions calculate the angle from the tangent of the angle specified by (s), and store the operation result in the word
device specified by (d).
The ATAN(P) instructions can also be used as DATAN(P).
Ladder diagram
(s)
(d)
*1
FBD/LD
EN
ENO
s
d
*1 The ATAN instruction is not supported by the ST language and the FBD/LD language. Use ATAN of the standard function.
Page 986 ATAN(_E)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
A tangent value used in the TAN
head device number storing the tangent value
(d)
Head device number for storing the operation result
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
-1
(arc tangent) operation or
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
Structured text
ENO:=ATANP(EN,s,d);
Range
Data type
Single-precision real number
-/2 to +/2
Single-precision real number
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANYREAL_32
ANYREAL_32
BOOL
BOOL
Constant
Others
K, H
E
$
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
525