Understanding Module Operation
3-13
High Speed Counter Encoder Module User Manual
The
lower byte of WY23 and all of WY24 contain the Preset 2 24-bit integer
value. Use the upper byte of WY23 to configure programming values.
Together
, the preset value and the programming values determine the count
method and how Outputs 1 and 2 function when the count and preset are
equal, or the count value is less than or greater than the counter preset. All
preset values are unipolar in format. The shaded areas of T
able 3-12 show
the word formats, and T
able 3-13 lists the programming values of WY23.
T
able 3-12
Channel 1, 24-Bit Counter: Pr
eset 2 V
alue
Word MSByte LSByte
WY23 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
WY24 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
T
able 3-13
Channel 1, 24-Bit Counter: WY23 Pr
ogramming Bit V
alues
Bit Position Description
01 02 03 04 05 06 07 08
1 Current count updates on an INDEX or PERIOD
0 0 0 0 0 0 0 PLC controls Output 2
1 0 0 0 0 0 0 When Counter 1 value > Preset 2, set Output 2
0 1 0 0 0 0 0 When Counter 1 value < Preset 2, set Output 2
0 1 1 0 0 0 0
When Counter 1 value ≥ Preset 1 and
≤ Preset 2, set Output 2
0 0 1 0 When Counter 1 = Preset 2, set Output 2
0 0 0 1 When Counter 1 = Preset 2, toggle Output 2
1 0 When Counter 1 = Preset 2, clear Counter 1
0 1 When Counter 1 = Preset 2, reload Counter 1 with Preset 1
1 When Counter 1 = Preset 2, clear Output 1 latch
Channel
1,
24-Bit Counter 1,
Pr
eset 2