Datasheet

EA eDIPTFT70-A
Page 18
ELECTRONIC ASSEMBLY reserves
the right to change specifications
without prior notice. Printing and
typographical errors reserved.
EA eDIPTFT70-A: Commands for the touch panel
after
reset
Command Codes Remarks
Touch presets
Touch bordercolors
ESC
F E n1 n2 n3 s1 s2 s3
Set the colors (0..32) for touch borders (ESC AT AK).
n=normal; s=selected; 1=frame outside; 2=frame inside; 3=filling
8,1,2
8,1,7
Touch borderform
A E n1 n2 n1=1..255 border number; n1=0 no border; n2=angle 0=0°; 1=90°; 2=180°; 3=270°
1,0
Touch button colors
ESC
F C nf nb sf sb
Set the colors (0..32) for monochrome touch buttons (ESC AU AJ).
n=normal; s=selected; f=foreground; b=background
8,1
8,1
Touch button number A C n1 n2 n3 n4 n1=0..255 button number; n2=button angle; n3=X-Zoom 1..8; n4=Y-Zoom 1..8 1,0,1,1
Radio group for switches
ESC
A R n1
n1=0: newly defined switches do not belong to a group.
n1=1 to 255: newly defined switches belong to the group with the number n1.
Only 1 switch in a group is active at one time; all the others are deactivated. In the case
of a switch in a group, only the down code is applicable. the up code is ignored.
0
Label font presets
Font color
ESC
F A nf sf Color for touch labeling. nf=normal fontcolor; sf= fontcolor for selection
8,1
Label font
ESC
A
F n1 Set font with the number n1 for touch key label 5
Label zoom factor Z n1 n2 n1 = X-zoom factor (1x to 8x); n2 = Y-zoom factor (1x to 8x) 1,1
Additional width/height Y n1 n2 n1=0..15: additional width left/right; n2=0..15: additional height top/bottom 0,0
Label angle W n1 Label output angle: n1=0: 0°; n1=1: 90°; n1=2: 180°; n1=3: 270° 0
Offset for selected label O n1 n2 n1=X-offset; n2=Y-offset; n1,n2=0..7 (add +8 for negative direction) 0, 0
Define touch areas
Define touch key
ESC
A
T xx1 yy1 xx2 yy2
dow
Cod
up
Cod
text
...
NUL
'T': The area from xx1,yy1 to xx2,yy2 is defined as a key
'K': The area from xx1,yy1 to xx2,yy2 is defined as a switch
'U': The actual button is loaded to xx1,yy2 and defined as a key
'J': The actual button is loaded to xx1,yy2 and defined as a switch
'down code':(1-255) return/touchmacro when key pressed.
'up code': (1-255) return/touchmacro when key released.
(down/up code = 0 press/release not reported).
'text': this is a string that is placed in the key with the current touch font.
The first character determines the alignment of the text (C=centered, L=left
justified, R=right justified). Multiline texts are separated with the character '|'
($7C, dec: 124);
optional: after the character '~' ($7E, dec: 126) you can write a 2nd text for a
selected touch key/switch e.g. "LED|on~LED|off"
'nul': ($00) = end of string
U xx1 yy1
dow
Cod
up
Cod
text
...
NUL
Define touch switch
(status of the switch
toggles after each contact)
ESC
A
K xx1 yy1 xx2 yy2
dow
Cod
up
Cod
text
...
NUL
J xx1 yy1
dow
Cod
up
Cod
text
...
NUL
Define touch key with menu
function
ESC
A M xx1 yy1 xx2 yy2
dow
code
up
code
mnu
code
text
...
NUL
The area from xx1,yy1 to xx2,yy2 is defined as a menu key. 'down
code':(1-255) Return/touch macro when pressed. 'up Code':(1-255)
Return/touch macro when menu canceled 'mnu Code':(1-255) Return/menu
macro+(item no. 1) after selection of a menu item. (down/up code = 0:
activation/cancellation is not reported.) 'text':= string with the key text and the
menu items. the first character determines the direction in which the menu
opens (R=right, L=left, O=up, U=down). The second character determines
the alignment of the touch key text (C=centered, L=left justified, R=right
justified). The menu items are separated by the character '|' ($7C,dec:124)
(e.g. "uckey|item1|item2|item3". The key text is written with the current touch
font and the menu items are written with the current menu font. The
background of the menu is saved automatically.
Define drawing area
ESC
A D xx1 yy1 xx2 yy2 n1 fg
A drawing area is defined. You can then draw with a line width of n1 and color fg within
the corner coordinates xx1,yy1 and xx2,yy2.
Define free touch area
ESC
A H xx1 yy1 xx2 yy2
A freely usable touch area is defined. Touch actions (down, up and drag) within the
corner coordinates xx1,yy1 and xx2,yy2 are sent.
Set bar by touch
ESC
A B n1 The bargraph with number n1 is defined for input by touch panel.
Set instrument by touch
ESC
A + n1 The instrument with number n1 is defined for input by touch panel.
TOUCH PANEL
The Version EA eDIPTFT70-ATP is shipped with an analogue, resistive touch panel. Up to 100 touch
areas (keys, switches, menus, bar graph inputs) can be defined simultaneously. The fields can be
defined with pixel accuracy. The display supports user-friendly commands. When the touch “keys” are
touched, they can be automatically inverted and an external tone can sound (pin 16), indicating they
have been touched. The predefined return code of the “key” is transmitted via the interface, or an
internal touch macro with the number of the return code is started instead.