EasyManua.ls Logo

Siemens SIMATIC S7-200 - Compare Integer

Siemens SIMATIC S7-200
606 pages
Print Icon
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...
SIMATIC Instructions
9-11
S7-200 Programmable Controller System Manual
A5E00066097-02
Compare Integer
The Compare Integer instruction is used to compare two
values: IN1 to IN2. Comparisons include: IN1 = IN2,
IN1 >= IN2, IN1 <= IN2, IN1 > IN2, IN1 < IN2, or
IN1 <> IN2.
Integer comparisons are signed (16#7FFF > 16#8000).
In LAD, the contact is on when the comparison is true.
In FBD, the output is on when the comparison is true.
In STL, the instructions Load, AND, or OR a 1 with the
top of stack when the comparison is true.
Inputs/Outputs Operands Data Types
Inputs IW, QW, MW, SW, SMW, T, C, VW, LW, AIW, AC, Constant, *VD,
*AC,*LD
INT
Outputs (FBD) I, Q, M, SM, T, C, V, S, L, Power Flow BOOL
L
A
D
LDW= IN1, IN2
AW= IN1, IN2
OW= IN1, IN2
LDW>= IN1, IN2
AW>= IN1, IN2
OW>= IN1, IN2
LDW<= IN1, IN2
AW<= IN1, IN2
OW<= IN1, IN2
F
B
D
LDW<> IN1, IN2
AW<> IN1, IN2
OW<> IN1, IN2
LDW< IN1, IN2
AW< IN1, IN2
OW< IN1, IN2
LDW> IN1, IN2
AW> IN1, IN2
OW> IN1, IN2
IN1
==I
IN2
222 224
✓✓
221
S
T
L
==I
226

Table of Contents

Other manuals for Siemens SIMATIC S7-200

Related product manuals