rualcosi

problem with simulated encoder

3 posts in this topic

Good morning friends
I need clarification, for which I leave a copy of the program under test, as I need to understand what is going on with this problem.
In the test program that I leave you, every time I change the d10 to 500 pulses, the rise and fall do not stabilize as for example with 400 pulses or 300 pulses. Can anyone help me understand what's going on with this???
Thank you very much in advance for any and all help you can give.
Rui Silva

simulador de movimento dos mandrins.cxp

Share this post


Link to post
Share on other sites

The counter is counting in BCD. You are comparing it to a Decimal number. 

The CJ1 doesn't not have a Decimal counter so try counting up and down using + and - instructions.

2 people like this

Share this post


Link to post
Share on other sites

Thank you very much for your quick and knowledgeable response, this was my problem and I didn't see it. Thank you very much. Hug.

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