Bin Subtraction - Delta MS300 Series User Manual

Standard compact drive
Hide thumbs Also See for MS300 Series:
Table of Contents

Advertisement

CALL NOW 800-985-6929
API
21
D
Bit device
X
Y
S1
S2
D
Notes on operand usage: none
CALL NOW 800-985-6929
http://www.deltaacdrives.com
S1
S2
SUB
P
Word device
M
K
H
KnX KnY KnM
S1
: Minuend.
Using two data sources: The result of subtraction of
BIN method is stored in
The highest bit of any data is symbolized as bit 0 indicating (positive) 1 indicating
(negative), enabling the use of algebraic subtraction operations.
Flag changes connected with subtraction.
1. When calculation results are 0, the zero flag M1020 will be On.
2. When calculation results are less than –32,768, the borrow flag M1021 will be
On.
3. When calculation results are greater than 32,767, the carry flag M1022 will be
On.
16-bit BIN subtraction: When X0=On, the content of D10 is subtracted from the
content of D0, and the difference is stored in D20.
X0
http://www.deltaacdrives.com
Chapter 16 PLC Function ApplicationsMS300

BIN subtraction

D
16-bit command (7 STEP)
SUB
T
C
D
32-bit command (13 STEP)
DSUB
Flag signal: M1020 Zero flag
S2
D
: Subtrahend.
D
.
D0
D10
SUB
D20
16-55
Email: info@deltaacdrives.com
Continuous
SUBP
execution type
Continuous
DSUBP
execution type
M1021 Borrow flag
M1022 Carry flag
Please refer to the following
supplementary explanation
: Difference.
S1
and
Email: info@deltaacdrives.com
Pulse
execution type
Pulse
execution type
S2
using the

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents