Mitsubishi MELSEC-Q/L Programming Manual page 305

Table of Contents

Advertisement

Function
(1) It reads the input from 16 points
from the device designated by
(2) One row (16 points) can be fetched in 1 scan.
(3) Fetching from the first to the n th row is repeated.
(4) The first through the 16th points store the first row of data and the next 16 points store the second row of data at the
devices following the device designated by
For this reason, the space of 16
(5)
is the output needed to select the row which will be fetched, and the system automatically turns it ON and OFF.
D1
It uses the n points from the device designated by
(6) Only device numbers divisible by 16 can be designated for
(7) For n, a value in the range from 2 to 8 can be assigned.
(8) No processing is performed in the following cases.
• The device number designated by
• The device designated by
• The device designated by
• The space 16
n points following the device designated by
• The value for n is not between 2 and 8.
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.
Error
code
The device other than the input (X) was specified at
4101
The device other than the output (Y) was specified at
Program Example
(1) The following program fetches, when X0 is turned ON, the 16 points 3 matrix starting from X10, and stores the matrix
into the area starting from M0.
[Ladder Mode]
n-rows starting from the input number designated by
onward.
D2
.
D2
n points from the device designated by
.
D1
,
, or
is not divisible by 16.
D1
D2
S
is outside the actual input range.
S
is outside the actual output range.
D1
Error details
.
S
.
D1
[List Mode]
Step
S
are occupied by the MTR instruction.
D2
,
and
.
D1
D2
S
exceeds the relevant device range.
D2
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
––
Instruction
Device
MTR
, then stores fetched input data
QnU
LCPU
––
303
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents