5: S
PECIAL
F
UNCTIONS
FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1268
5-15
High-speed Counters on Slim Type CPU Modules
Slim type CPU modules have four 32-bit high-speed counters, HSC1 through HSC4, which can count up to 4,294,967,295
pulses. HSC1 and HSC4 can be used as a single-phase or two-phase high-speed counter. HSC2 and HSC3 are single-phase
high-speed counters. All high-speed counter functions are selected using the Function Area Settings in WindLDR.
High-speed Counter Operation Modes and Input Terminals (Slim Type CPU Modules)
HSC No.
HSC1
HSC2
HSC3
HSC4
Input Terminal
(Note 1)
I0
I1
I2
I3
I4
I5
I6
I7
Single-phase High-speed Counter
Adding Counter
(Note 2)
Pulse
Input
Reset Input
(Note 3)
Pulse
Input
Pulse
Input
Reset Input
(Note 3)
(Note 2)
Pulse
Input
Dual-pulse Reversible
Counter
Down
Pulse
Up Pulse
Reset Input
(Note 3)
—
—
Reset Input
(Note 3)
Down
Pulse
Up Pulse
Up/down Selection
Reversible Counter
U/D Selec-
tion
Pulse
Input
Reset Input
(Note 3)
—
—
Reset Input
(Note 3)
U/D Selec-
tion
Pulse
Input
Two-phase High-speed Counter
1-edge Count
2-edge Count
4-edge Count
Phase A
Phase B
Reset Input
(Phase Z)
(Note 3)
—
—
Reset Input
(Phase Z)
(Note 3)
Phase A
Phase B
Note 1:
When the voltage difference between the input terminal and the COM terminal is 24V DC, the input turns on. Both positive
and negative input voltages are accepted.
Note 2:
In the single-phase high-speed counter, inputs I0 and I6 are used for dual-pulse reversible counters and up/down selection
reversible counters. When adding counter is selected, inputs I0 and I6 can be used as ordinary input terminals.
Note 3:
When a reset input is not used, inputs I2 and I5 can be used as an ordinary input terminal.
Single-phase High-speed Counters HSC1 through HSC4 (Slim Type CPU Modules)
Single-phase counters include three modes; adding counter, dual-pulse reversible counter, and up/down selection revers-
ible counter. All high-speed counters HSC1 through HSC4 can be used as adding counters. HSC1 and HSC4 can also be
used as a dual-pulse reversible counter and an up/down selection reversible counter.
Adding Counter
The four adding counters count input pulses to the input terminal allocated to each high-speed counter.
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.
HSC2 and HSC3 can designate one preset value. When the preset value is reached, a designated comparison output turns
on or program execution jumps to a designated tag, and the current value is reset to 0 to start another counting cycle.
Pulse Input
10
11
12
13
14
ON
OFF
Current Value
When the pulse input turns on, the current value increments.
• Single-phase Adding Counter Operation Chart
Dual-pulse Reversible Counter
HSC1 and HSC4 can also be used as dual-pulse reversible counters to increment or decrement the current value when
receiving input pulses to the up pulse input terminal or the down pulse input terminal, respectively.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]