WriteBool

Writes a variable of type boolean.

object.WriteBool(
  nIndexGroup As Long,
  nIndexOffset As Long,
  bValue As Boolean
)

Parameters

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.

Return value

-

Description

The writing procedure is performed synchronously. In IEC 61131-6 this corresponds to the BOOL data type.

Examples

VBScript:

Dim VarBool = 0
Call TcClientSync.WriteBool(&H4020, 0, VarBool)

JScript:

var VarBool =0;
TcClientSync.WriteBool(0x4020, 0, VarBool);