4:
D
ATA
C
OMPARISON
I
NSTRUCTIONS
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
4
‐
5
Repeat
Source
and
Destination
Devices
When
S1,
S2
(source),
and
D1
(destination)
are
designated
to
repeat,
source
devices
(as
many
as
the
repeat
cycles,
start
‐
ing
with
the
devices
designated
by
S1
and
S2)
are
compared
with
each
other.
The
comparison
results
are
set
to
destina
‐
tion
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
Summary of Contents for MICROSmart FC5A Series
Page 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Page 2: ......
Page 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Page 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...