7-48
7.3 Shift Instructions
7.3.3 1-word right/left shift of n-word data
DSFR, DSFL
DSFL(P)
(1) Shifts data n points from device specified for
to the left by 1 word.
(2) The device specified for
becomes 0.
O
peration Error
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The range of n points from the device specified for
exceeds the corresponding device.
(Error code: 4101)
Program Example
(1) In the following program, the data from D683 to D689 are shifted to the right when X0B turns
ON.
[Structured ladder]
[ST]
DSFRP(X0B,7,D683);
[Operation]
d
d
d
d
d
Becomes
0
555
120
325
100
50
40
125
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
D
686
D
686
D
689
D
688
D
687
D
685
D
68
4
D
683
D
689
D
688
D
687
D
685
D
68
4
D
683
503
600
3802
5003
0
503
600
3802
Becomes
0
S
pecification range for the D
S
F
R
P instruction
-
32765
-
336
-
100
-
100
-
336
-
32765
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......