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
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?
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?
If A > B Then
move A to N7:100
Else move B to N7:100