5: S
PECIAL
F
UNCTIONS
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
5-9
Single-phase High-speed Counter Functions (All-in-One Type CPU Modules)
Counting Mode
Adding counter
Maximum Counting Frequency
HSC1:
50 kHz
HSC2 through HSC4:
5 kHz
Counting Range
0 to 65535 (16 bits)
Gate Control
Enable/disable counting
Current Value Reset
Current value is reset to 0 when the current value reaches the preset value or when reset
input I2 (HSC1 only) or a reset input special internal relay is turned on.
Status Relays
Special internal relays for indicating high-speed counter statuses.
Comparison Output
Any output number available on the CPU module can be designated as a comparison output
which turns on when the current value reaches the preset value.
Output numbers on expansion output or mixed I/O modules cannot be designated as a com-
parison output.
Single-phase High-speed Counter Timing Chart
Example:
Single--phase high-speed counter HSC2
Preset value is 8. Q0 is designated as a comparison output.
Reset Input M8036
0
1
2
8
Current Value D8047
The D8048 value at this point becomes the pre-
set value for the next counting cycle.
Pulse Input I3
Gate Input M8035
Comparison Output Q0
Comparison Output Reset M8034
1 scan time
Comparison ON Status M8133
7
6
5
4
3
When reset input M8036 is turned on, the D8047 current value is cleared to 0, then the D8048 preset value takes effect
for the next counting cycle.
While gate input M8035 is on, single-phase high-speed counter HSC2 counts pulse inputs to input I3.
The D8047 current value is updated every scan.
When the D8047 current value reaches the D8048 preset value, comparison ON status M8133 goes on for one scan. At
the same time, comparison output Q0 turns on and remains on until comparison output reset M8034 is turned on.
When the D8047 current value reaches the D8048 preset value, the D8048 preset value at that point takes effect for the
next counting cycle.
Preset Value D8048
8
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]