Beckhoff Automation GmbH & Co. KG TwinCAT 2 | ADS-Script-DLL — 3.2.17 WriteInt16

API Examples VBScript: Dim VarBool = 0 Call TcClientSync.WriteBool(&H4020, 0, VarBool) JScript: var VarBool =0; TcClientSync.WriteBool(0x4020, 0, VarBool); 3.2.16 WriteInt8 Writes a variable of type byte. object.WriteInt8( nIndexGroup As Long, nIndexOffset As Long, nValue As Byte ) Parameters Return value - Description The writing procedure is performed synchronously. In IEC 61131-6 this corresponds to the BYTE, SINT or USINT data type. Examples VBScript: Dim VarInt8 = 0 Call TcClientSync.WriteInt8(&H4020, 0, VarInt8) JScript: var VarInt8 =0; TcClientSync.WriteInt8(0x4020, 0, VarInt8); 3.2.17 WriteInt16 Writes a variable of type integer.

object.WriteInt16( nIndexGroup As Long, nIndexOffset As Long, nValue As Integer ) Parameters TX1000 21 Version: 1.0 nIndexGroup Index group of the ADS variable. nIndexOffset Index offset 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. nValue The value that is to be written into the variable.