Siemens SIMATIC S5 Manual page 143

Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

S5-115F Manual
STL
L
IW 35
L
KH 00FF
OW
T
IW 35
15
ACCUM 2
1 1 1 0 0 1 0 0 1 1 0 0 0 1 1 0
ACCUM 1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
ACCUM 1
1 1 1 0 0 1 0 0 1 1 1 1 1 1 1 1
EWA 4NEB 811 6149-02
Load input word IW 35 into ACCUM 1.
Load a constant into ACCUM 1. The previous contents of ACCUM 1 are
shifted to ACCUM 2.
Combine the contents of both accumulators bit by bit through logic OR.
Transfer the result (contents of ACCUM 1) to input word IW 35.
Numeric Example
IW 35
KH 00FF
Result
Explanation
Set the 8 low-order bits in input
0
word IW 35 to "1". Compare both
words bit by bit.
OR
If corresponding bits are both "1",
a "1" is set in the result word.
STEP 5 Operations
3-47

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5-115f

Table of Contents