Simatic Compare Instructions; Compare Byte - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

SIMATIC Instructions
9.2

SIMATIC Compare Instructions

Compare Byte

L
A
D
F
B
D
S
LDB=
T
AB=
L
OB=
LDB<>
AB<>
OB<>
LDB<
AB<
OB<
LDB<=
AB<=
OB<=
LDB>
AB>
OB>
LDB>=
AB>=
OB>=
221
222 224
Inputs/Outputs
Inputs
IB, QB, MB, SMB, VB, SB, LB, AC, Constant, *VD, *AC,*LD
Outputs (FBD)
I, Q, M, SM, T, C, V, S, L, Power Flow
9-10
The Compare Byte instruction is used to compare two
IN1
values: IN1 to IN2. Comparisons include: IN1 = IN2,
==B
IN1 >= IN2, IN1 <= IN2, IN1 > IN2, IN1 < IN2, or
IN2
IN1 <> IN2.
Byte comparisons are unsigned.
==B
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
IN1, IN2
top of stack when the comparison is true.
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
IN1, IN2
226
Operands
S7-200 Programmable Controller System Manual
Data Types
BYTE
BOOL
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents