7. APPLICATION INSTRUCTIONS
7 − 32
MELSEC-A
7.3.1 16-bit data n-bit right shift, left shift
(SFR, SFRP, SFL, SFLP)
Available Device
Bit device Word (16-bit) device Constant Pointer
Level
Carry
flag
Error
flag
X Y M L S B F T C D W R A0 A1 Z V K H P I N
Digit specification
Index
M9012 (M9010, M9011)
(D) O O O O O O O O O O O O O O O
n O O
O O O
Functions SFR
(1) Shifts the 16-bit data of device specified at (D) to the right by "n" bits.
"n" bits, which begin with the highest bit, change to 0.
(2) For T/C, the present value (count value) is shifted. (The shift of set value cannot
be performed.)
Applicable
CPU
All CPUs
K1 to
K4
(D) n
(D) n
P
Shift commands
(D)
Head number of device
which stores data to be
shifted
n Number of shifts
Setting data
SFR, SFL
Indicates the instruction symbol.
Carry
flag
(M9012)
Before execution
After execution
0 is entered.