EasyManuals Logo

Siemens SIMATIC S5 User Manual

Siemens SIMATIC S5
396 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 #125 background imageLoading...
Page #125 background image
S5-115F Manual STEP 5 Operations
3.1.6 Comparison Operations
Comparison operations compare the contents of the two accumulators. The comparison does not
change the accumulators' contents. Table 3-6 provides an overview of the comparison operations.
An example follows the table.
Table 3-6. Overview of Comparison Operations
Operation Meaning
Compare for ”equal to”.
The contents of the two accumulators are interpreted as bit
patterns and scanned to see if they are equal.
Operand
!= F
>< F Compare for ”not equal to”.
The contents of the two accumulators are interpreted as bit
patterns and compared to see if they are not equal.
Compare for ”greater than”.
The contents of the two accumulators are interpreted as fixed-
point numbers. They are compared to see if the operand in
ACCUM 2 is greater than the operand in ACCUM 1.
>F
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a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contents of the two accumulators are interpreted as fixed-
point numbers. They are compared to see if the operand in
ACCUM 2 is greater than or equal to the operand in ACCUM 1.
>= F
Compare for ”less than”.
The contents of the two accumulators are interpreted as fixed-
point numbers. They are compared to see if the operand in
ACCUM 2 is less than the operand in ACCUM 1.
<F
Compare for ”less than or equal to”.
The contents of the two accumulators are interpreted as fixed-
point numbers. They are compared to see if the operand in
ACCUM 2 is less than or equal to the operand in ACCUM 1.
<= F
Processing comparison operations
To compare two operands, load them consecutively into the two accumulators.
Execution of the operations is independent of the RLO. The result is binary and is available as RLO
for further program scanning. If the comparison is satisfied, the RLO is ”1”. Otherwise it is ”0”.
Executing the comparison operations sets the condition codes ( 3.4).
Note
When using comparison operations, make sure the operands have the same number
format.
EWA 4NEB 811 6149-02
3-29

Table of Contents

Other manuals for Siemens SIMATIC S5

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC S5 and is the answer not in the manual?

Siemens SIMATIC S5 Specifications

General IconGeneral
Product type designationSIMATIC S5
Programming languageSTEP 5
Digital inputsVaries by model
Digital outputsVaries by model
Analog inputsVaries by model
Analog outputsVaries by model
Supply voltage24V DC
CPU TypeVaries by model
MemoryVaries by model
Digital I/OVaries by model
Analog I/OVaries by model
CommunicationPROFIBUS
Operating Temperature0°C to 60°C
Relative Humidity5% to 95% (non-condensing)

Related product manuals