Download Print this page

Calculating The Arc Tangent Of Single-Precision Real Number - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

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

Hide quick links:

Advertisement

loading