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

Превью страниц Страница 528 / 638
Delta Electronics VFD150CH23A-21 Руководство по эксплуатации онлайн [528/638] 460298
Chapter 16 PLC Function CH2000 Series
16-75
API
120
D
EADD
P
Floating Point Addition
Bit Devices Word Devices
X
Y
M
K H KnX KnY KnM T C D
S1
S2
D
Operands:
Please refer to the specifications of each model for the
range of operands.
16-bit command (5 STEPS)
32-bit command
DEADD
DEADDP
Flag signal: none
Explanation
S
1
augend, S
2
addend, Dsum
S
1
S1 S2 D. The floating point value in S1 and S2 are added and the result
is stored in D. All calculation are done using binary floating poiont number.
If the source operand S1 or S2 is specified as constant K or H, the constant will
automatically be converted to binary floating point value for the addition
operation.
S1 and S2 can designate the same register. In this case, if the instruction is specified
as “continuous execution instruction” (generally DEADDP instruction) and the drive
contact is ON,the register will be added once in every scan.
Example
When X0 = On, the sum of binary floating point number (D1, D0) + binary floating
point number (D3, D2) will be saved in (D11, D10).
X0
DEADD D0 D2 D10
When X2 = On, the sum of binary floating point number
X2
DEADD D10 K1234 D20

Содержание

1610

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