FC6A S
ERIES
MICROS
MART
U
SER
’
S
M
ANUAL
FC9Y-B1722
5-23
5: F
UNCTIONS
AND
S
ETTINGS
Comparison operation flow
The comparison operation flow is as follows.
1.
Start (run) the FC6A Series MICROSmart.
For the first scan,
Current Comparison Number
is set to 0, and
Next Comparison Number
is set to the number for preset
value 1 with the initialize pulse.
For the second scan, an I/O refresh is performed in END processing and the value of
Next Comparison Number
is transferred
to
Current Comparison Number
.
The content of
Next Comparison Number
becomes the preset value n + 1 ("2" in this example).
When
Number of Comparisons
is 1,
Next Comparison Number
is always "1".
2.
Start the high-speed counter count operation.
Turn on the gate input to start the count operation.
3.
Compare the
Current Comparison Number
preset value and the current value. When the current value and the preset value
match, the next number for the preset value becomes active and the high-speed counter continues counting.
Execute
Comparison Output
or
Interrupt Program
. (
Comparison Output
in this example)
Turn on the comparison (special internal relay) for only one scan.
Overwrite
Current Comparison Number
with
Next Comparison Number
and start the count with the preset value for
Current
Comparison Number
.
Add 1 to
Next Comparison Number
.
4.
When the procedure is executed up to preset value 6, repeat again from the beginning with preset value 1.
Note:
The
Current Comparison Number
data register cannot be written to during the count action. It is read-only.
Next Comparison Number
and
Comparison 1
to
Comparison 6
can be read and written to.
Group
1
Read/Write
Preset Value
(Upper word)
D8212
R/W
Preset Value
(Lower word)
D8213
Example: For group 1
Storage destination for the preset value that became active.
Stored by group.
The outputs (external outputs) when the values match.
The data register that stores the preset value (target value).
Specify the starting address.
The preset value with the number that became active is the
comparison subject with the current value and is stored in the special
data registers.
Transfer
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1722 8 FC6A SERIES User s Manual...
Page 12: ...TABLE OF CONTENTS Preface 11 FC6A SERIES MICROSMART USER S MANUAL FC9Y B1722...
Page 182: ...2 PRODUCT SPECIFICATIONS 2 152 FC6A SERIES MICROSMART USER S MANUAL FC9Y B1722...
Page 434: ...8 INSTRUCTIONS REFERENCE 8 18 FC6A SERIES MICROSMART USER S MANUAL FC9Y B1722...
Page 520: ...11 SD MEMORY CARD 11 54 FC6A SERIES MICROSMART USER S MANUAL FC9Y B1722...
Page 554: ...13 TROUBLESHOOTING 13 26 FC6A SERIES MICROSMART USER S MANUAL FC9Y B1722...
Page 567: ...FC6A SERIES MICROSMART USER S MANUAL FC9Y B1722 A 13 APPENDIX ASCII Character Code Table...