Logic Machine Forum
Modbus uint32 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Modbus uint32 (/showthread.php?tid=3741)



Modbus uint32 - tomnord - 13.12.2021

Hello. When reading a HoldingReg with datatype uint32 from "readtest" I get this respond as attached image. But when integratin via JSON and datatype "12" I get a large number.. tried different datatypes, with no change.. any ideas what to try?


RE: Modbus uint32 - Daniel - 13.12.2021

did you set "datatype": "uint32" ?


RE: Modbus uint32 - tomnord - 13.12.2021

(13.12.2021, 12:53)Daniel Wrote: did you set  "datatype": "uint32" ?

yes.

{"bus_datatype":"uint32","bus_address":"4/2/12","address":43418,"value_nan":[65472,0],"type":"register","read_count": 1,"value_multiplier":1,"units":"h","name":"15EP_OP","datatype":"uint32"},

{"bus_datatype":"uint32","bus_address":"4/2/6","address":43420,"value_nan":[65472,0],"type":"register","read_count": 1,"value_multiplier":1,"units":"h","name":"14EP_OP","datatype":"uint32"},


RE: Modbus uint32 - Daniel - 13.12.2021

Remove read_count": 1


RE: Modbus uint32 - tomnord - 13.12.2021

(13.12.2021, 13:14)Daniel Wrote: Remove read_count": 1

still same result..


RE: Modbus uint32 - Daniel - 13.12.2021

Are you sure that address is correct? "address":43418, in the image it is 3418