Beckhoff Automation GmbH & Co. KG TwinCAT 2 | ADS-Script-DLL — 3.2.3 ReadInt8

API 3.2.2 ReadBool Reads a variable of type boolean from an ADS device. object.ReadBool( nIndexGroup As Long, nIndexOffset As Long ) As Boolean Parameters Return value Value of the ADS variable. Description The reading procedure is performed synchronously. In IEC 61131-6 this corresponds to the BOOL data type. Examples VBScript: Dim VarBool VarBool = TcClientSync.ReadBool(&H4020, 0) WScript.echo "VarBool = ", VarBool JScript: var VarBool; VarBool = TcClientSync.ReadBool(0x4020, 0); WScript.echo("VarBool = ", VarBool); 3.2.3 ReadInt8 Reads a variable of type byte from an ADS device.

object.ReadInt8( nIndexGroup As Long, nIndexOffset As Long ) As Byte Parameters 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: TX1000 13 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.