TagTot use for counter that resets a few times during a 12 hours shift

Hello,

I need some help with the TagTot function. In our manufacturing operations, we run 2 x 12 hrs shift (7 am - 7 pm, 7 pm - 7 am). Currently use a PLC tag set up in PI for bottle counts. This bottle counts tag in the PLC gets reset automatically with every work order change, with an average of 2 to 4 work order changes per shift. I have been trying to use the TagTot function to calculate the total for the shift but the results in the temporary analysis I created differ from the data I am seeing in PI Vision for the bottle counts tag. For instance, at 7am I have a total bottle counts of 10,380 and just before the work order changed, the bottle counts was at 14,083. After work order was changed until now, total bottle counts is 9,024. Basically my total should be (14,083-10,380)+9,024=12,727 bottle counts but in the analysis using the TagTot it shows 2832.3.

I need some help figuring out how to use the TagTot for this scenario, or, is the TagTot not the right function in this case ?

Thank you so much for the help.

Parents Reply Children
No Data