7-254
7.12 Special Function Instructions
7.12.13 Degree to radian conversion on floating-point data (single precision)
RAD
7.12.13
Degree to radian conversion on floating-point data
(single precision)
RAD
Function
(1) Converts the unit of angle from degrees specified for
to radians, and stores the result to
the device specified for
.
(2) Conversion from degrees to radians is performed according to the following equation.
RAD(P)
P: Executing condition
:
indicates any of the following
instructions.
RAD
RADP
Input argument,
EN:
Executing condition
:Bit
s:
Angle data whose unit is converted from degrees to radians
:Single-precision real/ANY32
Output argument,
ENO:
Execution result
:Bit
d:
Converted value in radians
:Single-precision real/ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
E
Others
Bit
Word
Bit
Word
−
−
−
−
−
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
RAD
EN
ENO
s
d
RAD
(EN,
s
, d);
ENO:=
s
d
s
d
s
d
Fl
oat
i
ng
-
po
i
nt
rea
l
number
(
Fl
oat
i
ng
-
po
i
nt
rea
l
number
(
)
ra
d
Ra
di
ans
=
Degrees
x
180
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......