When the operand of the Reset assignment switches to TRUE
, then FALSE
is assigned to the variable to the left of the operator. The variable is reset.
<variable name> R= <operand name> ;
The variables and the operand have the data type BOOL
.
Example
VAR xOperand: BOOL := FALSE; xResetVariable: BOOL := TRUE; END_VAR xResetVariable R= xOperand;
When the operand xOperand
switches from FALSE
to TRUE
, then FALSE
is also assigned to the variable xResetVariable
. But then the variable keeps its state, even if the operand continues to change its
state.
-
Multiple assignments