High-Speed Counter," abbreviated as "HSC." One of its functions is to capture high-speed pulse signals in industrial environments. For example, in field applications where distance measurement is required, encoders are used. Encoders transmit distance information in the form of high-speed pulses. The frequency of these pulse signals is high, and their periods are shorter than the PLC's scan cycle. Ordinary input points are unable to accurately capture these signals, requiring the use of a high-speed counter.
Let's start by comparing the process of external physical signals entering the CPU's process image area through a digital channel with the process of entering through a high-speed counter channel.
In a typical signal input process, when a physical signal is generated, it first undergoes photoelectric isolation, then goes through digital filtering, followed by pulse capture, and finally enters the CPU's input process image area.
For high-speed counters, when a physical signal is generated, it undergoes photoelectric isolation, then digital filtering, and enters a dedicated high-speed counter chip. Pulse signals can be stored in the high-speed counter chip, preventing any loss. These pulse counts are sent into the CPU's input process image area during the PLC's scanning cycle. Of course, we can also directly access the physical address of the peripheral device to read the pulse counts. The high-speed counter chip is crucial for differentiating high-speed counters from regular input channels.
Siemens has taken into full consideration the demand for collecting high-speed pulse signals in the field. The CPU modules of the S7-1200 series PLC can support up to 6 groups of high-speed counters (HSC). The highest measurable frequency for single-phase pulses is 1MHz (1217C model), and the pulse frequency for A/B phase can reach a maximum of 80KHz. The following diagram shows the number of internally integrated HSCs in the 1200 series CPU when there is no signal board:
Any CPU can expand the number of HSCs by using a signal board. Depending on the combination of the CPU and the signal board, it can support a maximum of 6 HSCs (1211C supports up to 5 at most). As shown in the following diagram: