Chapter 6 Instruction Details
XBC E-Type Main Unit
6-262
Ver. 1
6.35.5 TAN, TANP
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)
TAN(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
Input angle value (Radian) of Tangent operation
LREAL
D
Device number to save operation result in
LREAL
1) TAN (Tangent)
(1) Performs Tangent operation of data value in specified area S to save in D. Data type of S and D is of
double real.
(2) Input value is of radian. Refer to RAD for details on Conversion of angle to radian.
(3) If S’s value is 0.5235…(
π/6 rad = 300), operation result is 0.5773...
2) Program Example
P00001
P00000
RAD M0008 M0000
TAN M0000 M0004
Converts the Degree value in the M0008, M0009 into the Radian value and saves them in M0000, M0001.
Then it performes TAN operation with the value in the M000, M0001 and saves them in M0004, M0005.
TAN
TANP
S
D
TANP
TAN
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...