11.1.89.6   <SETVAL> =%ROTATEPLUS

Description:   Increment tag by specified amount, percentage , tag value or script variable until OutpHi (output high span) reached then resets counter to OutpLo (output low span) plus the delta of the last increment above OutpHi. It carries over and difference between OutpHi and the last increment calculation. Repeats continuously. Similar to LOOPPLUS, but when OutpHi reached, next value is exactly is not necessarily equal to OutpLo.  This makes for smother animation of rotation if the increment is not an even multiple of the output span.

Syntax:         <SETVAL>tagname=%ROTATEPLUS arg            

Arguments:    number or tagname

Examples:     

 

<SETVAL>counter=%ROTATEPLUS 1                  # increments tag named counter by 1 until

# OutpHi reached then resets counter to

# OutpLo plus whatever remainder there

# was in the increment above OutpHi.

# Repeats.

 

<SETVAL>tag2=%ROTATEPLUS 1%                   # increments tag2  by 1 percent of output.

# span until OutpHi reached

# then resets counter to OutpLo

# plus whatever remainder there was in the

# increment above OutpHi. Repeats.

 

<SETVAL>tag2=%ROTATEPLUS @tag1               #  increments tag2  by  value of tag1

# until OutpHi reached

# then resets counter to OutpLo

# plus whatever remainder there was in the

#  increment above OutpHi. Repeats.