EasyManua.ls Logo

Siemens SIMATIC S7-1200

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.4 Comparator operations
S7-1200 Programmable controller
250 System Manual, V4.2, 09/2016, A5E02486680-AK
8.4
Comparator operations
8.4.1
Compare values instructions
Table 8- 28 Compare instructions
LAD
FBD
SCL
Description
out := in1 = in2;
or
IF in1 = in2
THEN out := 1;
ELSE out := 0;
END_IF;
Compares two values of the same data type. When the
LAD contact comparison is TRUE, then the contact is
activated. When the FBD box comparison is TRUE,
then the box output is TRUE.
1
For LAD and FBD: Click the instruction name (such as "==") to change the comparison type from the drop-down list.
Click the "???" and select data type from the drop-down list.
Table 8- 29 Data types for the parameters
Parameter
Data type
Description
IN1, IN2 Byte, Word, DWord, SInt, Int, DInt, USInt, UInt, UDInt, Real,
LReal, String, WString, Char, Char, Time, Date, TOD, DTL,
Constant
Values to compare
Table 8- 30 Comparison descriptions
Relation type
The comparison is true if ...
=
IN1 is equal to IN2
<>
IN1 is not equal to IN2
>=
IN1 is greater than or equal to IN2
<=
IN1 is less than or equal to IN2
>
IN1 is greater than IN2
<
IN1 is less than IN2

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals