16
EA KIT129-6
ESC
T
H/V f1
f2
ret frm text...
NUL
Define touch key
Defines a touch key and labels it with the current font.
H
=horizontal or
V
=vertical labeling (rotated 90°).
Several
touch fields can be grouped together to form a single touch key (
f1
=upper left touch field;
f2
=lower right touch field
of the new touch key). This touch key is assigned a return code with
ret
(1..255). When the touch key is touched,
the touch macro with the number
ret
is called or, if no touch macro is defined, this return code is sent via the
RS232. You use
frm
to define the format of the touch key (frm=0: don't draw anything;
frm=1: delete touch key; frm=2: delete touch key and draw with frame).
text...
=string
with the label (which is always centered on the touch key). The label can also have
more than one line; in this case, the lines are separated by the pipe-character '|'
(=$7C). The string must be concluded with
NUL
= $00. See example on page 3.
Example 1: Horizontal touch key:
$1B $54 $48 $01 $01 $41 $02 $54 $45 $53 $54 $00
Defines a horizontal touch key (field no. 1 only) with the return code 65='A'. The touch
key is drawn with a frame and labeled with the word 'TEST'.
Example 2: Vertical touch key:
$1B $54 $56 $02 $02 $42 $02 $54 $45 $53 $54 $00
Defines a vertical touch key (touch field no. 2 only) with the return code 66='B'. The
touch key is drawn with a frame and labeled with the word 'TEST'.
ESC
T
P/R
Preset/reset touch fields
Assigns
P
(=ascending return code: 1..60) or
R
(=reset all touch fields) to all 60 touch fields. In the latter case all
touch fields receive the return code 0 (i.e. they are deactivated).
Example: $1B
$54 $52
All touch fields are deactivated by this command and no longer recognized.
ESC
T
I/S n1
Touch key response
These commands set the automatic response of the touch panel to touching. Both responses can be activated
simultaneously.
I
=automatic inversion when the touch key is touched (
n1
=0: off or
n1
=1: on)
S
=automatic signal tone when the touch key is touched (
n1
=0: off or
n1
=1: on)
Example: $1B
$54 $49
$01
After this command the tone sounds when a touch key is touched.
ESC
T
M
ret
Invert touch key manually
This command manually inverts the touch key with the return code
ret
.
Example: $1B
$54 $4D
$41
Inverts the touch key from the above example with the return code 65='A'.
ESC
T
A
n1
(Touch) key query on/off
This command sets the (touch) key query:
n1
=0: Switches the key query off - no touch macros or manual key query possible.
n1
=1: Activates the key query - keystrokes trigger touch macros or are sent via RS232.
n1
=2: Activates the key query - keystrokes trigger touch macros; must be queried manually.
Example: $1B
$54 $41
$02
Activates the (touch) key query. The keystrokes are not sent automatically via RS232; they have to be requested
manually by means of the command
ESC T W
.
ESC
T
W
Query touch key manually
Sends the return code of the currently depressed touch key at the RS232.
Example: $1B
$54 $57