25.07.2018, 06:59
You should really use a profile here
You have an issue with multiplier, there should be a dot separator instead of comma:
There's an optional third argument for readregistervalue - word/byte swap. Default value is w. More info here: http://openrb.com/docs/modbus.htm
You have an issue with multiplier, there should be a dot separator instead of comma:
Code:
grp.update('32/2/1', res101*0.01)
There's an optional third argument for readregistervalue - word/byte swap. Default value is w. More info here: http://openrb.com/docs/modbus.htm
Code:
res103 = mb:readregistervalue(3, "uint32", "n")