EasyManua.ls Logo

Delta AH500 - Page 548

Delta AH500
749 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
Loading...
AH500 Programming Manual
6-380
API Instruction code Operand
Function
1701 D HKY
S, D
1
, D
2
, D
3
Sixteen-key keypad
Device
X Y M S T C HC D L SM SR E PR K 16#
“$” DF
S
1
S
2
D
1
D
2
D
3
Pulse instruction
16-bit instruction (9 steps)
32-bit instruction (9 steps)
- AH500 AH500
Symbol:
S
1
Initial input device Bit
S
2
For system use only Word
D
1
Initial output device Bit
D
2
Device in which the value is
stored
Word/Double word
D
3
Output signal Bit
Explanation:
1. The four external inputs starting from the input specified by S are connected to the four
external outputs starting from the output specified by D
1
to form a 16-key keypad. The value
that users enter by pressing the keys is stored in D
2
, and the output signals are stored in D
3
. If
several keys are pressed simultaneously, the value which is smaller is stored.
2. The value that users enter by pressing the keys is temporarily stored in D
2
. If the 16-bit
instruction HKY is executed, the maximum value which can be stored in D
2
is 9,999. If the
value exceeds four digits, the first digit from the left overflows. If the 32-bit instruction DHKY is
executed, the maximum value which can be stored in D
2
is 9,999. If the value exceeds eight
digits, the first digit from the left overflows.
3. After the execution of the instruction is complete, SM692 is ON. That is to say, SM692 is ON
for a scan cycle after the execution of the matrix scan is complete.
Example:
1. The four external inputs X0.0~X0.3 are connected to the four external outputs Y0.0~Y0.3 to
form a 16-key keypad. When X1.0 is ON, the instruction is executed. The value that users
enter is stored as a binary value in D0, and the output signals are stored in M0~M7.
The function of SM691:
If SM691 is ON, 0~F are taken as hexadecimal values in the execution of the instruction
HKY.

Table of Contents

Other manuals for Delta AH500

Related product manuals