Mitsubishi Electric MELSEC-Q/L Programming Manual page 404

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

■SFTWL(P)
• This instruction shifts the n1 words data in the devices starting from the device specified by (D) to the left by n2 words.
n1=9, n2=4
n2
D
+8
D
+7
1FF
10
H
H
D
+8
D
+7
3A
1F
H
H
• The n2 words in the devices starting from the lowest device are filled with 0s.
• If the value specified by n1 or n2 is 0, the instruction will be not processed.
• 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 (D)
will be filled with 0s.
Operation error
• 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
Error details
code
4100
The value in n1 or n2 is negative.
4101
The points specified in n1 exceed those of the device specified in (D).
7 APPLICATION INSTRUCTIONS
402
7.3 Shift Instructions
n1
D
+6
D
+5
D
+4
0
7FF
3A
H
H
H
D
+6
D
+5
D
+4
30
0
FF
H
H
H
D
+3
D
+2
D
+1
1F
30
0
H
H
H
D
+3
D
D
+1
+2
0
0
0
H
H
H
Filled with 0
H
Q00J/
Q00/
Q01
D
FF
H
D
0
H
QnH
QnPH
QnPRH
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents