
176
5-15-5
ROTATE LEFT – ROL(27)
Wd
: Rotate word
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
ROL(27)
Wd
@ROL(27)
Wd
Description
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.
1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 1
0
CY
Bit
00
Bit
15
Precautions
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 ROL(27).
The status of CY is cleared at the end of each cycle (when END(01) is executed).
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
DM word is
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.
N:
ON when a 1 is shifted into bit 15 of Wd.
5-15-6
ROTATE RIGHT – ROR(28)
Wd
: Rotate word
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
ROR(28)
Wd
@ROR(28)
Wd
Description
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.
0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 1
0
Bit
15
CY
Bit
00
Precautions
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).
The status of CY is cleared at the end of each cycle (when END(01) is executed).
Flags
ER:
Indirectly addressed DM word is non-existent. (Content of
DM word is
not BCD, or the DM area boundary has been exceeded.)
CY:
ROR(28) receives the data of bit 00.
EQ:
ON when the content of Wd is zero; otherwise OFF.
N:
ON when a 1 is shifted into bit 15 of Wd.
Data Shifting
Section 5-15
Содержание SYSMAC C200HE
Страница 1: ...Cat No W303 E1 09 OPERATION MANUAL Programmable Controllers C200HX C200HG C200HE ...
Страница 2: ......
Страница 3: ...C200HX C200HG C200HE Programmable Controllers Operation Manual Revised August 2004 ...
Страница 6: ...vi ...
Страница 10: ......
Страница 12: ......
Страница 380: ......
Страница 410: ......
Страница 438: ......
Страница 464: ......
Страница 474: ......
Страница 522: ......
Страница 538: ......
Страница 552: ...534 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 554: ......
Страница 560: ......
Страница 584: ......
Страница 585: ......
Страница 586: ...W303 E1 09 ...