我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
How to decode modbus Scattered Holding Register Read Function
Issue
Troubleshooting modbus TCP communication including scattered read function codes. The scattered holding register read function enables the user to avoid reading a large block of contiguous registers when only few registers are needed and avoid multiple use of functions 3 and 4 in order to read non-contiguous registers

Products
Schneider products that support modbus function code 100 (0x64).

Cause
Function code 100 is not a standard function code so any tools to assist troubleshooting communications will not be able to decode the Modbus request. A scattered read allows reading n non-contiguous registers, where n is between 2 and 100 registers.

Resolution
The data fields inside a modbus TCP client request packet that include a function code 100 are outlined below. The example will request register 29879 (0x74B7) and register 29893 (0x74C5) from modbus device with address 47 (0x2F).
Field nameExample
Modbus Device Address0x2F
Function code0x64
Data length in bytes0x06
Subfunction code0x04
Transmission number(*)0xXX
First register to read (MSB)0x74
First register to read (LSB)0xB7
Second register to read (MSB)0x74
Second register to read (LSB)0xC5
nth register to read (MSB)N/A
nth register to read (LSB)N/A
CRC (MSB)0xXX
CRC (LSB)0xXX


* note Modbus client will create transmission number, modbus server returns the same number in the reply

Scattered read reply example from modbus TCP device with address 47:

Field nameExample
Modbus Device Address0x2F
Function code0x64
Data length in bytes0xXX
Subfunction code0x04
Transmission number(*)0xXX
Value of first register to read (MSB)0xXX
value of first register to read (LSB)0xXX
Value of second register to read (MSB)0xXX
Value of second register to read (LSB)0xXX
nth register to read (MSB)0xXX
nth register to read (LSB)0xXX
CRC (MSB)0xXX
CRC (LSB)0xXX

施耐德電機Taiwan

探索更多
系列:
產品:
探索更多
系列:
產品:

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings