Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual

Page 137

Advertising
background image

5

Visualize Energy Usage

137

Usage

Charge = TotalRTPCharge(ValueType.enumValue, priceMeterTagPath)

Charge = TotalRTPCharge(ValueType.enumValue,
SeasonType.enumValue, priceMeterTagPath)

Charge = TotalRTPCharge(ValueType.enumValue,
SeasonType.enumValue, DayType.enumValue, priceMeterTagPath)

Charge = TotalRTPCharge(ValueType.enumValue, DayType.enumValue,
priceMeterTagPath)

Charge = TotalRTPCharge(ValueType.enumValue, startHour, endHour,
priceMeterTagPath)

Charge = TotalRTPCharge(ValueType.enumValue,
SeasonType.enumValue, DayType.enumValue, startHour, endHour,
priceMeterTagPath)

Charge = TotalRTPCharge(ValueType.enumValue,
TimeOfUseType.enumValue, priceMeterTagPath)

Charge = TotalRTPCharge(ValueType.enumValue,
SeasonType.enumValue, DayType.enumValue,
TimeOfUseType.enumValue, priceMeterTagPath)

Comments

The startHour and endHour arguments are integers in the range of 1…24, where
24 = midnight.

Meter tags that contain price data should specify log rate that corresponds to price
effectiveness period. For example, if price changes once per hour, price meter tag log rate
should be set to 60 minutes.

Scripts that reference tags using the fully-qualified tag name will need to be updated by
the user if any change to the domain names, group names, or tag name of that tag are
made.

Example

The following script calculates the total charge for kWh used during the Summer season,
on working days, during the user-defined On Peak time-of-use period. Real time pricing
data is stored in the Acme Bushing domain, Main meter, ‘RTP’ tag:

Charge = TotalRTPCharge(ValueType.RealEnergyNet,
SeasonType.Summer, DayType.NonWorkingDay, TimeOfUseType.OnPeak,
#Acme Bushing.Main.RTP#)

Advertising