102BTechnology instructions
9.1 High-speed counter
S7-1200 Programmable controller
322
System Manual, 11/2011, A5E02486680-05
SB inputs (default: 4.x)
2
HSC
1
0
1
2
3
1-phase
C
[d]
[R]
2-phase
CU
CD
[R]
HSC 5
AB-phase
A
B
[R]
1-phase
[R]
C
[d]
2-phase
[R]
CU
CD
HSC 6
AB-phase
[R]
A
B
1
For CPU 1214C: HSC 1, HSC 2, HSC 5 and HSC 6 can be configured for either the on-board
inputs or for an SB.
2
An SB with only 2 digital inputs provides only the 4.0 and 4.1 inputs.
Accessing the current value for the HSC
Note
When you enable a pulse generator for use as a PTO, a corresponding HSC is assigned to
this PTO. HSC1 is assigned for PTO1, and HSC2 is assigned for PTO2. The assigned HSC
belongs completely to the PTO channel, and the ordinary output of the HSC is disabled. The
HSC value is only used for the internal functionality. You cannot monitor the current value
(for example, in ID1000) when pulses are occurring.
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.
Table 9- 10 Current value of the HSC
HSC
Data type
Default address
HSC1
DInt
ID1000
HSC2
DInt
ID1004
HSC3
DInt
ID1008
HSC4
DInt
ID1012
HSC5
DInt
ID1016
HSC6
DInt
ID1020