Delta Electronics VFD037CH23A-21 — обзор функции тангенса в программируемых логических контроллерах [538/638]

Превью страниц Страница 538 / 638
Delta Electronics VFD037CH23A-21 Руководство по эксплуатации онлайн [538/638] 460294
Chapter 16 PLC Function CH2000 Series
16-85
API
132
D
TAN
P
Tangent
Bit Devices Word Devices
X
Y
M
K H KnX KnY KnM T C D
S
D
Operands:
Please refer to the specifications of each model for the
range of operands.
16-bit command (5 STEPS)
32-bit command
DTAN
DTANP
Flag signal: none
Explanation
S: Source device (0°≦S360°) D: Operation result
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°≦degree360°.
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
R
S
-2
3
2
-2 2
3
2
2
2
-
1
-1
0
-
R: Result (TAN value)
Example
When X0 = ON, DTAN instruction performs tangent operation on the radian value in (D1,
D0) and stores the TAN value in (D11, D10) in binary floating format
D 1 D 0
D 11 D 10
RAD value (degree x 180)

binary floating point
TAN value
binary floating point

Содержание

1610

Изучите, как использовать команду тангенса в программируемых логических контроллерах. Узнайте о диапазонах операндов и настройках для работы с радианами и градусами.