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

Превью страниц Страница 529 / 638
Delta Electronics VFD037CH23A-21 Руководство по эксплуатации онлайн [529/638] 460294
Chapter 16 PLC Function CH2000 Series
16-76
API
121
D
ESUB
P
Floating Point Subtraction
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
DESUB
DESUBP
Flag signal: none
Explanation
S1: Minuend S2: Subtrahend D: Subtraction result
S1 S2 D. The floating point value in S2 is subtracted from the floating point value
in S1 and the result is stored in D. The subtraction is conducted in binary floating point
format.
If S
1 or S2 is designated as constant K or H, the instruction will convert the
constant into a
binary floating point value before the operation.
S
1 and S2 can designate the same register. In this case, if the instruction is
specified as “continuous execution instruction” (generally DESUBP instruction)
and the drive contact is ON,
the register will be subtracted once in every scan.
Example
When X0 = ON, binary floating point value (D1, D0) minuses binary floating point
value (D3, D2) and
the result is stored in (D11, D10).
X0
DESUB
D0
D2
D10
When X2 = ON, K1234 (automatically converted into binary floating point value
minuses binary floating point (D1, D0) and the result is stored in (D11, D10).
X2
DESUB
D0K1234 D10

Содержание

1610

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