Block Call Operations - Siemens SIMATIC S5-115U User Manual

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

STEP 5 Operations
Processing an Arithmetic Operation
Before an arithmetic operation is executed, both operands must be loaded into the accumulators.
Note
When using arithmetic operations, make sure the operands have the same number
format.
Arithmetic operations are executed independently of the RLO. The result is available in ACCUM 1
for further processing. The contents of ACCUM 2 are not changed. These operations do not affect
the RLO. The condition codes are set according to the results.
STL
L
C 3
The value of counter 3 is loaded into ACCUM 1.
L
C 1
The value of counter 1 is loaded into ACCUM 1. The previous contents of
ACCUM 1 are shifted to ACCUM 2.
+ F
The contents of the two accumulators are interpreted as 16-bit fixed-point
numbers and added.
T
QW 12
The result, contents of ACCUM 1, is transferred to output word QW 12.
876
+
668
=
1544

8.1.8 Block Call Operations

Block call operations specify the sequence of a structured program. Table 8-8 provides an over-
view of the block call operations. Examples follow the table.
8-32
Explanation
Numeric Example
15
0 0 0 0 0 0 1 1 0 1 1 0 1 1 0 0
0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0
0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0
S5-115U Manual
0
ACCUM 2
+ F
ACCUM 1
ACCUM 1
EWA 4NEB 811 6130-02b

Advertisement

Table of Contents
loading

Table of Contents