Mitsubishi MELSEC Q Series Programming Manual page 431

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

SFTWL(P)
(1) This instruction shifts the n1 words data in the devices starting from the device specified by
to the left by n2 words.
D
n1=9, n2=4
D
+8
D
1FF
H
D
+8
D
3A
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
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.
• n1 or n2 is negative value.
• The range of devices specified by n1 exceeds the range of devices specified by
Program Example
(1) The following program shifts the 8 words (n1) data stored in the devices starting from D10
specified by
[Ladder Mode]
[Operation]
D17
1FF
D17
Filled with 0
0
H
H
n2
n1
+7
D
+6
D
+5
D
+4
10
0
7FF
3A
H
H
H
+7
D
+6
D
+5
D
+4
1F
30
0
FF
H
H
H
will be filled with 0s.
D
to the right by 2 words (n2), when M0 is turned on.
D
D16
D15
D14
0
2A
7FF
H
H
H
H
D16
D15
D14
0
1FF
0
H
H
H
D
+3
D
+2
D
+1
1F
30
0
H
H
H
H
D
+3
D
+2
D
+1
0
0
0
H
H
H
H
Filled with 0
H
[List Mode]
Step
Instruction
D13
D12
D11
10
4E
5F
H
H
H
D13
D12
D11
2A
7FF
10
H
H
H
SFTWR(P),SFTWL(P)
D
FF
H
D
0
H
(Error code: 4100)
.
D
(Error code: 4101)
Device
D10
FF
H
D10
×
×
4E
H
7-57
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents