![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532172.webp)
167
5-14-17 DOUBLE ROTATE LEFT: ROLL(066)
(066)
ROLL Wd
Wd: Word
CIO, G, A, DM
Operand Data Area
Ladder Symbol
Variations
j
ROLL(066)
When the execution condition is OFF, ROLL(066) is not executed. When the ex-
ecution condition is ON, ROLL(066) shifts CY into bit 00 of Wd, all bits previously
in Wd and Wd+1 are shifted to the left, and bit 15 of Wd+1 is shifted into CY.
Wd+1
Wd
CY
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 ROLL(066).
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+1.
EQ (A50006):
Content of Wd and Wd+1 are 0 after execution.
N (A50008):
Same status as bit 15 of Wd+1 after execution.
Example
When CIO 000000 is ON in the following example, the status of CY is shifted into
bit 00 of CIO 0100, the status of all bits within CIO 0100 are shifted left one posi-
tion, the status of bit 15 of CIO 0100 is shifted to bit 00 of CIO 0101, the status of
all bits within CIO 0101 are shifted left one position, and the status of bit 15 is
shifted to CY.
Address
Instruction
Operands
00000
LD
000000
00001
ROLL(066)
0100
1 0 0 0
1 1 1 0
0
CY
LSB
MSB
0 0 0 1
1 1 0 0
1
CY
LSB
MSB
0 0 1 0
1 0 0 1
0 1 0 0
0 1 1 0
LSB
MSB
LSB
MSB
Wd+1: CIO 0101
Wd: CIO 0100
Wd+1: CIO 0101
Wd: CIO 0100
Description
Precautions
Shift Instructions
Section 5-14
0000
00
(066)
ROLL
0100
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...