Using the Default Configurations
4-4
High Speed Counter Encoder Module User Manual
4.2
Default Software Modes
You program counter modes by setting specific bits in the corresponding WY
words. If bits 01 through 08 of the preset word are all zeroes, by default or
programming, the module operates in the modes defined in Table 4-1.
Programming of optional modes is described in Chapter 5.
Software configurations are not saved in the module. All software
programming must be done by the PLC through the WY words.
When the bits in the most significant byte of WY21 (for Counter 1) and
WY27 (for Counter 4) are all zero (refer to Table 4-1), these counters operate
in the following non-quadrature modes:
•
Up/Down directional counter: input A pulses are counted, and the state
of input B determines the direction of counting.
•
24-bit binary counting, recycle mode.
•
INDEX is set to latch the counter value.
•
Output is set for Compare (On when count value = preset).
Table 4-1
24-Bit Counter Programming Modes
01
02
03
04
05
06
07
08
Mode
0
0
0
Direction counter, (count A, direction B)
0
0
0
24-bit binary counting, recycle mode
0
INDEX latches counter value
0
Output Compare
When the bits in the most significant byte of WY23 (for Counter 1) are zero,
the PLC controls Output 2 by setting WY19.15.
When the bits in the most significant byte of WY29 (for Counter 4) are zero,
the PLC controls Output 6 by setting WY19.11.
When all of the bits in counter setup words WY20.09 through .16 are zero,
16-bit counters 2, 3, 5, and 6 down count in the Retriggerable One-Shot
mode. Refer to Section 1.8 for a description of 16-bit counter modes.
Programming
Optional Modes
24-Bit Counter
Default Modes
16-Bit Counter
Default Mode