User manual
PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification
Beijing DWIN Technology Co., Ltd. - 12 - www.dwin.com.cn/en
4 Description of Touch Config. File.
The touch Config. File is consisted of several commands that are configured according to different pages. Each touch
command takes up to 16bytes, 32bytes or 48bytes memory space and constructed by following six parts,
Serial
Number
Definition
Data Length
Description
1
Pic_ID
2
Picture ID
2
TP_Area
8
Touch button area:(Xs,Ys)(Xe,Ye)
3
Pic_Next
2
Go_to Page. 0xFF** means no page switches.
4
Pic_On
2
Picture ID that shows the effect animation when button pressed, 0xFF** means that
there is no button pressing effect.
5
TP_Code
2
Touch key code:
0xFF**: invalid key code;
0xFE**: touching function on/off. E.g.: 0xFE00 means starts to variables data input by
touch screen.
0x00**: touch key code that ASCII representation; E.g.:0x0031means button "1".
6
TP_FUN
32
When TP_Code=0xFE**, it used to describe the touch function.
4.1 Variable Data Input (0x00)
Address
Definition
Data
Length
Description
0x00
Pic_ID
2
Page ID
0x02
TP_Area
8
Touch button areas: (X
s
, Y
s
) (X
e
, Y
e
)
0x0A
Pic_Next
2
Page ID that will switch to, 0xFF** means no page switches
0x0C
Pic_On
2
Page ID that shows the effect animation when button pressed,0xFF** means that
there is no button pressing effect.
0x0E
TP_Code
2
0xFE00
0x10
0xFE
1
0xFE
0x11
*VP
2
Variable address pointer that corresponded to data input
0x13
V_Type
1
Variable type that returns : 0x00=integer (word), 0x01=long integer (double word)
0x02=Unsigned Byte Parameter(High Byte of *VP), 0x03=Unsigned Byte
Parameter(Low byte of *VP)
0x14
N_Int
1
Integer digits. E.g.: input 1234.56, so N_Int=0x04;
0x15
N_Dot
1
Decimal digits. E.g.:input1234.56, so N_Dot=0x02.
0x16
(x,y)
4
Display position in input process: right-alignment.
(x, y) is upper-right coordinates of input cursor.
0x1A
Color
2
Font color.
0x1C
Lib_ID
1
Font Library position of ASCII, 0x00=default font lib.
0x1D
Font_Hor
1
Font size, the dot matrix number in X-direction
0x1E
Cusor_Color
1
Cursor color, 0x00 =black; others= white
0x1F
Hide_En
1
0x00=input cover, displayed as"*", other value is directly displayed.
0x20
0xFE
1
0xFE
0x21
KB_Source
1
0x00 = keyboard is on the current page; Others=keyboard is not on the current page.
0x22
PIC_KB
2
Keyboard page ID, only valid when KB_Source is not equal to 0x00.
0x24
AREA_KB
8
The area of the keyboard (X
s
, Y
s
, X
e
, Y
e
), only valid if KB_Source is not equal to
0x00.
0x2C
AREA_KB_Position
4
The location that keyboard displayed on the current page, upper-left coordinates, only
valid if KB_Source is not equal to 0x00.
0x30
0xFE
1
0xFE
0x31
Limits_En
1
0xFF=Limit the input range, input beyond the boundary is invalid(Equivalent to
cancel);Others=no range limit.
0x32
V_min
4
The lower limit of enter, long integer (4 byte)
0x36
V_max
4
The upper limit of enter, long integer (4 byte)
0x3A
Retention
6
Write 0x00
Valid keynote in input process: 0x0030-0x0039(Number 0-9), 0x002E (.), 0x002D (+/-), 0xF0 (Cancel), 0x00F1 (Confirm),
0xF2(Backspace)










