EasyManuals Logo
Home>Delta>Controller>DVP-SS2

Delta DVP-SS2 User Manual

Delta DVP-SS2
1006 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
Page #198 background imageLoading...
Page #198 background image
3. Instruction Set
3-77
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
21 D
SUB P
Subtraction
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
SUB, SUBP: 7 steps
DSUB, DSUBP: 13 steps
S
1
*
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
PULSE
16-bit
32-bit
ES2/EX2
/EC5
SS2
SA2
SE
SX2
ES2/EX2
/EC5
SS2
SA2
SE
SX2
ES2/EX2
/EC5
SS2
SA2
SE
SX2
Operands:
S
1
: Minuend S
2
: Subtrahend D: Remainder
Explanations:
1. This instruction subtracts S
1
and S
2
in BIN format and stores the result in D
2. The MSB is the sign bit. 0 indicates positive and 1 indicates negative. All calculation is
algebraically processed.
3. If S
1
, S
2
and D use device F, only 16-bit instruction is applicable.
4. Flags: M1020 (Zero flag), M1021 (Borrow flag), M1022 (Carry flag). The flag operations of
ADD instruction can also be applied to the subtract instruction.
Program Example 1:
In 16-bit BIN subtraction:
When X0 = ON, the content in D0 will minus the content in D10 and the results will be stored in
D20
X0
SUB
D0 D1
0 D20
Program Example 2:
In 32-bit BIN subtraction:
When X10 = ON, the content in (D31, D30) will minus the content in (D41, D40) and the results will
be stored in (D51, D50). D30, D40 and D50 are low word; D31, D41 and D51 are high word
X20
DSUB
D30 D40 D50
(D31, D30) − (D41, D40) = (D51, D50)

Table of Contents

Other manuals for Delta DVP-SS2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-SS2 and is the answer not in the manual?

Delta DVP-SS2 Specifications

General IconGeneral
BrandDelta
ModelDVP-SS2
CategoryController
LanguageEnglish

Related product manuals