Reversible Shift Register: Sftr - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Data Shift Instructions
Description
E
Lost
Flags
Precautions
Examples
Data input
Shift input
(1-s clock)
Reset
3-9-2

REVERSIBLE SHIFT REGISTER: SFTR(084)

Purpose
Ladder Symbol
When the execution condition on the shift input changes from OFF to ON, all
the data from St to E is shifted to the left by one bit (from the rightmost bit to
the leftmost bit), and the ON/OFF status of the data input is placed in the
rightmost bit.
St+1, St+2, ...
Name
Label
Error Flag
ER
The bit data shifted out of the shift register is discarded.
When the reset input turns ON, all bits in the shift register from the rightmost
designated word (St) to the leftmost designated word (E) will be reset (i.e., set
to 0). The reset input takes priority over other inputs.
St must be less than or equal to E, but even when St is set to greater than E
an error will not occur and one word of data in St will be shifted.
When St and E are designated indirectly using index registers and the actual
addresses in I/O memory are not within memory areas for data, an error will
occur and the Error Flag will turn ON.
Shift Register Exceeding 16 Bits
The following example shows a 48-bit shift register using words CIO 0128 to
CIO 0130. A 1-s clock pulse is used so that the execution condition produced
by CIO 000005 is shifted into a 3-word register between CIO 012800 and
CIO 013015 every second.
E: CIO 0130
Lost
Creates a shift register that shifts data to either the right or the left.
SFTR(084)
C: Control word
C
St: Starting word
St
E: End word
E
Operation
ON if the indirect IR address for St and E is not in the CIO,
AR, HR, or WR data areas.
OFF in all other cases.
St+1:
CIO 0129
St:
Section 3-9
St
Status of data input
for each shift input
CIO 0128
Contents of
CIO 000005
363

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents