当前位置:网站首页>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 寄存器单词请求的长度
边栏推荐
- 你需要知道的 TCP 三次握手
- 关于es8316的音频爆破音的解决
- Oracle query table index, unique constraint, field
- Vite configures the development environment and production environment
- Zynq learning notes (3) - partial reconfiguration
- Pagoda configuration mongodb
- Hyperledger Fabric2. Some basic concepts of X (1)
- Mysql高级篇学习总结9:创建索引、删除索引、降序索引、隐藏索引
- Crazy God said redis notes
- 关于imx8mp的es8316的芯片调试
猜你喜欢

MPLS experiment

Orm-f & Q object

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

Postman断言

Review of double pointer problems

Bill Gates posted his 18-year-old resume and expected an annual salary of $12000 48 years ago

Codeforces Round #804 (Div. 2)

Ora-01779: the column corresponding to the non key value saving table cannot be modified

Crazy God said redis notes

nacos-高可用seata之TC搭建(02)
随机推荐
Weng Kai C language third week 3.1 punch in
Nacos TC setup of highly available Seata (02)
Leetcode dynamic planning day 16
Compilation et connexion de shader dans games202 - webgl (comprendre la direction)
[FreeRTOS interrupt experiment]
几种RS485隔离通讯的方案介绍
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
The video in win10 computer system does not display thumbnails
RTP GB28181 文件测试工具
idea一键导包
Summary of three log knowledge points of MySQL
RTP gb28181 document testing tool
Embedded development program framework
ByteDance program yuan teaches you how to brush algorithm questions: I'm not afraid of the interviewer tearing the code
F12 solve the problem that web pages cannot be copied
EditorUtility.SetDirty在Untiy中的作用以及应用
Flink kakfa data read and write to Hudi
Application of Flody
SQL injection vulnerability (MSSQL injection)
Redis 排查大 key 的4种方法,优化必备