WriteValue Tag Command

Help Contents

Introduction

The WriteValue Tag Command writes a new value to a tag.

Parameters

Value : ANY

The new value of the tag.

Remarks

The WriteValue Tag Command writes a new value to a tag. If the tag is derived from an external data source, the write is sent to the data source as a control.

The Value parameter is ANY. ANY is a generic data type, which allows any value. For more information on ANY and other generic data types see Generic Data Types.

The WriteValue Tag Command will attempt to convert the Value parameter to a type compatible with the host tag. The type expected by the driver for each tag type is:

Icon Tag Type Expected Value Type
Analog Data Point Tag Icon Analog LREAL
Bitmap Image Tag Icon Bitmap Image ARRAY [] OF BYTE
Digital Data Point Tag Icon Digital BOOL
Word Data Point Tag Icon Word UINT
Double Word Data Point Tag Icon Double Word UDINT
Long Word Data Point Tag Icon Long Word ULINT
String Data Point Tag Icon String WSTRING

Note: To avoid errors you should ensure the Value parameter is compatible with the host tag.

You can execute WriteValue Tag Command from:

To use the WriteValue Tag Command, the user requires the Write User Right.

Requirements

Fernhill SCADA VersionVersion 1.0
Required User RightWrite

Applies To

The WriteValue Tag Command can be used with these tag types:

See Also

WriteValueQuality