Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 903

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• This instruction sequentially reads the input of 16 pointsn columns connected to the (s) specified input number and after,
and stores the input data that has been read in the device specified by (d2) and later.
• One scan reads one column (16 points) of data.
• The instruction sequentially repeats the reading of data from column 1 to column (n).
• In the device specified by (d2) and later, the data in column 1 is stored in the 16 points from the start and the data in column
2 is stored in the next 16 points. For this reason, the MTR instruction occupies 16(n) points from the device specified by
(d2).
• (d1) is the output for selecting the column to be read and is turned on and off automatically by the system. The (n) points
from the device specified by (d1) is used.
• Only a device number which is a multiple of 16 can be specified in (s), (d1), and (d2).
• A value from 2 to 8 can be specified in (n).
• No processing is performed in the following cases.
• The device number specified by (s), (d1), or (d2) is not a multiple of 16.
• The device specified by (s) is outside the range of actual inputs.
• The device specified by (d1) is outside the range of actual outputs.
• In the device specified by (d2) and later, 16(n) points of data is outside the range of the relevant device.
• (n) is outside the range from 2 to 8.
■Program example
A program that reads the matrix data(16 points  three columns) connected to X10 and later, and stores the read data to M0
and later when X0 turns on
X0
[Operation]
• When Y20 turns on, the instruction reads the input signals of the 1st column, and stores the read data to M0 to M15.
• When Y21 turns on, the instruction reads the input signals of the 2nd column, and stores the read data to M16 to M31.
• When Y22 turns on, the instruction reads the input signals of the 3rd column, and stores the read data to M32 to M47.
X010
X011
X012
X013 X014 X015 X016 X017 X018 X019 X01A X01B X01C X01D X01E X01F
X010
X011
X012
X013 X014 X015 X016 X017 X018 X019 X01A X01B X01C X01D X01E X01F
X010
X011
X012
X013 X014 X015 X016 X017 X018 X019 X01A X01B X01C X01D X01E X01F
(1) 1st column
(2) 2nd column
(3) 3rd column
MTR
X10
Y20
M0
K3
END
(3)
(2)
(1)
7 APPLICATION INSTRUCTIONS
7.18 Matrix Input Instruction
7
901

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents