IDEC MICROSmart FC6A Series Ladder Programming Manual page 152

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

Advertisement

6: D
C
ATA
OMPARISON
Repeat Operation in the Data Comparison Instructions
The following examples use the CMP>= instruction of word and double word data. Repeat operation for all other data comparison
instructions and other data types is the same as the following examples.
When the repeat operation is enabled, repeated comparison results of CMP instructions can be selected from AND or OR operation,
and the result is output to an output or internal relay.
Repeat One Source Device
When only S1 (source) is designated to repeat, source devices (as many as the repeat cycles, starting with the device designated
by S1) are compared with the device designated by S2. The comparison results are ANDed or ORed and set to the destination
device designated by D1.
• Data Type: Word (Repeat Logical Operation AND)
CMP>=(W)
AND
I0
• Data Type: Word (Repeat Logical Operation OR)
CMP>=(W)
OR
I0
• Data Type: Double Word (Repeat Logical Operation AND)
CMP>=(D)
AND
I0
Repeat Two Source Devices
When S1 (source) and S2 (source) are designated to repeat, source devices (as many as the repeat cycles, starting with the
devices designated by S1 and S2) are compared with each other. The comparison results are ANDed or ORed and set to the
destination device designated by D1.
• Data Type: Word (Repeat Logical Operation AND)
CMP>=(W)
AND
I0
• Data Type: Word (Repeat Logical Operation OR)
CMP>=(W)
OR
I0
• Data Type: Double Word (Repeat Logical Operation AND)
CMP>=(D)
AND
I0
6-4
I
NSTRUCTIONS
S1 R
S2 –
D1 –
REP
D10
15
M10
3
S1 R
S2 –
D1 –
REP
D10
15
M10
3
S1 R
S2 –
D1 –
REP
D20
D30
M50
3
S1 R
S2 R
D1 –
REP
D10
D20
M10
3
S1 R
S2 R
D1 –
REP
D10
D20
M10
3
S1 R
S2 R
D1 –
REP
D20
D30
M50
3
FC6A S
MICROS
ERIES
MART
S1 (Repeat = 3)
10
D10
15
D11
D12
20
S1 (Repeat = 3)
10
D10
D11
15
D12
20
S1 (Repeat = 3)
D20·D21
D22·D23
D24·D25
S1 (Repeat = 3)
D10
10
20
D11
30
D12
S1 (Repeat = 3)
10
D10
D11
20
30
D12
S1 (Repeat = 3)
D20·D21
D22·D23
D24·D25
L
P
M
ADDER
ROGRAMMING
ANUAL
S2 (Repeat = 0)
15
AND
15
15
S2 (Repeat = 0)
15
OR
15
15
S2 (Repeat = 0)
D30·D31
D30·D31
AND
D30·D31
S2 (Repeat = 3)
D1 (Repeat = 0)
D20
0
20
D21
AND
100
D22
S2 (Repeat = 3)
D1 (Repeat = 0)
0
D20
D21
20
OR
100
D22
S2 (Repeat = 3)
D1 (Repeat = 0)
D30·D31
D32·D33
AND
D34·D35
FC9Y-B1726
D1 (Repeat = 0)
M10
D1 (Repeat = 0)
M10
D1 (Repeat = 0)
M50
M10
M10
M50

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents