audriusk3000 Posted November 25, 2015 Report Share Posted November 25, 2015 Hello. I have connected quadrature encoder. And when I turn it clockwise counter counts up positive. When I turn counterclockwise, counter counts downs negative (with minus). Is it possible to make that after reset counter, it doesn't matter how you turn encoder, but but it counts always up positive? Link to comment Share on other sites More sharing options...
s.pratt Posted November 25, 2015 Report Share Posted November 25, 2015 Hello, Are you just trying to count the pulses from the encoder? You can set the input as a high-speed counter to 'Pulse and Direction' interface in the hardware configuration instead of a 'Quadrature (A/B)'. Then only wire one of the channels from the encoder to the 'pulse' input and leave the 'direction' input open. Will this work for you? Link to comment Share on other sites More sharing options...
audriusk3000 Posted November 26, 2015 Author Report Share Posted November 26, 2015 Hello, Are you just trying to count the pulses from the encoder? You can set the input as a high-speed counter to 'Pulse and Direction' interface in the hardware configuration instead of a 'Quadrature (A/B)'. Then only wire one of the channels from the encoder to the 'pulse' input and leave the 'direction' input open. Will this work for you? I tried that. But then, the counter is not fast enough to take pulses from encoder if I turn encoder faster (some pulses are missing) Link to comment Share on other sites More sharing options...
audriusk3000 Posted November 26, 2015 Author Report Share Posted November 26, 2015 Yes it works. It was my mistake. It missed pulses when I was using Inc function. Not directly from UID-0808THS. But now it counts always when I reset, from zero to negative. Can I make it count from zero to positive? Link to comment Share on other sites More sharing options...
audriusk3000 Posted November 26, 2015 Author Report Share Posted November 26, 2015 It works now. I changed Count at Falling edge, Direction polarity Up=0. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now