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
Ca
rr
y
fla
g
Err
o
r
fla
g
X Y M L S B F T C D W R A0
A1
Z V K H P I N
D
igit specification
In
d
e
x
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.
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......