17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

52 MTR Input Matrix<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F MTR: 9 steps<br />

S *<br />

D 1 *<br />

D 2 * * *<br />

n * *<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

Operands:<br />

S: Head address of input device D 1 : Head address of output device D 2 : Head address of<br />

matrix scan n: Number of arrays in the matrix<br />

Explanations:<br />

1. S is the source device of the matrix input and occupies 8 consecutive points.<br />

D 1 is the trigger device (transistor output Y) to read input signals and occupies n consecutive<br />

points<br />

D 2 is the head address of the matrix which stores the read status from inputs<br />

2. This instruction allows 8 continuous input devices starting from S to be used n times, which<br />

means the operation result can be displayed with a matrix table starting from D 2 . Each set of<br />

8 input signals are grouped into an “array” and there are n number of arrays. Each array is<br />

selected to be read by triggering output devices starting from D 1 . The result is stored in a<br />

matrix-table which starts at corresponding head address D 2 .<br />

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

4. The processing time of each array is approximately 25ms, i.e. an 8 array matrix would cost<br />

200ms to finish reading. In this case, input signals with ON/OFF speed faster than 200ms are<br />

not applicable in the matrix input.<br />

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

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

7. There is no limitation on the number of times for using the instruction, but only one instruction<br />

can be executed in the same time.<br />

8. Flag: M1029, execution completed flag.<br />

Program Example:<br />

When PLC runs, MTR instruction executes. The status of input points X40~X47 is read 2 times in<br />

the driven order of output points Y40 and Y41, i.e. 16 signals will be generated and stored in<br />

internal relay M10~M17 and M20~M27.<br />

3-121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!