M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.11 Special Function Instructions
RAD, RADP: Conversion from floating-point angle to radian (single precision)
Setting
Bit devices
data
X
Y
M
L
F
S
D
△ : This is not available with ST.
[Instruction symbol] [Execution condition]
RAD
RADP
Setting data
Setting data
Angle to be converted to radian units or the first number of the device where the
S
angle is stored.
D
The first number of the device to store the value converted to radian units.
Functions
RAD
Converts units of angle size from degree designated by (S) to radian units, and stores the operation result in the device
number designated by (D).
S
+
1
S
(
32-bit floating-point real
number
Conversion from degree units to radian units is performed using the following equation:
Radian units = Degree units × π / 180
When setting input values from programming tools, rounding errors may occur.
For precautions when setting input values from programming tools, refer to "6.3.4 Single/Double-Precision Real Number
Data".
IB-1501667-B
Usable devices
B SB
T SM V
T
C
○
○
○
○
Command
Command
Meaning
D+1
D
)°
(
32-bit floating-point real
number
Con-
Word devices
stant
D
R/ZR W SW SD
Z
○
○
○
○
○
△
○
○
○
○
○
△
)rad
378
Digit
Pointer
designa-
Index
tion
E
P
○
○
indicates the sign "RAD".
S
D
P
S
D
Data type
Real number