Siemens SIMATIC S5-115U User Manual page 246

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents