E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-112
API Mnemonic
Operands
Function
52
MTR
S, D
1
, D
2
, n
Input Matrix
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
*
D
1
*
D
2
* * *
n
*
*
MTR: 9 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
: Starting address of input matrix
D
1
: Starting address of output matrix
D
2
: Corresponding
starting address of matrix scan
n
: Number of banks for the matrix
Description:
1.
S
is the starting address that specifies all inputs of the matrix. Once the input is specified, a
selection of 8 continuous input addresses is called the “input matrix”.
D
1
is the starting
address of the transistor outputs.
2.
This instruction allows a selection of 8 continuous inputs to be used multiple (
n
) times. Each
input has more than one input device wired to it. . Each set of 8 input signals are grouped into
“rows” and there are
n
number of rows. Each row is selected by turning a different output on.
The quantity of outputs from
D
1
is equal to the number of rows
n
. The results are stored in a
matrix-table with a starting address specified by
D
2.
3.
The maximum number of inputs supported by this instruction is 64 (8 inputs x 8 rows).
4.
When this instruction is used in an interrupt routine, each row of inputs will be processed
every 25msec. This results in a matrix of 8 rows, i.e. 64 inputs (8 inputs x 8 rows) being read
in 200msec. Hence, this instruction is not available for the input signal with an ON/OFF rate
is more than 200ms.
5.
It is recommended to condition a MTR rung with M1000 (normally open contact).
6.
When the MTR instruction execution is complete, the instruction execution completed flag
M1029 is turned ON. This flag is automatically reset when the MTR instruction is turned OFF.
7.
This instruction can only be used ONCE in the program.
8.
Flag: M1029, execution completed flag.
Program Example:
When the ELC is in the run mode, the MTR instruction starts to execute. The external 2 rows, total
16 devices are read in order and the results are stored in the internal addresses M10~M17,
M20~M27.
M1000
MTR
X40
Y40
M10
K2
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...