beautypg.com

Rockwell Automation Energy Management Accelerator Toolkit Quick Start User Manual

Page 442

background image

442

Rockwell Automation Publication IASIMP-QS016C-EN-P - October 2014

Appendix D Digital and Analog Energy Add-On Instructions

To calculate the average flow rate, Val_

xxx_Per_Calc_Interval, the logic uses the Set_Calc_Interval, in minutes, to

configure the sample interval. A MUL instruction converts the sample interval in minutes to milliseconds for the
Avg_Flow_Interval_PLC_Timer preset. At the end of interval, Val_Total_

xxx is compared to the previous interval's

Val_Total_

xxx and the flow rate, Val_xxx_Per_Min or Val_xxx_Per_Hr, is calculated.

The average flow rate, Val_xxx_Per_Calc_Interval, is calculated by dividing the flow rate (in minutes) by the
Set_Calc_Interval, which you previously entered.