berge

Encoder input CP1L PRV2

4 posts in this topic

Hi,

I am planning to use an encoder on a CP1L to read on the RPM of a spinning wheel. For this, I can use high-speed counter 0, and the PRV2 instruction.

My problem is that I also need the rotation direction. I was wondering if anybody had a tip for this?

Thanks

Share this post


Link to post
Share on other sites

One method I have seen used before is to monitor the current value and determine if it is greater or less than the previous value.  This would indicate direction.  Then overwrite the saved value with the new one and repeat.

Share this post


Link to post
Share on other sites

Found this when reading the manual, shouldn't this work?

 

CP1L Encoder.PNG

Share this post


Link to post
Share on other sites

Yep.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now