×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PLC 5 High/Low select function?

PLC 5 High/Low select function?

PLC 5 High/Low select function?

(OP)
Hello,

I need to compare two analog values and store the high or the low value. Does the PLC5 have an instruction like this? If not are there any other ways to determine the high or low value of two analog values?

Thanks,
Lou

RE: PLC 5 High/Low select function?

(OP)
Just in case anyone cares... What I did was use four compares and four moves.

For the high select, I have two rungs; rung 1 comares A to B, if greater the move puts the A value to a new address (N33:27). Rung 2 compares B to A, if greater the move puts the B value to the same new address (N33:27).

The low select looks pretty much the same but the new address is N33:28

Hope this helps someone else.
Cheers!
Lou

RE: PLC 5 High/Low select function?

Couldn't you get by with only two compares?
If A > B Then
  move A to N7:100
Else move B to N7:100

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources