EasyManuals Logo

IDEC MICROSmart FC6A Series Ladder Programming Manual

IDEC MICROSmart FC6A Series
604 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 #164 background imageLoading...
Page #164 background image
7: B
INARY
A
RITHMETIC
I
NSTRUCTIONS
7-6 FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
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.
• 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.
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.
• 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.
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.
• 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.
I1
REP
3
S1 R
D10
D1 –
D30
15
D11
10
D10
20
D12
S1 (Repeat = 3) D1 (Repeat = 0)
S2 –
D20
S2 (Repeat = 0)
+
+
+
(40)
D30
(35)
D30
45
D30
25
D20
25
D20
25
D20
SOTU
ADD(W)
D12·D13
D10·D11
D14·D15
)0 = taepeR( 1D)3 = taepeR( 1S S2 (Repeat = 0)
+
+
+
(D30·D31)
(D30·D31)
D30·D31
D20·D21
D20·D21
D20·D21
I1
REP
3
S1 R
D10
D1 –
D30
S2 –
D20
SOTU
ADD(D)
I1
REP
3
S1 –
D10
D1 R
D30
10
D10
10
D10
10
D10
S1 (Repeat = 0) D1 (Repeat = 3)
S2 –
D20
S2 (Repeat = 0)
+
+
+
35
D31
35
D30
35
D32
25
D20
25
D20
25
D20
SOTU
ADD(W)
D10·D11
D10·D11
D10·D11
)3 = taepeR( 1D)0 = taepeR( 1S S2 (Repeat = 0)
+
+
+
D32·D33
D30·D31
D34·D35
D20·D21
D20·D21
D20·D21
I1
REP
3
S1 –
D10
D1 R
D30
S2 –
D20
SOTU
ADD(D)
I1
REP
3
S1 R
D10
D1 –
D30
15
D11
10
D10
20
D12
S1 (Repeat = 3) D1 (Repeat = 0)
S2 R
D20
S2 (Repeat = 3)
+
+
+
(50)
D30
(35)
D30
65
D30
35
D21
25
D20
45
D22
SOTU
ADD(W)
D12·D13
D10·D11
D14·D15
)0 = taepeR( 1D)3 = taepeR( 1S S2 (Repeat = 3)
+
+
+
(D30·D31)
(D30·D31)
D30·D31
D22·D23
D20·D21
D24·D25
I1
REP
3
S1 R
D10
D1 –
D30
S2 R
D20
SOTU
ADD(D)

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICROSmart FC6A Series and is the answer not in the manual?

IDEC MICROSmart FC6A Series Specifications

General IconGeneral
BrandIDEC
ModelMICROSmart FC6A Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals