EasyManuals Logo
Home>Delta>Controller>DVP-PLC

Delta DVP-PLC User Manual

Delta DVP-PLC
586 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #345 background imageLoading...
Page #345 background image
7 Application Instructions API 50-99
DVP-PLC APPLICATION MANUAL
7-61
API Mnemonic Operands Function
71
D HKY
Hexadecimal Key Input
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices Word Devices Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S *
D
1
*
D
2
* * * * *
D
3
* * *
HKY: 9 steps
DHKY: 17 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S: Start device for key scan input D
1
: Start device for key scan output D
2
: Device for storing keyed-in value
D
3
: Key output signal
Explanations:
1. S will occupy 4 consecutive points.
2. D
1
will occupy 4 consecutive points.
3. D
3
will occupy 8 consecutive points.
4. See the specifications of each model for their range of use.
5. For SA series MPU, S, D
1
and D
3
do not support E, F index register modification.
6. Flags: M1029 (On whenever a matrix scan period is completed); M1167 (HKY input modes switch). See remarks
for more details.
7. This instruction designates 4 continuous external input points starting from S and 4 continuous external input
points starting from D
1
to construct a 16-key keyboard by a matrix scan. The keyed-in value will be stored in D
2
and D
3
is used for storing key status. If several keys are pressed at the same time, the first key pressed has the
priority.
8. The keyed-in value is termporarily stored in D0. When the 16-bit instruction HKY is in use, 9,999 is the maximum
value D0 is able to store. When the value exceeds 4 digits, the highest digit will overflow. When the 32-bit
instruction DHKY is in use, 99,999,999 is the maximum value D0 is able to store. When the value exceeds 8
digits, the highest digit will overflow.
9. There is no limitation on the times of using this instruction. However, only one instruction can be executed at a
time.
Program Example:
1. Designate 4 input points X10 ~ X13 and the other 4 input points Y10 ~ Y13 to construct a 16-key keyboard.
When X4 = On, the instruction will be executed and the keyed-in value will be stored in D0 in bin form. The key
status will be stored in M0 ~ M7.
X4
HKY X10 Y10 D0 M0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-PLC and is the answer not in the manual?

Delta DVP-PLC Specifications

General IconGeneral
BrandDelta
ModelDVP-PLC
CategoryController
LanguageEnglish

Related product manuals