User manual

PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification
Beijing DWIN Technology Co., Ltd. - 36 - www.dwin.com.cn/en
5.3.3 Tabulate Display(0x22)
Add.
Definition
Data
Length
Description
0x00
0x5A22
2
0x02
*SP
2
Variable description pointer, 0xFFFF indicates loaded by the config. file
0x04
0x000C
2
0x06
0x00
*VP
2
Data content pointer of form, which is the 1
st
data array address of
TAB[Row_Num][Col_Num][Unit_Data_Num]
0x08
0x01:H
TAB_X_Num
1
Column Number, 0x01-0xFF
0x09
0x01:L
TAB_Y_Num
1
Row Number, 0x01-0xFF
0x0A
0x02:H
TAB_X_Start
1
Starting column of form, 0x00-0xFF
0x0B
0x02:L
TAB_Y_Start
1
Starting row of form, 0x00-0xFF
0x0C
0x03:H
Unit_Data_Num
1
0x01-0x7f All cells share the same data length
Data length for single cell (Counted in WORD)
0x00 The data length for cells in different columns determined
by the variable storage space which is pointed by *VP
When Unit_Data_Num=0x00, the address for the content of the table will
be shifted (TAB_X_Num /2) bytes (Upward round) 0x1000-0x1003
sequentially stored data length information in Row 1-6, therein the low
byte of 0x1003 is not occupied, therefore the content of the table will be
stored in 0x1004 and thereafter
0x0D
0x03:L
Encode_Mode
1
Text encoding:
0=8bit coding 1=GB2312 internal code 2=GBK 3=BIG5 4=SJIS
5=UNICODE
0x0E
0x04
Xs Ys Xe Ye
8
Definition of form display area(Top left corner coordinate to bottom left
corner coordinate)
Form display will always be from the upper left corner; The cross- border
will end the display
0x16
0x08
Color_line
2
Form boarder line color
0x18
0x09
Color_text
2
Form text color
0x1A
0x0A:H
Font0_ID
1
Font location of the ASCII in coding 0x01-0x04
0x1B
0x0A:L
Font1_ID
1
Font location of coding 0x00&0x05, and non-ASCII in coding 0x01-0x04
0x1C
0x0B:H
Font_X_Dots
1
Dot-matrix of font in X direction (0x01-0x04 mode, ASCII character X is
by X/2 calculation)
0x1D
0x0B:L
Font_Y_Dots
1
Dot number in Y direction of font
0x1E
0x0C:H
TAB_X_Adj_Mod
1
When TAB_X_Start is NOT 0, table title can be hidden:
0x00= Hide the first column of the table
0x01= Show the first column
0x1F
0x0C:L
TAB_Y_Adj_Mod
1
When TAB_X_Start is NOT 0, table title can be hidden:
0x00= Hide the first row of the table
0x01= Show the first row
When the actual content of form is shorter than the prescribed length by Unit_Data_Num, write 0xFFFF as the
terminator for the cell text.
For special large form, the positioning and drag of the form could be achieved by modifying TAB_X_Num,
TAB_Y_Start value through the touch screen.