7 Applied Instructions
7.8 External FX I/O Device
367
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of 
Instruction
4
How to Read 
Explanation of 
Instructions
5
Basic Instruction
6
Step Ladder 
Instructions
7
Applied 
Instructions
8
Interrupt Function 
and Pulse Catch 
Function
A
Relationships 
between devices 
and addresses
7.8.2 HKY
Outline
This is a command for setting the input data of numerical value (0 to 9) or operation condition (function keys A
to F), by the input of keys from 0 to F (16 keys).
When the extension function is turned ON, the key input is entered in hexadecimal notation by keys 0 to F.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction 
name
Operation
Execution 
form
Expression in each language
Structured ladder ST
HKY 16 bits Continuous HKY(EN, s, d1, d2, d3);
DHKY 32 bits Continuous DHKY(EN, s, d1, d2, d3);
Variable Description
Data type
16-bit 
operation
32-bit 
operation
Input
variable
EN Execution condition Bit
Beginning device for entering 16 keys (X) [4 points occupied]. Bit
Output
variable
ENO Execution state Bit
Beginning device for sending output (Y) [4 points occupied] Bit
Device for storing numerical value entered from 16 keys ANY16 ANY32
Beginning bit device for turning ON key pushing information 
[8 points occupied]
Bit
Operand 
type
Bit Devices Word Devices Others
System user Digit designation
System 
user
Special 
unit
Index
Cons
tant
Real 
number
Character 
string
Pointer
XYMTCS
D
.b
KnX KnY KnM KnS T C D R
U\G
V Z Modifier K H E
"
"
P
zz
zz
zzz
S2 S2
zz z
zz z
S1
z
HKY
EN
s
ENO
d1
d2
d3
DHKY
EN
s
ENO
d1
d2
d3