This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus SunSpec support
#1
Does the modbus implementation in LM support the SunSpec Modbus Profile? I have an SMA invertor for my solar panels that I would like to query using the modbus protocol the parameters in attachment.

   

regards,
Joost
Reply
#2
If the modbus bus is not proprietary the LM should be able to handle it.

You can try with this.
Code:
require('luamodbus')
mb = luamodbus.rtu()
mb:open('/dev/RS485', 19200, 'E', 8, 1, 'H') -- change with correct MB settings : speed, parity, stop bit, ...
mb:connect()

if mb ~= nil then
    value = mb:readregisters(40188) -- read AC current register
 log(value)

    mb:close()
end
Reply
#3
The correct address is probably not 40188, but either 187 or 188. You can check this quickly with RTU test. If you want to create a profile, then address_scale field should be used to tell where to read the scaling factor from.
Reply


Forum Jump: