EasyManua.ls Logo

Siemens S5-100U - Arithmetic Operations

Siemens S5-100U
512 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
Loading...
S5-100U STEP 5 Operations
Example: The values of input bytes IB19 and IB20 are compared. If they are equal, output
Q 1.0 is set.
Circuit Diagram CSF/LAD
IB19
C 1 C 2
=
IB20
C 1 F
!=
C 2 Q
IB19
IB20
Q 1.0
LIB19
LIB20
!=F
= Q 1.0
Q 1.0
STL
8.1.7 Arithmetic Operations
Arithmetic operations interpret the contents of the accumulators as fixed-point numbers and
manipulate them. The result is stored in ACCU 1. Table 8-7 provides an overview of the arithmetic
operations. An example follows the table.
Table 8-7. Overview of Arithmetic Operations
Operation Meaning
Addition
The contents of both accumulators are added.
Operand
+ F
- F Subtraction
The contents of ACCU 1 are subtracted from the contents of
ACCU 2.
CPU 102 and higher have integral function blocks for multiplication and division (see section 9.2).
EWA 4NEB 812 6120-02
8-31

Table of Contents

Related product manuals