I found that report and added it to my project. It does what it says but I am looking for something a little different.
When the report runs I only want it to show the information if a certain part of the process was running at that time.
I have a couple ideas for how I might be able to accomplish this. My first thought is to have the first tag in the list be a digital tag. Using GetTagHistory I want to record the time when the tags value first changed from a 0 to a 1, and then when the valve went back to 0. I’ll use these start and end times as the StartTime and EndTime parameters for another GetTagHistory function to get the value of the remaining tags every 15 minutes. Then I will start the process all over again, checking for when the first tag went high and then low again.
I sent an email to tech support (I have a valid SupportPlus) earlier today with a question about the GetTagHistory function in reguards to modes 5 and 6 – Time of Minimum and Time of Maximum In Range. Asking if the time recorded is the first occurrence or the last occurrence within the time span specified? I did my own test and it appears if there are multiple times within the time span that have the same value it either randomly selects a time or it uses one in the middle.
My other thought was to send the data to a macro enabled excel spreadsheet and hide rows during times the process was not running.
I found that report and added it to my project. It does what it says but I am looking for something a little different.
When the report runs I only want it to show the information if a certain part of the process was running at that time.
I have a couple ideas for how I might be able to accomplish this. My first thought is to have the first tag in the list be a digital tag. Using GetTagHistory I want to record the time when the tags value first changed from a 0 to a 1, and then when the valve went back to 0. I’ll use these start and end times as the StartTime and EndTime parameters for another GetTagHistory function to get the value of the remaining tags every 15 minutes. Then I will start the process all over again, checking for when the first tag went high and then low again.
I sent an email to tech support (I have a valid SupportPlus) earlier today with a question about the GetTagHistory function in reguards to modes 5 and 6 – Time of Minimum and Time of Maximum In Range. Asking if the time recorded is the first occurrence or the last occurrence within the time span specified? I did my own test and it appears if there are multiple times within the time span that have the same value it either randomly selects a time or it uses one in the middle.
My other thought was to send the data to a macro enabled excel spreadsheet and hide rows during times the process was not running.