ReadReal32

Reads a variable of type float from an ADS device.

object.ReadReal32(
  nIndexGroup As Long,
  nIndexOffset As Long
) As Single

Parameters

nIndexGroup

Index group of the ADS variable.

nIndexOffset

Index offset of the ADS variable.

Return value

Value of the ADS variable.

Description

The reading procedure is performed synchronously. In IEC 61131-6 this corresponds to the REAL data type.

Examples

VBScript:

Dim VarReal32
VarReal32 = TcClientSync.ReadReal32(&H4020, 0)
WScript.echo "VarReal32 = ", VarReal32

JScript:

var VarReal32;
VarReal32 = TcClientSync.ReadReal32(0x4020, 0);
WScript.echo("VarReal32 = ", VarReal32);