WriteArrayOfInt8

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

object.WriteArrayOfInt8(
  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 BYTE, ARRAY OF SINT oder ARRAY OF USINT.

Samples

VBScript:

Dim VarArrayInt8(1)
VarArrayInt8(0) = 0
VarArrayInt8(1) = 1
Call TcClientSync.WriteArrayOfInt8(&H4020, 0, VarArrayInt8)

JScript:

var VarArrayInt8[2];
VarArrayInt8[0] = 0;
VarArrayInt8[1] = 1;
TcClientSync.WriteArrayOfInt8(0x4020, 0, VarArrayInt8);