User manual

PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification
Beijing DWIN Technology Co., Ltd. - 30 - www.dwin.com.cn/en
5.3 Graphics variable
5.3.1 Curve Display (0x20)
Add.
Definition
Data Length
Description
0x00
0x5A20
2
0x02
*SP
2
Variables description pointer, 0xFFFF indicates loaded by config. file
0x04
0x000A
2
0x06
0x00
0x0000
2
Not defined
0x08
0x01
X
s
:Y
s
:X
e
:Y
e
8
Curve window, over range of curve will not displayed
Upper left: (X
s
,Y
s
); Bottom right(X
e
,Y
e
)
0x10
0x05
Y_Central
2
Curve central axis position
0x12
0x06
VD_Central
2
Curve data value corresponding to the central axis which should
generally take the value of 50% of sum of max. and min.
0x14
0x07
Color
2
Curve color
0x16
0x08
MUL_Y
2
Magnification in vertical, the unit is 1/256, 0x0000-0x7FFF.
0x18
0x09:H
CHANEL
1
Data source channel, 0x00-0x07
0x19
0x09:L
Dis_HOR
1
Interval in horizontal, 0x01-0xFF
Curve data sent by Command 0x84.
For further information, please reference Chapter 2.2 Command Set.
If the content of variable description stored in the data storage space (*SP specify the storage position) :
With 0x02 incremental touch commands, automatic curve scaling could be achieved with no need of the user
code.
With 0x03 drag touch command to revise Y_Central value, curve moving up and down could be achieved with
no need of the user code.
Vertical axis magnification calculation of full scale curve:
MUL_Y=(Ye-Ys)*256/(Vmax-Vmin)Ye,Ys is the Y coordinate of the curve window,
V
max
,V
min
is the maximum and the minimum of the curve data, for example,
Should a 12bit A/D data acquisition (V
max
=4095 V
min
=0)be full-scale displayed in the Ys=50,Ye=430 area
correspondingly that MUL_Y=(430-50)*256/(4095-0)=23.7, we round down to get 23.