EasyManuals Logo

Siemens Simatic S7 Series System Manual

Siemens Simatic S7 Series
726 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
Page #193 background imageLoading...
Page #193 background image
Program instructions
7.4 Compare
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
193
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
Note
The following conditions cause a non-fatal error, set power flow to OFF (ENO bit = 0), and
use value 0 as the result of the comparison
Illegal indirect address is encountered (any compare instruction)
Illegal real number (for example, NaN) is encountered for compare real instruction
To prevent these conditions from occurring, ensur
e that you properly initialize pointers and
values that contain real numbers before executing compare instructions that use these
values.
Compare instructions are executed regardless of the state of power flow
.

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals