Siemens SIMATIC S5-100U System Manual page 204

Simatic s5 series cpu 100/102/103
Hide thumbs Also See for SIMATIC S5-100U:
Table of Contents

Advertisement

STEP 5 Operations
STL
Load input word IW36 into ACCU 1.
L
IW 36
Load a constant into ACCU 1. The previous contents of ACCU 1 are shifted
L
KH 00FF
to ACCU 2.
Combine the contents of both accumulators bit by bit through logic OR.
OW
Transfer the result (contents of ACCU 1) to input word IW36.
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
Explanation
Numeric Example
IW36
0
OR
KH 00FF
Result
Set the 8 low-order bits in input word
IW36 to "1". Compare both words
bit by bit.
If either of the corresponding bits is
"1", a "1" is set in the result word.
EWA 4NEB 812 6120-02b
S5-100U

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents