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}]}]}}
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
网站地图