6: D
ATA
C
OMPARISON
I
NSTRUCTIONS
6-4
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
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)
• Data Type: Word (Repeat Logical Operation OR)
• Data Type: Double Word (Repeat Logical Operation AND)
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)
• Data Type: Word (Repeat Logical Operation OR)
• Data Type: Double Word (Repeat Logical Operation AND)
I0
REP
3
S1 R
D10
D1 –
M10
CMP>=(W)
AND
S2 –
15
AND
15
D11
10
D10
20
D12
M10
S1 (Repeat = 3)
D1 (Repeat = 0)
S2 (Repeat = 0)
15
15
15
I0
REP
3
S1 R
D10
D1 –
M10
CMP>=(W)
OR
S2 –
15
OR
15
D11
10
D10
20
D12
M10
S1 (Repeat = 3)
D1 (Repeat = 0)
S2 (Repeat = 0)
15
15
15
I0
REP
3
S1 R
D20
D1 –
M50
CMP>=(D)
AND
S2 –
D30
D22·D23
D20·D21
D24·D25
AND
S1 (Repeat = 3)
D1 (Repeat = 0)
S2 (Repeat = 0)
D30·D31
D30·D31
D30·D31
M50
AND
M10
I0
REP
3
S1 R
D10
D1 –
M10
CMP>=(W)
AND
S2 R
D20
20
D21
0
D20
100
D22
S2 (Repeat = 3)
D1 (Repeat = 0)
20
D11
10
D10
30
D12
S1 (Repeat = 3)
OR
M10
I0
REP
3
S1 R
D10
D1 –
M10
CMP>=(W)
OR
S2 R
D20
20
D21
0
D20
100
D22
S2 (Repeat = 3)
D1 (Repeat = 0)
20
D11
10
D10
30
D12
S1 (Repeat = 3)
I0
REP
3
S1 R
D20
D1 –
M50
CMP>=(D)
AND
S2 R
D30
D22·D23
D20·D21
D24·D25
AND
S1 (Repeat = 3)
D1 (Repeat = 0)
S2 (Repeat = 3)
D30·D31
D32·D33
D34·D35
M50
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...