Basic instructions
7.9 Word logic operations
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
275
e last instruction, the code block automatically returns to the calling block.
Do not insert a RETURN instruction at the end of the code block.
Word logic operations
7.9.1
AND, OR, and XOR logic operation instructions
Table 7- 128 AND, OR, and XOR logic operation instructions
AND: Logical AND
XOR: Logical exclusive OR
1
For LAD and FBD: Click the "???" and select a data type from the drop-down menu.
To add an input, click the "Create" icon or right
-click on an input stub for one of the
IN parameters and select the "Insert input" command.
To remove an input, right-click on an input stub for one of the existing IN parameters (when
there are more than the original two inputs) and select the "Delete" command.
Table 7- 129 Data types for the parameters
1
The data type selection sets parameters IN1, IN2, and OUT to the same data type.
The corresponding bit values of IN1 and IN2 are combined to produce a binary logic result at
parameter OUT. ENO is always TRUE following the execution of these instructions.