5: S
PECIAL
F
UNCTIONS
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
5-19
Two-phase High-speed Counters HSC1 and HSC4 (Slim Type CPU Modules)
Two-phase high-speed counters HSC1 and HSC4 operates in the rotary encoder mode, and counts up or down input
pulses to input terminals I0 or I6 (phase A) and I1 or I7 (phase B), respectively.
HSC1 and HSC4 can designate two preset values: preset value 1 and preset value 2. When the current value reaches pre-
set value 1, a designated comparison output turns on or program execution jumps to a designated tag. At this point, the
current value can be designated to keep counting subsequent input pulses or to be reset to the reset value and restart
another counting cycle. When “Keep Current Value” is designated, the current value continues to increase up to preset
value 2, then another comparison output can be turned on or program execution jumps to a designated tag. Similarly,
when “Keep Current Value” is designated for preset value 2, the current value continues to increase up to 4,294,967,295.
At this point, another comparison output can be turned on or program execution jumps to a designated tag, and the cur-
rent value is reset to the reset value.
In addition, the two-phase high-speed counters have another comparison of the current value to 0. When the current
value decreases down to 0, another comparison output can be turned on or program execution jumps to a designated
tag, and the current value is reset to the reset value.
When the current value decrements and reaches preset value 1 or 2, the comparison action occurs similarly, turning on
the comparison output or jumping to a designated tag.
The two-phase high-speed counters have three counting modes: 1-edge count, 2-edge count, and 4-edge count.
1-edge Count
The current value increments or decrements at the rising or falling edge of the phase B input after the phase A input has
turned on.
Phase B Input
0
1
2
1
0
ON
OFF
Current Value
• 1-edge Count Operation Chart
Phase A Input
ON
OFF
2-edge Count
The current value increments or decrements at the rising or falling edge of the phase B input after the phase A input has
turned on or off.
Phase B Input
0
1
4
1
ON
OFF
Current Value
• 2-edge Count Operation Chart
Phase A Input
ON
OFF
2
3
3
2
4-edge Count
The current value increments or decrements at the rising or falling edges of the phase A and B inputs.
Phase B Input
0
8
0
ON
OFF
Current Value
• 4-edge Count Operation Chart
Phase A Input
ON
OFF
1
2
3
4
5
6
7
7
6
5
4
3
2
1
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]