5: S
PECIAL
F
UNCTIONS
5-18
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
Single-phase High-speed Counter Timing Chart
Example:
Single--phase high-speed counter HSC1
Operation mode: Up/down selection reversible counter
Preset value 1 is 6.
Q1 is designated as the comparison 1 output.
The current value is maintained when preset value 1 is reached.
1 scan time
1 scan time
Reset Input I2
8
9
10
Current Value D8210/D8211
The D8212/D8213 value at this point becomes pre-
set value 1 for the next counting cycle.
Pulse Input I1
Gate Input M8031
Comparison 1 ON Status M8131
Comparison 1 Output Q1
Comparison Output Reset M8030
14
13
12
11
When reset input I2 is turned on, the D8210/D8211 current value is reset to the D8216/D8217 reset value, then the
D8212/D8213 preset value 1 takes effect for the next counting cycle.
While gate input M8031 is on, up/down selection reversible counter HSC1 counts pulse inputs to input I1. While up/down
selection input I0 is on, the current value increments. While up/down selection input I0 is off, the current value decre-
ments.
The current value is updated every scan.
When the current value reaches the preset value, comparison 1 ON status M8131 goes on for one scan. At the same time,
comparison 1 output Q1 turns on and remains on until comparison output reset M8030 is turned on.
After the current value has reached the preset value, the current value is maintained and the high-speed couner continues
to count input pulses as long as the gate input is on.
Preset Value 1 D8212/D8213
6
0
1
2
7
6
5
4
3
Up/Down Selection Input I0
Reset Status M8130
Reset Value D8216/D8217
2
Comparison
Action
Comparison
Output
A comparison output turns on when any of current value comparison (preset value 1, preset
value 2, overflow, or underflow) is true.
Any output number available on the CPU module can be designated as a comparison out-
put. Output numbers on expansion output or mixed I/O modules cannot be designated as a
comparison output.
Interrupt
Program
Program execution jumps to a tag when any of current value comparison (preset value 1,
preset value 2, overflow, or underflow) is true.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]