<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Modbus on LeafCxy's Blog</title><link>https://leafcxy.github.io/tags/modbus/</link><description>Recent content in Modbus on LeafCxy's Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 10 Nov 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://leafcxy.github.io/tags/modbus/index.xml" rel="self" type="application/rss+xml"/><item><title>Modbus TCP 报文逐字节解析：功能码、32 位寄存器字节序与变量溢出</title><link>https://leafcxy.github.io/posts/2026/11/modbus-tcp-frame-byte-order/</link><pubDate>Tue, 10 Nov 2026 10:00:00 +0800</pubDate><guid>https://leafcxy.github.io/posts/2026/11/modbus-tcp-frame-byte-order/</guid><description>&lt;p&gt;现场调试 PLC 时，最容易被三件事绊住：一条抓包报文该怎么读、同一个地址为什么调试助手读到 27904 而 PLC 画面显示 365、以及计时变量跑到最大值之后会发生什么。这篇把一次真实联调里的这三个疑问一次性讲清楚，所有结论都能用报文逐字节验证。&lt;/p&gt;
&lt;h2 id="一起点一条-03-功能码报文"&gt;一、起点：一条 03 功能码报文&lt;/h2&gt;
&lt;p&gt;Modbus Master 抓到的收发各一帧（从站 1 号，读起始地址 0 起的 10 个保持寄存器）：&lt;/p&gt;</description></item></channel></rss>