Siemens S5-100U User Manual page 201

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

STEP 5 Operations
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
8-46
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.
S5-100U
EWA 4NEB 812 6120-02

Advertisement

Table of Contents
loading

Table of Contents