EICS
Member
i need to Totalise an instantaneous Flow rate in scada.
i will probably use the scada totalise function, just want to know if this code concept is correct for learning purposes
here is my concept , does this seem practical
Flowtag - Flow instrumentation will typically output a value around the 10.0kg per minute set-point under a closed loop system
Start Value - a register to hold captured instantaneous value
End Value - a register to hold captured instantaneous value
Avg Value - a register to hold averaged value over 1 Minute
Total Flow - a register to hold totalised value
the scada code below will be set-up as a continuous task which will run every 1 minute
i will probably use the scada totalise function, just want to know if this code concept is correct for learning purposes
here is my concept , does this seem practical
Flowtag - Flow instrumentation will typically output a value around the 10.0kg per minute set-point under a closed loop system
Start Value - a register to hold captured instantaneous value
End Value - a register to hold captured instantaneous value
Avg Value - a register to hold averaged value over 1 Minute
Total Flow - a register to hold totalised value
the scada code below will be set-up as a continuous task which will run every 1 minute
- Avg Value = (Start Value + End Value) divide by 2
- Total Flow = Total Flow + Avg Value
- Start Value = Flowtag (capture value to register)
- pause 30 seconds then continue
- End Value = Flowtag (capture value to register)
- pause 30 seconds then continue
- loop to step 1
Last edited: