Description
The instruction "Negate assignment" inverts the result of logic operation (RLO) and assigns this to the operand above the box. If the RLO at the input of the box is "1", the binary operand is reset. If the RLO at the input of the box is "0", the operand is set to signal state "1".
Parameters
The following table shows the parameters of the instruction "Negate assignment":
|
Parameters |
Declaration |
Data type |
Memory area |
Description |
|---|---|---|---|---|
|
<Operand> |
Output |
BOOL |
I, Q, M, D, L |
Operand to which the negated RLO is assigned. |
Example
The following example shows how the instruction works:
The operand "TagOut" is reset when the following conditions are fulfilled:
-
The operand "TagIn_1" or "TagIn_2" has the signal state "1".
-
The operand "TagIn_3" has the signal state "0".