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

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

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

Kepware Knowledge Base: Solution


Array Addressing


Last Update: 2018/11/7

Many drivers have the ability to define arrays of contiguous registers of the same data type.

  1. Standard drivers only support 1 and 2 dimensional arrays.
  2. An array's individual elements cannot be addressed directly.
  3. Sub-arrays of data within the array are not allowed. Users cannot create an array of arrays.

When creating an array in a standard driver, the array dimensions are specified using square brackets. The array's address is defined as Register[row][col].

4X4 Array in a Siemens S7-300 Device
In the 4x4 array example below, the array is referenced as "DB0W0 [4][4]" and the data is returned as a variant array.

73 78 84 255
256 257 258 259
9 10 11 12
13 14 15 16

Note: The OPC Quick Client will display the data as "[73,78,84,255][256,257,258,259][9,10,11,12][13,14,15,16]".

1x16 Array in a Siemens S7-300 Device
In the 1x16 array example below, the array is referenced as "DB0W0 [1][16]" and the data is returned as a variant array.

73 78 84 255 256 257 258 259 9 10 11 12 13 14 15 16

Note: The OPC Quick Client will display the data as "[73,78,84,255,256,257,258,259,9,10,11,12,13,14,15,16]".