519
RAD, RADP
1
2
3
4
4
6
7
8
7.12
Special function
instructions
7.12.1
3
RAD, RAD
P
Program
E
xamp
l
e
(1) The following program seeks the inverse tangent of the 64-bit floating decimal point real number at D0 to D3, and outputs
the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when D0 to D3 value is 1]
: Angle to be converted to radian units or head number of the devices where the angle is stored (real number)
: Head number of the devices where the value converted in radian units will be stored (real number)
*1:
Applicable for the Universal model QCPU, LCPU.
7.12.13 RAD, RADP
Conversion from floating-point angle to radian
(Single precision)
7.12.13
RAD, RADP
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
––
––
*1
––
––
––
*1
––
––
1
Calculates an angle (radian
v
alue) by TAN
operation ( ).
Con
v
erts the radian
v
alue into
an angle ( ).
Con
v
erts the angle in 64-bit floating-point
real number into an integer ( ).
Outputs the integer-con
v
erted angle
to a display de
v
ice ( ).
1
2
3
4
Step
I
nstruct
i
on
De
vi
ce
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D1
1
D0
D3
D2
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D21
4
5
D20
D23 D22
D11
0
.
785398
D10
D13 D12
Con
v
ers
i
on
to
B
IN
INT
D
BCD
operat
i
on
BCD
A
T
A
N
D
Con
v
ers
i
on
to
ang
l
e
D
E
GD
Y4F
BCD
v
a
l
ue
0 0
4
5
Y4
0
D30
b15
b0
B
IN v
a
l
ue
4
5
T
A
N
operat
i
on
1
1
2
3
4
Basic
Process
High
performance
Redundant Universal
LCPU
Ver.
Command
Command
RADP
RAD
RADP
RAD
S
D
S
D
S
D
S
D