S5-100U
STEP 5 Operations
0
15
Explanation
STL
L
DW 2
SLW 3
T
DW 3
Load the contents of data word DW2 into ACCU 1.
Shift the bit pattern in ACCU 1 three positions to the left.
Transfer the result (contents of ACCU 1) to data word DW3.
Numeric Example
The value 464
10
is stored in data
word DW2. Multiply this value by
2
3
=8. Do so by shifting the bit
pattern of DW2 in ACCU 1 three
positions to the left.
0 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0
15
0
0 0 0 0 0 0 0 1
3712
10
ACCU 1
ACCU 1
464
10
(DW2)
1 1 0 1 0 0 0 0
SLW 3
0
15
Explanation
STL
L
IW 124
SRW 4
T
QW 126
Load the value of input word IW124 into ACCU 1.
Shift the bit pattern in ACCU 1 four positions to the right.
Transfer the result (contents of ACCU 1) to output word QW126.
Numeric Example
The value 352
10
is stored in IW124.
Shift the corresponding bit pattern in
ACCU 1 four positions to the right to
divide the value 352
10
by 2
4
= 16.
0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0
15
0
0 0 0 0 0 0 0 1
22
10
ACCU 1
ACCU 1
352
10
(IW124)
0 1 1 0 0 0 0 0
SRW 4
EWA 4NEB 812 6120-02b
8-49
Summary of Contents for SIMATIC S5-100U
Page 6: ...EWA 4NEB 812 6120 02b ...
Page 16: ...EWA 4NEB 812 6120 02b ...
Page 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Page 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Page 23: ......
Page 27: ......
Page 36: ...EWA 4NEB 812 6120 02b ...
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 102: ...EWA 4NEB 812 6120 02b ...
Page 156: ...EWA 4NEB 812 6120 02b ...
Page 232: ...EWA 4NEB 812 6120 02b ...
Page 268: ...EWA 4NEB 812 6120 02b ...
Page 272: ...EWA 4NEB 812 6120 02b ...
Page 336: ...EWA 4NEB 812 6120 02b ...
Page 352: ...EWA 4NEB 812 6120 02b ...
Page 412: ...EWA 4NEB 812 6120 02b ...
Page 482: ...EWA 4NEB 812 6120 02b ...
Page 484: ...EWA 4NEB 812 6120 02b ...
Page 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Page 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Page 516: ...EWA 4NEB 812 6120 02b ...
Page 522: ...EWA 4NEB 812 6120 02b ...
Page 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Page 524: ...EWA 4NEB 812 6120 02b ...
Page 530: ...EWA 4NEB 812 6120 02b ...
Page 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Page 532: ...EWA 4NEB 812 6120 02b ...
Page 534: ...EWA 4NEB 812 6120 02b ...
Page 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Page 536: ...EWA 4NEB 812 6120 02b ...
Page 542: ...EWA 4NEB 812 6120 02b ...
Page 543: ...Index EWA 4NEB 812 6120 02b ...
Page 544: ...EWA 4NEB 812 6120 02b ...
Page 550: ...EWA 4NEB 812 6120 02b ...