Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Toggle

  • Last UpdatedJul 18, 2023
  • 1 minute read

Toggles a digital tag on or off. If the variable tag is ON (1), this function will turn it OFF. If the variable tag is OFF (0), this function will turn it ON.

Syntax

Toggle(sTag)

sTag:

The digital tag to toggle.

Return Value

0 (zero) if successful, otherwise an error code is returned.

Pulse

Example

Buttons

Text

Motor 145

Command

Toggle(M145)

Comment

Toggle the variable tag M145 (Motor 145) on or off

To toggle the Paging Alarm property:

Toggle(MyCluster.Alarm_1.Paging);

See Also

Miscellaneous Functions

In This Topic
TitleResults for “How to create a CRG?”Also Available in