Description
HSC1
HSC:
HSC
HSC3
2
HSC4
3
HSC5
4
HSC6
4
Mode
Single-phase counter with internal
direction control
Single-phase counter with external
direction control
Two-phase counter with 2 clock
inputs
A/B-phase quadrature counter
Monitor pulse train outputs (PTO)
Pulse train output monitoring always uses clock and direction. If the corresponding PTO output is configured for pulse
1
only, then the direction output should generally be set for positive counting.
HSC3 with a reset input is not possible for the CPU 1211C which supports only 6 built-in inputs.
2
HSC4 is not possible for the CPU 1211C which supports only 6 built-in inputs.
3
HSC5 and HSC6 are only supported by the CPU 1211C and CPU 1212C when a signal board is installed.
4
Accessing the current value for the HSC
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.
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02
Built In
I0.0
or Signal Board
I4.0
or monitor PTO 0
PTO 0 Pulse
1
Built In
I0.2
or signal board
I4.2
or monitor PTO 1
PTO 1 Pulse
1
Built In I0.4
Built In I0.6
Built In
I1.0
or Signal Board
I4.0
Built In
I1.3
or signal board
I4.2
Clock
Clock
Clock up
Phase A
Clock
1
High-speed counter
HSC1
HSC2
HSC3
HSC4
HSC5
HSC6
Default Input Assignment
I0.1
I4.1
PTO 0 Direction
I0.3
I4.3
PTO 1 Direction
I0.5
I0.7
I1.1
I4.1
I1.4
I4.3
-
Direction
Clock down
Phase B
Direction
Data type
DInt
DInt
DInt
DInt
DInt
DInt
Programming instructions
6.1 Basic instructions
Function
I0.3
I4.3
-
I0.1
I4.1
-
I0.7
I0.5
I1.2
I4.3
I1.5
I4.1
-
Count or Frequency
Reset
Count
-
Count or Frequency
Reset
Count
-
Count or Frequency
Reset
Count
-
Count or Frequency
Phase Z
Count
-
Count
Default address
ID1000
ID1004
ID1008
ID1012
ID1016
ID1020
109
Need help?
Do you have a question about the SIMATIC S7 and is the answer not in the manual?