Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 826

Table of Contents

Advertisement

3. Instructions
HKY
Instruction
HEXADECIMAL KEY INPUT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
I
Input word
O
Output word
D
First register word
C
System word
I: Input Word (Data Line D0 to D3 Inputs)
Specify the input word allocated to the Input Unit and connect the hexadecimal keypad's D0 to D3 data
lines to the Input Unit as shown in the following diagram.
15
14
13
12
11
10
I
O: Output Word (Selection Signal Outputs)
Specify the output word allocated to the Output Unit and connect the hexadecimal keypad's selection
signals to the Output Unit as shown in the following diagram.
15
14
13
12
11
10
O
788
Mnemonic
Variations
HKY
---
Block program areas
Step program areas
Not allowed
OK
Description
9
8
7
6
5
4
3
2
1
0
9
8
7
6
5
4
3
2
1
0
Function
code
Reads numeric data from a hexadecimal keypad
connected to an Input Unit and Output Unit and
212
stores up to 8 digits of hexadecimal data in the
specified words.
HKY
HKY(212)
I: Input word
I
O: Output word
O
D: First register word
D
C: System word
C
Subroutines
OK
Data type
UINT
UINT
WORD
WORD
0
1
Bits 00 to 03 correspond
2
to Input Unit inputs 0 to 3.
3
0
1
Bits 00 to 03 correspond to
2
Output Unit outputs 0 to 3.
3
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
Not allowed
OK
Size
1
1
3
1

Advertisement

Table of Contents
loading

Table of Contents