Ten Key Input - Tky(18) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Advanced I/O Instructions
5-31-4 TEN KEY INPUT – TKY(18)
Limitations
Description
1,2,3...
Flags
434
The hexadecimal key information that is input to IR 000 by HKY(––) is con-
verted to hexadecimal and stored in words DM1000 and DM1001.
IR 00015 is used as an "ENTER key," and when IR 00015 turns ON, the num-
bers stored in DM 1000 and DM 1001 are transferred to DM 0000 and DM
0001.
Ladder Symbols
TKY(18)
IW
D
1
D
2
D
and D
+1 must be in the same data area.
1
1
DM 6143 to DM 6655 cannot be used for D
When the execution condition is OFF, TKY(18) is not executed. When the exe-
cution condition is ON, TKY(18) inputs data from a ten-key keypad connected
to the input indicated by IW. The data is input in two ways:
1. An 8-digit shift register is created in D
on the ten-key keypad, the corresponding BCD digit is shifted into the least
significant digit of D
most significant digit of D
2. The first ten bits of D
pad (0 to 9) is being pressed, the corresponding bit of D
turned ON.
Note When one of the keypad keys is being pressed, input from the other keys is
disabled.
TKY(18) can be used in several locations in the program by changing the
input word, IW. Refer to page 434 for more details on TKY(18).
ER:
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
D
and D
1
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
. The other digits of D
1
+1 is lost.
1
indicate key input. When one of the keys on the key-
2
+1 are not in the same data area.
1
Section 5-31
Operand Data Areas
IW: Input word
D
: First register word
1
D
: Key input word
2
.
1
and D
+1. When a key is pressed
1
1
, D
+1 are shifted left and the
1
1
(00 to 09) is
2

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?

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF