ExST Assignment ‘R=’¶
This assignment resets a variable. Once the value of the variable to the left of R=
has become FALSE
, it remains FALSE
even if the operand to the right of R=
goes TRUE
again.
<variable1> S= <variable2>;
Example
bVar1 R= bVar2;
bVar1
obtains the value of bVar2
. Once bVar1
has been set to FALSE
, bVar1 remains FALSE
even if bVar2
becomes TRUE
again.
Attention
:strong:Multiple assignments
All set
and reset
assignments always refer to the last term of the assignment. Example: a S= b R= fun1(par1,par2)
; In this case b
receives the output from fun1
resulting from the reset
, BUT: a
does not receive the set
result from b
, but the set
result from fun1
!
See also