Comparing multiple values

Tharon

Member
Join Date
Jan 2007
Location
Other
Posts
1,430
I have a large moving block that I'm monitoring the four corners of, and would like to make sure that any single corner doesn't move too far or too little compared to the others.

I've done this with long, narrow, things before by just subtracting the two values and making sure the difference between the two values doesn't exceed a set amount. If I expanded this to four corners I'd end up with 6 different combinations of numbers, and I think that while it would be easy to understand, there has to be a better way to do it. How would you go about making sure four values don't get too far apart?

Just interested in how other people would do it. Maybe I only really need to monitor the difference between the two sets of opposite corner to ensure that the block is moving straight?

I'm using a Micrologix 1400 and RSLogix 500
 
What about using four LIM instructions ( one for each corner) with the same High/Low Lim values?
1 AND 2 AND 3 AND 4 = OKAY
 
What about using four LIM instructions ( one for each corner) with the same High/Low Lim values?

Oh, it's a moving block. So the values are all changing constantly. I want to make sure they are all changing by the same amount (within a limit).

So the limit would be constantly changing as well, and then computing the limit would be the issue.

I guess I could choose one of the four as the "master" and then use the limit instructions to make sure the other three are within the tolerance of that one master.
 
Start:
Min = (maximum possible reading)
Max = 0

For corners 1 to 4
if reading > Max then Max = reading
if reading < Min then Min = reading
Next corner

Diff = Max - Min
If Diff > tolerence then take action

Repeat while moving
 

Similar Topics

I have a folder with about 50 of the same plc program file with the same name. I don't know which on the machine needs. The date created is the...
Replies
8
Views
2,689
I have a system that downloads values into several words (20 to be exact). I am trying to find a way to look at the values in all 20 words and if...
Replies
1
Views
1,755
I’m running a micro 820 to measure a tank level, then turning on equipment at certain levels. I have an analog input (4-20) that I’m storing and...
Replies
10
Views
274
How do you go about implementing, on the M580 PLC, how many days, hours, minutes before a predefine event in the future? The RRTC_DT yields the...
Replies
3
Views
1,805
This is a Citect SCADA question I have Six variables of type REAL (Float) to compare and determine (identify) which variable has the highest...
Replies
4
Views
1,410
Back
Top Bottom