API Dim VarInt8 VarInt8 = TcClientSync.ReadInt8(&H4020, 0) WScript.echo "VarInt8 = ", VarInt8 JScript: var VarInt8; VarInt8 = TcClientSync.ReadInt8(0x4020, 0); WScript.echo("VarInt8 = ", VarInt8); 3.2.4 ReadInt16 Reads a variable of type integer from an ADS device. object.ReadInt16( nIndexGroup As Long, nIndexOffset As Long ) As Integer Parameters Return value Value of the ADS variable. Description The reading procedure is performed synchronously. In IEC 61131-6 this corresponds to the WORD, INT or UINT data type. Examples VBScript: Dim VarInt16 VarInt16 = TcClientSync.ReadInt16(&H4020, 0) WScript.echo "VarInt16 = ", VarInt16 JScript:
var VarInt16; VarInt16 = TcClientSync.ReadInt16(0x4020, 0); WScript.echo("VarInt16 = ", VarInt16); 3.2.5 ReadInt32 Reads a variable of type long from an ADS device. object.ReadInt32( nIndexGroup As Long, nIndexOffset As Long ) As Long Parameters Return value Value of the ADS variable. TX1000 14 Version: 1.0 nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable. nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable.