Description
You can use the instruction "Set output" to set the signal state of a specified operand to "1".
The instruction is only executed if the result of logic operation (RLO) at the box input is "1". If the box input has the signal state "1", the specified operand is set to "1". If there is an RLO of "0" at the box input, the signal state of the specified operand remains unchanged.
Parameters
The following table shows the parameters of the instruction "Set output":
|
Parameters |
Declaration |
Data type |
Memory area |
Description |
|---|---|---|---|---|
|
<Operand> |
Output |
BOOL |
I, Q, M, D, L |
Operand which is set with RLO = "1". |
Example
The following example shows how the instruction works:
The "TagOut" operand is set when one of the following conditions is fulfilled:
-
The operands "TagIn_1" and "TagIn_2" have signal state "1".
-
The operand "TagIn_3" has the signal state "0".