Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 425

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Shift Instructions
Description
Precautions
Flags
7-16-6 ROTATE RIGHT – ROR(28)
Limitations
Description
Precautions
Flags
When the execution condition is OFF, ROL(27) is not executed. When the
execution condition is ON, ROL(27) shifts all Wd bits one bit to the left, shifting
CY into bit 00 of Wd and shifting bit 15 of Wd into CY.
CY
0
Use STC(41) to set the status of CY or CLC(41) to clear the status of CY before
doing a rotate operation to ensure that CY contains the proper status before
executing ROL(27).
CY will be shifted into bit 00 every cycle if the undifferentiated form of ROL(27) is
used. Use the differentiated form (@ROL(27)) or combine ROL(27) with
DIFU(13) or DIFD(14) to shift just one time.
Indirectly addressed DM word is non-existent. (Content of *DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
CY:
Receives the data of bit 15.
EQ:
ON when the content of Wd is zero; otherwise OFF.
Ladder Symbols
ROR(28)
@ROR(28)
Wd
DM 6144 to DM 6655 cannot be used for Wd.
When the execution condition is OFF, ROR(28) is not executed. When the
execution condition is ON, ROR(28) shifts all Wd bits one bit to the right, shifting
CY into bit 15 of Wd and shifting bit 00 of Wd into CY.
CY
0
Use STC(41) to set the status of CY or CLC(41) to clear the status of CY before
doing a rotate operation to ensure that CY contains the proper status before
execution ROR(28).
CY will be shifted into bit 15 every cycle if the undifferentiated form of ROR(28) is
used. Use the differentiated form (@ROR(28)) or combine ROR(28) with
DIFU(13) or DIFD(14) to shift just one time.
Indirectly addressed DM word is non-existent. (Content of *DM word is
ER:
not BCD, or the DM area boundary has been exceeded.)
CY:
Receives the data of bit 00.
EQ:
ON when the content of Wd is zero; otherwise OFF.
Bit
15
1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 1
Wd
Bit
15
0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 1
Section
7-16
Bit
00
Operand Data Areas
Wd: Rotate word
IR, SR, AR, DM, HR, LR
Bit
00
407

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?

Table of Contents