Delta Electronics — 6.10.2 Explanation of Rotation Instructions

Chapter 6 Applied Instructions Before the rotation is executed S b0 b15 Carry flag D0 D1 D2 SM614 ※ After MB R is executed D SM616=0 After the rotation to the left is executed b0 b15 D20 D21 D22 Carry flag 1 SM614 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. 6_ 6-265 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 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 1