EasyManua.ls Logo

Siemens SIMATIC S7-1200 - 8.9 Word logic operations; 8.9.1 AND, OR, and XOR logic operation instructions

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic instructions
8.9 Word logic operations
S7-1200 Programmable controller
326 System Manual, V4.2, 09/2016, A5E02486680-AK
8.9
Word logic operations
8.9.1
AND, OR, and XOR logic operation instructions
Table 8- 167 AND, OR, and XOR logic operation instructions
LAD / FBD
SCL
Description
out := in1 AND in2;
AND: Logical AND
out := in1 OR in2;
OR: Logical OR
out := in1 XOR in2;
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
existing 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 8- 168 Data types for the parameters
Parameter
Data type
Description
IN1, IN2
Byte, Word, DWord
Logical inputs
OUT
Byte, Word, DWord
Logical output
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.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals