API JScript: var VarArrayReal64; VarArrayReal64 = TcClientSync.ReadArrayOfReal64(0x4020, 0,2); WScript.echo("VarArrayReal64[0] = ",VarArrayReal64[0]); WScript.echo("VarArrayReal64[1] = ",VarArrayReal64[1]); 3.2.14 WriteVar Writes into a variable in an ADS device. object.WriteVar( sVarName As String, nValue As Variant ) Parameters Return value - Description The writing procedure is performed synchronously. Examples VBScript: Dim VarValue = 0 Call TcClientSync.WriteVar(".PLCSIntVar", VarValue) JScript: var VarValue =0; TcClientSync.WriteVar(".PLCSIntVar",VarValue); 3.2.15 WriteBool Writes a variable of type boolean.
object.WriteBool( nIndexGroup As Long, nIndexOffset As Long, bValue As Boolean ) Parameters Return value - Description The writing procedure is performed synchronously. In IEC 61131-6 this corresponds to the BOOL data type. TX1000 20 Version: 1.0 sVarName Name of the ADS variable. nValue The value that is to be written into the variable. nIndexGroup Index group of the ADS variable. nIndexOffset Index offset of the ADS variable. bValue The value that is to be written into the variable.