IDEC MICROSmart FC6A Series Ladder Programming Manual page 179

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

Advertisement

Repeat Operation in the ANDW, ORW, and XORW 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 designated set to repeat, the final result is set to destination device D1. When repeat is assigned, consecutive
devices as many as the repeat cycles starting with the designated device are used. Since the repeat operation works similarly on
the ANDW (AND word), ORW (OR word), and XORW (exclusive OR word) instructions, the following examples use the ANDW
instruction.
Repeat One Source Device
• Data Type: Word
When only S1 (source) is assigned to repeat, the final result is set to destination device D1.
ANDW(W)
SOTU
I1
• Data Type: Double Word
When only S1 (source) is assigned to repeat, the final result is set to destination device D1·D1+1.
ANDW(D)
SOTU
I1
Repeat Destination Device Only
• Data Type: Word
When only D1 (destination) is assigned to repeat, the same result is set to 3 devices starting with D1.
ANDW(W)
SOTU
I1
• Data Type: Double Word
When only D1 (destination) is assigned to repeat, the same result is set to 3 devices starting with D1·D1+1.
ANDW(D)
SOTU
I1
Repeat Two Source Devices
• Data Type: Word
When S1 and S2 (source) are assigned to repeat, the final result is set to destination device D1.
ANDW(W)
SOTU
I1
• Data Type: Double Word
When S1 and S2 (source) are assigned to repeat, the final result is set to destination device D1·D1+1.
ANDW(D)
SOTU
I1
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
L
ERIES
MART
8: B
OOLEAN
S1 (Repeat = 3)
REP
D10
3
D11
D12
S1 (Repeat = 3)
REP
D10·D11
3
D12·D13
D14·D15
S1 (Repeat = 0)
REP
D10
3
D10
D10
S1 (Repeat = 0)
REP
D10·D11
3
D10·D11
D10·D11
S1 (Repeat = 3)
REP
D10
3
D11
D12
S1 (Repeat = 3)
REP
D10·D11
3
D12·D13
D14·D15
P
M
ADDER
ROGRAMMING
ANUAL
C
OMPUTATION
S2 (Repeat = 0)
·
D20
·
D20
·
D20
S2 (Repeat = 0)
·
D20·D21
·
D20·D21
·
D20·D21
S2 (Repeat = 0)
·
D20
·
D20
·
D20
S2 (Repeat = 0)
·
D20·D21
·
D20·D21
·
D20·D21
S2 (Repeat = 3)
·
D20
·
D21
·
D22
S2 (Repeat = 3)
·
D20·D21
·
D22·D23
·
D24·D25
FC9Y-B1726
I
NSTRUCTIONS
D1 (Repeat = 0)
(D30)
(D30)
D30
D1 (Repeat = 0)
(D30·D31)
(D30·D31)
D30·D31
D1 (Repeat = 3)
D30
D31
D32
D1 (Repeat = 3)
D30·D31
D32·D33
D34·D35
D1 (Repeat = 0)
(D30)
(D30)
D30
D1 (Repeat = 0)
(D30·D31)
(D30·D31)
D30·D31
8-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents