Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


Array Addressing


Last Update: 11/7/2018

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]".