EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 903

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.18 Matrix Input Instruction
901
7
Processing details
This instruction sequentially reads the input of 16 pointsn 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.
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
[Operation]
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.
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.
(1) 1st column
(2) 2nd column
(3) 3rd column
X0
MTR X10 Y20 M0 K3
END
M32
X012
M33
X011
M34
M35
X013
M36
X014
M37
X015
M38
X016
M39
X017
M40
X018
M41
X019
M42
X01A
M43
X01B
M44
X01C
M45
X01D
M46
X01E
M47
X01F
M16
X012
M17
X011
M18
M19
X013
M20
X014
M21
X015
M22
X016
M23
X017
M24
X018
M25
X019
M26
X01A
M27
X01B
M28
X01C
M29
X01D
M30
X01E
M31
X01F
M0
X012
M1
X011
M2
M3
X013
M4
X014
M5
X015
M6
X016
M7
X017
M8
X018
M9
X019
M10
X01A
M11
X01B
M12
X01C
M13
X01D
M14
X01E
M15
X01FX010
Y22
Y21
Y20
X010
X010
(3)
(2)
(1)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals