Modbus TCP, as usual, will use port 502. Therefore, packets will not go through port 8899 to the inverter. But better check it out.
I set the SOFAR 60000TL inverter power via RS485 port, Modbus RTU protocol. I hope this will be important for other SofarSolar inverters. For example, you need to set the power to 57%. Therefore, you send to port 01 06 90 00 39 D9 77 (hex meaning).
Here 01 - ID (Modbus address) of the inverter 06 - function number 90 00 - starting register 00 39 - power meaning (57 dec = 39 hex) Power unit here 1%. 100% corresponds to 64 hex D9 77 - CRC (check sum)
You can submit a different package for yourself, CRC can be counted online https://www.lammertbies.nl/comm/info/crc-calculation![Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90] Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90]](https://obrazki.elektroda.pl/7582108400_1659702875_thumb.jpg)
CRC in Sofar go Lo byte, Hi byte - not standard. Therefore, the bytes in the counted CRC must be changed by place.
I set the SOFAR 60000TL inverter power via RS485 port, Modbus RTU protocol. I hope this will be important for other SofarSolar inverters. For example, you need to set the power to 57%. Therefore, you send to port 01 06 90 00 39 D9 77 (hex meaning).
Here 01 - ID (Modbus address) of the inverter 06 - function number 90 00 - starting register 00 39 - power meaning (57 dec = 39 hex) Power unit here 1%. 100% corresponds to 64 hex D9 77 - CRC (check sum)
You can submit a different package for yourself, CRC can be counted online https://www.lammertbies.nl/comm/info/crc-calculation
![Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90] Sofar Solar KTL-X Inverter: RS485 MODBUS Integration with Domoticz - Setup & Tips [90]](https://obrazki.elektroda.pl/7582108400_1659702875_thumb.jpg)
CRC in Sofar go Lo byte, Hi byte - not standard. Therefore, the bytes in the counted CRC must be changed by place.