Siemens SIMATIC S7-200 System Manual page 194

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 Programmable Controller System Manual
Example: Shift and Rotate Instructions
Rotate
Before rotate
AC0
0100 0000 0000 0001
After first rotate
AC0
1010 0000 0000 0000
After second rotate
AC0
0101 0000 0000 0000
Zero Memory Bit (SM1.0)
Overflow Memory Bit (SM1.1)
180
Network 1
LD
I4.0
RRW
AC0, 2
SLW
VW200, 3
Shift
Overflow
x
VW200
Overflow
1
VW200
Overflow
0
VW200
= 0
= 0
VW200
Zero Memory Bit (SM1.0)
Overflow Memory Bit (SM1.1)
Before shift
Overflow
1110 0010 1010 1101
After first shift
Overflow
1100 0101 0101 1010
After second shift
Overflow
1000 1010 1011 0100
After third shift
Overflow
0001 0101 0110 1000
= 0
= 1
x
1
1
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents