IDEC MICROSmart FC6A Series Ladder Programming Manual page 166

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

7: B
A
INARY
RITHMETIC
Repeat Operation in the MUL Instruction
Since the MUL (multiplication) instruction uses two destination devices, the result is stored to destination devices as described
below. Source devices S1 and S2 and destination device D1 can be designated to repeat individually or in combination. When
destination device D1 is not assigned to repeat, the final result is set to destination device D1 and D1+1. When repeat is
designated, consecutive devices as many as the repeat cycles starting with the designated device are used.
Since the repeat operation works similarly on word and integer data, the following examples are described using word data.
Repeat One Source Device
When only S1 (source) is assigned to repeat, the final result is set to destination device D1·D1+1.
• Data Type: Word and Integer
MUL(W)
SOTU
I1
• Data Type: Double Word, Long, and Float
MUL(D)
SOTU
I1
Repeat Destination Device Only
When only D1 (destination) is assigned to repeat, the same result is set to 3 devices starting with D1·D1+1.
• Data Type: Word and Integer
MUL(W)
SOTU
I1
• Data Type: Double Word, Long, and Float
MUL(D)
SOTU
I1
Repeat Two Source Devices
When S1 and S2 (source) are assigned to repeat, the final result is set to destination device D1·D1+1.
• Data Type: Word and Integer
MUL(W)
SOTU
I1
• Data Type: Double Word, Long, and Float
MUL(D)
SOTU
I1
7-8
I
NSTRUCTIONS
S1 R
S2 –
D1 –
D10
D20
D30
S1 R
S2 –
D1 –
D10
D20
D30
S1 –
S2 –
D1 R
D10
D20
D30
S1 –
S2 –
D1 R
D10
D20
D30
S1 R
S2 R
D1 –
D10
D20
D30
S1 R
S2 R
D1 –
D10
D20
D30
FC6A S
MICROS
ERIES
MART
S
1
(
R
e
p
e
t a
=
REP
3
D10
D11
D12
S
1
(
R
e
p
e
t a
=
REP
3
D10·D11
D12·D13
D14·D15
S
1
(
R
e
p
e
t a
=
REP
D10
3
D10
D10
S
1
(
R
e
p
e
t a
=
REP
3
D10·D11
D10·D11
D10·D11
S
1
(
R
e
p
e
t a
=
REP
3
D10
D11
D12
S
1
(
R
e
p
e
t a
=
REP
3
D10·D11
D12·D13
D14·D15
L
P
M
ADDER
ROGRAMMING
ANUAL
3
)
S2 (Repeat = 0)
×
D20
×
D20
×
D20
3
)
S2 (Repeat = 0)
×
D20·D21
×
D20·D21
×
D20·D21
0
)
S2 (Repeat = 0)
×
D20
×
D20
×
D20
0
)
S2 (Repeat = 0)
×
D20·D21
×
D20·D21
×
D20·D21
3
)
S2 (Repeat = 3)
×
D20
×
D21
×
D22
3
)
S2 (Repeat = 3)
×
D20·D21
×
D22·D23
×
D24·D25
FC9Y-B1726
D
1
(
R
e
p
e
t a
=
0
)
(D30·D31)
(D30·D31)
D30·D31
D
1
(
R
e
p
e
t a
=
0
)
(D30·D31)
(D30·D31)
D30·D31
D
1
(
R
e
p
e
t a
=
3
)
D30·D31
D32·D33
D34·D35
D
1
(
R
e
p
e
t a
=
3
)
D30·D31
D32·D33
D34·D35
D
1
(
R
e
p
e
t a
=
0
)
(D30·D31)
(D30·D31)
D30·D31
D
1
(
R
e
p
e
t a
=
0
)
(D30·D31)
(D30·D31)
D30·D31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents