Delta Electronics VFD037CH23A-21 — understanding PLC Cosine Function and Its Applications [537/638]

Превью страниц Страница 537 / 638
Delta Electronics VFD037CH23A-21 Руководство по эксплуатации онлайн [537/638] 460294
Chapter 16 PLC Function CH2000 Series
16-84
API
131
D
COS
P
Cosine
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
DCOS
DCOSP
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°.
If result to 0, M1020 = On.
COS instruction performs cos 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
-
S
: Radian
R: Result (COS value
)
Example
When X0 = ON, DCOS instruction conducts cosine operation on binary floating
value in (D1, D0) and stores the COS value in (D11, D10) in binary floating format.
D 1 D 0
D 1 D 10
COS
value
binary floating point
binary floating point
RAD value ( x 180)

Содержание

1610

Explore the PLC cosine function, its operands, and how to set values in radian or degree mode. Learn about the operation results and practical examples.