12.4.35.1   %REVERSE

Will flip the state of a tag. Intended for use with digital tags, but will work with analog tags.  Used with SETVAL. If digital state is 0 and is a two state digital, %REVERSE will flip state from 0 to 1. If analog tag, %REVERSE will flip it based on percent of span. If  current value is 25% of span, %REVERSE will make it 75% of SPAN

Examples:                

# Tcl - will reverse the state of PumpStart

# from On to OFF or from OFF to on

SETVAL PumpStart=%REVERSE

 

// JScript

SETVAL("PumpStart=%REVERSE");

 

Rem VB Script

SETVAL "PumpStart=%REVERSE"