
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
6-5
6: D
ATA
C
OMPARISON
I
NSTRUCTIONS
Repeat Source and Destination Devices
When S1, S2 (source), and D1 (destination) 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 set to destination devices (as
many as the repeat cycles, starting with the device designated by D1).
• Data Type: Word
• Data Type: Double Word
Comparison Output Status
The comparison output is usually maintained while the input to the data comparison instruction is off. If the comparison output is
on, the on status is maintained when the input is turned off as demonstrated by this program.
This program turns the output off when the input is off.
I0
REP
3
S1 R
D10
D1 R
M10
CMP>=(W)
S2 R
D20
20
D21
0
D20
100
D22
M11 turned on
M10 turned on
M12 turned off
S2 (Repeat = 3)
D1 (Repeat = 3)
20
D11
10
D10
30
D12
S1 (Repeat = 3)
D22·D23
D20·D21
D24·D25
S1 (Repeat = 3)
D1 (Repeat = 3)
S2 (Repeat = 3)
D30·D31
D32·D33
D34·D35
M51
M50
M52
I0
REP
3
S1 R
D20
D1 R
M50
CMP>=(D)
S2 R
D30
Input I0
ON
OFF
Comparison
D10
≥
C1
D10 < C1
Comparison
ON
OFF
I0
REP
S1 –
D10
D1 –
Q0
CMP>=(W)
Result
Output Q0
S2 –
C1
I0
M0
REP
S1 –
D10
D1 –
M0
S2 –
C1
Input I0
ON
OFF
Comparison
D10
≥
C1
D10 < C1
ON
OFF
Result
Output Q0
CMP>=(W)
Q0
Содержание MICROSmart FC6A Series
Страница 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Страница 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 158: ...6 DATA COMPARISON INSTRUCTIONS 6 10 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 216: ...10 DATA CONVERSION INSTRUCTIONS 10 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 248: ...11 WEEK PROGRAMMER INSTRUCTIONS 11 32 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 288: ...15 INTERRUPT CONTROL INSTRUCTIONS 15 4 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 294: ...16 COORDINATE CONVERSION INSTRUCTIONS 16 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 374: ...18 PULSE OUTPUT INSTRUCTIONS 18 78 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 Setting ...
Страница 450: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 574: ...27 FLOW CALCULATION INSTRUCTIONS 27 28 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 583: ...FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 28 9 28 USER DEFINED MACRO INSTRUCTION ...
Страница 584: ...28 USER DEFINED MACRO INSTRUCTION 28 10 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Страница 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...