345
DSFR, DSFRP, DSFL, DSFLP
1
2
3
4
4
6
7
8
7.3
S
hift instruction
7.3.4
D
SFR
, DSFRP, D
S
F
L, DSF
LP
: Head number of the devices to be shifted (BIN 16 bits)
n
: Number of devices to which shift is executed (BIN 16 bits)
Function
DSFR
(1) Shifts data n points from device designated by 1-word to the right.
(2) The device designated by D + (n-1) is filled with 0.
DSFL
(1) Shifts data n points from device designated by 1-word to the left.
(2) The device designated by is filled with 0.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
DSFR, DSFRP
1-word shift to right of n-word data
DSFL, DSFLP
1-word shift to left of n-word data
7.3.4
DSFR, DSFRP, DSFL, DSFLP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
n
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The points specified in n exceed those of the corresponding device
specified in .
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
P
D
n
D
n
DSFR, DSFL
DSFRP, DSFLP
indicates an instruction s
y
mbol of DSFR/DSFL.
D
D
D
Filled with 0.
555
212
325
100
50
40
0
555
212
325
100
50
n
D
D
D
D
D
D
D
D
D
D
D
D
+
(
n-1
)
+
(
n-2
)
+
(
n-3
)
+
(
n-1
)
+
(
n-2
)
+
(
n-3
)
+
(
n-4
)
+2
+1
+1
D
D
D
D
D
Filled with 0.
555
120
325
100
50
40
120
325
100
50
40
0
D
D
D
D
D
D
D
D
n
+
(
n-3
)
+
(
n-1
)
+
(
n-2
)
+
(
n-1
)
+
(
n-2
)
+2
+1
+2
+1
+3
D
D