Energy Storage Systems Guide
PCS & EMS

How to Configure an Energy Management System for Peak Shaving

Published 6 min read

A digital interface displaying power flow and battery state of charge.
Quick answer

To configure an energy management system for peak shaving, set clear demand limits, define the dispatch logic, and map the battery to the load profile. This process reduces utility bills and ensures the system operates within inverter and grid constraints.

Key takeaways
  • Define the peak shaving threshold before writing any dispatch rules.
  • Use the EMS to manage the state of charge to prevent hitting the lower bound during peak periods.
  • Verify the configuration using a test cycle before full commissioning.
  • Monitor for drift in dispatch logic as load patterns change over time.

Prerequisites: What Must Be in Place Before Configuration

Before opening the EMS software, confirm the hardware and data connections are stable. The system needs a reliable communication link between the power conversion system, the battery management system, and the utility meter. If the meter data is noisy or delayed, the EMS will make poor dispatch decisions.

Review the utility tariff structure. Identify the specific demand charge tier you want to avoid. This is the baseline. You also need the inverter nameplate ratings and the battery capacity. These numbers define the hard limits the software must respect.

Gather the load history for at least one year if possible. A single month of data often misses seasonal peaks. The EMS configuration relies on accurate load profiles to predict when the threshold will be crossed.

Step 1: Establish the Demand Limit Threshold

Set the target demand limit in the EMS. This number should be slightly below the highest historical demand on the utility bill. The reason for this margin is to account for measurement errors and unexpected load spikes. If you set the limit exactly at the historical peak, the system will constantly hover near the edge, reducing its ability to smooth out transient spikes.

For a commercial building with a peak demand of 500 kW, setting the threshold at 480 kW provides a safe operating zone. This gives the EMS room to dispatch the battery without triggering a demand alert.

Step 2: Define the Dispatch Logic

Configure when the battery discharges and when it charges. A simple strategy discharges the battery when the instantaneous load exceeds the threshold. A more advanced strategy uses a predicted load profile to start discharging slightly before the peak occurs.

The reason for predicted dispatch is to manage the state of charge. If you wait for the instantaneous load to cross the threshold, you may not have enough energy left to cover the entire peak window. Starting early preserves the reserve for the highest demand periods.

Set the dispatch rules clearly. For example:

  1. If load exceeds 480 kW for more than 60 seconds, discharge at 100% of available power.
  2. If load is below 450 kW, charge at the maximum inverter rate.
  3. If state of charge drops below 20%, stop discharging and hold state.

Step 3: Set State of Charge Constraints

Define the upper and lower limits for the battery state of charge. The lower limit is critical for peak shaving. If the battery discharges to 0%, it cannot help with the next peak event.

The reason for a higher lower limit is to ensure the battery has energy available for multiple peak periods within a billing cycle. For a system that sees three major peaks per day, a lower limit of 20% or 30% is often safer than 5% or 10%.

The upper limit depends on charging constraints. If the utility charges for energy, you may want to charge only during off-peak hours. The EMS must be programmed to respect these time windows.

Step 4: Map the Load Profile to the EMS

Upload the historical load data to the EMS. This creates a baseline model. The reason for this step is to validate the dispatch logic against real conditions.

Use the load profile to simulate a peak shaving cycle. Check if the battery discharges at the right time. Check if the state of charge remains above the lower limit. If the simulation shows the battery hitting 0% during a peak, adjust the lower limit or the dispatch timing.

This step prevents surprises during actual operation. A configuration that works on paper may fail in the field if the load profile is different from the historical data.

Step 5: Configure Grid Protection and Constraints

Program the EMS to respect grid codes and inverter limits. The power conversion system has a maximum current and a maximum power rating. The EMS must not command more power than the inverter can deliver.

The reason for this is hardware protection. Exceeding these limits can trip the inverter or damage the power electronics. The EMS should include a safety margin, such as 95% of the nameplate rating, to account for temperature derating.

Also configure any grid interconnection constraints. If the utility requires the system to operate at a specific power factor or to limit reactive power, set these parameters in the EMS.

