102BTechnology instructions
9.1 High-speed counter
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
319
Input addresses for the HSC
Note
The digital I/O points used by high-speed counter devices are assigned during device
configuration. When digital I/O point addresses are assigned to these devices, the values of
the assigned I/O point addresses cannot be modified by the force function in a watch table.
When you configure the CPU, you have the option to enable and configure each HSC. The
CPU automatically assigns the input addresses for each HSC according to its configuration.
(Some of the HSCs allow you to select whether to use either the on-board inputs of the CPU
or the inputs of an SB.)
NOTICE
As shown in the following tables, the default assignments for the optional signals for the
different HSCs overlap. For example, the optional external reset for HSC 1 uses the same
input as one of the inputs for HSC 2.
Always ensure that you have configured your HSCs so that any one input is not being used
by two HSCs.
The following table shows the HSC input assignments for both the on-board I/O of the CPU
1211C 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- 6
HSC input assignments for CPU 1211C
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
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]
2-phase
CU
CD
HSC 3
AB-phase
A
B
1-phase
C
[d]
[R]
2-phase
CU
CD
[R]
HSC 5
2
AB-phase
A
B
[R]