Hi,
I have a SolarEdge inverter which supports Modbus.
The Modbus data can be found here: https://www.solaredge.com/sites/default/...l-note.pdf
Before starting to assemble a profile for this, I wanted to check if I could connect to the device and do a simple operation.
I use a script that admin provided in another thread:
This is the result I get:
I took some random address from the manual but no matter what addres I use, I get the same result.
I tried with both 40082 and 82 and also other combinations.
I also tried the script without the mb.setslave() statement; same resul
I can telnet to the device and it opens a connection but I have no idea what I could enter next to get some sort of response.
Am I overlooking something here?
I have a SolarEdge inverter which supports Modbus.
The Modbus data can be found here: https://www.solaredge.com/sites/default/...l-note.pdf
Before starting to assemble a profile for this, I wanted to check if I could connect to the device and do a simple operation.
I use a script that admin provided in another thread:
Code:
require('luamodbus')
mb = luamodbus.tcp()
mb:open('192.168.0.45', 1502)
res, err = mb:connect()
if res then
log("connected!")
mb:setslave()
r1,r2 = mb:readregisters(40082)
log(r1,r2)
else
log('connect failed', err)
end
mb:close()
This is the result I get:
Code:
testing 11.02.2020 14:31:01
* arg: 1
* nil
* arg: 2
* string: Operation timed out
testing 11.02.2020 14:31:01
* string: connected!
I took some random address from the manual but no matter what addres I use, I get the same result.
I tried with both 40082 and 82 and also other combinations.
I also tried the script without the mb.setslave() statement; same resul
I can telnet to the device and it opens a connection but I have no idea what I could enter next to get some sort of response.
Am I overlooking something here?