Delta C2000 Series User Manual page 550

Vector control drive
Hide thumbs Also See for C2000 Series:
Table of Contents

Advertisement

API
SUB
21
D
P
Bit device
X
Y
M
K
S1
S2
D
Notes on operand usage: none
S1
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
S1
S2
D
Word device
H
KnX KnY KnM
T
S2
: Minuend.
: Subtrahend.
D
SUB
Chapter 16 PLC Function Applications
BIN subtraction
16-bit command (7 STEP)
SUB
Continuous
C
D
execution type
32-bit command (13 STEP)
Continuous
DSUB
execution type
Flag signal: M1020 Zero flag
M1021 Borrow flag
M1022 Carry flag
Please refer to the following
supplementary explanation
D
: Difference.
.
D0
D10
D20
16-59
C2000 Series
SUBP
Pulse
execution type
Pulse
DSUBP
execution type
S1
S2
and
using the

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

690v

Table of Contents