![Two Technologies ProMotion Скачать руководство пользователя страница 54](http://html1.mh-extra.com/html/two-technologies/promotion/promotion_technical-reference-manual_1184799054.webp)
ANSI Mode Host Commands
42
Programming Key Commands
You can issue ANSI host commands to reprogram any keys, except for
SHIFT
and
CTRL
to
transmit a single character or a string of characters. However, if you have
the Parameter menu, you cannot use these commands.
Program Key
Syntax
Esc [5z Kn; C1; C2; . . . Cn Esc [0z
Notes
This command reprograms a key , where
Kn
is the key position as defined in
and
C1, C2 . . . Cn
are the character values in ASCII Hex notation (“A” = 41, “B” = 42,
etc.).
For example, to program a non-shifted key in Row 1, Column 1 with the string “STOP,”
issue the following command:
Esc [5z K01; 53; 54; 4F; 50 Esc [0z
When programming keys, there is a limit of 222 bytes of available memory. In addition
to the number of characters programmed (one character per byte), each key requires an
additional two bytes of memory. For example, programming the string “STOP” uses six
bytes.
A key programmed without data is effectively inoperative (no output or key click), but
still uses two bytes of key memory. The only way to free memory is to re-program keys
to their default settings.
Should the terminal encounter an error during key programming, it will terminate the
programming operation without allocating memory and return the following error
string:
Esc [0x ERROR CODE= XX PARAMETERS UNCHANGED Esc [1x3
Where
XX
is one the following ASCII Hex error codes:
01
=
Kn
improper
02-F0
=
C1 . . . C
n
format error
FE
=
Not Enough memory available
FF
=
Key memory data corrupted
After the terminal successfully receives the
Esc [0z
termination command, it inserts the
programming information into memory. Should you remove power within 0.75
seconds of this time, all programmed key data may become corrupt and subsequently
require you to load the default parameters.
Report Key Settings
Syntax
Esc [4z
Notes
This command sends a list of keys programmed with values other than the default
values to the host using the format:
Esc [0x Kn; C1; C2; . . . Cn; Kn C1; C2; . . . Cn Esc [1x
Where
Kn
is the key position as defined in
and
C1
,
C2
. . .
Cn
are the character
string values in ASCII Hex notation (“A” = 41, “B” = 42, etc.).
For example, an un-shifted key in Row 1, Column 1 programmed with the string
“STOP” will return:
Esc [0x K01; 53; 54; 4F; 50 Esc [1x