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.
Data type identifier
Required IN1, IN2 data type
B
Unsigned byte
W
Signed word integer
D
Signed double word integer
R
Signed real
LAD contacts, FBD boxes STL
Comparison result
LDB= IN1, IN2
OB= IN1, IN2
AB= IN1, IN2
Compare two unsigned byte values:
The result is TRUE, if IN1 = IN2
LDW= IN1, IN2
OW= IN1, IN2
AW= IN1, IN2
Compare two signed integer values:
The result is TRUE, if IN1 = IN2
LDD= IN1, IN2
OD= IN1, IN2
AD= IN1, IN2
Compare two signed double integer values:
The result is TRUE, if IN1 = IN2
LDR= IN1, IN2
OR= IN1, IN2
AR= IN1, IN2
Compare two signed real values:
The result is TRUE, if IN1 = IN2
Содержание SIMATIC S7-200
Страница 30: ...Product overview 1 7 Programming software S7 200 SMART 30 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 267: ...Program instructions 7 6 Counters S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 267 HSC modes 3 and 4 ...
Страница 394: ...Program instructions 7 18 Subroutine S7 200 SMART 394 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 425: ...Communication 8 5 PROFIBUS S7 200 SMART System Manual V2 3 07 2017 A5E03822230 AF 425 ...
Страница 786: ...Technical specifications A 11 S7 200 SMART cables S7 200 SMART 786 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 798: ...Error codes C 4 PLC fatal error codes S7 200 SMART 798 System Manual V2 3 07 2017 A5E03822230 AF ...
Страница 848: ...Ordering information F 6 Human Machine Interface devices S7 200 SMART 848 System Manual V2 3 07 2017 A5E03822230 AF ...