検索機能を使用して 500 を上回る Kepware の知識ベース記事の中から閲覧します。結果を絞り込むか、クエリーを下部の検索フィールドに入力します。

解決策が見つからなかった場合には、当社の PTC eSupport Portal で追加資料を確認することもできます。eSupport Portal へのログインを要求された場合、My Kepware の認証情報を使用できます。My Kepware アカウントが必要ですか? こちらで作成

各種検索方法:
View All Solutions

Kepware Knowledge Base: Solution


Array Addressing


Last Update: 2018/11/07

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