337
5
5 High-speed Input 5.1.1 High-speed Counter
[U]: up counter input; [D]: down counter input; [R]: reset counter input; [S]: start counter input
[A]: A-phase pulse input; [B]: B-phase pulse input
1
)
Special M element for single
-
phase unidirectional up/down counter
Single-phase Unidirectional Counter
C235 C236 C237 C238 C239 C240 C241 C242 C243 C244 C245
Up/Down
counter
control
M8235 M8236 M8237 M8238 M8239 M8240 M8241 M8242 M8243 M8244 M8245
2
)
Special M element for single
-
phase bidirectional counting up/down and A/B phase
counting up/down
Single-phase Bidirectional Counter A/B Phase Counter
C246 C247 C248 C249 C250 C251 C252 C253 C254 C255
Up/Down
counting
state
M8246 M8247 M8248 M8249 M8250 M8251 M8252 M8253 M8254 M8255
3
)
Description of counting modes
Single-phase unidirectional counter: With only one pulse signal counting input, the corresponding M
element for up/down counter control decides on counting up/down. Some counters also have hardware
reset and startup signal input ports.
Single-phase bidirectional counter: Two pulse signal counting inputs function as an up/down counter
pulse input respectively. Some counters also have hardware reset and startup signal inputs. The up/down
counting state of a counter is monitored by reading the special M element for up/down counting state.
A/B phase counter: A phase and B phase signals with 90° phase difference are used as inputs. The
relationship between A phase and B phase determines the counted direction. The up/down counting state
of a counter is monitored by reading the special M element for up/down counting state.
A phase leading B phase, counting up
B
A
B phase leading A phase, counting down