MaxComm is the communication protocol of SolarMax photovoltaic inverters and of the MaxMeteo and MaxCount accessories. The Weble IoT Universal Gateway MaxComm driver reads the measurements of these devices (power, energy, voltages, currents, temperatures) over RS-485 or TCP, and writes the settings that the model accepts, such as power limitation.
Driver key:
maxcomm— listed as MaxComm under Building Automation in Gateway driver. Licence: required, contact support@weble.ch. Platforms: Linux and Windows.
9000) of the inverter or of its Ethernet interface.RS485 and select the Serial Port, or Type = TCP and enter Host and Port.3000 ms.1. The address is %maxcomm:1.%maxcomm:1/PAC, %maxcomm:1/KDY…) and the Value column updates continuously.
Name, Cluster ID and Description are common to all drivers: see Gateways.
| Label | JSON key | Default | Description |
|---|---|---|---|
| Type | json.type |
RS485 |
RS485: serial bus. TCP: network connection. The form shows the fields of the selected type. |
| Serial Port | json.serialPort |
(empty) | RS485. Serial port or USB adapter. |
| BaudRate | json.baudRate |
19200 |
RS485. Line speed: 9600, 19200, 38400, 57600 or 115200. |
| DataBit | json.dataBits |
8 |
RS485. Data bits: 5 to 8. |
| Stopbit | json.stopBit |
1 |
RS485. Stop bits: 1 or 2. |
| (JSON only) | json.parity |
none |
RS485. Parity: none, even, odd or space. |
| Host | json.host |
(empty) | TCP. IP address or host name of the inverter or its interface. |
| Port | json.port |
9000 |
TCP. Port of the inverter or its interface. |
| Maximum timeout | json.maxTimeout |
3000 |
Time to wait for the answer to one request, in ms. Always set a value. |
Saving the gateway restarts the driver.
{
"type": "RS485",
"serialPort": "/dev/ttyUSB0",
"baudRate": 19200,
"dataBits": 8,
"stopBit": 1,
"parity": "none",
"maxTimeout": 3000
}
%maxcomm:<id>[/<key>]
| Part | Meaning | Values |
|---|---|---|
<id> |
Device address of the inverter or accessory | number |
<key> |
Property of the device, created by the driver | see 4.3 |
Examples:
%maxcomm:1 — device 1; its value is { "id": 1, "TYP": <model code> } and its description the model name (for example SolarMax 15MT2).%maxcomm:1/PAC — AC output power of device 1, W.%maxcomm:1/PLR — power limitation of device 1, %.| Label | JSON key | Default | Description |
|---|---|---|---|
| MaxComm ID | name |
Device address, after the %maxcomm: prefix. You create only the device address. |
|
| Description | description |
model name | Free text. |
| Log | log |
never | Logging policy, see Log and Store value policies. |
The sub-addresses also carry the decoding rule (json.dataType), the unit (json.unit) and whether they can be written (json.writable). The driver sets these fields at each read.
| Property | Value |
|---|---|
| Readable | Yes — read continuously |
| Writable | The properties that the model accepts (see 4.2) |
| Created automatically | Yes — sub-addresses, after the first read of the device |
| Routable | Yes |
| Loggable | Yes |
The driver reads the devices one after the other in a continuous loop, with 100 ms between two devices. For each device it reads the model (TYP), then all the properties, five per request. There is no polling setting: the refresh time depends on the number of devices and on the line speed.
Deleting a device address also deletes all its sub-addresses.
The properties marked writable (json.writable) can be written from a route, the logic module or the address table. Which properties are writable depends on the model:
| Key | Description | Unit |
|---|---|---|
PLR |
Power management (power limitation) | % |
DPR |
Desired relative active power | ppm |
DQR |
Desired relative reactive power | sppm |
DPH |
Desired phase angle φ | µrad |
RCA |
Remote control action | index |
PIN |
Installed capacity (SolarMax) | W |
THR, TMI, DYR, DMT, DDY |
Clock of older devices: hour, minute, year, month, day |
After each write, the driver reads the property again, so the address shows the value accepted by the device.
Power limitation and reactive power settings act on the grid feed-in of the plant. Apply the values required by the grid operator and agree them with the installer of the plant.
| Key | Description | Unit |
|---|---|---|
PAC |
AC output power | W |
PRL |
Relative output | % |
KDY |
Energy today | kWh |
KMT |
Energy this month | kWh |
KYR |
Energy this year | kWh |
KT0 |
Total energy | kWh |
KHR |
Operating hours | |
UDC / IDC |
DC voltage / current | V / A |
UL1, UL2, UL3 |
Phase voltages | V |
IL1, IL2, IL3 |
Phase currents | A |
TKK, TK2, TK3 |
Power unit temperatures | °C |
TNP |
Mains cycle duration | µs |
SWV |
Software version | |
RAD, TSZ |
Solar radiation, solar cell temperature (MaxMeteo) | W/m², °C |
I1P, I1D, I1T |
Pulse counter 1: power, day, total (MaxCount) | W, kWh |
Each sub-address has its description in the address table. A property that the device does not support has the status ! invalid property.
Create %maxcomm:1, %maxcomm:2 and %maxcomm:3 for three inverters. Log /PAC with on_update and /KT0 every 15 minutes, and add the PAC values together in a route function to show the total power of the plant on a dashboard.
Route the limitation set point of the grid operator (for example from a Modbus or IEC 104 signal) to %maxcomm:<id>/PLR of each inverter.
| Symptom | Cause | What to do |
|---|---|---|
Gateway restarts in a loop; log missing license |
No licence for the driver. | Add the licence in Gateways › License manager. |
Gateway restarts in a loop; log unable to resolve serial port |
The serial port or USB adapter is not found. | Check Serial Port and the adapter. |
Log maxTimeout not configured |
Maximum timeout is empty. | Set 3000. |
Device address ! timeout; log device <id> not responding (timeout reading TYP), will retry |
Wrong device address, line settings or wiring, or device switched off. | Check the address on the device, the baud rate, the A/B wiring. The driver logs device <id> recovered when it answers again. |
Sub-address ! invalid property |
The property does not exist on this model. | Ignore it, or delete the sub-address. |
| Write fails | The property is not writable on this model, or the value is refused. | Check json.writable of the sub-address. |
To read the driver log: open the gateway log (see Gateways).
Keep this gateway on Cluster ID
0: the driver restarts its process when the serial port or the TCP connection fails, which would restart every gateway of a shared cluster.