Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual

Page 142

Advertising
background image

FactoryTalk EnergyMetrix Software

142

The script configuration screen:

And the actual line-item script:

Rem On-peak energy charge

EnergyUsageOnPeak = Total(ValueType.RealEnergyNet,
SeasonType.Winter, DayType.WorkingDay,
TimeOfUseType.EnergyOnPeakWinter) + _

Total(ValueType.RealEnergyNet, SeasonType.Summer,
DayType.WorkingDay, TimeOfUseType.EnergyOnPeakSummer)

Unit = GetUnit(ValueType.RealEnergyNet)

Quantity = EnergyUsageOnPeak

Charge = Quantity * RatePerUnit

If Charge = 0 then Visible = False

Sample Demand Charges Script

Demand charges may become fairly complex, as are the Generations System and
Transmission Demand charges in the sample tariff. The example addresses this tariff
requirement by using a number of rate schedule features:

Global variables

Times of Use

Proration

Global Variables

The following Global Variables are used in the Demand calculations. Global variables
permit passing of results from one line item to other line items.

Advertising