Highest temp

Hojland

Member
Join Date
Oct 2006
Location
Langå
Posts
203
I have 3 temeprature, where I need to know which is the highest. It should be moved to a register. How do I do it most easily. It should work both, when the temperature rises and falls
Rslogix 500
 
Make yourself the plc. In this case, how you would do it is the way you should tell the plc to do it.

Assume you are sitting at your desk. You can't remember ANYTHING for more than 1 second but you have a pencil and a pad of paper. Someone walks by your desk and and drops off three slips of paper, each with a number on it. You are allowed to look at each slips only once and you can't remember what they are once you look at them. How would you decide which is the highest?

Keith
 
Hojland:
Three temps, a,b and c.
For high temp: If a>b and a>c or b>a and b>c, or c>a and c>b. The one that is true must be save to a buffer.
The same analysis for low temp but <.

Then repeat same procedure every time you need it.

william
 
First, assume A is the "winner" value or "high score" register. I will call it H. (Let H=A).
Then compare the others to H one by one and MOVe any greater value into the "winning" register.
 

------------------+-MOV----------+
|Source I:1.0|
|Dest N7:0|
+--------------+

--+-GRT-----+-----+-MOV----------+
|A I:1.1| |Source I:1.1|
|B N7:0| |Dest N7:0|
+---------+ +--------------+

--+-GRT-----+-----+-MOV----------+
|A I:1.2| |Source I:1.2|
|B N7:0| |Dest N7:0|
+---------+ +--------------+


 

Similar Topics

I am using a A?B 5/04 with RSLogix 500 and I am trying to come up with a way to display the highest temp from one thermocouple in a 24 hour...
Replies
5
Views
1,786
folks i have 104 lamps that record their hours on the panelview, so i need to get the highest hour value of these lamps data data type is...
Replies
26
Views
5,532
Hello Currently have a project in which I have to find the highest value in a dint array. Once the highest value is found I will have to move...
Replies
20
Views
11,475
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,421
Hey. (AB CLX) I have an application where I am recording faults into an array of 15 DINTS. The Members of the array represent different faults...
Replies
2
Views
1,429
Back
Top Bottom