102BTechnology instructions
9.1 High-speed counter
S7-1200 Programmable controller
320
System Manual, 11/2011, A5E02486680-05
CPU on-board input (0.x)
SB input (default 4.x)
3
HSC
0
1
2
3
4
5
0
1
2
3
1-phase
[R]
C
[d]
2-phase
[R]
CU
CD
HSC 6
2
AB-phase
[R]
A
B
1
HSC 1 and HSC 2 can be configured for either the on-board inputs or for an SB.
2
HSC 5 and HSC 6 are available only with an SB. HSC 6 is available only with a 4-input SB.
3
An SB with only 2 digital inputs provides only the 4.0 and 4.1 inputs.
The following table shows the HSC input assignments for both the on-board I/O of the CPU
1212C and an SB. (If the SB has only 2 inputs, only 4.0 and 4.1 inputs are available.)
●
For single-phase: C is the Clock input, [d] is the optional direction input, and [R] is an
optional external reset input. (Reset is available only for "Counting" mode.)
●
For two-phase: CU is the Clock Up input, CD is the Clock Down input, and [R] is an
optional external reset input. (Reset is available only for "Counting" mode.)
●
For AB-phase quadrature: A is the Clock A input, B is the Clock B input, and [R] is an
optional external reset input. (Reset is available only for "Counting" mode.)
Table 9- 7
HSC input assignments for CPU 1212C
CPU on-board input (0.x)
SB input (4.x)
3
HSC
0
1
2
3
4
5
6
7
0
1
2
3
1-phase
C
[d]
[R]
C
[d]
[R]
2-phase
CU
CD
[R]
CU
CD
[R]
HSC 1
1
AB-phase
A
B
[R]
A
B
[R]
1-phase
[R]
C
[d]
[R]
C
[d]
2-phase
[R]
CU
CD
[R]
CU
CD
HSC 2
1
AB-phase
[R]
A
B
[R]
A
B
1-phase
C
[d]
[R]
2-phase
CU
CD
[R]
HSC 3
AB-phase
A
B
[R]
1-phase
[R]
C
[d]
2-phase
[R]
CU
CD
HSC 4
AB-phase
[R]
A
B
1-phase
C
[d]
[R]
2-phase
CU
CD
[R]
HSC 5
2
AB-phase
A
B
[R]
1-phase
[R]
C
[d]
2-phase
[R]
CU
CD
HSC 6
2
AB-phase
[R]
A
B
1
HSC 1 and HSC 2 can be configured for either the on-board inputs or for an SB.
2
HSC 5 and HSC 6 are available only with an SB. HSC 6 is available only with a 4-input SB.
3
An SB with only 2 digital inputs provides only the 4.0 and 4.1 inputs.