3 . Instruction

Set

API

Mnemonic

 

 

 

Operands

Function

 

Controllers

 

52

 

MTR

 

 

 

 

Input Matrix

 

 

SA2

 

 

 

 

 

 

 

 

ES2/EX2 SS2 SE

SX2

Type

Bit Devices

 

Word devices

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C D

E

F

MTR: 9 steps

 

S

 

*

 

 

 

 

 

 

 

 

 

 

D1

 

 

*

 

 

 

 

 

 

 

 

 

D2

 

 

*

*

*

*

*

 

 

 

 

 

n

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

16-bit

 

 

 

32-bit

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

 

SE

 

SE

 

SE

 

 

 

 

 

 

 

 

 

 

 

 

Operands:

 

 

 

 

 

 

 

 

 

 

 

 

 

S: Head address of input device

D1: Head address of output device

D2: Head address of

 

matrix scan n: Number of arrays in the matrix

 

 

 

 

 

 

 

 

 

 

Explanations:

1.S is the source device of the matrix input and occupies 8 consecutive points.

D1 is the trigger device (transistor output Y) to read input signals and occupies n consecutive points

D2 is the head address of the matrix which stores the read status from inputs

2.This instruction allows 8 continuous input devices starting from S to be used n times, which means the operation result can be displayed with a matrix table starting from D2 . Each set of 8 input signals are grouped into an “array” and there are n number of arrays. Each array is selected to be read by triggering output devices starting from D1. The result is stored in a matrix-table which starts at corresponding head address D2.

3.Maximum 8 arrays can be specified (n = 8) to obtain 64 input points (8 × 8 = 64).

4.The processing time of each array is approximately 25ms, i.e. an 8 array matrix would cost 200ms to finish reading. In this case, input signals with ON/OFF speed faster than 200ms are not applicable in the matrix input.

5.It is recommended to use special auxiliary relay M1000 (normally open contact).

6.Whenever this instruction finishes a matrix scan, M1029 will be ON for one scan period..

7.There is no limitation on the number of times for using the instruction, but only one instruction can be executed in the same time.

8.Flag: M1029, execution completed flag.

Program Example:

When PLC runs, MTR instruction executes. The status of input points X40~X47 is read 2 times in the driven order of output points Y40 and Y41, i.e. 16 signals will be generated and stored in internal relay M10~M17 and M20~M27.

3 - 121

Page 237
Image 237
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Mtr, Explanations