Omron CQM1H - PROGRAM Programming Manual page 460

Programmable controllers; inner boards
Table of Contents

Advertisement

Advanced I/O Instructions
Hardware
Using the Instruction
IW
00
01
02
to
09
D
2
00
01
02
to
09
10
(1)
Note
Prepare a 10-key keypad, and connect it so that the switches for numeric keys
0 through 9 are input to points 0 through 9 as shown in the following diagram.
Either the input terminals on the CPU Unit or the inputs on a DC Input Unit
with 16 or more input points can be used.
TKY(18)
If the input word for connecting the 10-key keypad is specified for IW, then
operation will proceed as shown below when the program is executed.
Input from 10-key
Turn ON flags corre-
sponding to 10-key
inputs (The flags re-
main ON until the
next input.)
ON if a key is pressed.
(2)
(3)
(4)
1. While one key is being pressed, input from other keys will not be accepted.
ID212
0
1
2
3
4
5
6
7
8
9
10
11
12
13
10-key
14
15
COM
COM
0 V
DC Input Unit
IW: Input word
IW
D
: First register word
1
D
1
D
: Key input word
2
D
2
D
+1
1
Before
0 0 0 0 0 0 0 0
execution
0 0 0 0 0 0 0 1
(1)
(2)
0 0 0 0 0 0 1 0
0 0 0 0 0 1 0 2
(3)
(4)
0 0 0 0 1 0 2 9
Section 5-31
0
9
D
1
"1" key input
"0" key input
"2" key input
"9" key input
435

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF