Double Rotate Right: Rorl(067) - Omron SYSMAC CVM1 Series Operation Manual

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

Advertisement

Shift Instructions

5-14-20 DOUBLE ROTATE RIGHT: RORL(067)

Ladder Symbol
Variations
j RORL(067)
Description
Precautions
Flags
Example
0000
00
170
(067)
RORL Wd
When the execution condition is OFF, RORL(067) is not executed. When the ex-
ecution condition is ON, RORL(067) shifts CY into bit 15 of Wd+1, all bits pre-
viously in Wd and Wd+1 are shifted to the right, and bit 00 of Wd is shifted into
CY.
Wd+1
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 RORL(067).
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 00 from Wd.
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 15 of CIO 0801, the status of all bits within CIO 0801 are shifted right one
position, the status of bit 00 of CIO 0801 is shifted into bit 00 of CIO 0800, the
status of all bits within CIO 0800 are shifted right one position, the status of bit 00
of CIO 0800 is shifted into CY.
(067)
RORL
Wd+1: CIO 0801
MSB
1 0 0 1
Wd+1: CIO 0801
MSB
0 1 0 0
Operand Data Area
Wd: Word
CIO, G, A, DM
0800
LSB
MSB
0 1 1 0
1 0 1 1
LSB
MSB
0 0 1 1
0 1 0 1
Section 5-14
Wd
CY
Address Instruction
00000
LD
00001
RORL(067)
Wd: CIO 0800
LSB
CY
0 0 1
0
Wd: CIO 0800
LSB
CY
1 1 0 1
1
Operands
000000
0800

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents