Chapter 6 Instruction Details
XBC E-Type Main Unit
6-264
Ver. 1
6.35.7 RAD, RADP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
RAD(P)
S
O O O - O O O
-
-
-
-
O O O O O
2~4
-
-
-
D
O O O
-
O
-
-
-
-
-
-
-
O O O O
Operand
Description
Data Size
S
Angle data
LREAL
D
Device number to save in the operation result of converted RADIAN value
LREAL
1) RAD (Radian)
(1) Converts angle (0) of data in specified area S to radian to saves in D. Data type of S and D is of double
real.
(2) In degree unit, conversion to radian is as follows;
(3) Radian = Degree x
π/180
2) Program Example
P00004
P00003
RAD M0000 M0002
DEG M0002 M0004
Converts the degree value in the M000, M0001 into the Radian value and saves them in M0002, M0003. It
converts the Radian value in the M0002, M0003 into Degree value and saves them in M0004, M0005.
RAD
RADP
S
D
RADP
RAD
S
D
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...