WriteArrayOfReal64

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

object.WriteArrayOfReal64(
  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 LREAL.

Samples

VBScript:

Dim VarArrayReal64(1)
VarArrayReal64(0) = 0.1
VarArrayReal64(1) = 1.2
Call TcClientSync.WriteArrayOfReal64(&H4020, 0, VarArrayReal64)

JScript:

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