Sign in to follow this  
Followers 0
skyfox

DirectSoft 5 - Where is > comparison?

4 posts in this topic

Does DirectSoft have the > (greater than) comparison? Say I want to check if a > b; In ladder, I have to; b [Not Equal To] a " And " b [<] A to get it done. This to me, is not very clean coding. Is this the only way you can do a greater than comparison in Dirctsoft 5? Thanks Edited by skyfox

Share this post


Link to post
Share on other sites
Use just the less than statement only put your variables opposite. You really only need one function anyways, one will always be on the greater than side, who cares if it reads left to right or not.

Share this post


Link to post
Share on other sites
The L-R symetry is not complete. The comparisons do not allow a constant (K) on the left hand side. You would have to assign a constant to a V register then use that on the left hand side. Edited by b_carlton

Share this post


Link to post
Share on other sites
Just a thought ... If V2000> k100 then wouldn't V2000>= k101 work just the same? Edited by Dean.awatson

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