Delta AS Series Programming Manual page 544

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 1:
When X0.0 is ON and SM616 is OFF, the instruction rotates the values of the bits in the 16-bit registers D0–D2 to the left,
and stores the operation result in the 16-bit registers D20–D22. The value of the bit marked ※ is transmitted to the carry
flag SM614.
Before the rotation
is executed
Carry flag
S M614
SM616=0
After the rotation
to the left is executed
S M614
Example 2:
When X0.0 is ON and SM616 is ON, the instruction rotates the values of the bits in the 16-bit registers D0–D2 to the
right, and stores the operation result in the 16-bit registers D20–D22. The value of the bit marked ※ is transmitted to the
carry flag SM614.
S
b15
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
After MB R is executed
D
b15
0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1
Carry flag
0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1
1
0 1 0
1 0 1 0 1 0 1 0 1 0 1 0 1
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
b0
D0
D1
D2
b0
D20
D21
D22
6_
6 - 2 6 5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents