WriteInt32

Writes a variable of type long.

object.WriteInt32(
  nIndexGroup As Long,
  nIndexOffset As Long,
  nValue As Long
)

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 DWORD, DINT or UDINT data type.

Examples

VBScript:

Dim VarInt32 = 0
Call TcClientSync.WriteInt32(&H4020, 0, VarInt32)

JScript:

var VarInt32 =0;
TcClientSync.WriteInt32(0x4020, 0, VarInt32);