![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423144.webp)
131
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
5-13-10 REVERSIBLE WORD SHIFT – RWS(17)
RWS(17)
C
St
E
Ladder Symbols
RWS(17)
C
St
E
C: Control word
IR, SR, AR, DM, HR, TC, LR, #
St: Starting word
IR, AR, DM, HR, LR
E: End word
IR, AR, DM, HR, LR
Operand Data Areas
Can be performed with the CPU11-E only. St and E must be in the same data
area, and E must be less than or equal to St.
When the execution condition is OFF, RWS(17) does nothing and the pro-
gram moves to the next instruction. When the execution condition is ON,
RWS(17) is used to create and control a reversible asynchronous word shift
register between St and E. This register only shifts words when the next word
in the register is zero, e.g., if no words in the register contain zero, nothing is
shifted. Also, only one word is shifted for each word in the register that con-
tains zero. When the contents of a word are shifted to the next word, the orig-
inal word’s contents are set to zero. In essence, when the register is shifted,
each zero word in the register trades places with the next word. (See Exam-
ple below.)
The shift direction (i.e. whether the “next word” is the next higher or the next
lower word) is designated in C. C is also used to reset the register. All of any
portion of the register can be reset by designating the desired portion with St
and E.
Bits 00 through 12 of C are not used. Bit 13 is the shift direction: turn bit 13
ON to shift down (toward lower addressed words) and OFF to shift up (to-
ward higher addressed words). Bit 14 is the Shift Enable Bit: turn bit 14 ON to
enable shift register operation according to bit 13 and OFF to disable the reg-
ister. Bit 15 is the Reset bit: the register will be reset (set to zero) between St
and E when RWS(17) is executed with bit 15 ON. Turn bit 15 OFF for normal
operation.
Flags
ER:
The St and E words are in different areas, or St is greater than E.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
The following example shows instruction RWS(17) used to shift words in an
11-word shift register created between DM 0100 and DM 0110 assuming that
HR 1215 (the Reset Bit in the control word) is ON, the entire register would
Limitations
Description
Control Word
Example
Data Shifting
Section 5-13
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...