EasyManua.ls Logo

Delta MH300 Series - Page 939

Delta MH300 Series
1030 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 16 PLC Function ApplicationsMH300
16-76
API
ESUB
Subtract binary floating point numbers
121
D
P
bit device
Word device
16-bit command
32-bit command (13 STEP)
DESUB
Continuous
execution type
DESUBP
Pulse
execution type
Flag signal: none
X
Y
M
K
H
KnX
KnY
KnM
T
C
D
S1
S2
D
Notes on operand usage:
Refer to
the function specifications table for each device in series
for the scope of device usage.
S
1
: minuend. S
2
: subtrahend. D: difference.
Subtracts the content of the register designated by S
2
from the content of the
register designated by S
1
, and stores the difference in the register designated by
D; subtraction is performed entirely using binary floating point numbers.
If the source operand S
1
or S
2
designates a constant K or H, the command
converts that constant into a binary floating point number for use in subtraction.
In the situation when S
1
and S
2
designate identical register numbers, if a
continuous executioncommand is employed, when conditional contact is ON,
the register performs subtraction once during each scan. You generally use pulse
execution type commands (DESUBP) under ordinary circumstances.
When X0=ON, subtracts a binary floating point number (D1, D0) from a binary
floating point number (D3, D2), and stores the results in (D11, D10).
X0
DESUB
D0
D2
D10
When X2 =ON, subtracts the binary floating point number (D1, D0) from K1234
(which is automatically converted to a binary floating point number), and stores
the results in (D11, D10).
X2
DESUB
D0K1234 D10

Table of Contents

Related product manuals