I am trying to set up a high speed counter to work on an Omron CP1L plc. I can see that it is counting but the numbers are not repeating from one cycle to the next. I have an accu coder mounted to the back of a motor sending pulse to I:0.00 of the PLC. I am using the PRV(881) function to move the count to D0. I then compare using function (cmp (020) D0 to D100 to turn on an output at the desired location. then I compare D0 to D101 to turn off the output as it passes by the next location. When the cycle is complete and the machine is back at home position (stopped) I re-set the HSC using bit A531.00 and I see that the Hex number is zero in D0 as well as in the PRV (881) function block am I doing something wrong or using the wrong functions? why are the counts not repeatable from one cycle to the next?