Track Lowest Value

asterof

Member
Join Date
May 2007
Location
Califonia
Posts
554
Controllogix V16 L61
Reading Power KW
Need to track value and if it is the lowest of the day
record the value and time/date

Now the problem I am having is
That at the end of the day, you need to reset the value
so you can start tracking the new day at Midnight

Lets say that on Monday the lowest Value was 50,000 KW
So Tuesday rolls around and now you need to store the lowest
value for Tuesday, but on Tuesday it never goes below
55,000 KW so if you are comparing it to the last known lowest
value it would never record that lowest number for Tuesday

Maybe I am not getting it
 
Let's assume you are storing the 'Lowest Value' in a DINT. At midnight, after storing the 'Lowest Value' for the previous day, reset the 'Lowest Value' to the highest possible positive number. In the case of a DINT that would be 2,147,483,647. Then carry on with the comparisons. Your very first reading will probably be a bit lower than that.
 

Similar Topics

Hi, I have some numeric input fields and I would like to track whenever a change is made to them. For example if an user changes temperature...
Replies
1
Views
865
Any help appreciated, Proposed question: I need to track parts to count the rejects in a rotating machine but having no luck tracking proper...
Replies
7
Views
2,351
Right now my system is using RFID tags on the load bars. Im trying to figure out how to implement error correction in this system. In the past...
Replies
2
Views
1,110
So at my plant our shift schedule is 12 hour shifts 7 days a week. There is 4 shifts A,B,C,D. A and C are the day shifts. 6am to 6pm B and D are...
Replies
10
Views
3,988
Hi all, i am having trouble finding out how i could track an event like start command or stop command. is there anyway to do it in FTView ME 6.1...
Replies
2
Views
1,548
Back
Top Bottom