402
7 APPLICATION INSTRUCTIONS
7.3 Shift Instructions
■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
• 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.
• 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
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The value in n1 or n2 is negative.
4101 The points specified in n1 exceed those of the device specified in (D).
10 0 7FF 3A 1F 30 0 FF
Filled with 0H
+2
+1
D D
+3
D
+4
D
+5
D
n2
+6
D
+7
D
+8
D D
n1
+2
+1
D D
+3
D
+4
D
+5
D
+6
D
+7
D
+8
D D
1FF
HH H HH H HH
0
H
0
H
0
H
0
H
H
3A 1F 30 0 FF
HHHH H