WriteArrayOfReal32

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

object.WriteArrayOfReal32(
  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 REAL.

Samples

VBScript:

Dim VarArrayReal32(1)
VarArrayReal32(0) = 0.1
VarArrayReal32(1) = 1.2
Call TcClientSync.WriteArrayOfReal32(&H4020, 0, VarArrayReal32)

JScript:

var VarArrayReal32[2];
VarArrayReal32[0] = 0.1;
VarArrayReal32[1] = 1.2;
TcClientSync.WriteArrayOfReal32(0x4020, 0, VarArrayReal32);