Siemens SIMATIC S5-90U System Manual page 214

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
S5-90U/S5-95U
Set the 8 low-order bits in input word
IW36 to "1". Compare both words
bit by bit.
If corresponding bits are both "1", a
"1" is set in the result word.
EWA 4NEB 812 6115-02b

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents