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 #195 background imageLoading...
Page #195 background image
Program instructions
7.4 Compare
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
195
Example compare values
LAD
STL
Activate I0.1 to load V memory addresses
with low values that make the compari-
sons FALSE and that set the status indi-
cators OFF.
Network 1
LD I0.1
MOVW -30000, VW0
MOVD -200000000, VD2
MOVR 1.012E-006, VD6
Activate I0.2 to load V memory addresses
with high values that make the compari-
sons TRUE and that set the status indica-
tors ON.
Network 2
LD I0.2
MOVW +30000, VW0
MOVD -100000000, VD2
MOVR 3.141593, VD6
Activate I0.3 to perform comparisons.
The Integer Word comparison tests to
find if VW0 > +10000 is TRUE.
You can also compare two values stored
in variable memory like VW0 > VW100.
Network 3
LD I0.3
LPS
AW> VW0, +10000
= Q0.2
LRD
AD< -150000000, VD2
= Q0.3
LPP
AR> VD6, 5.001E-006
= Q0.4
See also
Constants (Page 69)

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