Step 6: Implement Communication and Alarm Settings

Set up alarms for critical events. This includes low state of charge, high temperature, communication loss, and grid frequency deviations.

The reason for alarms is to provide early warning. If the battery temperature rises too high, the EMS should reduce the discharge rate or stop the system. If the communication link drops, the EMS should default to a safe state, such as holding the state of charge or discharging at a minimum rate.

Configure the communication protocol between the EMS and the power conversion system. Use a reliable standard such as Modbus or IEC 61850. The data rate must be high enough to make real-time dispatch decisions.

Step 7: Validate with a Test Cycle

Run a test cycle before connecting to the utility. This can be a simulated load or a small physical load. The reason for this test is to verify the dispatch logic in a controlled environment.

Check the following:

  • Does the battery discharge when the load exceeds the threshold?
  • Does the battery charge when the load is below the threshold?
  • Do the alarms trigger correctly?
  • Is the state of charge maintained within the defined limits?

If the test fails, adjust the configuration. Do not proceed to full commissioning until all tests pass.

Common Mistakes in EMS Configuration

  1. Setting the demand limit too high. This reduces the effectiveness of peak shaving and leaves the system exposed to demand charges.
  2. Ignoring the state of charge lower limit. The battery may run out of energy before the peak ends, forcing the load back to the grid.
  3. Failing to account for inverter derating. High temperatures reduce the inverter’s capacity, which can cause the EMS to command more power than the hardware can deliver.
  4. Not updating the load profile. Load patterns change as tenants move in or out, or as equipment is added. A stale load profile leads to poor dispatch decisions.
  5. Overlooking communication delays. If the meter data is delayed by even a few seconds, the EMS may dispatch the battery too late to prevent a demand spike.

Final Verification: Confirming the Setup

After commissioning, monitor the system for several billing cycles. Compare the actual demand with the historical baseline. The goal is a measurable reduction in the demand charge.

Check the state of charge at the start and end of each day. If the battery is not returning to a usable state of charge, the charging logic needs adjustment.

Review the alarm logs. Frequent alarms indicate a configuration issue or a hardware problem. Address these promptly to maintain system reliability.

The EMS is not a set-and-forget system. It requires periodic review and adjustment. The load profile changes, and the utility tariff may change. Keep the configuration current to maintain the benefits of peak shaving.

Table: EMS Configuration Parameters for Peak Shaving

Parameter Typical Setting Reason
Demand Threshold 95-98% of historical peak Prevents demand charges while leaving margin for errors
Lower SOC Limit 20-30% Ensures energy availability for multiple peaks
Upper SOC Limit 90-95% Prevents overcharging and extends battery life
Dispatch Delay 0-5 seconds Allows time for data validation before action
Inverter Power Limit 95% of nameplate rating Accounts for temperature derating and safety

The energy management system is the brain of the storage system. It turns raw battery capacity into a financial tool. By following these steps, operators and integrators can configure a reliable system that reduces demand charges and extends the life of the hardware.

Frequently asked questions

What is the difference between peak shaving and load shifting?

Peak shaving reduces the maximum power drawn from the grid during high-demand periods. Load shifting moves energy consumption from expensive times to cheaper times. Peak shaving focuses on the demand charge, while load shifting focuses on the energy cost.

How often should I review the EMS configuration?

Review the configuration at least quarterly. Update the load profile annually. Check the state of charge limits and dispatch logic after any major changes in the facility, such as new equipment or tenant changes.

Can the EMS handle multiple peak events in a single day?

Yes, provided the state of charge lower limit is set high enough. The system must have enough energy stored to cover all expected peaks without hitting the lower limit.

What happens if the communication link fails during a peak?

The EMS should default to a safe state. This is usually holding the state of charge or discharging at a minimum rate. The power conversion system will continue to operate, but without the optimized dispatch logic.

Is a test cycle necessary before full commissioning?

Yes, it is necessary. A test cycle verifies that the dispatch logic, alarms, and communication are working correctly. It prevents unexpected behavior during actual operation and protects the hardware.