Rotate Right Without Carry: Rrnc(261) - Omron SYSMAC CVM1 Series Operation Manual

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

Advertisement

Shift Instructions

5-14-21 ROTATE RIGHT WITHOUT CARRY: RRNC(261)

Ladder Symbol
Variations
↑RRNC(261)
Description
Flags
Example
0000
00
Operand Data Area
(261)
Wd: Word
RRNC Wd
When the execution condition is OFF, RRNC(261) is not executed. When the
execution condition is ON, RRNC(261) shifts all Wd bits one bit to the right, shift-
ing the status of bit 00 into both bit 15 of Wd and into CY.
Bit
15
0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 1
Content of *DM word is not BCD when set for BCD.
ER (A50003):
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.
When CIO 000000 is ON in the following example, the status of bit 00 of
CIO 0100 is shifted into bit 15 of CIO 0100 and into CR and the status of all bits
within CIO 0100 are shifted right one position.
(261)
RRNC
MSB
1 0 1 0 1 1 0 0 1 1 1 0 0 0 1 1
MSB
1
1 0 1 0 1 1 0 0 1 1 1 0 0 0 1
CIO, G, A, DM, DR, IR
Wd
0100
Wd: CIO 0100
Section 5-14
Bit
00
CY
0
Address
Instruction
Operands
00000
LD
00001
RRNC(261)
LSB
CY
0
LSB
CY
1
000000
0100
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents