Mitsubishi MELSEC-Q/L Programming Manual page 349

Table of Contents

Advertisement

Function
SFTWR(P)
(1) This instruction shifts n1 words data in the devices starting from the device specified by
n1=9, n2=4
D
+8
D
+7
D
+6
30F
1E
100
H
H
D
+8
D
+7
D
+6
0
0
0
H
H
H
Filled with 0
H
(2) The n2 words data in the devices starting from the highest device are filled with 0s.
(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.
(4) If the value of n2 is equal to or larger than the value of n1, the n1 words data in the devices starting from the device
specified by
will be filled with 0s.
D
SFTWL(P)
(1) This instruction shifts the n1 words data in the devices starting from the device specified by
n1=9, n2=4
n2
D
+8
D
+7
D
+6
1FF
10
0
H
H
H
D
+8
D
+7
D
+6
3A
1F
30
H
H
H
(2) The n2 words in the devices starting from the lowest device are filled with 0s.
(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.
(4) If the value of n2 is equal to or greater than the value of n1, the n1 words devices starting from the device specified by
will be filled with 0s.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
Error
code
4100
The value in n1 or n2 is negative.
4101
The points specified in n1 exceed those of the device specified in
n1
D
+5
D
+4
D
+3
0
1FF
10
H
H
H
H
D
+5
D
+4
D
+3
0
30F
1E
H
H
H
n1
D
+5
D
+4
D
+3
7FF
3A
1F
H
H
H
D
+5
D
+4
D
+3
0
FF
0
H
H
H
Error details
SFTWR, SFTWRP, SFTWL, SFTWLP
n2
D
+2
D
+1
D
1F
7FF
2A
H
H
H
D
D
+1
D
+2
100
0
1FF
H
H
H
D
+2
D
+1
D
30
0
FF
H
H
H
D
D
+1
D
+2
0
0
0
H
H
H
Filled with 0
H
Q00J/
Q00/
QnH
Q01
––
––
––
––
.
D
to the right by n2 words.
D
to the left by n2 words.
D
QnPH QnPRH
QnU
LCPU
––
––
––
––
347
1
2
3
4
4
6
7
8
D

Advertisement

Table of Contents
loading

Table of Contents