WriteInt8

Writes a variable of type byte.

object.WriteInt8(
  nIndexGroup As Long,
  nIndexOffset As Long,
  nValue As Byte
)

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 BYTE, SINT or USINT data type.

Examples

VBScript:

Dim VarInt8 = 0
Call TcClientSync.WriteInt8(&H4020, 0, VarInt8)

JScript:

var VarInt8 =0;
TcClientSync.WriteInt8(0x4020, 0, VarInt8);