WriteInt16

Writes a variable of type integer.

object.WriteInt16(
  nIndexGroup As Long,
  nIndexOffset As Long,
  nValue As Integer
)

Parameters

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.

Return value

-

Description

The writing procedure is performed synchronously. In IEC 61131-6 this corresponds to the WORD, INT or UINT data type.

Examples

VBScript:

Dim VarInt16 = 0
Call TcClientSync.WriteInt16(&H4020, 0, VarInt16)

JScript:

var VarInt16 =0;
TcClientSync.WriteInt16(0x4020, 0, VarInt16);