WriteVar

Writes into a variable in an ADS device.

object.WriteVar(
  sVarName As String,
  nValue As Variant
)

Parameters

sVarName

Name of the ADS variable.

nValue

The value that is to be written into the variable.

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);