The program description
deals with the following:
The data for the PS2 key
links can be updated, i.e. programmed, changed or cleared, with this program.
Data which has already been stored can also be displayed for information.
The key code and the
appropriate position for row and column must be entered in a table for all keys
on the keyboard. Entries are made in decimal format. If the key codes are not
known, these can be ascertained with the help of the debug parameter in update
program - PS2 keyboard
(see example Key codes).
Click on the graphic for further
information on programming a PS2 keyboard.
The following description
deals with all available options for update of this basic data.
As with nearly all other
programs the following also applies here:
Entry range permitted:
numeric 1 - 99999
The key code which is sent
by the keyboard when this key is depressed is entered in this field. The key
code for an unknown keyboard can be ascertained by setting the debug level in
update program PS2 keyboard to 2 so that the key codes can be ascertained
manually.
Click on the graphic for further
information on programming a PS2 keyboard.
When debug level 2 is used,
the key code for the key depressed is listed in file "..\work\errlog"
in hexadecimal format. The entry of the key code in this program should,
however, be in decimal format.
The following shows an
example of key codes from file errlog with conversion and entry in key code
table.
Debug protocol from
file "errlog":
DvPs2Keyb::handleInput:
Code: 65433 (ff99), State
DvPs2Keyb::handleInput: Code: 65435 (ff9b), State
DvPs2Keyb::handleInput: Code: 65430 (ff96), State
DvPs2Keyb::handleInput: Code: 65291 (ff0b), State
Entry of key code
Key code (decimal) |
Key status |
Row |
Column |
65433 |
|
8 |
10 |
65435 |
|
8 |
11 |
65430 |
|
8 |
12 |
65291 |
|
8 |
13 |
Entry range permitted:
numeric 1 - 999999
A value for
the corresponding key status (Shift, Strg, Alt, Alt Gr, Num-lock, Caps-lock or Shift-lock ) is entered in this
field.
A valid
value for the key status could also be a combination of the following values.
0 |
Default |
1 |
Shift
key active |
2 |
Control
key active |
4 |
Alt key
active |
8 |
Alt Gr key active |
16 |
Num key
active |
32 |
Shift
key active (caps-lock or shift-lock) |
Note:
If debug level 2 has been set the key code for each key depressed is shown in
file "..\work\errlog", decimal format. The entry of the key codes in
this program must be done in decimal format.
Entry range permitted:
numeric 1 - 99
Enter the row in which the
key can be found on this keyboard.
Entry range permitted:
numeric 1 - 99
Enter the number of the
column in which this key can be found on the keyboard.