Beckhoff Automation GmbH & Co. KG TwinCAT 2 | ADS-Script-DLL — 3.2.8 ReadArrayOfBool

API Return value Value of the ADS variable. Description The reading procedure is performed synchronously. In IEC 61131-6 this corresponds to the LREAL data type. Examples VBScript: Dim VarReal64 VarReal64 = TcClientSync.ReadReal64(&H4020, 0) WScript.echo "VarReal64 = ", VarReal64 JScript: var VarReal64; VarReal64 = TcClientSync.ReadReal64(0x4020, 0); WScript.echo("VarReal64 = ", VarReal64); 3.2.8 ReadArrayOfBool Reads an array with elements of type boolean from an ADS device. object.ReadArrayOfBool( nIndexGroup As Long, nIndexOffset As Long, nCount As Long ) As Variant Parameters Return value The array being read from the ADS device Description The read process is executed synchronously.

In the IEC 61131-6 the array represents the data type ARRAY OF BOOL.. Samples VBScript: Dim VarArrayBool VarArrayBool = TcClientSync.ReadArrayOfBool(&H4020, 0, 2) WScript.echo "VarArrayBool(0) = ", VarArrayBool(0) WScript.echo "VarArrayBool(1) = ", VarArrayBool(1) JScript: var VarArrayBool; VarArrayBool = TcClientSync.ReadArrayOfBool(0x4020, 0, 2); WScript.echo("VarArrayBool[0] = ",VarArrayBool[0]); WScript.echo("VarArrayBool[1] = ", VarArrayBool[1]); TX1000 16 Version: 1.0 nIndexOffset Index offset of the ADS variable. nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable nCount Number of elements to be read.