24 hr highest temp reading, need comments

bright676

Member
Join Date
Nov 2012
Location
va
Posts
494
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 period.

I came up with the following and even though I hit the verify button with no errors it just doesn't seem right to me.

What do you think?

Thank you.

24 HR HIGHEST MATH.jpg
 
if temp>highest temp_buffer
then highest_temp_buffer:=temp;
end_if;

if 24_hour_done then
highest_temp:=highest_temp_buffer;
highest_temp_buffer:= 0
end_if;

...
 
Last edited:
I would probably do it like this, however this doesn't provide a Rolling 24h, it simply resets after a fixed 24h period. It'd be best to have a rolling one, which would mean you'd have to store the highest value recorded over short periods (say an hour) and then compare the 24 highest recorded values over a 24 hour period to obtain the highest to display. Then start the loop again, overwriting the first value. I'd probably examine the clock on the PLC and whilst it's equal to a particular hour, do the above and at the end of the hour (when it changes to the next) store the value and compare the last 24 hours worth of stored values.

Example.png
 
Last edited:
Here's a 24h Rolling version, had to attach in two pictures. I haven't tested it, but I think its right :)

(Ive only done the first 3 hours, but as it's repetative it should be easy for you to add the rest. The pointer is already set for 24 hours)

Example 1.jpg Example 2.jpg
 

Similar Topics

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...
Replies
6
Views
2,116
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,520
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,438
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,412
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,422
Back
Top Bottom