Hi,
I'm trying to sort out on how to write a certain PI calculation. I have a pi tag for a valve that is either opened or closed. What I'd like to do is calculate the total hours that the valve remained in the open positon (value=1, closed=0) for the previous day (our days start at 6am) and current day. On average, the valve stays open for the batch process which takes about 20 hours but it can vary.
Any help would be appreciated.
Thanks!