![FATEK FBs Series Manual Download Page 222](http://html1.mh-extra.com/html/fatek/fbs-series/fbs-series_manual_3764826222.webp)
Advanced Function Instruction
7 -5 8
FUN 77
D
HKEY
HEX-KEY INPUT
FUN 77
D
HKEY
IN :
D :
EN
Execution control
Ladder symbol
77D.HKEY
OT :
FKP
Function key press
NKP
Number key press
KL :
WR :
IN : Starting of digital input for key scan
OT: Starting of digital output for multiplexing
key scan (4 points)
D : Register to store key-in numbers
KL : Starting relay for key status
WR: Working register, it can't repeat in use
D may combine with V
、
Z
、
P0~P9 to serve
indirect addressing application
X
Y
M
S
WY
WM
WS
TMR CTR
HR
OR
SR ROR DR
XR
Range
Ope-
rand
X0
∣
X240
Y0
∣
Y240
M0
∣
M1896
S0
∣
S984
WY0
∣
WY240
WM0
∣
WM1896
WS0
∣
WS984
T0
∣
T255
C0
∣
C255
R0
∣
R3839
R3904
∣
R3967
R3968
∣
R4167
R5000
∣
R8071
D0
∣
D4095
V
、
Z
P0~P9
IN
○
OT
○
D
○
○
○
○
○
○
○
○
*
○
*
○
○
KL
○
○
○
WR
○
○
*
○
z
The numeric (0~9) key function of this instruction is similar as for the TKEY instruction. The hardware
connection for TKEY and HKEY is different. For TKEY instruction each key have one input point to connect,
while HKEY use 4 input points and 4 output points to form a 4x4 multiplex 16 key input. 4
×
4 means that
there can be 16 input keys, so in addition to the 10 numeric keys, the other 6 keys can be used as function
keys (just like the usual discrete input). The actions of the numeric keys and the function keys are
independent and have no effect on each other.
z
When execution control "EN" = 1, this instruction will scan the numeric keys and function keys in the matrix
formed by the 4 input points starting from IN and the 4 output points starting from OT. For the function of the
numeric keys and "NKP" output please refer to the TKEY instruction. The function keys maintain the key-in
status of the A~F keys in the last 6 relays specified by KL (the first 10 store the key-in status of the numeric
keys). If any one of the A~F keys is depressed, FKP (FO1) will set to 1. The OT output points for this
instruction must be transistor outputs.
z
The biggest number for a 16-bit operand is 4 digits (9999), and for 32-bit operand is 8 digits (99999999).
However, there are only 6 function keys (A~F), no matter whether it is a 16-bit or 32-bit operand.
EN IN :
X10
77D.HKEY
OT :
D :
R0
Y0
X0
M0
D0
WR :
KL :
NKP
M10
FKP
M11
˙
The instruction in the diagram above
uses X0~X3 and Y0~Y3 to form a
multiplex key input. It can input numeric
values of 8 digits and stores the results
in R1R0. The input status of the function
keys is stored in M10(A)~M15(F).
C
Y0
Y1
Y2
Y3
S/S
X0
PLC (transistor output)
C
D
E
F
8
9
A
B
4
5
6
7
0
1
2
3
Function
Keys
Numeric
Keys
X1
X2
X3
24V
-
+