Description
The "Insert input" instruction is used to add an input to the box of one of the following instructions:
-
"AND logic operation"
-
""OR logic operation"
-
""EXCLUSIVE OR logic operation"
You can query the signal state of several operands by the extension of an instruction box.
Parameters
The following table shows the parameters of the "Insert input" instruction:
|
Parameters |
Declaration |
Data type |
Memory area |
Description |
|
|---|---|---|---|---|---|
|
S7-1200 |
S7-1500 |
||||
|
<Operand> |
Input |
BOOL |
I, Q, M, D, L or constant |
I, Q, M, D, L, T, C or constant |
The operand indicates the bit whose signal state will be queried. |
Example
The following example shows how the instruction works:
The box of the "AND logic operation" instruction was extended by an additional input at which the signal state of the operand "TagIn_3" is queried. The "TagOut" output is set, when the operands "TagIn_1" and "TagIn_2" and "TagIn_3" return signal state "1".
See also
&: AND logic operation (S7-1200, S7-1500)
>=1: OR logic operation (S7-1200, S7-1500)
X: EXCLUSIVE OR logic operation (S7-1200, S7-1500)
Overview of the valid data types
Inserting operands in FBD instructions
Memory areas (S7-1500)
Inserting FBD elements
Editing FBD elements
System memory areas (S7-1200)