I am testing a program using a 1766-L32BXB
I have a single ended Encoder attached to I:0/0 with a HSC:0 set up.
the Encoder is on a 6" Diameter roll with paper driving it and a prox switch on the stand the roll us unwinding from give a pulse each rotation.
My problem is the count is a little erratic, although it should keep counting down as the roll unwinds which it does for the most part I don't seem to have any consistency in the number flow and I also get some counts that actually go back up a few pulses from the previous count.
I am going to see if I am getting slippage of the paper but that should make the count be a lot less which possibly could make the next one greater.
Being new the the HSC in Micrologix I am wondering if the problem is in my program. I have tried just having the counter and a reset with no other program yet I still see the problem.
I am using an input from the prox through a [ONS] to MOV HSC:0 to L9:0
and a RAC to reset. Could there be scan delay on the reset and should I set it up with the reset as an input (I:0/5)
Thanks for any advice.
I have a single ended Encoder attached to I:0/0 with a HSC:0 set up.
the Encoder is on a 6" Diameter roll with paper driving it and a prox switch on the stand the roll us unwinding from give a pulse each rotation.
My problem is the count is a little erratic, although it should keep counting down as the roll unwinds which it does for the most part I don't seem to have any consistency in the number flow and I also get some counts that actually go back up a few pulses from the previous count.
I am going to see if I am getting slippage of the paper but that should make the count be a lot less which possibly could make the next one greater.
Being new the the HSC in Micrologix I am wondering if the problem is in my program. I have tried just having the counter and a reset with no other program yet I still see the problem.
I am using an input from the prox through a [ONS] to MOV HSC:0 to L9:0
and a RAC to reset. Could there be scan delay on the reset and should I set it up with the reset as an input (I:0/5)
Thanks for any advice.