WriteArrayOfInt32

Writes an array with elements of type long to an ADS device.

object.WriteArrayOfInt32(
  nIndexGroup As Long,
  nIndexOffset As Long,
  pValue As Variant
)

Parameters

nIndexGroup

Index group of the ADS variable.

nIndexOffset

Index offset of the ADS variable

nCount

Number of elements to write.

Return value

-

Description

The write process is executed synchronously. In the IEC 61131-6 the array corresponds to the data type ARRAY OF DWORD, ARRAY OF DINT or ARRAY OF UDINT.

Samples

VBScript:

Dim VarArrayInt32(1)
VarArrayInt32(0) = 0
VarArrayInt32(1) = 1
Call TcClientSync.WriteArrayOfInt32(&H4020, 0, VarArrayInt32)

JScript:

var VarArrayInt32[2];
VarArrayInt32[0] = 0;
VarArrayInt32[1] = 1;
TcClientSync.WriteArrayOfInt32(0x4020, 0, VarArrayInt32);