Proratemonthlycharge function – Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual
Page 131
![background image](/manuals/581102/131/background.png)
5
•
Visualize Energy Usage
131
Usage
Quantity = PeakTimestamp(ValueType.enumValue)
Quantity = PeakTimestamp(ValueType.enumValue,
SeasonType.enumValue)
Quantity = PeakTimestamp(ValueType.enumValue,
SeasonType.enumValue, DayType.enumValue)
Quantity = PeakTimestamp(ValueType.enumValue, DayType.enumValue)
Quantity = PeakTimestamp(ValueType.enumValue, startHour,
endHour)
Quantity = PeakTimestamp(ValueType.enumValue,
TimeOfUseType.enumValue)
Quantity = PeakTimestamp(ValueType.enumValue,
SeasonType.enumValue, DayType.enumValue, startHour, endHour)
Quantity = PeakTimestamp(ValueType.enumValue,
SeasonType.enumValue, DayType.enumValue,
TimeOfUseType.enumValue)
Quantity = PeakTimestamp(ValueType.enumValue, DayType.enumValue,
TimeOfUseType.enumValue)
Comments
The startHour and endHour arguments are integers in the range of 1…24, where
24 = midnight.
Example
The following script returns the time stamp of the real demand power peak that occurred
during the Summer season, on working days, during the hours of 10:00 a.m. to 4:00 p.m.:
dim dtPeak [as DateTime]
dtPeak = PeakTimestamp(ValueType.RealPowerDemand,
SeasonType.Summer, DayType.WorkingDay, 10, 16)
ProRateMonthlyCharge Function
The ProRateMonthlyCharge function is used with monthly charges such as demand and
fixed charges to display the appropriate charges on reports where the report period is less
than one month. It returns a Double value.
Usage
Charge = ProRateMonthlyCharge(monthlyCharge)
Comments
The monthlyCharge argument is an expression which returns a Double value.