EasyManua.ls Logo

Siemens SIMATIC S7-200 - IEC Compare Instructions; Compare Equal; Compare Not Equal

Siemens SIMATIC S7-200
606 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...
IEC 1131-3 Instructions
10-8
S7-200 Programmable Controller System Manual
A5E00066097-02
10.2 IEC Compare Instructions
There are no non-standard IEC Compare instructions.
Compare Equal
The Compare Equal function compares IN1 and IN2
with the Boolean result placed in OUT. The input and
output data types can vary but must be of the same type.
Byte comparisons are unsigned. Integer, double integer,
and real comparisons are signed. Time operations are
signed integers.
Inputs/Outputs Operands Data Types
Inputs
(LAD & FBD)
IB, QB, MB, SB, SMB, VB, LB, IW, QW, MW, SW, SMW, VW, LW,
T, C, AIW, ID, QD, MD, SD, SMD, VD, LD, HC, AC, Constant,
*VD, *AC, *LD
BYTE, INT, DINT
REAL
OUT (LAD only) Power Flow BOOL
OUT (FBD only) I, Q, M, SM, T, C, V, S, L, Power Flow BOOL
Compare Not Equal
The Compare Not Equal function compares IN1 and IN2
with the Boolean result placed in OUT. The input and
output data types can vary, but must be of the same
type.
Byte comparisons are unsigned. Integer, double integer,
and real comparisons are signed. Time operations are
signed integers.
Inputs/Outputs Operands Data Types
Inputs
(LAD & FBD)
IB, QB, MB, SB, SMB, VB, LB, IW, QW, MW, SW, SMW, VW, LW,
T, C, AIW, ID, QD, MD, SD, SMD, VD, LD, HC, AC, Constant,
*VD, *AC, *LD
BYTE, INT, DINT,
REAL
OUT (LAD only) Power Flow BOOL
OUT(FBD only) I, Q, M, SM, T, C, V, S, L, Power Flow BOOL
L
A
D
F
B
D
EQ
IN1
IN2
222 224
221
EQ
OUTEN
226
L
A
D
F
B
D
NE
IN1
IN2
OUT
222 224
221
NE
EN
226

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals