VT_ARRAYS can dramatically increase your OPC clients performance by providing 1000’s of data points as a single OPC Item.
IMPORTANT – Not all OPC client software packages support VT_ARRAY data types. Please check your OPC client software users manual if VT_ARRAYS are supported.
Supported VT_ARRAY Types (Single Dimension SAFEARRAY)
|
VT_ARRAY|VT_BOOL |
Array of BOOLEAN values |
|
VT_ARRAY|VT_I2 |
Array of SIGNED INTEGER values |
|
VT_ARRAY|VT_UI2 |
Array of UNSIGNED INTEGER values |
|
VT_ARRAY|VT_I4 |
Array of SIGNED LONG values |
|
VT_ARRAY|VT_UI4 |
Array of UNSIGNED LONG values |
|
VT_ARRAY|VT_R4 |
Array of FLOATS values (single precision reals) |
Maximum Array Sizes
|
VT_ARRAY |
Coils |
Input Bits |
Input Register |
Holding Register |
|
VT_BOOL |
Read 2000 |
Read Only 2000 |
Read Only (2000) |
Read 2000 |
|
VT_I2 |
Read 125 |
Read Only 125 |
Read Only 125 |
Read 125 |
|
VT_UI2 |
Read 125 |
Read Only 125 |
Read Only 125 |
Read 125 |
|
VT_I4 |
Read 62 |
Read Only 62 |
Read Only 62 |
Read 62 |
|
VT_UI4 |
Read 62 |
Read Only 62 |
Read Only 62 |
Read 62 |
|
VT_R4 |
Read 62 |
Read Only 62 |
Read Only 62 |
Read 62 |
Notes:
Writing BOOLEAN arrays for Holding Registers (4xxxx), the first bit of the array must start on a WORD boundary (e.g 40001.1, 40002.1. .. 400100.1, 400101.1