![Omron CVM1D Operation Manual Download Page 168](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532168.webp)
163
5-14-13 ROTATE LEFT: ROL(062)
(062)
ROL
Wd
Wd: Word
CIO, G, A, DM, DR, IR
Operand Data Area
Ladder Symbol
Variations
j
ROL(062)
When the execution condition is OFF, ROL(062) is not executed. When the ex-
ecution condition is ON, ROL(062) shifts all Wd bits one bit to the left, shifting CY
into bit 00 of Wd and shifting bit 15 of Wd into CY.
1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 1
0
CY
Bit
00
Bit
15
Use STC(078) to set CY to 1 or CLC(079) to set CY to 0 if necessary before do-
ing a rotate operation to ensure that CY contains the proper status before ex-
ecuting ROL(062).
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
CY (A50004):
Receives the status of bit 15 from Wd.
EQ (A50006):
Content of Wd is 0 after execution.
N (A50008):
Same status as bit 15 of Wd after execution.
Example
When CIO 000000 is ON in the following example, the status of CY is shifted into
bit 00 of D00010, the status of all bits within D00010 are shifted left one position,
and the status of bit 15 is shifted to CY.
Address
Instruction
Operands
00000
LD
000000
00001
ROL(062)
D00010
0
LSB
MSB
LSB
MSB
CY
1
CY
Wd: D00010
1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 1
0 1 1 0 0 1 1 1 0 0 0 1 1 0 1 0
Description
Precautions
Shift Instructions
Section 5-14
0000
00
(062)
ROL D00010
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...