Program instructions
7.4 Compare
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
231
Selecting the data types to be compared
The data type identifier that you choose determines the required data type for the IN1 and
IN2 parameters.
Required IN1, IN2 data type
W Signed word integer
Signed double word integer
R Signed real
OB= IN1, IN2
AB= IN1, IN2
Compare two unsigned byte values:
The result is TRUE, if IN1 = IN2
OW= IN1, IN2
AW= IN1, IN2
Compare two signed integer values:
The result is TRUE, if IN1 = IN2
OD= IN1, IN2
AD= IN1, IN2
Compare two signed double integer values:
The result is TRUE, if IN1 = IN2
OR= IN1, IN2
AR= IN1, IN2
Compare two signed real values:
The result is TRUE, if IN1 = IN2