Siemens SIMATIC S5-95F Manual page 224

Table of Contents

Advertisement

STEP 5 Operations
The result of the arithmetic operation is available in ACCU 1 for further processing. The contents of
ACCU 2 are not affected.
STL
L
IW 92
L
KH 00FF
AW
T
QW 82
15
ACCU 2
ACCU 1
ACCU 1
8-44
Load input word IW92 into ACCU 1.
Load a constant into ACCU 1. The previous contents of ACCU 1 are shifted
to ACCU 2.
Combine the contents of both accumulators bit by bit through logic AND.
Transfer the resulting contents from ACCU 1 to output word QW82.
Numeric Example
IW92
0 1 1 1 0 0 0 1 1 0 0 1 1 1 0 0
KH 00FF
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
Result
0 0 0 0 0 0 0 0
1 0 0 1 1 1 0 0
Explanation
Set the 8 high-order bits in input
0
word IW92 to "0".
Compare both words bit by bit. If
corresponding bits are both "1", the
AND
result bit is set to "1".
S5-95F
EWA 4NEB 812 6210-02

Advertisement

Table of Contents
loading

Table of Contents