打印

MOBBUS 协议问题 请教

[复制链接]
1993|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
machunshui|  楼主 | 2009-3-26 09:18 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
06 (0x06) Write Single Register,其协议状态图要求:

Register Value大于等于0,小于等于0xffff,

不符合要求返回03错误代码.

但是主站发过来的数据是2 Bytes值,

无论如何总是0-0xffff,

怎么也不可能返回03错误代码啊?

相关帖子

沙发
twz8858877| | 2009-3-26 09:31 | 只看该作者

re

不符合要求指的是写入数据不符合控制逻辑要求

使用特权

评论回复
板凳
machunshui|  楼主 | 2009-3-26 09:53 | 只看该作者

是指数据值不符合用户的逻辑控制要求?

是指数据值不符合用户的逻辑控制要求?

但是英文原版的协议状态图要求是0-0xffff,没有其他特别说明,

看来只能这么理解了.

使用特权

评论回复
地板
twz8858877| | 2009-3-26 10:35 | 只看该作者

RE

06 Preset Single Register
Description
Presets a value into a single holding register (4X reference). When broadcast, the
function presets the same register reference in all attached slaves.
Note The function will override the controller’s memory protect state.
The preset value will remain valid in the register until the controller’s
logic next solves the register contents. The register’s value will remain
if it is not programmed in the controller’s logic.

使用特权

评论回复
5
machunshui|  楼主 | 2009-3-26 11:13 | 只看该作者

看来我看得不是英文原始版协议

我看的叫:

MODBUS Application Protocol Specification

还以为是原版呢,汗...

向来原版也不会描述的如此简要.

谢谢4楼

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

153

主题

3224

帖子

4

粉丝