Sign in to follow this  
Followers 0
Guest student

Compare

2 posts in this topic

hi attached is a ladder with a comparison problem.X values are stored in D04 and compared with a counter.If the comparison is equal, smaller or greater- then turning on the light is not a problem. But what if i would like to turn on the light excately when the counter is at x-1? Compare.swp Edited by student

Share this post


Link to post
Share on other sites
Subtract 1 from DM4 and place it in DM5. Compare DM5 toCNT12. When equal, set 60.01. When not equal set 60.01. If you need an output at every value of DM4, checkout DPMX(76).

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
Sign in to follow this  
Followers 0