tb-威尼斯人最新

awei · 2021年03月02日 · 最後由 於 2022年08月19日回覆 · 341 次閱讀

使用规则节点发送数据无论发什么格式 (不知道什么格式正确) modbus slave 收到的都是 ff 发送的格式

{method:"setvalue",params:[0]}

modbus.json 内容如下

{"server":{"name":"modbus test server","type":"tcp","host":"10.211.55.3","port":502,"timeout":35,"method":"socket","devices":[{"unitid":1,"devicename":"th_sensor","attributespollperiod":5000,"timeseriespollperiod":5000,"senddataonlyonchange":false,"attributes":[{"byteorder":"big","tag":"batterylevel","type":"long","functioncode":4,"registercount":1,"address":2},{"byteorder":"big","tag":"switchstatus","type":"bits","functioncode":1,"registercount":1,"address":3}],"timeseries":[{"byteorder":"big","tag":"humidity","type":"long","functioncode":4,"registercount":1,"address":1},{"byteorder":"big","tag":"temperature","type":"long","functioncode":3,"registercount":1,"address":0}],"rpc":[{"tag":"resettemperature","type":"16int","functioncode":6,"objectscount":1,"address":0},{"tag":"setvalue","type":"bits","functioncode":5,"objectscount":1,"address":3}]}]}}
暫無回覆。
需要 登錄 後方可回應,如果你還沒有帳號按這裡 註冊
网站地图