IDEC MICROSmart FC6A Series Ladder Programming Manual page 153

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

Advertisement

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
CMP>=(W)
I0
• Data Type: Double Word
CMP>=(D)
I0
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.
CMP>=(W)
I0
This program turns the output off when the input is off.
CMP>=(W)
I0
M0
S1 R
S2 R
D1 R
REP
D10
D20
M10
3
S1 R
S2 R
D1 R
REP
D20
D30
M50
3
S1 –
S2 –
D1 –
REP
D10
C1
Q0
S1 –
S2 –
D1 –
REP
D10
C1
M0
Q0
FC6A S
MICROS
ERIES
MART
S1 (Repeat = 3)
D10
10
20
D11
30
D12
S1 (Repeat = 3)
D20·D21
D22·D23
D24·D25
Input I0
Comparison
D10 ≥ C1
Result
D10 < C1
Comparison
Output Q0
Input I0
Comparison
D10
Result
D10 < C1
Output Q0
L
P
M
ADDER
ROGRAMMING
ANUAL
6: D
C
ATA
OMPARISON
S2 (Repeat = 3)
D20
0
20
D21
100
D22
S2 (Repeat = 3)
D30·D31
D32·D33
D34·D35
ON
OFF
ON
OFF
ON
OFF
C1
ON
OFF
FC9Y-B1726
I
NSTRUCTIONS
D1 (Repeat = 3)
M10 turned on
M11 turned on
M12 turned off
D1 (Repeat = 3)
M50
M51
M52
6-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents