Siemens SIMATIC S5-115U User Manual page 247

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

S5-115U Manual
STL
L
IW 71
Load input word IW 71 into ACCUM 1.
L
IW 5
Load input word IW 5 into ACCUM 1. The previous contents of ACCUM 1
are shifted to ACCUM 2.
XOW
Combine the contents of both accumulators bit by bit through
EXCLUSIVE OR.
T
QW 86
Transfer the result (contents of ACCUM 1) to output word QW 86.
15
ACCUM 2
0 0 0 1 1 0 1 1 0 1 1 0 1 1 0 0
ACCUM 1
1 0 0 1 1 0 0 1 1 1 0 0 0 1 1 0
ACCUM 1
1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0
EWA 4NEB 811 6130-02b
Explanation
Numeric Example
IW 71
0
X-OR
IW 5
Result
STEP 5 Operations
Check to see if input words IW 71
and IW 5 are equal.
The result bit is set to "1" only if
corresponding bits in ACCUM 1 and
ACCUM 2 are unequal.
8-47

Advertisement

Table of Contents
loading

Table of Contents