WriteReal32

Writes a variable of type single.

object.WriteReal32(
  nIndexGroup As Long,
  nIndexOffset As Long,
  fValue As Single
)

Parameters

nIndexGroup

Index group of the ADS variable.

nIndexOffset

Index offset of the ADS variable.

fValue

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 REAL data type.

Examples

VBScript:

Dim VarReal32 = 0
Call TcClientSync.WriteReal32(&H4020, 0, VarReal32)

JScript:

var VarReal32 =0;
TcClientSync.WriteReal32(0x4020, 0, VarReal32);