EasyManuals Logo
Home>IDEC>Controller>MICRO3

IDEC MICRO3 User Manual

IDEC MICRO3
235 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 #163 background imageLoading...
Page #163 background image
11: BINARY ARITHMETIC INSTRUCTIONS
11-4 USERS MANUAL
Repeat Operation in the DIV Instruction
Since the DIV (division) instruction uses two destination operands, the quotient and remainder are stored as described
below. Source operands S1 and S2 and destination operand D1 can be designated to repeat individually or in combination.
When destination operand D1 is not designated to repeat, the final result is set to destination operand D1 (quotient) and
D+1 (remainder). When repeat is designated, consecutive operands as many as the repeat cycles starting with the desig-
nated operand are used.
When only S1 (source) is designated to repeat, the final result is set to destination operands D1 and D1+1.
When only S2 (source) is designated to repeat, the final result is set to destination operands D1 and D1+1.
When only D1 (destination) is designated to repeat, the same result is set to 6 operands starting with D1.
When S1 and S2 (source) are designated to repeat, the final result is set to destination operands D1 and D1+1.
When S1 (source) and D1 (dest.) are designated to repeat, different results are set to 6 operands starting with D1.
When S2 (source) and D1 (dest.) are designated to repeat, different results are set to 6 operands starting with D1.
When all operands are designated to repeat, different results are set to 6 operands starting with D1.
Note: When a user program error occurs in any repeat operation, error indicator ERR1 and special internal relay M304
(user program execution error) are turned on and maintained while operation for other instructions is continued. For the
advanced instruction which has caused a user program execution error, results are not set to any destination.
I1
DIV REP
3
S1 R
D10
D1
D30
D10
S1 (Repeat = 3) D1 (Repeat = 0)
S2
D20
S2 (Repeat = 0)
÷ (D30)D20 (D31)
D11
D12
÷
÷
D20
D20
(D30)
D30
(D31)
D31
Quotient Remainder
SOTU
I2
DIV REP
3
S1
D10
D1
D30
D10
S1 (Repeat = 0) D1 (Repeat = 0)
S2 R
D20
S2 (Repeat = 3)
÷ (D30)D20 (D31)
D10
D10
÷
÷
D21
D22
(D30)
D30
(D31)
D31
Quotient Remainder
SOTU
I3
DIV REP
3
S1
D10
D1 R
D30
D10
S1 (Repeat = 0) D1 (Repeat = 3)
S2
D20
S2 (Repeat = 0)
÷ D30D20 D33
D10
D10
÷
÷
D20
D20
D31
D32
D34
D35
Quotient Remainder
SOTU
I4
DIV REP
3
S1 R
D10
D1
D30
D10
S1 (Repeat = 3) D1 (Repeat = 0)
S2 R
D20
S2 (Repeat = 3)
÷ (D30)D20 (D31)
D11
D12
÷
÷
D21
D22
(D30)
D30
(D31)
D31
Quotient Remainder
SOTU
I5
DIV REP
3
S1 R
D10
D1 R
D30
D10
S1 (Repeat = 3) D1 (Repeat = 3)
S2
D20
S2 (Repeat = 0)
÷ D30D20 D33
D11
D12
÷
÷
D20
D20
D31
D32
D34
D35
Quotient Remainder
SOTU
I6
DIV REP
3
S1
D10
D1 R
D30
D10
S1 (Repeat = 0) D1 (Repeat = 3)
S2 R
D20
S2 (Repeat = 3)
÷ D30D20 D33
D10
D10
÷
÷
D21
D22
D31
D32
D34
D35
Quotient Remainder
SOTU
I7
DIV REP
3
S1 R
D10
D1 R
D30
D10
S1 (Repeat = 3) D1 (Repeat = 3)
S2 R
D20
S2 (Repeat = 3)
÷ D30D20 D33
D11
D12
÷
÷
D21
D22
D31
D32
D34
D35
Quotient Remainder
SOTU

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICRO3 and is the answer not in the manual?

IDEC MICRO3 Specifications

General IconGeneral
BrandIDEC
ModelMICRO3
CategoryController
LanguageEnglish

Related product manuals