Siemens SIMATIC S7 System Manual page 233

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Example compare values
LAD
See also
Constants (Page 83)
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
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.
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.
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.
Program instructions
7.4 Compare
STL
Network 1
LD I0.1
MOVW -30000, VW0
MOVD -200000000, VD2
MOVR 1.012E-006, VD6
Network 2
LD I0.2
MOVW +30000, VW0
MOVD -100000000, VD2
MOVR 3.141593, VD6
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
233

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents