Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLC 5 High/Low select function?

Status
Not open for further replies.

Ideasworking

Electrical
Dec 20, 2006
7
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
 
Replies continue below

Recommended for you

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
 
Couldn't you get by with only two compares?
If A > B Then
move A to N7:100
Else move B to N7:100

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor