Chapter 6 Instruction Details
XBC E-Type Main Unit
6-265
Ver. 1
6.35.8 DEG, DEGP
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)
DEG(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
Radian value
LREAL
D
Device number to save operation result in.
LREAL
1) DEG (Degree)
(1) Converts radian of data in specified area S to angle (degree) to save in D. Data type of S and D is of double
real.
(2) In radian unit, conversion to degree is as follows;
(3) Degree = Radian x 180 /
π
2) Program Example
P00004
P00003
RAD M0000 M0002
DEG M0002 M0004
Converts the Radian value in the M0000, M0001 into the Degree value and saves them in M0002, M0003.
Then, it converts the Degree value in M0002, M0003 into the Radian value and saves them in M0004, M0005.
DEG
DEGP
S
D
DEGP
DEG
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...