Siemens SIMATIC S5-95F Manual page 225

Table of Contents

Advertisement

S5-95F
STL
L
IW 36
L
KH 00FF
OW
T
IW 36
15
ACCU 2
1 1 1 0 0 1 0 0 1 1 0 0 0 1 1 0
ACCU 1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
ACCU 1
1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1
EWA 4NEB 812 6210-02
Load input word IW36 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 OR.
Transfer the result (contents of ACCU 1) to input word IW36.
Numeric Example
IW36
KH 00FF
Result
Explanation
Set the 8 low-order bits in input word
0
IW36 to "1". Compare both words
bit by bit.
OR
If either of the corresponding bits is
"1", a "1" is set in the result word.
STEP 5 Operations
8-45

Advertisement

Table of Contents
loading

Table of Contents