Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L
7 APPLICATION INSTRUCTIONS
7.3 Shift Instructions
399
7
1-word shift to right of n-word data, 1-word shift to left of n-word
data
data
DSFR(P), DSFL(P)
Processing details
■DSFR
• Shifts data n points from device designated by (D) 1-word to the right.
• The device designated by (D)+(n-1) is filled with 0.
■DSFL
• Shifts data n points from device designated by (D) 1-word to the left.
• The device designated by (D) is filled with 0.
(D): Head number of the devices to be shifted (BIN 16 bits)
n:
n:
Number of devices to which shift is executed (BIN 16 bits)
Setting
data
data
Internal device
R, ZR
J\
U\G
Zn
Constant
K, H
K, H
Others
Bit
Word
Bit
Word
(D)
n
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
P
D
n
D
n
DSFR, DSFL
DSFRP, DSFLP
indicates an instruction symbol of DSFR/DSFL.
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
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