303
MTR
1
2
3
4
6
7
8
6.8
O
ther Con
venient Instru
ctions
6.8.10
MTR
Function
(1) It reads the input from 16 points n-rows starting from the input number designated by , then stores fetched input data
from the device designated by onward.
(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 n points from the device designated by
are occupied by the MTR instruction.
(5)
is the output needed to select the row which will be fetched, and the system automatically turns it ON and OFF.
It uses the n points from the device designated by .
(6) Only device numbers divisible by 16 can be designated for , and .
(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 , , or is not divisible by 16.
• The device designated by is outside the actual input range.
• The device designated by is outside the actual output range.
• The space 16 n points following the device designated by exceeds the relevant device range.
• 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.
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]
[List Mode]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The device other than the input (X) was specified at .
The device other than the output (Y) was specified at .
––
––
S
D2
D2
D2
D1
D1
S
D1
D2
S
D1
D2
S
D1
D2
S
D1
Step
Instruction
Device