Monitors SolarEdge inverter, grid meter, and battery data via Modbus TCP.
Overview
This template connects a SolarEdge inverter to ModbusCloud via Modbus TCP. It reads DC power, AC power, exported and imported energy, and battery state of energy for up to two batteries. A connected grid meter is also supported.
Key readings
DC Power (RAW + SF)
AC Power (RAW + SF)
Exported Energy
Imported Energy
Battery 1/2 State of Energy
Battery 1/2 Instantaneous Power
Use cases
Monitor real-time DC and AC power production from a SolarEdge inverter on a live cloud dashboard.
Track exported and imported energy over time to verify grid feed-in and consumption patterns.
Create an alert when battery state of energy drops below a defined threshold during peak hours.
Generate monthly energy reports for residential or commercial PV customers showing production and self-consumption.
Compare instantaneous power of two batteries to detect imbalanced charge or discharge behaviour.
Verify grid meter readings remotely to support billing reconciliation or feed-in tariff compliance.
Installation
1Enable Modbus TCP on the SolarEdge inverter via its SetApp or LCD menu, and note the IP address assigned on the local network.
2Ensure the Modbus TCP port (default 1502 on SolarEdge) is accessible from the ModbusCloud gateway on the same LAN or VLAN.
3Connect your MCG or MLP series gateway to the local network and power it on.
4In the ModbusCloud portal, add a new device and select the SolarEdge Inverter template from the library.
5Enter the inverter IP address and Modbus TCP port in the gateway configuration, then confirm the unit ID matches the inverter setting.
6After importing the template, set up formula blocks to convert RAW and SF register pairs into proper floating point values as described in the template notes.
Things to watch for
01
Why do my DC power or AC power readings look incorrect or extremely large?
These values are provided as a raw integer plus a separate scaling factor register. You must apply a formula that calculates RAW multiplied by 10 to the power of SF. Without this conversion the readings will be meaningless raw integers.
02
What TCP port does SolarEdge use for Modbus?
SolarEdge inverters typically use port 1502 for Modbus TCP, not the standard port 502. Verify this in the inverter network settings via SetApp or the LCD configuration menu.
03
The grid meter AC power scaling factor returns unexpected values. What should I check?
Ensure you are using template version 3.0.2 or later. Earlier versions defined M_AC_Power_SF as an unsigned 16-bit integer instead of a signed 16-bit integer, which caused incorrect scaling.
04
Can I read two batteries even if only one is installed?
Yes, but the registers for the second battery will return zero or default values. You can safely ignore battery 2 data points in your dashboard if only one battery is connected.
Registers (12)
12 read / 0 write
Name
Address
Function
Type
Unit
Access
I_DC_Power_RAW
DC Power Raw
40100
FC03
int16
W
R
I_DC_Power_SF
DC Power Scaling Factor
40101
FC03
int16
x
R
I_Status
Inverter Status
40107
FC03
uint16
R
M_AC_Power_RAW
Grid Power Raw
40206
FC03
int16
W
R
M_AC_Power_SF
Grid Power Scaling Factor
40210
FC03
int16
R
M_Exported_Energy_RAW
Grid Exported Energy Raw
40226
FC03
uint32
Wh
R
M_Imported_Energy_RAW
Grid Imported Energy Raw
40234
FC03
uint32
Wh
R
M_Energy_SF
Grid Energy Scaling Factor
40242
FC03
int16
R
B1_State_of_Energy
Battery 1 Storage Level
57732
FC03
float32
%
R
B1_Instantaneous_Power
Battery 1 Power
57716
FC03
float32
kW
R
B2_State_of_Energy
Battery 2 Storage Level
57972
FC03
float32
%
R
B2_Instantaneus_Power
Battery 2 Power
57988
FC03
float32
kW
R
Working with Modbus in your projects?
ModbusCloud is the hardware-plus-software platform that installers use to monitor, visualise and control Modbus devices from one portal. This template is one of hundreds you can use right away.