![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268404.webp)
365
Data Shift Instructions
Section 3-9
Description
When the execution condition of the shift input bit (bit 14 of C) changes to ON,
all the data from St to E is moved in the designated shift direction (designated
by bit 12 of C) by 1 bit, and the ON/OFF status of the data input is placed in
the rightmost or leftmost bit. The bit data shifted out of the shift register is
placed in the Carry Flag (CY).
Flags
Precautions
The above shift operations are applicable when the reset bit (bit 15 of C) is set
to OFF.
When reset (bit 15 of C) turns ON all bits in the shift register, from St to E will
be reset (i.e., set to 0).
When St is greater than E, an error will be generated and the Error Flag will
turn ON.
Examples
Shifting Data
If shift input CIO 030014 goes ON
when CIO 000000 is ON, and the reset bit
CIO 030015 is OFF, words CIO 0100 through CIO 0102 will shift one bit in the
direction designated by CIO 030012 (e.g., 1: Right) and the contents of input
bit CIO 030013 will be shifted into the rightmost bit, CIO 010000. The con-
tents of CIO 010215 will be shifted to the Carry Flag (CY).
Resetting Data
If CIO 030014 is ON
when CIO 000000 is ON, and the reset bit, CIO 030015,
is ON, words CIO 0100 through CIO 0102 and the Carry Flag will be reset to
OFF.
St
E
E
St
Shift direction
Data input
Data input
Name
Label
Operation
Error Flag
ER
ON when St is greater than E.
OFF in all other cases.
Carry Flag
CY
ON when 1 is shifted into it.
OFF when 0 is shifted into it.
OFF when reset is set to 1.
C: 0300
C
E
St
Data input:
CIO 030013
Reset input bit: 0
Shift input bit: 1
Shift direction
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...