Atan2 (Conversion: Coordinate Data → Angle Radian) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

11.7 ATAN2 (Conversion: Coordinate Data → Angle Radian)
Ladder diagram
Available operation units (●: Available)
Operatio
bit
n unit
i
List of operands
Operand
Description
S1
Dividend of angle data (device address or constant) (Y coordinate)
S2
Angle data divisor (device address or constant) (X coordinate)
D
Calculation result (device address) (units: radian)
Available devices (●: Available)
Operan
d
W
W
X
Y
S1
S2
D
(Note 1)
Only 16-bit devices, and 32-bit devices can be modified (real number constants cannot be specified).
(Note 2)
Index register (I0 to IE)
(Note 3)
Can be specified only when the operation unit is a single-precision floating point real number (SF).
(Note 4)
Can be specified only when the operation unit is a double-precision floating point real number (DF).
Outline of operation
● According to the operation unit [i], ATAN (units: radian) is calculated from the Y coordinate
specified by [S1] and the X coordinate specified by [S2].
● The calculation result is stored in the area starting with [D].
ATAN2([S1], [S2]) → [D]
WUME-FP7CPUPGR-12
11.7 ATAN2 (Conversion: Coordinate Data → Angle Radian)
US
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
SS
UL
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
Real
Integer
numbe
r
IX
SF
(N
(N
(N
K
H
ote
ote
ote
2)
3)
DF
St
rin
g
Index
modifie
D
r
F
(Note 1)
" "
4)
11-15

Advertisement

Table of Contents
loading

Table of Contents