Ranjeet198910

Pi Expression for conditional totalizer

Discussion created by Ranjeet198910 on Jul 12, 2020
Latest reply on Jul 23, 2020 by Ranjeet198910

Hi,

I have a 'flowrate tag' in (Nm3/hr) which I need to be totalized between 6am to 2pm each day only when 'condition tag' is 1.

 

For e.g:-

@ 9:00am 'Condition tag' =1 (Totaliser should start) & @9:40am it becomes 0 (Totaliser should stop),  (Process-1)

@ 10:10am 'Condition tag' =1 (Totaliser should start) & @10:40am it becomes 0 (Totaliser should stop), (Process-2)

@ 11:20am 'Condition tag' =1 (Totaliser should start) & @11:35am it becomes 0 (Totaliser should stop), (Process-3)

 

I need to make a Pi expression to get the Totalizer 'flowrate tag' only during these above process-1,2,3 between 6am to 2pm. Frequency and time stamp for 'Condition tag' =1 is not fixed, it varies every day.

 

Pls suggest Pi expression in .pdi.

Outcomes