Delta Electronics VFD037CH23A-21 — функция сравнения с плавающей точкой в PLC системах [524/638]

Превью страниц Страница 524 / 638
Delta Electronics VFD037CH23A-21 Руководство по эксплуатации онлайн [524/638] 460294
Chapter 16 PLC Function CH2000 Series
16-71
API
110
D
DECMP
P
Floating Point Compare
Bit Devices Word Devices
X
Y
M
K H KnX KnY KnM T C D
S1
S2
D
Operands:
D Operands occupy three continuous points.
Please refer to the specification of each model series
for applicable range of the device.
16-bit command (5 STEPS)
32-bit command
DECMP
DECMPP
Flag signal: none
Explanation
S
1
Binary floating point number comparison value 1. S
2
Binary floating point
number comparison value 2. D: Comparison result,.three continuous points are
occupied.
Comparison of the binary floating point number comparison value and binary
floating point number comparison value 2. Comparison result (, , <)is
shown at D.
If the source operands of S
1
or S
2
are assigned constants K or H, a command will
change those constants to binary floating point numbers to make comparison.
Example
When assgined device is M10, then M10~M12 are automatically occupied.
When X0 = On, DCMP execute a command, One of M10 ~ M12 will be On. But
when X0 = Off, DECMP doen’t execute any command, M10 ~ M12 remains the
same status as before X0 = Off.
If you need to have results such as , or , make M10~ M12 paralllel
connection.
Use the RST or ZRST command to clean the results.
X0
DECMP D0 D100 M10
M10
M11
M12
When (D1D0)>(D101D100), M10= On
When (D1D0)=(D101D100)m ,M11= On
When (D1D0)<(D101D100)\, M11 =On

Содержание

1610

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