7: B
INARY
A
RITHMETIC
I
NSTRUCTIONS
7-10
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Repeat Operation in the DIV Instruction
Since the DIV (division) instruction (except float data) uses two destination devices, the quotient and remainder are stored as
described below. Source devices S1 and S2 and destination device D1 can be assigned to repeat individually or in combination.
When destination device D1 is not assigned to repeat, the final result is set to destination device D1 (quotient) and D1+1
(remainder). When repeat is assigned, assigned as many consecutive devices as the repeat cycles starting with the designated
device are used.
Division instructions in float data do not generate remainders and use two consecutive data registers to store quotients. When
repeat is assigned for destination of float data, as many consecutive data registers as the repeat cycles are used.
Repeat One Source Device
• Data Type: Word and Integer
When only S1 (source) is assigned to repeat, the final result is set to destination devices D1 and D1+1.
• Data Type: Double Word and Long
When only S1 (source) is assigned to repeat, the final result is set to destination devices D1·D1+1 and D1+2·D1+3.
• Data Type: Float
When only S1 (source) is assigned to repeat, the final result is set to destination devices D1·D1+1.
Repeat Destination Device Only
• Data Type: Word and Integer
When only D1 (destination) is assigned to repeat, the same result is set to 6 devices starting with D1.
• Data Type: Double Word and Long
When only D1 (destination) is assigned to repeat, the same result is set to 6 devices starting with D1·D1+1.
• Data Type: Float
When only D1 (destination) is assigned to repeat, the same result is set to 3 devices starting with D1·D1+1.
I1
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
DIV(W)
I1
REP
3
S1 R
D10
D1 –
D30
S2 –
D20
SOTU
DIV(D)
D10·D11
)
0
=
t
a
e
p
e
R
(
1
D
)
3
=
t
a
e
p
e
R
(
1
S
S2 (Repeat = 0)
)
1
3
D
·
0
3
D
(
÷
)
3
3
D
·
2
3
D
(
1
2
D
·
0
2
D
D12·D13
D14·D15
÷
÷
D20·D21
D20·D21
(D30·D31)
D30·D31
(D32·D33)
D32·D33
Quotient
Remainder
I1
REP
3
S1 R
D10
D1 –
D30
S2 –
D20
SOTU
DIV(F)
D12·D13
D10·D11
D14·D15
)
0
=
t
a
e
p
e
R
(
1
D
)
3
=
t
a
e
p
e
R
(
1
S
S2 (Repeat = 0)
÷
÷
÷
(D30·D31)
(D30·D31)
D30·D31
D20·D21
D20·D21
D20·D21
Quotient
I1
REP
3
S1 –
D10
D1 R
D30
D10
S1 (Repeat = 0)
D1 (Repeat = 3)
S2 –
D20
S2 (Repeat = 0)
÷
D30
D20
D33
D10
D10
÷
÷
D20
D20
D31
D32
D34
D35
Quotient
Remainder
SOTU
DIV(W)
I1
REP
3
S1 –
D10
D1 R
D30
S2 –
D20
SOTU
DIV(D)
D10·D11
)
3
=
t
a
e
p
e
R
(
1
D
)
0
=
t
a
e
p
e
R
(
1
S
S2 (Repeat = 0)
1
3
D
·
0
3
D
÷
7
3
D
·
6
3
D
1
2
D
·
0
2
D
D10·D11
D10·D11
÷
÷
D20·D21
D20·D21
D32·D33
D34·D35
D38·D39
D40·D41
Quotient
Remainder
I1
REP
3
S1 –
D10
D1 R
D30
S2 –
D20
SOTU
DIV(F)
D10·D11
D10·D11
D10·D11
)
3
=
t
a
e
p
e
R
(
1
D
)
0
=
t
a
e
p
e
R
(
1
S
S2 (Repeat = 0)
÷
÷
÷
D32·D33
D30·D31
D34·D35
D20·D21
D20·D21
D20·D21
Quotient
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...