16-Bit Data N-Bit Right Shift, Left Shift (Sfr, Sfrp, Sfl, Sflp) - Mitsubishi MELSEC-A Series Programming Manual

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents