Delta C2000 series User Manual page 532

Classical field oriented control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
TAN
132
D
P
Bit Devices
X
Y
M
K
S
D
Operands:
Please refer to the specifications of each model for the
range of operands.
S: Source device (0°≦S<360°) D: Operation result
Explanation
The value in S can be set as radian or degree by flag M1018.
M1018 = OFF, radian mode. RAD = degree ×π/180.
M1018 = ON, degree mode. Degree range: 0°≦degree<360°.
When the operation result = 0, M1020 = On.
TAN instruction performs tangent operation on S and stores the result in D.
See the figure below for the relation between the radian and the operation result
-2
When X0 = ON, DTAN instruction performs tangent operation on the radian value in (D1,
Example
D0) and stores the TAN value in (D11, D10) in binary floating format
Word Devices
H
KnX KnY KnM
T
R
1
3
-
0
-
-2
2
2
2
-1
RAD value (degree x
D 1
D 0
binary floating point
TAN value
D 11
D 10
binary floating point
Chapter 16 PLC Function C2000 Series
Tangent
16-bit command (5 STEPS)
C
D
32-bit command
DTAN
Flag signal: none
R: Result (TAN value)
S
3
2
2

180)
16-85
DTANP

Advertisement

Table of Contents
loading

Table of Contents