Siemens NAN 67 Series Wartungshandbuch Seite 174

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 173
13-2
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
13.1 Compare Integer
The Compare Integer instruction carries out a compare operation on the basis
of 16-bit floating-point numbers. You can use this instruction like a normal
contact. This instruction compares inputs IN1 and IN2 according to the type
of comparison you select from the browser. Table 13-1 lists the valid
comparisons.
If the comparison is true, the result of logic operation (RLO) of the
comparison is 1. Otherwise, it is 0. There is no negation of the compare
output because this logic can also be handled by the inverse compare
function.
Table 13-1 Types of Comparisons for Integers
Type of Comparison Symbols in Name at Top of Box
IN1 is equal to IN2. ==
IN1 is not equal to IN2. <>
IN1 is greater than IN2. >
IN1 is less than IN2. <
IN1 is greater than or equal to IN2. >=
IN1 is less than or equal to IN2. <=
Table 13-2 Compare Integer Box and Parameters
LAD Box Parameter Data Type Memory Area Description
CMP
==
I
IN1 INT I, Q, M, D, L First value to compare
==
I
IN1
IN2
INT
Second value to compare
IN2
IN2
INT
,
,
,
,
S
econ
d
va
l
ue
t
o compare
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x 0 x 1 x 1
I 0.1
Output Q 4.0 is set if the following
conditions exist:
S There is a signal state of 1 at
inputs I 0.0 and I 0.1
S And MW0 = MW2
S And there is a signal state of 1 at
input I 0.2
Q 4.0
CMP
== I
IN2MW2
IN1MW0
I 0.0 I 0.2
S
Comparison is true:
Figure 13-1 Compare Integer
Description
Comparison Instructions
Seitenansicht 173
1 2 ... 169 170 171 172 173 174 175 176 177 178 179 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare