Omron SYSMAC C200HS Operation Manual page 323

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Advanced I/O Instructions
5-28-5 MATRIX INPUT – MTR(––)
Limitations
Overview
OW bits 00 to 07
(for Output Unit
outputs 00 to 07)
Bit 08 is turned ON to indi-
cate that the entire matrix
has been read.
Ladder Symbols
MTR(––)
IW
OW
D
D and D+3 must be in the same data area.
When the execution condition is OFF, MTR(––) is not executed. When the exe-
cution condition is ON, MTR(––) inputs data from an 8 × 8 matrix and records
that data in D to D+3. Data for all 64 points in the matrix will be recorded even
when fewer than 64 keys are connected.
0
1
2
3
4
00
8
9
10
11
12
01
16
17
18
19
20
02
24
25
26
27
28
03
32
33
34
35
36
04
40
41
42
43
44
05
48
49
50
51
52
06
56
57
58
59
60
07
08
00 01 02 03 04 05 06 07
IW bits 00 to 07
(for Input Unit inputs 00 to 07)
A selection signal is output to OW bits 00 to 07 consecutively for 3 cycles. Only
one output bit will be turned on at a time. Bit 08 of OW is turned ON for 3 cycles
after 07 to indicate when each round of reading the matrix has been completed.
When one of the 64 keys is pressed, an input will be received at one of the input
bits. The key that was pressed is identified by comparing the output bit to which
the signal was output and input bit at which it was received.
When an key input is detected, the corresponding bit in D through D+3 is turned
ON. The following table shows the correspondence between keys and bits in D
through D+3.
Word
Bits
Corresponding Keys
D
00 to 15
0 to 15
D+1
00 to15
16 to 31
D+2
00 to 15
32 to 47
D+3
00 to 15
48 to 63
Operand Data Areas
IW: Input word
IR, SR, AR, HR, LR
OW: Output word
IR, SR, AR, HR, LR
D: First destination word
IR, SR, AR, DM, HR, LR
5
6
7
13
14
15
21
22
23
29
30
31
37
38
39
45
46
47
53
54
55
61
62
63
Section 5-28
Key input data is written
to D through D+3 (see
table below).
313

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents