EasyManuals Logo

Omron CPM1 Programming Manual

Omron CPM1
541 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #142 background imageLoading...
Page #142 background image
121
Advanced I/O Instructions (CQM1 Only) Section 2-2
Using the Instruction
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.
Note 1. While one key is being pressed, input from other keys will not be accepted.
2. If more than eight digits are input, digits will be deleted beginning with the
leftmost digit.
3. Input bits not used here can be used as ordinary input bits.
Application Example In this example, a program for inputting numbers from the 10-key is shown.
Assume that the 10-key is connected to IR 000.
The 10-key information input to IR 000 using TKY(18) is converted to BCD
and stored in DM 1000 and DM 1001. Key information is stored in DM 1002.
IR 00015 is used as an “ENTER key,” and when IR 00015 turns ON, the data
stored in DM 1000 and DM 1001 will be transferred to DM 0000 and DM 0001.
TKY(18)
IW
D
1
D
2
IW: Input word
D
1
: First register word
D
2
: Key input word
0 0 0 0 0 0 0 0
0
0 0 0 0 0 0 1
0
0 0 0 0 0 1 0
0
0 0 0 0 1 0 2
0
0 0 0 1 0 2 9
D
1
+1 D
1
(1)
(2)
(3)
(4)
(1) (2) (3) (4)
00
01
02
09
00
01
02
09
10
to
IW
to
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.
D
2
Before
execution
"1" key input
"0" key input
"2" key input
"9" key input
TKY(18)
000
DM1000
DM1002
25313 (Always ON)
@XFER(70)
#0002
DM1000
DM 0000
00015

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
ModelCPM1
ManufacturerOmron
Instruction SetBasic and advanced instructions
Power Supply100 to 240 VAC or 24 VDC
CommunicationRS-232C
I/O Points10, 20, 30, or 40 points depending on the model
TimersYes, multiple timers available
CountersYes, multiple counters available
Input Voltage24V DC
Output TypeRelay or transistor
Number of I/O Points10, 20, 30, 40
Communication PortsRS-232C (optional)
Operating Temperature0°C to 55°C
Storage Temperature-20°C
Humidity10% to 90% (non-condensing)
DimensionsVaries depending on the model
WeightVaries depending on the model
Program Memory2048 steps (2K steps)

Related product manuals