当前位置:网站首页>Modbus协议通信异常
Modbus协议通信异常
2022-07-06 05:02:00 【@@Mr.Fu】
文章目录
一、Modbus协议通信异常
- 地址范围
- 从站地址:1-247:有效的地址范围 0:广播
- 数据异常(数据无法正常解析)
- 大小端存储问题
- 异常处理原理(响应异常)
由从机明确回复
功能码高位置 1
如图:异常信息含义
代码 名称 含义 01 非法功能 对于服务器(或从站)来说,询问中接收到的功能码是不可允许的操作。这也许是因为功能码仅仅适用于新设备而在被选单元中是不可实现的。同时,还指出服务器(或从站)在错误状态中处理这种请求,例如:因为它是未配置的,并且要求返回寄存器值。 02 非法数据地址 对于服务器(或从站)来说,询问中接收到的数据地址是不可允许的地址。特别是,参考号和传输长度的组合是无效的。对于带有100 个寄存器的控制器来说,带有偏移量96 和长度4的请求会成功,带有偏移量96和长度5的请求将产生异常码02。 03 非法数据值 对于服务器(或从站)来说,询问中包括的值是不可允许的值。这个值指示了组合请求剩余结构中的故障,例如:隐含长度是不正确的。并不意味着,因为MODBUS 协议不知道任何特殊寄存器的任何特殊值的重要意义,寄存器中被提交存储的数据项有一个应用程序期望之外的值。 04 从站设备故障 当服务器(或从站)正在设法执行请求的操作时,产生不可重新获得的差错。 05 确认 与编程命令一起使用。服务器(或从站)已经接受请求,并切正在处理这个请求,但是需要长的持续时间进行这些操作。返回这个响应防止在客户机(或主站)中发生超时错误。客户机(或主站)可以继续发送轮询程序完成报文来确定是否完成处理。 06 从属设备忙 与编程命令一起使用。服务器(或从站)正在处理长持续时间的程序命令。张服务器(或从站)空闲时,用户(或主站)应该稍后重新传输报文。 08 存储奇偶性差错 与功能码20和21 以及参考类型6一起使用,指示扩展文件区不能通过一致性校验。服务器(或从站)设法读取记录文件,但是在存储器中发现一个奇偶校验错误。客户机(或主方)可以重新发送请求,但可以在服务器(或从站)设备上要求服务。 0A 不可用网关路径 与网关一起使用,指示网关不能为处理请求分配输入端口至输出端口的内部通信路径。通常意味着网关是错误配置的或过载的。 0B 网关目标设备响应失败 与网关一起使用,指示没有从目标设备中获得响应。通常意味着设备未在网络中。
- 请求频率异常
- RTU报文请求间隔 3.5个字符时间 1.5个字符时间
- 报文长度限制
- 0x07D0 线圈的单次请求长度
- 0x007D 寄存器单词请求的长度
边栏推荐
- Flody的应用
- IPv6 comprehensive experiment
- Imperial cms7.5 imitation "D9 download station" software application download website source code
- 集合详解之 Collection + 面试题
- 几种RS485隔离通讯的方案介绍
- Weng Kai C language third week 3.1 punch in
- Quatre méthodes de redis pour dépanner les grandes clés sont nécessaires pour optimiser
- The IPO of mesk Electronics was terminated: Henan assets, which was once intended to raise 800 million yuan, was a shareholder
- Postman test report
- Compilation and connection of shader in games202 webgl (learn from)
猜你喜欢
浅谈镜头滤镜的类型及作用
ByteDance program yuan teaches you how to brush algorithm questions: I'm not afraid of the interviewer tearing the code
Class inheritance in yyds dry inventory C
Postman manage test cases
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Embedded development program framework
Fuzzy -- basic application method of AFL
Golang -- TCP implements concurrency (server and client)
The IPO of mesk Electronics was terminated: Henan assets, which was once intended to raise 800 million yuan, was a shareholder
图论的扩展
随机推荐
比尔·盖茨晒18岁个人简历,48年前期望年薪1.2万美元
驱动开发——第一个HelloDDK
关于es8316的音频爆破音的解决
Postman断言
[noip2008 improvement group] stupid monkey
ISP learning (2)
Summary of three log knowledge points of MySQL
Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected
Supreme Court, judgment standard of divorce cases
Weng Kai C language third week 3.1 punch in
Some common skills on unity inspector are generally used for editor extension or others
Simple understanding of interpreters and compilers
Postman测试报告
IPv6 comprehensive experiment
The IPO of mesk Electronics was terminated: Henan assets, which was once intended to raise 800 million yuan, was a shareholder
Imperial cms7.5 imitation "D9 download station" software application download website source code
What should the project manager do if there is something wrong with team collaboration?
Fuzzy -- basic application method of AFL
Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
Selection sort