IDEC MICROSmart FC6A Series Ladder Programming Manual page 164

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

Advertisement

7: B
A
INARY
RITHMETIC
Repeat Operation in the ADD and SUB Instructions
Source devices S1 and S2 and destination device D1 can be assigned to repeat individually or in combination. When destination
device D1 is not set to repeat, the final result is set to destination device D1. When repeat is assigned, as many consecutive
devices as the repeat cycles, starting with the designated device, are used. Since the repeat operation works similarly on the ADD
(addition) and SUB (subtraction) instructions, the following examples are described using the ADD instruction.
Repeat One Source Device
• Data Type: Word and Integer
When only S1 (source) is assigned to repeat, the final result is set to destination device D1.
ADD(W)
SOTU
I1
• Data Type: Double Word, Long, and Float
When only S1 (source) is assigned to repeat, the final result is set to destination device D1·D1+1.
ADD(D)
SOTU
I1
Repeat Destination Device Only
• Data Type: Word and Integer
When only D1 (destination) is assigned to repeat, the same result is set to 3 devices starting with D1.
ADD(W)
SOTU
I1
• Data Type: Double Word, Long, and Float
When only D1 (destination) is assigned to repeat, the same result is set to 3 devices starting with D1·D1+1.
ADD(D)
SOTU
I1
Repeat Two Source Devices
• Data Type: Word and Integer
When S1 and S2 (source) are assigned to repeat, the final result is set to destination device D1.
ADD(W)
SOTU
I1
• Data Type: Double Word, Long, and Float
When S1 and S2 (source) are assigned to repeat, the final result is set to destination device D1·D1+1.
ADD(D)
SOTU
I1
7-6
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
S1 (Repeat = 3)
REP
10
D10
3
15
D11
20
D12
S
1
(
R
e
p
e
t a
=
REP
D10·D11
3
D12·D13
D14·D15
S1 (Repeat = 0)
REP
D10
10
3
D10
10
D10
10
S
1
(
R
e
p
e
t a
=
REP
3
D10·D11
D10·D11
D10·D11
S1 (Repeat = 3)
REP
D10
10
3
D11
15
D12
20
S
1
(
R
e
p
e
t a
=
REP
3
D10·D11
D12·D13
D14·D15
L
P
M
ADDER
ROGRAMMING
ANUAL
S2 (Repeat = 0)
25
+
D20
25
+
D20
25
+
D20
3
)
S2 (Repeat = 0)
+
D20·D21
+
D20·D21
+
D20·D21
S2 (Repeat = 0)
+
D20
25
+
D20
25
+
D20
25
0
)
S2 (Repeat = 0)
+
D20·D21
+
D20·D21
+
D20·D21
S2 (Repeat = 3)
+
D20
25
+
D21
35
+
D22
45
3
)
S2 (Repeat = 3)
+
D20·D21
+
D22·D23
+
D24·D25
FC9Y-B1726
D1 (Repeat = 0)
(35)
D30
(40)
D30
45
D30
D
1
(
R
e
p
e
t a
=
0
)
(D30·D31)
(D30·D31)
D30·D31
D1 (Repeat = 3)
D30
35
D31
35
D32
35
D
1
(
R
e
p
e
t a
=
3
)
D30·D31
D32·D33
D34·D35
D1 (Repeat = 0)
D30
(35)
D30
(50)
D30
65
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