ReadInt8

Reads a variable of type byte from an ADS device.

object.ReadInt8(
  nIndexGroup As Long,
  nIndexOffset As Long
) As Byte

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 BYTE, SINT or USINT data type.

Examples

VBScript:

Dim VarInt8
VarInt8 = TcClientSync.ReadInt8(&H4020, 0)
WScript.echo "VarInt8 = ", VarInt8

JScript:

var VarInt8;
VarInt8 = TcClientSync.ReadInt8(0x4020, 0);
WScript.echo("VarInt8 = ", VarInt8);