2. Programming Concepts
2.12 High-speed Counters
There are two types of high speed counters provided including Software High Speed Counter
(SHSC) and Hardware High Speed Counter (HHSC). The same Input point (X) can be designated
with only one high speed counter. Double designation on the same input or the same counter will
result in syntax error when executing DCNT instruction.
Applicable Software High Speed Counters:
C
X
1-phase input 2 phase 2 input
C235 C236 C237 C238 C239 C240 C241 C242 C232
#2
C233 C234
X0 U/D A
X1 U/D
X2 U/D B
X3 U/D
X4 U/D A
X5 U/D B
X6 U/D A
X7 U/D B
R/F M1270 M1271 M1272 M1273 M1274 M1275 M1276 M1277 - - -
U/D M1235 M1236 M1237 M1238 M1239 M1240 M1241 M1242 - - -
U: Count up D: Count down A: Phase A input B: Phase B input
Note:
1. SHSC supports max 10kHz input pulse on single point. Max 8 counters are applicable in the
same time.
2. An SS2, SA2, SX2, SE model does not support a two-phase two-input counter (C232 with the
input points X0 and X2).
3. For 2-phase 2-input conuting, (X4, X5) (C233) and (X6, X7) (C234), max 5kHz. (X0,X2) (C232),
max 15kHz.
4. 2-phase 2-input counting supports double and quadruple frequency, which is selected in D1022
as the table shown below.
5. R/F (Rising edge trigger/ Falling edge trigger) can also be specified by special M. OFF = Rising;
ON = Falling.
6. U/D (Count up/Count down) can be specified by special M. OFF = count up; ON = count down.
Applicable Hardware High Speed Counters:
C
X
1-phase
input
1-phase 2-input 2-phase 2-input
C243 C244 C245 C246 C247 C248 C249
#2
C250
#2
C251 C252 C253 C254
X0 U U/D U/D U U A A
X1 R Dir Dir D D B B
X2 U U/D U/D A A
X3 R Dir Dir B B
X4 R R R
X5 R R
U: Count up A: Phase A input Dir: Directoin signal input
D: Count down B: Phase B input R: Reset signal input