API var VarReal64 =0; TcClientSync.WriteReal64(0x4020, 0, VarReal64); 3.2.21 WriteArrayOfBool Writes an array with elements of type boolean to an ADS device. object.WriteArrayOfBool( 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 BOOL. Samples VBScript: Dim VarArrayBool(1) VarArrayBool(0) = True VarArrayBool(1) = False Call TcClientSync.WriteArrayOfBool(&H4020, 0, VarArrayBool) JScript:
var VarArrayBool[2]; VarArrayBool[0] = true; VarArrayBool[1] = false; TcClientSync.WriteArrayOfBool(0x4020, 0, VarArrayBool); 3.2.22 WriteArrayOfInt8 Writes an array with elements of type byte to an ADS device. object.WriteArrayOfInt8( nIndexGroup As Long, nIndexOffset As Long, pValue As Variant ) Parameters Return value - TX1000 24 Version: 1.0 nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable nCount Number of elements to write. nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable nCount Number of elements to write.