Double Rotate Left: Roll(066) - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Shift Instructions

5-14-17 DOUBLE ROTATE LEFT: ROLL(066)

Ladder Symbol
Variations
j ROLL(066)
Description
Precautions
Flags
Example
0000
00
(066)
ROLL Wd
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.
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.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
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.
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.
(066)
ROLL
CY
MSB
0
1 0 0 0
CY
MSB
1
0 0 0 1
Operand Data Area
Wd: Word
CIO, G, A, DM
Wd+1
0100
Wd+1: CIO 0101
LSB
MSB
1 1 1 0
0 0 1 0
Wd+1: CIO 0101
LSB
1 1 0 0
Section 5-14
Wd
Address Instruction
00000
LD
00001
ROLL(066)
Wd: CIO 0100
LSB
1 0 0 1
Wd: CIO 0100
MSB
LSB
0 1 0 0
0 1 1 0
Operands
000000
0100
167

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents