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 #201 background imageLoading...
Page #201 background image
DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-80
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
23 D DIV P
Division
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
DIV, DIVP: 7 steps
DDIV, DDIVP: 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
: Dividend S
2
: Divisor D: Quotient and remainder
Explanation:
1. This instruction divides S
1
and S
2
in BIN format and stores the result in D. Care should be
taken on positive/negative signs of S
1
, S
2
and D when doing 16-bit and 32-bit operations.
2. This instruction will not be executed when the divisor is 0. M1067 and M1068 will be ON and
D1067 records the error code 0E19 (hex).
3. If operands S
1
, S
2
use index F, then only 16-bit instruction is available.
4. If operand D use index E, then only 16-bit instruction is available.
5. 16-bit BIN division:
+1
=/
Quotient
Remainder
b15.............b00 b15.............b00 b15.............b00 b15.............b00
S
1 S2 D
D
If D is specified with a bit device, it can designate K1 ~ K4 to store a 16-bit result. Users can
use consecutive 2 16-bit registers to store 32-bit data of the quotient and remainder.
If users want to store the quotient of a 16-bit division (leave out the remainder), they have to
use AP I115 DIV16/DIV16P. Please refer to the explanation of API 115 DIV16/DIV16P for more
information.
6. 32-bit BIN division:
+1
/
=
+1 +1
b15..b00
Remainder
b15..b00 b15..b00 b15..b00 b31..b16 b15..b00 b31..b16 b15..b00
Quotient
S
1
S1 S2 S
2 D
D
+3
D
+2
D
If D is specified with a bit device, it can designate K1 ~ K8 to store a 32-bit result. Users can
use consecutive 2 32-bit registers to store the quotient and remainder.
If users want to store the quotient of a 32-bit division (leave out the remainder), they have to
use AP I115 DIV32/DIV32P. Please refer to the explanation of API 115 DIV32/DIV32P for more
information.

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