Dsfr, Dsfrp; 1-Word Shift To Right Of N-Word Data; 1-Word Shift To Left Of N-Word Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

7.3.4

DSFR, DSFRP

1-word shift to right of n-word data

7.3.4
DSFL, DSFLP

1-word shift to left of n-word data

DSFR, DSFRP, DSFL, DSFLP
DSFR, DSFL
DSFRP, DSFLP
: Head number of the devices to be shifted (BIN 16 bits)
D
n
: Number of devices to which shift is executed (BIN 16 bits)
Internal Devices
Setting
Data
Bit
––
D
n
Function
DSFR
(1) Shifts data n points from device designated by
(2) The device designated by D + (n-1) is filled with 0.
DSFL
(1) Shifts data n points from device designated by
(2) The device designated by
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.
Error
code
The points specified in n exceed those of the corresponding device
4101
specified in
.
D
Command
Command
R, ZR
Word
Bit
1-word to the right.
D
+(n-1)
+(n-2)
+(n-3)
D
D
D
555
212
325
D
+(n-1)
+(n-2)
+(n-3)
D
D
0
555
212
Filled with 0.
1-word to the left.
D
+(n-1)
D
D
+(n-2)
D
+(n-3)
555
120
325
D
D
+(n-2)
D
+3
+(n-1)
120
325
100
is filled with 0.
D
Error details
DSFR, DSFRP, DSFL, DSFLP
High
Basic
performance
indicates an instruction symbol of DSFR/DSFL.
P
J
\
U
\G
Word
––
n
+2
+1
D
D
D
100
50
40
D
+(n-4)
D
+1
D
325
100
50
n
+2
+1
D
D
D
100
50
40
D
+2
D
+1
D
50
40
0
Q00J/
Q00/
QnH
Q01
Process
Redundant Universal
LCPU
n
D
n
D
Constants
Zn
Other
K, H
Filled with 0.
QnPH QnPRH
QnU
1
2
3
4
––
4
––
6
7
8
LCPU
345

Advertisement

Table of Contents
loading

Table of Contents