3. Instructions
D: First Register Word
Specifies the leading word address where the hexadecimal keypad's numeric input (up to 8 digits) will
be stored.
15
12 11
D
Digit 4
15
12 11
D+1
Digit 8
15
14
13
12
11
D+2
15
14
13
12
11
10
9
8
C: System Word
Specifies a work word used by the instruction. This word cannot be used in any other application.
15
C
Operand Specifications
Word addresses
Area
CIO
WR
HR
I, O
D
OK
OK
OK
C
Flags
Name
Error Flag
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.
796
8
7
4
3
0
Digit 3
Digit 2
Digit 1
8
7
4
3
0
Digit 6
Digit 7
Digit 5
10
9
8
7
6
5
4
3
2
1
0
0
1
2
3
4
5
6
7
0
System word
(Cannot be accessed by the user.)
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
P_ER
OFF
ON when the corresponding key
is pressed. (Remains on until
another key is pressed.)
addresses
Con-
stants
*DM
DR
*EM
OK
OK
OK
---
---
OK
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?