WriteArrayOfBool

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

object.WriteArrayOfBool(
  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 BOOL.

Samples

VBScript:

Dim VarArrayBool(1)
VarArrayBool(0) = True
VarArrayBool(1) = False
Call TcClientSync.WriteArrayOfBool(&H4020, 0, VarArrayBool)

JScript:

var VarArrayBool[2];
VarArrayBool[0] = true;
VarArrayBool[1] = false;
TcClientSync.WriteArrayOfBool(0x4020, 0, VarArrayBool);