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 Mapping
#5
(24.07.2020, 13:28)Daniel. Wrote: Try via script then
Code:
require('luamodbus')
mb = luamodbus.tcp()
mb:open('192.168.0.1', 502)
mb:connect()

mb:setslave(1)

-- read from address 1000
value = mb:readregisters(1000)
log(value)

Daniel,

thank you very much, variant int16/uint16 working as needed.

Alex
Reply


Messages In This Thread
Modbus Mapping - by AlexLV - 24.07.2020, 12:23
RE: Modbus Mapping - by Daniel - 24.07.2020, 13:12
RE: Modbus Mapping - by AlexLV - 24.07.2020, 13:17
RE: Modbus Mapping - by Daniel - 24.07.2020, 13:28
RE: Modbus Mapping - by AlexLV - 24.07.2020, 14:49

Forum Jump: