当前位置:网站首页>Modbus protocol communication exception
Modbus protocol communication exception
2022-07-02 17:47:00 【51CTO】
Table of Contents
One 、Modbus Protocol communication exception
- Address range
- Slave address :1-247: Valid address range 0: radio broadcast
- Data exception ( The data cannot be parsed normally )
- Large and small end storage problems
- Principle of exception handling ( Abnormal response )
The slave will reply clearly
Function code high position 1
Pictured :
Meaning of abnormal information
Code name meaning 01 Illegal function For servers ( Or slave station ) Come on , The function code received in the inquiry is not allowed . This may be because the function code is only applicable to new equipment and is not realizable in the selected unit . meanwhile , Also point out the server ( Or slave station ) Handle this request in an error state , for example : Because it is not configured , And request to return the register value . 02 Illegal data address For servers ( Or slave station ) Come on , The data address received in the inquiry is not allowed . especially , The combination of reference number and transmission length is invalid . For with 100 For a register controller , With offset 96 And length 4 Your request will succeed , With offset 96 And length 5 The request of will generate an exception code 02. 03 Illegal data value For servers ( Or slave station ) Come on , The value included in the query is not allowed . This value indicates the failure in the remaining structure of the combined request , for example : The implied length is incorrect . It doesn't mean that , because MODBUS The protocol does not know the significance of any special value of any special register , The data item submitted for storage in the register has a value beyond the expectation of the application . 04 Slave station equipment failure When the server ( Or slave station ) Trying to perform the requested operation , Produce errors that cannot be retrieved . 05 confirm Used with programming commands . The server ( Or slave station ) Request accepted , And cut is processing this request , But it takes a long time to do these operations . Return this response to prevent in the client ( Or master station ) Timeout error occurred in . The client ( Or master station ) You can continue to send the polling program completion message to determine whether the processing is completed . 06 Slave device busy Used with programming commands . The server ( Or slave station ) Processing long duration program commands . Zhang server ( Or slave station ) Idle , user ( Or master station ) The message should be retransmitted later . 08 Store parity errors And function code 20 and 21 And reference type 6 Use it together , Indicates that the extended file area cannot pass the consistency check . The server ( Or slave station ) Try to read the record file , But a parity error was found in the memory . The client ( Or the main party ) Can resend request , But it can be on the server ( Or slave station ) Service required on the equipment . 0A Unavailable gateway path Use with gateway , Indicates that the gateway cannot assign an internal communication path from the input port to the output port for processing requests . It usually means that the gateway is misconfigured or overloaded . 0B Gateway target device response failed Use with gateway , Indicates that no response was received from the target device . It usually means that the device is not in the network .
- The request frequency is abnormal
- RTU Message request interval 3.5 Character time 1.5 Character time
- Message length limit
- 0x07D0 Single request length of coil
- 0x007D Length of register word request
边栏推荐
- After meeting a full stack developer from Tencent, I saw what it means to be proficient in MySQL tuning
- 义隆EM78P153K DIP14单片机 MCU
- Modbus协议通信异常
- Si446 usage record (II): generate header files using wds3
- Meanings of SNAT, DNAT and masquerade in iptables
- 蓝牙技术|物联网的可穿戴设备新工作模式,蓝牙BLE助力新工作模式
- 松翰SN8P2511 SOP8单片机 可代烧录 提供单片机方案开发 单片机解密
- SSB threshold_ SSB modulation "suggestions collection"
- USB interface powered Bluetooth color light strip controller
- pytorch支持32位吗?
猜你喜欢

About me

Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer

【网络是怎么连接的】第四章 探索接入网和网络运营商
![[how is the network connected] Chapter 6 requests arrive at the server and respond to the client (end)](/img/ef/1ac272dbd0e5c4d08a8f01f61d334d.png)
[how is the network connected] Chapter 6 requests arrive at the server and respond to the client (end)

Example nonlinear integer programming

Microservice architecture practice: Construction of scalable distributed database cluster

After meeting a full stack developer from Tencent, I saw what it means to be proficient in MySQL tuning

售价仅40元,树莓派Pico开发板加入WiFi模块,刚上市就脱销

The construction of scalable distributed database cluster and the partition design of oneproxy sub database

每日一题——“水仙花数”
随机推荐
Virtual lab basic experiment tutorial -7 Polarization (1)
每日一题——倒置字符串
链表求和[dummy+尾插法+函数处理链表引用常见坑位]
Daily question - inverted string
如何给 SAP Spartacus Storefront 创建新的页面
POJ - 1458 Common Subsequence(最长公共子序列)
The difference of message mechanism between MFC and QT
HDU - 1114 Piggy Bank (full backpack)
From collection to output: inventory those powerful knowledge management tools - inventory of excellent note taking software (4)
Many scenic spots are temporarily closed due to the typhoon. The provincial culture and tourism department reminds you to pay attention to safety!
原装应广单片机 MCU芯片PMS152 SOP8封装 单片机开发
[target tracking] |siamfc
Platform management background and merchant menu resource management: merchant role management design
Alibaba Tianchi SQL learning notes - Day3
应广单片机003烧录器自定义封装使用技巧
Five reasons to choose SAP Spartacus as the implementation framework of SAP commerce cloud storefront
OpenHarmony如何启动FA(本地和远程)
Are you holding back on the publicity of the salary system for it posts such as testing, development, operation and maintenance?
一日2篇Nature!中科大校友段镶锋团队纳米材料新成果,曾是贝尔比奖章第三位华人得主...
Solution to the problem that the easycvr kernel of intelligent video analysis platform cannot be started as a service