Mitsubishi Electric MELSEC-Q/L Programming Manual page 413

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

Advertisement

• 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.
M0
WSFL
K1X0
YF
YE
YD YC
YB
YA
(1)
(1) Overflow (deletion data)
(2) n2 words shift to the left (n2=2)
(3) Coping n2 words
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
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).
Program example
• 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.
[Ladder Mode]
K1Y0
K4
K2
X7
X6
X5
X5
X3
Y9
Y8
Y7
Y6
Y5
Y4
Y3
(2)
Set the same digit when shifting the digit-specified bit devices.
X2
X1
X0
(3)
Y2
Y1
Y0
Q00J/
QnH
QnPH
Q00/
Q01
7 APPLICATION INSTRUCTIONS
QnPRH
QnU
LCPU
411
7.3 Shift Instructions
7

Advertisement

Table of Contents
loading

Table of Contents