A-15
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A-1 Instruction Functions
App
A-1-7 Data Shift Instructions
MOVE TIMER/
COUNTER PV
TO REGISTER
MOVRW @ Sets the PLC memory address of the specified timer or counter's
PV in the specified Index Register.
A-1-7 Data Shift Instructions
Instruction Mnemonic Variations Symbol/Operand Function
SHIFT REGIS-
TER
SFT --- Operates a shift register.
REVERSIBLE
SHIFT REGIS-
TER
SFTR @ Creates a shift register that shifts data to either the right or the left.
C: Control Word
WORD SHIFT WSFT @ Shifts data between St and E in word units.
ARITHMETIC
SHIFT LEFT
ASL @ Shifts the contents of Wd one bit to the left.
DOUBLE
SHIFT LEFT
ASLL @ Shifts the contents of Wd and Wd +1 one bit to the left.
Instruction Mnemonic Variations Symbol/Operand Function
MOVRW(561)
S
D
S: Source (desired TC number)
D: Destination (Index Register)
Internal I/O memory address of S
Timer/counter PV only
Index Register
SFT(010)
St
E
Data
input
Shift
input
Reset
input
St: Starting word
E: End word
E
St+1, St+2
St
Status of data
input for each
shift input
Lost
SFTR(084)
C
St
E
C: Control word
St: Starting word
E: End word
StE
St
E
Data input
Shift
direc-
tion
Data
input
Data input
Reset
Shift input
Shift direction
1 (ON): Left
0 (OFF): Right
15 14 13 12
WSFT(016)
S
St
E
S: Source word
St: Starting word
E: End word
St
E
Lost
ASL(025)
Wd
Wd: Word
0 15
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0
CY
0 0 11 0 0 0 1 0 0 0 1 0 0 0 01
Wd: 100CH
ASLL(570)
Wd
Wd: Word
Wd
Wd