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 #216 background imageLoading...
Page #216 background image
3. Instruction Set
3-95
Program Example 1:
When X0 is ON, the dividend K103 in D0 is divided by the divisor K5 in D10, and the quotient is
stored in D20. Whether the quotient is a positive value or a negative value depends on the leftmost
bit in D20.
X0
DIV16
D0 D10 D2
0
D0/D10=D20
 K103/K5=K20, the remainder is K3.
 D20=K20 (The remainder is left out.)
Program Example 2:
When X0 is ON, the dividend K81,000 in (D1, D0) is divided by the divisor K40,000 in (D11, D10),
and the quotient is stored in (D21, D20). Whether the quotient is a positive value or a negative
value depends on the leftmost bit in (D21, D20).
X0
DIV32
D0 D10 D20
(D1,D0)/(D11,D10)=(D21,D20)
 K81,000/K40,000=K2, The remainder is K1,000.
 (D21,D20)=K2 (The remainder is left out.)
Note:
1. If users want to store the remainder of a 16-bit bianry division, they have to use API23
DIV/DIVP. Please refer to the explanation of API23 DIV/DIVP for more information.
2. If users want to store the remainder of a 32-bit bianry division, they have to use API23
DDIV/DDIVP. Please refer to the explanation of API23 DDIV/DDIVP 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