815
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Basic I/O Unit Instructions
3
HKY
D: First Register Word
Specifies the leading word address where the hexadecimal keypad's numeric input (up to 8 digits) will
be stored.
C: System Word
Specifies a work word used by the instruction. This word cannot be used in any other application.
z Operand Specifications
Flags
Function
HKY(212) outputs the selection signals to bits 00 to 03 of O, reads the data in order from bits 00 to 03 of
I, and stores up to 8 digits of hexadecimal data in register words D and D+1.
HKY(212) inputs each digit in 3 to 12 cycles, and then starts over and continues inputting. In addition,
each time that a key is pressed, the corresponding bit in D+2 (0 to F) will be turned ON and remains ON
until another key is pressed.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
I, O
OK OK OK OK OK OK OK OK OK OK ---
OK
--- OK --- --- --- ---D ---
C OK
Name Label Operation
Error Flag P_ER OFF
D
815 1211 0347
D+1
815 1211 0347
0123456789101112131415
D+2
0
1
2
3
4
5
6
7
15
14
13
12
11
10
9
8
Digit 1
Digit 2
Digit 3
Digit 4
Digit 5
Digit 6
Digit 7
Digit 8
ON when the corresponding key
is pressed. (Remains on until
another key is pressed.)
C
15 0
System word
(Cannot be accessed by the user.)