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 TCP return value 2
#1
I have a strange modbus problem when I try to control an Alpitronic Hypercharger.
Holding Register 1600 and 1601 containing an unit32 value which can be written via my PC (QModMaster) but when I try to write it with a script:

require('luamodbus')
local mb = luamodbus.tcp()
mb:open("192.168.80.219", 502)
mbConfusedetslave(255)
mb:connect()
log(mb:writeregistervalue(1600, 50000, "uint32"))
mb:close()


The charger ignors the command and in the script log I get a 2 as return value.
On working communication I get a 1 back.

What's the meaning of 2? I can't find any documentation.

I also tried mb:writeregisters(1600, 0, 50000) and writemultibleregisters, no difference.

Thank's
Christian
Reply


Messages In This Thread
Modbus TCP return value 2 - by Christian_EWW - 24.11.2020, 13:48
RE: Modbus TCP return value 2 - by admin - 24.11.2020, 13:53
RE: Modbus TCP return value 2 - by admin - 30.11.2020, 11:26

Forum Jump: