What it does
A plant has dozens of energy analyzers: at the transformer incomer, on the feeders, on compressor and chiller groups. Energy management defines these devices in one place in the project.
- It reads the devices over Modbus TCP, an RS-485 line behind a gateway or the computer’s COM port.
- It writes clock-aligned records: in a 15-minute period at :00, :15, :30 and :45. The period average of instantaneous values and the end-of-period value of counters go into the archive.
- Zones total several devices like one meter; calculated variables create new tags from a formula.
- Consumption is split into tariff periods such as day, peak and night; prices, a capacity charge, a reactive charge and taxes give a bill estimate.
- A demand forecast over the limit, an out-of-limit value or a lost connection becomes an alarm and goes through the notification rules.
Setting it up in Studio
The Energy Management section under Historical Data in the project tree has eight tabs. When you add a device row, Studio creates its connection, structure instance, tags and archive rows. The generated items appear locked in their own sections; you change them here. A tag name starts with the device name: Kompresor_1.EA.
| Tab | What you define |
|---|---|
| Devices | Analyzers: name, location, model, connection, Modbus address, recording, transformer ratios, nominal values. |
| Templates | The variable list of each model: address, type, multiplier, unit, period value, command, device setting. |
| Zones | Device totals: a line, a building, the main meter, a sub-meter difference. |
| Calculated Variables | Tags calculated from a formula. |
| Events | Events that raise an alarm when their condition is met. |
| Tariffs | Tariff periods, day types in 15-minute steps, the weekly calendar, seasons, special days, unit prices. |
| Cost | Distribution charge, contracted power, capacity and excess charges, reactive limits, taxes, CO₂ factor. |
| Settings | Active tariff, location, recording period, storage, retention, device setting permission, XML service, energy dashboard. |
The recording period is 1, 2, 5, 10, 15, 20, 30 or 60 minutes; 15 minutes by default. The energy archive is written to a monthly file on the Live computer; the same records can also go to a CSV file or a SQL Server table. Retention is 3650 days by default.
Zones and calculated variables
A zone is the total of the devices you choose: a production line, a building or the whole plant is watched like one meter. A member set to Add (+) is added, one set to Subtract (−) is taken away. A zone creates an unbound internal tag for each quantity (Bolge_1.P, Bolge_1.EA, Bolge_1.MD, Bolge_1.PF); Live calculates them every second and archives them like devices.
A calculated variable creates a tag from a formula. The formula language has arithmetic, comparisons, min, max, sum, avg, if, date and time functions, tariff() for the active tariff period and isday() for sunrise to sunset. A formula that subtracts two zones from the main meter gives unmeasured loads and losses.
[Trafo_Giris.P_III] - [Bolge_1.P] - [Bolge_2.P] // unmeasured load and losses sum([Kompresor_1.P_III], [Kompresor_2.P_III]) // total of the readable compressors if(tariff() == 2, [Trafo_Giris.P_III], 0) // incomer power in the peak period only
Tariffs and cost
A tariff tells which price period each time of day belongs to. Add preset tariff… starts with a three-rate tariff (day 06:00 – 17:00, peak 17:00 – 22:00, night 22:00 – 06:00) or a single-rate one.
- Up to six periods are defined; each has a color, a code, a name and a unit price.
- A day type is a strip of 96 squares of 15 minutes each. Periods are painted onto the strip with a brush.
- The weekly calendar gives each weekday a day type. A season gives a date range its own calendar.
- Special days are entered for one date or for every year. The seven fixed-date public holidays of Türkiye are added with one button; religious holidays are entered each year with their own dates.
The Cost tab holds the other items of the bill: currency, distribution charge, contracted power, capacity charge, excess capacity charge, inductive and capacitive reactive limits (20% and 15% by default), reactive energy charge, electricity consumption tax, VAT and the CO₂ emission factor. The bill estimate uses these values: active energy per period, distribution, capacity charge, the excess if contracted power was exceeded, the reactive charge if a ratio limit was exceeded, and taxes. A Cost center written on devices and zones splits consumption across departments such as production and utilities.
Events and alarms
An event is an alarm that comes when a condition is met. Each event creates an internal Bool tag (Olay.Talep_Asimi) and a locked digital alarm in HMI Alarms; the alarm log, acknowledgement and notifications come from the project’s alarm system. Preset events… adds demand excess and each device’s connection and limit events in one step. Delay and release times keep short transitions from raising alarms.
| Condition | When it comes |
|---|---|
| Demand excess forecast | When the forecast for the end of the 15-minute period passes the chosen percentage of contracted power, or the demand value passes the limit. |
| Device out of limits | When a device’s voltage, current, frequency or THD deviates from the nominal value. |
| Connection lost | When the connection of a device, or of a device in a zone, is lost. |
| Formula | While the formula result is not zero: [Kayip] > 150 && hour() >= 6.
|
A value can be written to a tag when the event comes and when it goes. Example: contracted power 1200 kW, limit 95%. When 1140 kW is forecast to be exceeded at the end of the period, the event comes, 1 is written to a load-shedding bit and the PLC switches off a deferrable load; when the forecast drops, 0 is written.
In Live
Live reads the devices defined in Studio and opens three windows from the system menu:
- Energy devices: a location tree, a front-panel drawing, grouped live values, limit colors, resets and device settings (Energy devices).
- Energy analysis: consumption by day, week, month, quarter and year, the split by tariff, cost, CO₂ and the bill estimate.
- Energy dashboard: live power flow from the incomer to the feeders, 15-minute demand and the end-of-month estimate (Energy analysis and dashboard).
Daily, weekly and monthly energy reports go out by e-mail; the XML service opens energy data to other software (Energy reports and XML). Recording, zone and formula calculations and events run in the main Live; browser viewers and the standby server take their values from the main Live.
License
Energy Management is a separate option license (FV-EMS), added next to the Live or Studio license. In Live it enables the energy windows (devices, analysis, dashboard), zones and calculated variables, energy events and the XML service. Device values are ordinary Modbus tags and count toward the tag license. Scheduled energy e-mail reports are performance reports and run with their own license (FV-PRF). In Studio, energy management can always be designed.
Frequently asked
Can a meter read with a driver other than Modbus be an energy device?
No. An energy device is read over Modbus TCP or Modbus RTU (over TCP or a serial port). The tags of a meter read with another driver can be used in the formulas of calculated variables.
How do religious holidays get into the tariff?
The dates of Ramadan and Eid al-Adha move every year. They are entered each year as special days in YYYY-MM-DD form; a separate day type is painted for the half-day eve.
Related pages
Energy devices
A 69-model analyzer catalog, many devices behind one gateway; in Live a front-panel view, values and settings.
LiveEnergy analysis and dashboard
Consumption by day, week, month and year split by tariff; cost, CO₂, bill estimate and a live dashboard.
LiveEnergy reports and XML
Daily, weekly and monthly energy reports by e-mail; an XML service for energy software.
ConnectivityModbus TCP
Reads and writes Modbus TCP devices by Modicon address, with unit ID and 32-bit byte order.