Forums.MrPLC.com: DirectSoft 5 - Where is > comparison? - Forums.MrPLC.com

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

DirectSoft 5 - Where is > comparison? Rate Topic: -----

#1
User is offline   skyfox 

  • Sparky
  • PipPipPip
  • Group: MrPLC Member
  • Posts: 11
  • Joined: 06-September 10
  • Country:United States
    United States
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

This post has been edited by skyfox: 06 October 2011 - 12:52 PM

0

#2
User is offline   Shiner 

  • Sparky
  • PipPipPip
  • Group: MrPLC Member
  • Posts: 286
  • Joined: 18-November 09
  • Gender:Male
  • Location:Houston
  • Country:United States
    United States
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.
0

#3
User is offline   b_carlton 

  • User
  • PipPipPipPipPip
  • Group: MrPLC Member
  • Posts: 962
  • Joined: 16-September 04
  • Gender:Male
  • Location:Yakima, Washington
  • Country:United States
    United States
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.

This post has been edited by b_carlton: 06 October 2011 - 01:05 PM

An output is a PLC's way of getting its inputs to change.
0

#4
User is offline   Dean.awatson 

  • Hi, I am New!
  • Pip
  • Group: MrPLC Member
  • Posts: 1
  • Joined: 26-March 12
  • Country:United States
    United States
Just a thought ... If V2000> k100
then wouldn't V2000>= k101 work just the same?

This post has been edited by Dean.awatson: 26 March 2012 - 09:48 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users