7 APPLICATION INSTRUCTIONS
7.3 Shift Instructions
411
7
• An example of operation where digit specification is used for shift data (D) and the data (S) to be stored in the shift data is
shown below.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
• The sample program shifts the 9 words of data starting from D20 3 words to the left and transfers 3 words of data from D10
to the 3 words from D20.
(1) Overflow (deletion data)
(2) n2 words shift to the left (n2=2)
(3) Coping n2 words
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 n1 is other than 0 to 512.
n2 is a negative value.
4101 n1 is smaller than n2.
The value in the device specified by the instruction exceeds the setting
range.
The device range for the number of n2 points from (S) overlaps that for the
number of n1 points from (D).
[Ladder Mode]
WSFL
X7 X6 X5 X5 X3 X2 X1 X0
YF YE YD YC YB YA Y9 Y8 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
K1X0 K1Y0 K4 K2
M0
(3)
(2)
(1)
Set the same digit when shifting the digit-specified bit devices.