Technology instructions
10.1 Counting (High-speed counters)
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
587
The CPU stores the current value of each HSC in an input (I) address. The following table
shows the default addresses assigned to the current value for each HSC. You can change
the I address for the current value by modifying the properties of the CPU in the Device
Configuration.
High-speed counters use a DInt value to store the current count value. A DInt count value
has a range of -2147483648 to +2147483647. As of CPU firmware V4.2, you can configure
the range limits. Refer to "Initial values (Page 578)" for further information.
The counter rolls over from the maximum positive value to the maximum negative value
when counting up, and from the maximum negative value to the maximum positive value
when counting down. Frequency is returned in units of Hertz (for example, 123.4 Hz is
returned as 123).
Table 10- 15 HSC default addresses
Default current value address
HSC4 DInt ID1012