使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


Modbus 5 Digit Addressing Versus 6 Digit Addressing


Last Update: 2018/11/12

Although Modbus tag addresses are specified in the device's manual as 0xxxx, 1xxxx, 3xxxx, or 4xxxx, they will be padded with an extra zero when applied to the Address field. For example, "40001" will become "400001". There is no difference between the two addresses, however. In a Modbus device, the same item can be represented by the following addresses:

  • 41
  • 401
  • 4001
  • 40001
  • 400001

Note: In Modbus addressing, the address's first digit specifies the primary table. The remaining digits represent the device's data item. The maximum number of data items is a two byte unsigned integer (65,535). Thus, six digits are required to represent the entire address table and item.

Primary TableDescription
0Output Coils
1Input Coils
3Internal Registers
4Holding Registers

The difference between the number of digits in the device documentation is due to the evolution of Modbus devices. Early devices generally only supported a maximum of 9999 data items for each address type, whereas newer devices can support a maximum of 65535 data items. For example, "400001" to "465535". Kepware's Modbus drivers support the data items' full range, and will pad any address to six digits in the KEPServerEX User Interface. This will not affect the actual address that is transmitted to the device.

Related Protocols
Modbus Ethernet Modbus Plus