ForceValue Tag Command

Help Contents

Introduction

The ForceValue Tag Command replaces the current value of a tag with a fixed constant value.

Parameters

Value : ANY_ELEMENTARY

The new, forced value of the tag.

Remarks

In some situations it may be appropriate to apply a force to a tag:

Forcing replaces the actual value read from the data source with a fixed value defined by the user. When forced, the actual value of the tag is still read, but is stored in these properties:

When the force is removed, using a RemoveForce Tag Command, the most recent actual value can be immediately restored.

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

The ForceValue Tag Command will try to convert the Value parameter to a type compatible with the host tag. To avoid errors you should ensure the Value parameter is compatible with the host tag. The type expected by the driver for a each tag type is shown in this table:

Icon Tag Type Expected Value Type
Analog Data Point Tag Icon Analog LREAL
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

You can execute ForceValue Tag Command from:

To use the ForceValue Tag Command, the user must have the Force User Right.

Requirements

Fernhill SCADA VersionVersion 1.0
Required User RightForce

Applies To

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

See Also

RemoveForce