Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamspin722 wrote: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
CRC in Sofar go Lo byte, Hi byte - not standard. Therefore, the bytes in the counted CRC must be changed by place.
dejanmarkovic28 wrote:Hello everyone,
I have a strange case with SOFAR 5KTLX-G3. When there is no production (sun sets) the inverter does not send information about consumption (probably goes to sleep). Is there a setting to disable this behavior?
Thanks!
lopr_pol wrote:dejanmarkovic28 wrote:Hello everyone,
I have a strange case with SOFAR 5KTLX-G3. When there is no production (sun sets) the inverter does not send information about consumption (probably goes to sleep). Is there a setting to disable this behavior?
Thanks!
Virtually every inverter takes power from DC, also after sunset it does not work and does not send any information.
Connecting to logger... connected successfully !
*** Chunk no: 0
Sent data: bytearray(b'\xa5\x17\x00\x10E\x00\x00\x0b\x8a\xd1\xa1\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x03\x00H\x00!\x05\xc4\x00\x15')
Received data: b'\xa5U\x00\x10\x15\x00\x8e\x0b\x8a\xd1\xa1\x02\x01\x80pw\x00y\x16\x00\x00\xd5\xd1Ed\x01\x03B\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x86\xf5\x1e\x15'
*** Chunk no: 1
Sent data: bytearray(b'\xa5\x17\x00\x10E\x00\x00\x0b\x8a\xd1\xa1\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x03\x00i\x00\x04\x94\x15\x00\x15')
Received data: b'\xa5\x1b\x00\x10\x15\x00\x8f\x0b\x8a\xd1\xa1\x02\x01\x80pw\x00y\x16\x00\x00\xd5\xd1Ed\x01\x03\x08\x00\x00\x00\x00\x00\x00\x00\x00\x95\xd7\x96\x15'
Traceback (most recent call last):
File "./InverterData.py", line 250, in
jsonoutput=json.loads(output)
File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
dejanmarkovic28 wrote:Hello everyone,
I have a strange case with SOFAR 5KTLX-G3. When there is no production (the sun is setting), the inverter does not send information about consumption (it probably goes to sleep). Is there a setting to disable this behavior?
Thanks!