ReadInt32

Reads a variable of type long from an ADS device.

object.ReadInt32(
  nIndexGroup As Long,
  nIndexOffset As Long
) As Long

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 DWORD, DINT or UDINT data type.

Examples

VBScript:

Dim VarInt32
VarInt32 = TcClientSync.ReadInt32(&H4020, 0)
WScript.echo "VarInt32 = ", VarInt32

JScript:

var VarInt32;
VarInt32 = TcClientSync.ReadInt32(0x4020, 0);
WScript.echo("VarInt32 = ", VarInt32);