Beckhoff Automation GmbH & Co. KG TwinCAT 2 | ADS-Script-DLL — 3.2.24 WriteArrayOfInt32

API Description The write process is executed synchronously. In the IEC 61131-6 the array corresponds to the data type ARRAY OF BYTE, ARRAY OF SINT oder ARRAY OF USINT. Samples VBScript: Dim VarArrayInt8(1) VarArrayInt8(0) = 0 VarArrayInt8(1) = 1 Call TcClientSync.WriteArrayOfInt8(&H4020, 0, VarArrayInt8) JScript: var VarArrayInt8[2]; VarArrayInt8[0] = 0; VarArrayInt8[1] = 1; TcClientSync.WriteArrayOfInt8(0x4020, 0, VarArrayInt8); 3.2.23 WriteArrayOfInt16 Writes an array with elements of type integer to an ADS device. object.WriteArrayOfInt16( nIndexGroup As Long, nIndexOffset As Long, pValue As Variant ) Parameters Return value - Description The write process is executed synchronously.

In the IEC 61131-6 the array corresponds to the data type ARRAY OF WORD, ARRAY OF INT oder ARRAY OF UINT. Samples VBScript: Dim VarArrayInt16(1) VarArrayInt16(0) = 0 VarArrayInt16(1) = 1 Call TcClientSync.WriteArrayOfInt16(&H4020, 0, VarArrayInt16) JScript: var VarArrayInt16[2]; VarArrayInt16[0] = 0; VarArrayInt16[1] = 1; TcClientSync.WriteArrayOfInt16(0x4020, 0, VarArrayInt16); 3.2.24 WriteArrayOfInt32 Writes an array with elements of type long to an ADS device. TX1000 25 Version: 1.0 nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable nCount Number of elements to write.