TagDirectWriteWord Function

Help Contents

Introduction

Writes an array of data words directly to an address in a data source. Uses the DirectWriteWord Tag Command.

Functions and Function Blocks

The TagDirectWriteWord Function is intended for use in an Operator Action. Operator Actions run in response to user input gestures in the Operator Interface. In an Operator Action, code execution is suspended until the function completes.

To write a value from a Program Tag, running on the SCADA Server, use the TagDirectWriteWordFB Function Block.

Syntax

Informal Syntax:

TagDirectWriteWord( TagName, DataAddress, Value )

Formal Syntax:

TagDirectWriteWord( 
        TagName:=Expression, 
        DataAddress:=Expression, 
        Value:=Expression )

Parameters

Parameter Type Description
TagName ANY_STRING The full name of the tag that represents the data source.
DataAddress ANY_STRING The "Address" of the data within the data source. See Data Address Format to understand how to set the "Address".
Value ARRAY [] OF WORD The array of words to write to the data source.

Return Value

None.

Remarks

The TagDirectWriteWord Function sends the DirectWriteWord Tag Command to the database tag.

Further Information

DirectWriteWord Tag Command

To learn about the DirectWriteWord Tag Command.

TagDirectWriteWordFB Function Block

To learn how to write an array of words to an "Address" in data source from a Program Tag.

Operator Actions

To learn where you can use this function.

Structured Text Function Call

To learn about calling a function from IEC 61131-3 structured text.

IEC 61131-3 Expressions

To learn about the different types of expression to use as function parameters.

Glossary

For the meaning of terms used in Fernhill SCADA.