Beckhoff Automation GmbH & Co. KG TwinCAT 2 | ADS-Script-DLL — 3.2.12 ReadArrayOfReal32

API Samples VBScript: Dim VarArrayInt16 VarArrayInt16 = TcClientSync.ReadArrayOfInt16(&H4020, 0,2) WScript.echo "VarArrayInt16(0) = ", VarArrayInt16(0) WScript.echo "VarArrayInt16(1) = ", VarArrayInt16(1) JScript: var VarArrayInt16; VarArrayInt16 = TcClientSync.ReadArrayOfInt16(0x4020, 0, 2); WScript.echo("VarArrayInt16[0] = ",VarArrayInt16[0]); WScript.echo("VarArrayInt16[1] = ",VarArrayInt16[1]); 3.2.11 ReadArrayOfInt32 Reads an array with elements of type long from an ADS device.

object.ReadArrayOfInt32( 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 corresponds to the data type ARRAY OF DWORD, ARRAY OF DINT or ARRAY OF UDINT. Samples VBScript: Dim VarArrayInt32 VarArrayInt32 = TcClientSync.ReadArrayOfInt32(&H4020, 0,2) WScript.echo "VarArrayInt32(0) = ",VarArrayInt32(0) WScript.echo "VarArrayInt32(1) = ", VarArrayInt32(1) JScript:

var VarArrayInt32; VarArrayInt32 = TcClientSync.ReadArrayOfInt32(0x4020, 0, 2); WScript.echo("VarArrayInt32[0] = ",VarArrayInt32[0]); WScript.echo("VarArrayInt32[1] = ",VarArrayInt32[1]); 3.2.12 ReadArrayOfReal32 Reads an array with elements of type float from an ADS device. object.ReadArrayOfReal32( nIndexGroup As Long, nIndexOffset As Long, nCount As Long ) As Variant TX1000 18 Version: 1.0 nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable nCount Number of elements to be read.