Nhãn hiệu của chúng tôi

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

Chào mừng bạn đến với Trang web của Schneider Electric

Chào mừng đến với trang web của chúng tôi.
		
Hôm nay chúng tôi có thể giúp gì cho bạn?
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

Schneider Electric Việt Nam

Tìm hiểu thêm
Phạm vi:
Sản phẩm:
Tìm hiểu thêm
Phạm vi:
Sản phẩm:

Bạn cần trợ giúp?

  • Công cụ chọn sản phẩm

    Nhanh chóng và dễ dàng tìm được sản phẩm và phụ kiện phù hợp cho các ứng dụng của bạn.

  • Nhận báo giá

    Bắt đầu gửi yêu cầu bán hàng trực tuyến và chuyên gia sẽ liên hệ với bạn.

  • Nơi mua hàng?

    Dễ dàng tìm nhà phân phối Schneider Electric gần bạn nhất.

  • Trung tâm Hỗ trợ

    Tìm sự hỗ trợ cho mọi nhu cầu của bạn tại một nơi.

  • Tài liệu về Sản phẩm
  • Tải xuống phần mềm
  • Công cụ chọn Sản phẩm
  • Thay thế và thay đổi sản phẩm
  • Trung tâm Hỗ trợ
  • Tìm Văn phòng của chúng tôi
  • Nhận báo giá
  • Tìm Nhà Phân phối
  • Cơ hội nghề nghiệp
  • Hồ sơ doanh nghiệp
  • Báo cáo hành vi sai trái
  • Khả năng truy cập
  • Phòng tin tức
  • Nhà đầu tư
  • EcoStruxure
  • Tìm việc
  • Blog
  • Chính sách bảo mật
  • Thông báo về Cookie
  • Điều khoản sử dụng
  • Change your cookie settings