Home

DGUS_SDK User Guide

image

Contents

1. EM Professional Creditable Successful g 2 2 15 Bit Variable Icon Bit Icon eo B r fess J sg Hi i H a7 Name it icon SP Mx FFFF VP Ox 0000 AP dx Bit Icon ON 1 OFF 0 1111111111111111 Set Disp Mode x0 v Mig Mode ox Interval p B Teon File I v ICOMOS hb aol ICONOE hb aol ICOMIS b 3 0 ICOMLE b 3 0 ICON Mode Transparent v Initial Value h m DGUS SDK User Guide V4 9 0 Selected Area X Y are coordinates of top left of icons Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF VP variable pointer AP substitutive variable pointer reserved 2 words Bit Icon ON 1 OFF 0 define BITs to display Disp Mode shown as the following table Align Mode 0x00 X space unreserved for undesignated bits 0x01 Y space unreserved for undesignated bits 0x02 X space reserved for undesignated bits 0x03 Y space reserved for undesignated bits Interval spacing between icons Icon File ID address of icon file ICONOS Icon ID for bitO in non animation mode or starting Icon ID for bitO in animation mode ICONOE ending icon ID for bitO in animation mode ICON1S Icon ID for biti in non animation mode or starting Icon ID for bit1 in animation mode ICON1E ending icon ID for bit1 in animation mode ICON Mode Transparent Opaque Initial Value
2. 0x5A RTC data is rewritten through serial port cleared after RTC auto updating 0x20 RTC NOW 16 YY MM DD WW HH MM SS Send serial command to modify current time e g Ab 5A 0A 80 1F 5A 12 10 25 0412 00 01 04 means Thursday it can be Ox1F RTC COM ADJ 1 written as any day you choos 0x30 Ox3F 0x40 6 1 Undefined Ox5A applying writing in font flash memory clear after operation Heserve En Lib OP 0x50 Transfer data from variable SRAM to font flash memory add OxAO Transfer data from font flash memory to variable SRAM Lib OP Mode Designate font address for data exchange Total space are 16MB font space 0x40 0x7F maximum space of every font is 128KW Designate address in font library for data exchange Specified the first word address for data operation in font storage 0x00 00 00 0x01 FF FF 0x42 Lib ID 0x43 Lib Address Designate variable SRAM addresses for data exchange Specified the first word address for data operation in font storage 0x00 00 0x6F FF 0x48 OP Length 2 Length of exchanged data by word Save 1KW variable data string starting from 0x1000 address into 64 font ID with starting 0x0000 address send serial command A5 5A OC 80 40 5A 50 40 00 00 00 10 00 02 00 Ox4A 16 bit software timer in term of 4ms auto decrement to lt 0x46 TimerO 0x4C Timer1 8 bit software timer in term of 4ms auto decrement to 0 Maximum error is _4ms OxAD Timer2 8 bit softwar
3. 5 Will be shown as 2012 05 02 12 00 00 M I H H will be shown as O5 O2 WED 12 00 Selected Area X Y are the top left coordinates of data Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF Font Color data color Font Lib ID address of ASCII font file Font Size horizontal pixel numbers Date Format refer to the red texts in picture in the left Use lt RTC gt button to modify currentytime Illustration of variable Digital RTC Displays Digital clock on bottom right of screen DHIA Beijing DWIN Technology Co Ltd 27 www dwin com cn Analog Clock Display Hame Clock Display SF Ox FFFF The center of analog clock 1s the left up coordinate of chosen area Also the intersecting point of H Q S arms ICOHW File Hide Hour Hand ICON Hour FFFF z Center Coordinate Oo Hide Minute Hand ICON Minute FFFF alg Center Coordinate oOo Hide Second Hand ICON Second FFFF o 2 Center Coordinate i Professional Creditable Successful Y a zi 1 a DGUS SDK User Guide V4 9 0 2 2 10 Analog Clock Display Selected Area X Y are the rotating center coordinates Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF ICON File address of icon file Analog Clock ICON Hour select hour han
4. Professional Creditable Successful DWIN s High Quality HMI The Best Solution for Industrial Field Applications DGUS SDK User Guide Ver4 9 2013 02 Beijing DWIN Technology Co Ltd EUM soa Creditable Successful DGUS SDK User Guide V4 9 0 Contents Ve GUIS SOK V4 9 ASU UC OMA sass te i it UU St tl DUE QUE a pa 2 1 ODS PATON Or DOUS SDK VAO TERM 2 1 2 Main Interface of DGUS SDK VA 9 ssssssseeemm enm nnnm nnn nnn nnne 4 2 Mam Funcions or DOGUS SDR eh thi er i doc cid 7 2 TAGO TOU CM EO T 8 2 1 1 PODLIDVVIDOOW ssciscessetadesusvsasesancupet cn vusud EE EE E E E EN E EEE GE GEEU 8 2M Peti elo SADA e MS RT 9 2 1 3 Incremental Adjustment else enero Rea ren 11 21 4 older AOMSUTIGH 75059 UU mH UR OUS quU UU UNI v MUNDUS MEUM UU Uu E eee 12 MPG t s 13 21 5 TOUCH GODIE OD coercet icit o Lo A 14 2 1 7 Return Key Code eeesssseseseeeeeeeen ar tenen nnns 15 NBI ISI es f 17 2 1 9 Firmware Parameter Settings Reese 18 2 2 Add Variable BultoriS riore rire ie rca le Dc eie eerte erre tesa eebesess 19 2 2 1 Variable ICON llseeeesssseesssssseee De Ul cceccesececeaeceeseegecesseseeessageeeesaeeees 19 2 22 TONO DI aena A soos 20 B22 VII 21 VANUS RU Tolo lcg RR o c 22 2 2 5 Image Animation 4
5. 5 29 nacecccesecccccuseeccsauseeccsaueeecseseeessageeecssseeessanseesssaeess 23 Zi oa 68 Ae niece ae ORT 24 2 2 1 Data Variable Nt Cee ene cere ELLE 25 ZEN 180 o8 i m Y 26 2 2 9 EBID CIBSTIORD 7 P RR 27 22 WOW Analog AAC RNN SD o 28 2 2 11 Dynami 1 Ei 29 BZ NG VA MS DIY NR 30 2 2 13 Basic Graphic DISPIlAaY cccccceeeeeeeccceceeeeseeseeeeeeeeeseaeeeeeeeeeeesseueasaeeeeeessssaaaasess 32 A 1A Special IMOUSEal AD DIC AU ON seii EENE EEEE EERE 34 2 2 15 Bit Variable ICON cccccccsccccccceeeceeceeeeceeceeeceecseeeceeceeeeesseeceesseeeeseeaeeeessaeeeeessaneees 35 ZNO MIMO Le NC 37 SNC TON u 38 3 1 DIS PEU uten POTRETE TURRIM TENER DUTCH RESP QUESO 38 SNR OM MMO NG DCE TOTO TETTE TUIS 38 SION aile s MNT 39 Beijing DWIN Technology Co Ltd 1 www dwin com cn EUM soa Creditable Successful DGUS SDK User Guide V4 9 0 1 DGUS SDK Instruction 1 1 Operation of DGUS SDK 1 DGUS DWIN Graphical Utility Software is an intelligent GUI design software for DWIN DGUS LCM with K600 By using DGUS magnificent display effect can be achieved easily and rapidly with much less programming than ever before Variables are defined by DGUS SDK and users can feel free to design the visualize GUI All parameters and images can be downloaded v
6. Setthe initial value amp save it in the 22 config file the system will be initiated according to 22 config file when the DGUS is started Value of bit Neo o ICONOS ICON1S ICONOS ICONOS Animation ICON1S ICON1E Beijing DWIN Technology Co Ltd 35 www dwin com cn EM Professional Creditable Successful DGUS SDK User Guide V4 9 0 Illustration of variable Bit Icon on bottom of screen ELA Beijing DWIN Technology Co Ltd 36 www dwin com cn Timer Variable Teme Time VAR SP Dx FFF v m o Color reno Im Font Lib ID zs E 0 23 127 Font Size 16 4 255 Data length Bytes fi ASCII Separators pene ooo Conver t Hex Separators e Encoded separators string used to define the format of Timer Every time a Timer data BCD code is read one ASCII char will be added after as separator Some special chars Ox00 Hone Timer data will be concatenated Ox00 New lins DWIN Professional Creditable Successful Y 533 Y ET DGUS SDK User Guide V4 9 0 2 2 16 Timer Variable Selected Area X Y are the top left coordinates of data Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF VP variable pointer Color data color Font Lib ID address of font file 8bit encoding half width Font Size font size in X direction Data length Byte
7. address And so on SP VP Y 0x00 integer 2 bytes 0x01 long integer 4 bytes Beijing DWIN Technology Co Ltd 2 www dwin com cn EM soa Creditable Successful DGUS SDK User Guide V4 9 0 4 When you need to handle with icons please copy icon files into z DWIN SET folder to operate them in DGUS SDK V49 5 How to select area for buttons amp variables A Input coordinates directly foe yx fos 2 Tum 0 0 0 0 Set or B Drag the button variable with mouse 6 Define SP address for variables SP defines the description of variable settings to reduce overlap of SP address is necessary There is overlap judging embedded Configuration files won t be created with failure message when it comes an overlap of SP address SP Conflicted x SP Settings of Picture ID 4 and 4 conflicted 7 Import existing DGUS config files into new project A Create a new project B Add pictures C Import config files D Copy icon files into lt DWIN_SET gt folder Note Frame header is self defined by users In this document A5 5A is taken as frame header for instance Beijing DWIN Technology Co Ltd 3 www dwin com cn Professional Creditable Successful DGUS SDK User Guide V4 9 0 1 2 Main Interface of DGUS SDK V49 pwin IEGCLIECSENHLILILEALSLILAE amie Ay ecd mb x Images n Add Delete Up Down Position File login 2 bmp 134
8. curve buffer CH Mode defines the channels of data Each bit in CH Mode corresponds Trend to one channel CH_Mode Byte DATA0 Word CH_Mode 0 corresponds to DATAn channel 0 Low channel ranges ahead E g CH Mode 0x83 data format like Register is accessed byfevery byte variable SRAM and trend curve buffer is accessed by every word Curve Buffer Beijing DWIN Technology Co Ltd 38 www dwin com cn Professional Creditable Successful DGUS SDK User Guide V4 9 0 3 3 Register Register 256 bytes is used for hardware operation and process control Register Length Address Byte 0x00 1 0x01 1 Definition Description Version LED NOW DGUS version number BCD code 0x10 indicates V1 0 LED brightness 0x00 0x40 0x02 BZ TIME Buzzer beeping time by every 10ms Read read current picture ID Write switch to specific picture ID Ox5A there is update of touching area Others no updating TouchPanel data is no longer updated if user did not clear the flag after data retrieving 0x03 PIC ID 0x05 TP Flag 0x01 first click 0x03 pressing down 0x02 uplift pressing Others null Coordinate of touching position X H L Y H L 0x00 disable the touchPanel Others enable the touchPanel Default setting OxFF 4 Undefined 11 0x06 TP Status 0x07 P Position OxOB TPC Enable OxOC OxOF 0x10 0x1A Reserve RO RA Mapping of SD card config register read only
9. is 2 4 255 Font Width horizontal pixel numbers Ur Aor olor Ac fa 1 1 ooo m FontHeight vertical pixel numbers Font Color Os freon ES Jw Upload walue as typing Cursor Color white black Text Display Area Po o B o NESEM Font Color data color when typing Display Mode Direct display Eel Upload value as typing tying status upload Keyboard Site Current Face Text Display Area data position on screen when typing z Keyboard Displayed in Current Page Other Page Keyboard Setting m oet the keyboard picture ID and the keyboard area z97 158 z53 160 Image ID image ID of the keyboard area Paste Position set Cut Area cut area in image ID Perse rere eene Paste Position position of the keyboard on current screen 1 Note Create Touch control buttons on keyboard to define the key code of the button 0x4161 indicates A Inputted data can be displayed with Text display function Illustration of button ASCII Input BBG OK ESC Beijing DWIN Technology Co Ltd 17 www dwin com cn 0 soa Creditable Successful DGUS SDK User Guide V4 9 0 TOM eee ey ME y 2 1 9 Firmware Parameter Settings x fice 4 r so zd Selected Area selected button area al ou u ri Ex 5 Ei Omcm preview preview button effect Hame Parameter Config Ie Name name this button for viewing it in xls file W Data Auto Upload Data Au
10. keyboard on current screen Enable VAR Input Limitation Set limits for inputting numbers Ej Properties D Variable Data In ux sis Notes Only Touch Control buttons will work on keyboard OxOOF1 Confirm 0 9 corresponds to 0x0030 0x0039 OxOOFO0 Cancel OxOOF2 Backspace 0x002D 44 OxOO2E Ignore decimal point while setting range restriction for return value E g the setting is 3 integer bits and 2 decimal bits and then the top limit is 10000 rather than 100 Inputted data can be displayed by Data Variable WordArt etc Beijing DWIN Technology Co Ltd 9 www dwin com cn Professional Creditable Successful DGUS SDK User Guide V4 9 0 Illustration of button Variable Data Input Click text Keyboard pops up Type data OK Click Cancel to interrupt input Beijing DWIN Technology Co Ltd 10 www dwin com cn EM Creditable Successful DGUS SDK User Guide V4 9 0 2 1 3 Incremental Adjustment Incremental Adjustment Selected Area selected button area if7 Brite Preview preview button effect fice zd H 4 KEY CTRL Name name this button for viewing it in xls file ege Incremental Adjustment Data Auto Upload after pressing the button key code auto sent M Data Auto Upload to serial port UM Button Effect set picture ID for touching effect 1 null 1 select VP variable pointer VAR Type 0x00 integer YE 0x oo 0x01 high byt
11. the table Beijing DWIN Technology Co Ltd If the length of data is shorter than designated please use OxFFFF as end mark of data in this cell DGUS SDK User Guide V4 9 0 www dwin com cn EUM Creditable Successful DGUS SDK User Guide V4 9 0 Basic Graphic Display q r ss 2 2 13 Basic Graphic Display x i Selected Area select window area null if over range EXT Limit is only effective for 0x0001 0x0005 commands k i Name name this button for viewing it in xls file 00000 didi SP stack pointer default setting is OxFFFF VP px pono VP variable pointer String Format Data Pack Num Max Data Pack Number DATA Pack My US Data Pack for Basic Graphic Description of Data Pack Format by word Pm poor 2 po Vertex coordinates 0x0003 Rectangle 02 2 she Betomzightesondnaies 00004 ecarge 0x0005 Circle 0x02 1 Rad Radius of circle M eure cut paste 0x03 LL coordinates of the cutting Paste position on current screen Top left coordinates of icon Icon Display 0x0006 Icon ID in icon file high byte of command oes 4 specifies address of icon file display mode is transparent Ox 07 030008 Area fill Sampling dot coordinates Cote Filled color os ou 0x0009 Vertical line Connect X0 YOs X0 YOe with color 0 Judging condition Beijing DWIN Technology Co Ltd 32 www dwin com cn EM Professional Cre
12. when typing Font Color data color when typing Font Lib ID address of ASCII font file Font Size horizontal pixel numbers Cursor Color white black cursor Keyboard setting Set the keyboard picture ID and the keyboard area Image ID image ID of keyboard area Cut Area cut area in image ID Paste Position position of the keyboard on current screen Notes A keyboard setting iS th same as Data Input Use HTC display or Analog clock display to display current time Illustration of button HTC Al Z IIS IETJI IE ed od o s ee i Cancel j nd UI FTUTHTUlty o Click lt RTC gt button Keyboard Pops Up Clock Sets Up the Current Time Beijing DWIN Technology Co Ltd 13 www dwin com cn Professional Creditable Successful DGUS SDK User Guide V4 9 0 Y 338 Y 217 W 115 H 34 KEY CTRL E asic Touch i Select Hl Ho Button Effect i Select Full QWER Feyboard EN j Basic touch used as Full QWER keyboard please define via set Basic touch used as Humerical keypad please define manually according to bellow info Valid key code Ox0030 0x0039 0 9 OxO0FO Cancel OxO0F1 Confirm OE Ox00F Rackspace 2 1 6 Touch Control Selected Area selected button area Preview preview button effect Name name this button for viewing it in xls file Button Effect set picture ID for touching effect 1 nu
13. 20IBITRZTS bmp Telcome Button and Display Config w Variable Data Input n v 248 H s KEY CTRL Name ata Input 4 V Data Auto Upload Default Parameters Iv Project Manage Open Project lata Auto Upload No 0 DGUS Project Diprj hmi Font Color 0x F800 Button Effect Font Lib ID z 0 P3 12T z 1 select Font Size 16 ud 41255 No 1 DGUS Project DWprj hmi No Button Effect ICON Display Mode Jump To select IGUS Tool No Jump aes VP Ox 0000 VAR Type INT X Number of INT Bit bp Number of DEC Bit z4 Position 0 0 Set Font Color Ox reco E Font ID zs 0 23 127 Font Size 16 4 4 255 Cursor Color Black x Display Mode Masked by x Keyboard Site Current Define Keyboard i Properties ud Variable Data Input ENo 0 Font Library It generates the No 0 font profile for DIN DGUS No 0 Font which included the matrix font in different size as below 4 8 64 128 m Psi Screen Property Setting Screen Property Resolution 800x480 Color Save In D Mty Documents I Hote The existing project will be opened directly if it is found in the selected folder b Select resolution and path for your project ocreen Property Set E g for DMT80480T070_O6WT Color T 16bit Resolution 80480 800x480 Beijing DWIN Technology Co Ltd 4
14. F Brightness ox Ox00 O 40 RS Backlight ON Time x1 05 Ox OxX00 OXFF 3 E Enable touch calibration inputted data will be sent via serial port only when both lt TPSAUTO gt in System Config Window and Data Auto Upload settings in buttons properties are ticked Create Config Generate 13Touch Control Config bin and lt 14Variable_Config bin gt Create Finished Import Config Import existing config files to the current project Variable Export Generate lt TouchConfig xls gt and lt DisplayConfig xls gt for quick view of buttons amp variables Align Left Align the selected buttons and variables to left Align Top Align the selected buttons and variables to right Auto Width Adjust the selected buttons amp variables at same width Auto Height Adjust the selected buttons amp variables at same height Beijing DWIN Technology Co Ltd 5 www dwin com cn Professional Creditable Successful DGUS SDK User Guide V4 9 0 Copy Ctrl C copy Paste Ctrl V paste Delete delete delete Front Place the button or variable at front layer Back Place the button or variable at backward layer SP Address Setting Set SP for variables Variables Preview Preview buttons amp variables Show Text show the names of buttons amp variables or not HU Adderss Watch Sele Image ID 1 4 bmp Image ID Hame VP VAR Type 5 Basic Touch 0x0000 Basic Touch 6 Data Input Ox0122 D
15. Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF VP variable pointer V Stop set value to stop animation V Start set value to start animation ICON File address of icon file ICON Stop icon at V stop value Icon Start lcon End Start end icon for animation at V start Value ICON Display Mode transparent background Initial Value Set the initial value amp save it in the 22 config filethe system will be initiated according to 22 config file when the DGUS is started When value in VP address is 0 screen display icon 0 20 www dwin com cn EM Creditable Successful DGUS SDK User Guide V4 9 0 Slider qa 2 2 3 Slider y 140 1 Jigs i 121 ES H ss ES Selected Area X Y are the top left coordinates of icons X W is start end point of horizontal slider Teac Slider Display Y H is start end point of vertical slider Preview preview VAR display effect x FFFF QM i BR Name name this button for viewing it in xls file VE Wx J0000 SP stack pointer default setting is OxFFFF Start Value c VP variable pointer Gd Wes NE Start End Value value corresponding to start end point Slider Mode horizontal vertical slider Mode Horizontal ICON File address of icon file ICON File El ICON ID icon address in icon file con rp fo o Display Mode transparent background Display Mode Transparent Coordinate Offset Y Coor
16. Number of INT Bit length of integer digits Number of DEC Bit length of decimal digits Unit Length Corresponding to displayed unit automatically Unit Displayed ASCII unit for data max length is 11 bytes Initial Value Set the initial value amp save it in the 22 config filethe system will be initiated according to 22 config file when the DGUS is started Send commands or set buttons to modify displayed data Illustration of variable Data Variable PIIA Dew Temp Send command to serial port Frame header Length Command VP Data string to display the Data left up above A5 5A 05 82 Beijing DWIN Technology Co Ltd 0000 0022 25 www dwin com cn E Professional Creditable Successful Text Display 315 r zes ide i W H 26 Hama Text SP Os FFFF VF Os noon Text Color Ox reco E Encoding Mode Ox00 8bi t Set Character Interval MANUALLY Text Length t FUNT ID 2d J Font ID of the ASCII in Coding F NT1 ID 0 Font ID of coding Ox00 Ox05 and non ASCII in coding Ox01 0x04 Dot Matrix in A amp direction B al 4 255 i Dot Matrix in T direction 4 200 T i Horizontal Separation e alr Vertical Separation ce alr Initial Value Illustration of variable Text Display 2I AT Dew Temp Send command to serial port DGUS SDK User Guide V4 9 0 2 2 8 Text Display Selected Area X Y are top l
17. able pointer Value Return Type 0x00 integer 0x01 high byte in VP address 0x02 low byte in VP address o o Direction horizontal vertical Start Return Value The value corresponding to left top side of slider End Return Value The value corresponding to right bottom side of slider This function is only for making touching area for slider To display ity please use lt Slider display gt function Adjusted data can be displayed by lt Data variable gt lt Variable icon gt etc Illustration of button Slider Adjustment DHIA Hold the button over 0 5 second and slide the slider to modify number in the right the value will also be changed Beijing DWIN Technology Co Ltd 12 www dwin com cn X 233 Y ze5 W e x zo KEY CTRL Hame EIC Data Auta Upload Button Effect Select Display Position 0 0 Set Font Color Ox gg Font Lib ID no Sf Gas 121 18 4 255 flack ack Font Size Cursor Color e e et ID Cut Area 296 191 298 193 Paste Positon Professional Creditable Successful DGUS SDK User Guide V4 9 0 2 1 5 RTC Selected Area selected button area Preview preview button effect Name name this button for viewing it in xls file Data Auto Upload after pressing the button key code auto sent to serial port Button Effect set picture ID for touching effect 1 null Display Position data position
18. ata Input 8 ICON Rotation Ox 1000 Icon Rotation OxFFFF ToolBar DWIN LOE Ji L a T3 E F L gt RIAA OOO SH om FA Edit Tools Touch Config aL PF RTC t b EN a Variable Config MN gk 4 EC 5 0B z iO ap hi Edit Tools BRS P HO Jer S too 72 Switching between Touch Config amp Variable Config amp Edit Tools using Navigation bar or shortcut key F2 F3 F4 Beijing DWIN Technology Co Ltd 6 www dwin com cn EUM Creditable Successful DGUS SDK User Guide V4 9 0 2 Main Functions of DGUS SDK Touch Config users can use DGUS SDK software to add buttons on screen including Popup Window Variable Data Input Incremental Adjustment Slider Adjustment RTC Setting Touch Control Return Key Code and ASCII Input Buttons are shown as yellow rectangles in DGUS SDK V4 9 Users can also add press effect for buttons Variable Config users can use DGUS SDK to add variables on screen including Variable Icon Animation Icon Slider WordArt Image Animation Icon Rotation Data Variable Text Display RTC Display Analog Clock Display Dynamic Trend Curve Display Table Display and Basic Graphic Display Bit Icon Timer Variable Variables are shown as light blue rectangles in DGUS SDK VA49 Parameter settings users can use System Properties to adjust parameter settings of DGUS module Parameter with Ox in front should be filled with hex numbers B
19. d ID in icon file Center Coordinate rotation center in icon Minute Hand ICON Minute select minute hand ID in icon file Center Coordinate rotation center in icon Second Hand ICON Second select second hand ID in icon file Center Coordinate rotation center in icon Use lt RTC gt button to modify current time Illustration of variable Analog Clock Display PENAT Beijing DWIN Technology Co Ltd 28 www dwin com cn Dynamic Currve Display Y 235 y 250 W E H es Hame Curve Display SF Ox FFFF T Central T VI Central c Curve Color Ox El MUL Y T z Magnification in vertical the unit is 1 256 0x0000 OxTFFF lata Source Channel c ES Ox00 O207 J Horizontal Axis Spacing 1 ES Ox01 OxFF Professional Creditable Successful DGUS_SDK User Guide V4 9 0 2 2 11 Dynamic Trend Curve Selected Area select window area null if over range Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF Y Central select center line of trend curve VD Central Trend curve value at center line normally average of Max amp Min value Curve Color select color for trend curve MUL Y magnification in Y direction by every 1 256 Data Source Channel select channel for trend curve Horizontal Spacing Transverse spacing between sampling points Illustration of variable Dynamic Trend C
20. dinatel i5 SJ z Offset to the left top fo Ez VAR Type X Conrdinate offset Integer whole VP address VAR Type tora wj High byte in VP address Low byte in VP address Initial Val O S vs Am IP i 26s E Initial Value S t th initial value amp save it in the 22 config The system default Start End file the system will be initiated according to 22 config file when coordinates of slider have been set as per the original the DGUS is started chosen range of slider Note Set same VP address for Slider button and Slider display variable to combine them Slider display is also used as progress bar DHIA Send command to serial port Frame header Length Command VP Data string to display the Slider and Data above A5 5A 05 82 000C 002C Beijing DWIN Technology Co Ltd 21 www dwin com cn WordA rt WAR Setting w 7108 H ze Hame tor dart variable SF x FFFF VP Ox joooo ICO File ICOHO o 4 o ICOH ID Corresponded To O The Sequence Is O123456769 ICOH Display Mode Tr ansparent VAR Type IHT Humber of INT Bit s Humber of DEC Bit o Alignment Left Align Initial Value o Illustration of variable WordArt gt PIA Send command to serial port Professional Creditable Successful DGUS SDK User Guide V4 9 0 2 2 4 WordArt Selected Area X Y are the top left coordinates of icons Preview preview VAR display effect Na
21. ditable Successful DGUS SDK User Guide V4 9 0 OxFF finish operation OxFE skip to next step Send command to serial port he Frame header Length Command Address Controlling bytes Data sf Coat Color 0 A5 5A 11 82 2000 0003 0001 006400 64028 F8 00 To get the rectangle above Beijing DWIN Technology Co Ltd 33 www dwin com cn Professional Creditable Successful DGUS SDK User Guide V4 9 0 2 2 14 Special Industrial Application o x Name name this button for viewing it in xls file industrial App SP stack pointer default setting is OXFFFF s Gx FFF VP variable pointer YF Dx J000 String Format Description Command Data Pack Num Max Data Pack Number DATA Pack EDD S S sss o S Data pack for Special Industrial Application Description of data pack format by word Helative Tv M 0x00 ColorO Color of Safe Zone 0x01 4 Colori Color of normally overlapped area Overlapped once Color of High Risk overlapped area Overlapped twice or more Overlapped 0x0001 Area of 0x04 1 Color4 Color of evasion Multiple Circles Fill 0x05 4 Disp Area Display area null if over range 0x09 4 n 2 x y n Center coordinates of No n The bigger radius of No n concentric 0x0B 4 n 1 RADn_1 circles The smaller radius of No n concentric circles OxOC 4 4 n 1 RAD2n 2 Color0 Colorl W Color4 Color2 Beijing DWIN Technology Co Ltd 34 www dwin com cn
22. dwin com cn EUM Creditable Successful DGUS SDK User Guide V4 9 0 2 1 2 Variable Data Input Selected Area selected button area X 177 Y E v zo zd ne 2 Orc preview preview button effect Name Date Input Name name this button for viewing it in xls file o Deka Bate Upload Data Auto Upload after pressing the button key code auto Button Effect 1 z select sent to serial port Button Effect set picture ID for touching effect 1 null Jump To switch to a new picture after pressing VP variable pointer Ha Button Effect VAR Type INT integer VF Ox 0000 LONGINT long integer WAR Type INT s High byte high byte in VP address Humber of DEC Bit ja Low byte low byte in VP address Position 0 0 Set Number of INT Bit length of integer digits Font Color x Fenn E Number of DEC Bit length of decimal digits LIE i 2e tzr Position data position when typing Font Size 16 4 255 Font Color data color when typing Cursor Color Black apie Mode Masked by GO J Font ID address of ASCII font file Beroerd Shas Current Font Size horizontal pixel numbers Cursor Color white black cursor Display Mode masked by direct display Define Keyboard Set the keyboard picture ID and the keyboard area Jers v2 sre 174 Image ID image ID of the keyboard area Paste Fosition O O Set Cut Area cut area in image ID Paste Position position of the
23. e in VP address Qum 0x02 low byte in VP address High Byte 0x10 Ox1F adjust value in designated bit of VP address 0x10 C Low Byte corresponds to VP 0 Ox1F corresponds to VP F Step Size must Adjustment Method be Or 1 Qver limit Operation Stop Adjustment Method Over limit Operation stop cycle No Button Effect Step Size fo b Step Size set step size for buttons Min Value o Min Value minimum value for adjustment Max Value fo EX Max Value maximum value for adjustment Adjusted data can be displayed by Data variable lcon variable and lt WordArt gt etc Illustration of button Incremental Adjustment PIA Dew Temp Click lt gt or lt gt to adjust corresponding value Hold the button to adjust continually Beijing DWIN Technology Co Ltd 11 www dwin com cn Slider Adjustment Professional Creditable Successful DGUS SDK User Guide V4 9 0 a 2 1 4 Slider Adjustment x e b x pe 3i Selected Area selected button area i 114 H E KEY CTRL Name Eli der Adjustment W Data Auto Upload pono Adjustment Method Value Return Type zur Horizontal Start Return Value VP Ox Direction End Return Value Preview preview button effect Name name this button for viewing it in xls file Data Auto Upload after pressing the button key code auto sent to serial port VP vari
24. e timer in term of 4ms auto decrement to O Ox4E Timers 8 bit software timer in term of 4ms auto decrement to 0 Address of key code for 13 touch control config file 0x00 null Clear after operation executed 0x50 O0xFF Reserve 182 Undefined Register is accessed by command 0x80 0x81 Ox4F Key_code Beijing DWIN Technology Co Ltd 39 www dwin com cn EUM Creditable Successful DGUS SDK User Guide V4 9 0 gt Variable SRAM Variable SRAM 28K words is for storing real time data Variable SRAM is divided into 28K address ranging from 0x0000 to Ox6FFF Variable SRAM is read and written by word Variable SRAM is accessed by command 0x82 0x83 gt Trend Curve Buffer Trend curve buffer is for storing real time trend curve data supporting 8 trend curves simultaneously Trend curve buffer is written by word each dot of trend curve occupies 2 bytes Trend curve buffer is accessed by command 0x84 write only Beijing DWIN Technology Co Ltd 40 www dwin com cn
25. eft coordinates of data Textbox is the selected area Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF VP variable pointer Text Color data color Encoding Mode 0x00 8bit encoding 0x01 GB2312 0x02 GBK 0x03 BIGS5 0x05 UNICODE Set Character Interval MANUALLY on off Text Length select text length by byte FontO ID address of ASCII font file Font1 ID address of non ASCII font file Dot Matrix in X Y direction select font size Please note that parameter should begthe same with the size of font file Horizontal Vertical Separation Pixel distance in Horizontal Vertical Initial Value Set the initial value amp save it in the 22 config file the system will be initiated according to 22 config file when the DGUS is started Frame header Length Command VP Data string to display the Text bottom left above A5 5A OD 82 Beijing DWIN Technology Co Ltd 0008 64 77 69 6E 20 64 67 75 73 76 26 www dwin com cn DGUS_SDK User Guide V4 9 0 x far zx uz zm Fei 2 2 9 Digital RTC Display SE x FFFF Font Color reno Eu Font Lib ID 25 Font Size 1B 4 255 late Format fx M D H S W Coding String It is consisted of RIC coding list and ASCII ETC Coding Content Coding Year Y Month Dax Hour Minute Second Week ca Wi 2 SS E g If the time is 2012 05 02 12 00 00 Wed Y M D H
26. eijing DWIN Technology Co Ltd 7 www dwin com cn 2 1 Touch Config y 126 j r 134 W BE H az EZ KEY CTEL Hame Popup Window Jw Data Auto Upload Button Effect 1 Select Ho Button Effect YP xc yoooo INT C Bit C High Byte C Low Byte agr 18T 488 159 Faste Position D g Set 7 Properties Lr Fopup Window Professional Creditable Successful DGUS SDK User Guide V4 9 0 2 1 1 Popup Window Selected Area selected button area Preview preview button effect Name name this button for viewing it in xls Excel file Data Auto Upload after pressing the button key code auto sent to serial port Button Effect set picture ID for touching effect 1 null VP variable pointer VAR Type INT write key code in VP address word High Byte write low byte of key code in highybyte of VP Low Byte write low byte of key code in low byte of VP Bit write data from last bit of key code into designated bit of VP address 0x10 corresponds to VP 0 0x1F corresponds to VP F Popup Window set window picture ID and window area Image ID image ID of window picture Cut Area cut area in image ID Paste Position position of window on current screen Note Only Touch Control buttons will worK errpopup window Illustration of button Popup Window ANH Z Click Stop button Window pops up Select YES NO Beijing DWIN Technology Co Ltd 8 www
27. g file when the DGUS is started Send serial commands or press buttons to change value in VP address and then to adjust the angle of pointer Illustration of variable Icon Rotation Icons file for rotation d PIA V EN N 420140 7 100 80 60 40 Send command to serial port 160 7 180 200 220 F 2404 260 Frame header Length Command VP Data string to display the ICON above A5 5A 05 82 Beijing DWIN Technology Co Ltd 000A 0084 24 www dwin com cn Lu Professional Creditable Successful Data YAR Display Hi t E it H Hame Data Display SP Ox FPFF VE Ux pono Font Color Ox F800 a Font Lib ID s o b 0 23 127 fis ees Alignment Mode Left d VAR Type INT Huber of IT Bit f 4 Huber of DEC Bit fo H Unit Displayed Unit Text Wax 11 Characters n ES Font Size Unit Length Initial Value son I E i 9 om DGUS SDK User Guide V4 9 0 2 2 Data Variable Selected Area X Y are the top left coordinates of data Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF VP variable pointer Font Color data color Font Lib ID address of ASCII font file Font Size horizontal pixel numbers Alignment Mode Right Left Centered VAR Type 0x00 integer 0x01 long integer 0x02 high byte in VP address 0x03 low byte in VP address
28. ia SD card which stores related bin files to make your design into real application 2 Install DGUS SDK V4 9 Unzip DGUS SDK VA 9 rar and click DGUS ToolV4 9 exe to run it net Framework 2 0 is required to run the software RESESEEEREEEERRRRSEEREERRSRERZEERERRRRSESREEREERERER Gus SIE Vd zip ERE T 357 KP Conf iu DGUSTools exe DYIHDOCK dli onti D INIMGY dll kl DWINPYF dll kl DvinTerninal dll ED XYInput dll A Ionic Zip dl d s V NPOI dll E 3 VP Variable Pointer The addresses of variables in variable SRAM 56KB Users can set buttons with defined VP to change the value in this address and display contents corresponding with the value in VP address SP Stack Pointer the address of definitions starting address of description data of variables Change the value in particular address to modify variable properties Take lt WordArt gt function as example ECINR NN RENE GN ww wm 2 S Los Se spone detaut sting BOFFFE Low OW QN CNN IconO Icon ID corresponding to 0 the sequence is 0123456789 Stack pointer default setting is OXFFFF The whole process length in terms of words ICON display mode 0x00 transparent others opaque Length of integer digits Length of decimal digits 0x06 H VP Data Mode If SP is set at 0x5000 for WordArt variable VP parameter will be saved in 0x5000 address Variable position parameters will be saved in 0x5001 0x5002
29. iable lt Variable Icon gt Professional Creditable Successful DGUS_SDK User Guide V4 9 0 2 2 1 Variable Icon Selected Area X Y are the top left coordinates of icons Preview preview VAR display effect Name name this button for viewing it in xls file SP stack pointer default setting is OXFFFF Set SP to load description data into variable SRAM OxFFFF load description data from configuration file VP variable pointer ICON File address of icon file Min Max value limits of variables null if over Timit Icon ID Icon address in icon file corresponding to the min max value Display Mode transparent background Initial Value Setthe initial value amp save it in the 22 config file the system will be initiated according to 22 config file when the DGUS is started Change the value in VP address to display different icons Beijing DWIN Technology Co Ltd 19 www dwin com cn Animation ICOH q W 154 H za Hame JAnimation icon SP Osc FFFF VF mx noon V Stop Em o EX V Start ICON File vj ICON Step BD co stat fo ICON End ICOH Display Mode Transparent m Initial Value o ES Illustrat