Chapter 6 Instruction Details
XBC E-Type Main Unit
6-261
Ver. 1
6.35.4 ACOS, ACOSP
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)
ACOS(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
Device number where COS value for Arc Cosine operation is saved
LREAL
D
Device number to save operation result in
LREAL
[Flag setting)]
Flag
Description
Device number
Error
Set when S value is not in between -1.0 and 1.0
F110
1) ACOS (Arc Cosine)
(1) Performs Arc COS operation of data value in specified area S to save in D. Data type of S and D is of
double real.
(2) Output value is of radian. Refer to DEG, for the conversion from radian to degree.
(3) If S’s value is 0.8660... (
2
3
), operation result is 0.5235…(
π/6 rad = 30°).
2)Program Example
P00001
P00000
DEG M0000 M0004
ACOS M0008 M0000
Performs ACOS operation of value in M0008, M0009 and saves them in the M0000, M0001.
Then it converts the Radian value in the M0000, M0001 into the Degree value and saves them in M0004,
M0005.
ACOS
ACOSP
S
D
ACOSP
ACOS
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...