11.1.89.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. 

 

<SETVAL>PumpStart=%REVERSE	# will reverse state of PumpStart
#  from On to OFF or from OFF to on