Home
WinCon-8000 Getting Started
Contents
1. Busing system using Syvetem Drawing using syvetem Collections using System Windows Forms using System Data using Wincon g namespace Demo Yil lt summary gt if Summary description for Formi PER fumes public class Forml System Mindows Forme Form aa z public Forml Fig 5 2 9b Click the Form1 vb Design or Form1 cs Design tab in the workspace window above to change the code view window to the form design window Click the icon A label on the Toolbox window to create a label text object Type Input DO Value into the Text field from the Properties window WinCon 8000 Getting Start Manual 57 f roperhes Labell Svetem Windows Forms Labe SAAE i 136 72 n Locked False Modifiers Friend E Size 100 20 Input DO Yalue Text hen TopLeft Visible Tie Fig 5 2 10 Click the icon i TexBox to create a TextBox object Delete TextBox1 text in the Text field from the Properties window Create a new button object by clicking the icon T Button in the Toolbox window Type Digital Output in the Text field from the Properties window Double click on the button to open the corresponding code window and enter the following line of code in the button s Click event handler 10a VB NET Dim slot As Integer 1 Dim data As Integer data Val TextBox1 Text Start Page
2. WC lato Corfu ano ff TODO Add your control notification handl int temp slot char string1 20 Sslot n_Slotb0 GetCursel 1 temp GetHameDfFHodule slot stringi slotb0 slot WinCon 8000 Getting Start Manual 31 4 2 Installation Wincon 8000 SDK for VS NET on PC Wincon 8000 SDK for VS NET consists of the following major items WinCon DLL files for VS NET e Demo files The Microsoft Visual Studio NET 2003 software program must be installed before attempting to install the Wincon 8000 SDK If you have not already installed the Microsoft Visual Studio NET 2003 please refer to the Microsoft document to assist you in installing the software package first and then you can follow the below steps to install the development toolkit provided by ICP DAS for the easy application of Wincon embedded controller platform Step by Step Installations of WinconSDK for VS NET 1 Please insert the CD ROM into your CD ROM driver 2 Then run WinconSDK_8XXX_dotNet_YYYYMMDD msi in the SDK folder of CD ROM 3 Follow the instruction to go forward step by step 4 After successfully installing the software E WinCon SDK DLL files are located at C Program Files Windows CE Tools wce410 SA_IA Dotnet Demo files are located at C Program Files Windows CE Toolsiwce4101SA lAlPacWWincon W SA _IA is the hardware platform name for W 8X3X For W 8X4X WCE configuration name is SADU_SACR WinCon 8000 Getting Start Manual 3
3. Anaiog input Analog output Current Loop Compact Flash Digital input Digital output be Relay Output LED Indloator Config Rotary SW Open Collector output Counter Frequeney DC Power in 10 100 Ethernet Fig 1 5 WinCon 8000 Getting Start Manual 7 Dual Ethernet ports usually help customers with flexibility and extensibility system integrators can implement their network redundant policies Fig 1 7 or to plan their business systems and industrial Ethernet network in two separated network segments to gain more network security Fig 1 6 Fig 1 7 If the devices connect was completed please connect the DC 10V 30V input to the under right side and frame ground to the earth ground finally if you have earth ground Please attention that Wincon s power consumption is low typical 0 15A at 24VDC But On the Power On moment in 200ms the Wincon need more current to start up typical 1 2A at 24VDC WinCon 8000 Getting Start Manual 8 1 4 Specifications Main Control unit Intel Strong ARM CPU 206 MHz m 1 VGA port SRAM 64M bytes 320x240x16 to 1024x768x16 Flash RAM 32M bytes Default is 640x480x16 EEPROM 16K bytes 1 Compact Flash slot CF memory card 64 bit hardware unique m Reset button serial number m Power LEDs Built in Watchdog Timer Real Time Clock 2 PS 2 port Keyboard and Mouse USB 1 1 host x 2 USB 1 1 Host x 1 m 10 100 Base T x2 10 Base T NET2000 compatible COMO Internal us
4. d ry 4 al Litt mja She tie els sel mi u i sd Toolbox Device Contr We Pointer Ay Label ab Button abl Textbox 3 MainMenu M CheckBox RadioButton d E solution Demo il project H 5 References oo Asemblylnto cz E Es Form cs E p a AAA El AAA El AAA AAA ee POFO FO FOFO FOET EOR EO E pO pO EO EO EOTF ARE de gt EJE e ERE EEE E EOE OEO k AAA AAA AA AA RO EO AAA O E ECE 4 ia Ed A oh ok of ot ot ol ok of ot ot fot EOF E AAA CA A A A TA A TA A oe gt ERRE A A A A ee E E E E E ELE ELE EEE E E ELE E ELE E EE lr Solut 24 Clase EG Reso of sot oh ot oh of ot oh ol of ot ot ot of ot ote gt de E gt gt ie b P gt gt b gt ES E E LALALA LALALA A A A eB Be CALALALALATALCALALA LALA CALALALALALALALALA LALA CALALALALALA LALALA LALA ele le e p A AAA AAA AAA e AAA A EO TEE lA EO pO EO PO EO AAA AAA pO EO EO ETTE ee ee A le le ee AAA A AA A AT FOFO FOFO FOFO FO FO FOFO A gt ela e AAA AAA Ce ee A A AT A A A AT A A TAL A gt EOR AA AAA AAA AER dC a A gt ee E p ee A ee ee ee ee A FO FO ee oe A A EO EO TOET eS 1 Ela in GridSize 8 8 le e oe et le e ee pE ele aa Icon az con Language Default Localizable False El Location WinCon 8000 Getting Start Manual 53 5 2 2 Add the Project Reference to an Application The Wincon library contains all the module functions Before you
5. local I O modules and W 83XX for 3 max local I O modules There is no I O slot about W 80XX so it can t plug in WinCon 8000 Getting Start Manual 4 any local I O modules On the under lift side The COM2 is a standard 5 wire RS232 com port You can connect the standard RS232 device modem The COM3 is standard RS485 port You can connect to the RS485 devices like ICPDAS s products I 7K series I O modules andi 87KX expansion unit RISC CPU206MHz EEPROMFlash SDRAM ee nee en USB Parallel Bus heces 3 LED Indicator Hardware Unique S N Reset Key Rey basta NOExpansion Slot COMPort RS232 DC P ower In A E COMPort ower ln da E g Analoginput Analog outpu LED indicator YGA Current Loop Compact Flash Digitallnput Digital output Ethernet Port gen eet 3 pen Collector Output Fig 1 3 By the Ethernet you can communicate to the Ethernet devices such as 7188EX palm size Embedded Controller Motion Controller Galil s 21XX SQL Server mail Server MMS Server iPush Server and so on Fig 1 4 WinCon 8000 Getting Start Manual 5 Solution for Internet Intranet f Wireless Modem Led Panel Fig 1 4 If the devices connect was completed please connect the DC 10V 30V input to the under right side and frame ground to the earth ground finally if you have earth ground Please attention that Wincon s power consumption is low typical 0 15A at 24VDC But On the Power On momen
6. 1 A U Ny J 4 3 slots a i 7 lt i 7 l gt HS SA C amp D OOD D om EE a TED o A JO aa an Ep a E Ta om D TE a D D c cr D D a c E ff J gt I D D ES coe D al D D gt IN I J a XN A f 230 25 pa a aj f A N I o 0 No JA 00000000 oooooooo f oosooooo Lo 000090000 ooooonon i ooo0o000 O gt Do a 5 p el O p O l l rn J A Y L W H T 11 T IER T
7. DemeApp cpp cnet _ Fig 5 1 5 5 1 2 Specify Locations for Demo Files The Directories settings in Options for eMbedded Visual C specify search paths for files in your projects These include lists of paths for the following types of Path contents Executable files Specify locations for the build utilities such as the compilers CL CLARM CLMIPS and so on NMAKE LINK and BSCMAKE files Include files Specifies where the compiler should look for include files for example include lt stdio h gt Library files Specify where the linker should look for libraries to resolve external references Source files Specify where the debugger should look for default source files such as the Microsoft Foundation Class Library and the Microsoft run time library WinCon 8000 Getting Start Manual 37 Path information is stored in directory settings and it allows you to configure them You can change both the paths listed in these settings and the order in which eMbedded Visual C searches for them The path specifications have separated the setting for the different devices and the different platforms Such as WCE emulator supported by your installation of eMbedded Visual C To specify default folders for demo project files Open the Options dialog in the Tools menu 2 Inthe Directories tab select the SA_lA for W 8X3X or SADU_SACRP for W 8X4X on the Platform item
8. Formi wb Design Formi vb J gt x E Buttoni Click a Publie Class F Formi al Inherits system Windows Forms Form Friend WithEvents Labell As System Windows Forms Label Friend WithEvents TextBoxl s System Windows Forms TextBox ES WithEvents Buttonl As a As Integer 1 Din data As Integer data ValiTextBoxl Text E f Fig 5 2 11a 10b C NET int slot 1 byte data WinCon 8000 Getting Start Manual 58 data Convert ToByte textBox1 text ien Formi cs iex 91 Demo Fom g button _Click object sender ayetem Even i Application Runfnew Formi 5 private void buttonl Clicklobject sender vatem EventArgs e int slot 1 byte data data Convert TobyteltextBoxl Text ici i I 4 Fig 5 2 11b 11 Insert a new line and type Wcon And then a list box window will pop up as follows to prompt and help the user to add a function for the WinCon 8000 device controller unit Start Page Formi vb Desgn Formi vb J bX a Button gt amp Click EZ Imports Wineon SFublic Clase Forml Inherits System Windows Forms Form Friend WithEvents Labell s System Windows Forms Label Friend WithEvents TextBox As System Windows Forms TextBox Friend and WithEvents E Button ds s System Windows Forms Button Windows A Se See 1 Forti lesiener generated code Private Sub Buttonl_Click By al sender As System Object ByVa
9. Win32 WCE ARMV4 in the CPUs item and also the Show directories in the include files or Library files item 3 Since all the WinCon specific include and library files have been allocated in default directories users don t need to modify the contents of default directories of include and library files 4 Fig 5 1 6 display the default location of include files Options E lx Tabs Debug Compatibility Download Build Directories oO afe Platform Show directories SAIA ES ME linctude files y Directories GK CAPrnaram Files Windows CE Tools wce410 SA lA Include ARMV4 CiProgram Files indows CE Toolstwce410 54 lAimtichinclude CiProgram Files indows CE Tools wce410 54 lA athinclude H Location of WinCon SDK Include files cancel Fig 5 1 6 WinCon 8000 Getting Start Manual 38 5 Fig 5 1 7 displays the default location of Library files Tabs Debug Compatibility Download Build Directories 30 a Platform CPUs show directories SAIA Win32 MCE ARMY A Library files Directories Location of WinCon SDK Library files Fig 5 1 7 a Note If you want to remove a folder select it and then press DELETE 5 1 3 Configure Compiler Options To set the compiler options in the development environment please follow these steps 1 Inthe Project menu choose Settings to open the Project Setting dialog
10. CE and developing for the Pocket PC a specific type of Windows CE device Your choice will determine which project templates are used to construct your initial blank application WinCon 8000 Getting Start Manual 51 sad Dewice Applicaton Wizard Devic Welcome to the Smart Device Application Wizard This wizard creates a project to develop an application to run on a smart device What platform do you want to target Pocket PC You currently have the Following devices installed that will run an application targeting this platform Windows CE MET Device Windows CE NET Emulator Default Pocket PC Device Pocket Pc 2002 Emulator What project type do you want to create windows Application Class Library Console Application Empty Project T 8 10 Fig 5 2 2 Choose the Platform use Windows CE for the Wincon 8000 device Choose the Project Type For the first simple application which simply displays a form on the device choose Windows Application Click OK and let the wizard create the project for you this may take a moment You should now be looking at a Visual Basic NET C NET application that looks somewhat like Figure 5 2 3a Figure 5 2 3b for C NET Your window arrangement may quite likely be different since Visual Studio remembers the layout you ve configured in the past when developing other projects WinCon 8000 Getting Start Manual 52 Demo Microsoft V
11. Ly WinCon 8000 Getting Start Manual 10 No wo U w 35 6 LE 7 slots gt cr gt E gt 3 3 ja gt o Cr ID s CT a
12. Size 16K bytes Slot4 I re Paan Flash Memory Size 32M bytes slot 5 OS Version CE Net 4 1 2 04 09 02 TC EGU slot 187064 OS Image Size 28956244 bytes Slot 7 8077 WinCon SDK Version WinCon SDK 2 0 1 Fig 2 8 This tab includes the following folders e Slot 1 7 box The Sloti 7 fields display the module names plugged in the Wincon 8000 WinCon 8000 Getting Start Manual 18 e Serial Number box This field displays the serial number of the Wincon 8000 e MAC address The field displays the physical address of Ethernet port For W 8X4X upper field displays 1 Ethernet MAC address Lower field displays 2 Ethernet MAC address eo EEPROM Size box This field displays the EEPROM size of the Wincon 8000 eo Flash Memory Size box This field displays the Flash memory size of the Wincon 8000 OS Version box This field displays the current operating system OS Image Size box This field displays the size of the current operating system e WinCon SDK Version box This field displays the current WinconSDK_DLL version Auto execute Tab The Auto execute tab provides ten execute files which can be run after the WinCE system has been launched on the WinCon 8000 system You can set ten execute files through the Browse button on the tab for WinCon Utility as shown in the below figure Note that they are executed in order of program 1 program 2 WinCon 8000 Getting Start Manual 19 WinCon Utility 1
13. Ver 2 1 0 Save Registry System Config Auto execute Version Update Com About WinCon Utility 1 Program 1 Browse Program 2 Program 3 At most 10 programs can be specified to execute Program 4 automaticaly when system starup And there is none Program 5 Browse dependency between each program Program 6 Program 7 Programa Progam 2 Program 10 Browse Save Setting E Fig 2 9 The tab includes the following folders e Program 1 10 boxes These files allow one to configure the auto execute files for Wincon 8000 for when it is started up You can choose the execute file and file directory path by means of the Browse button e Save Setting button If you have changed the settings for the Program 1 10 field contents you must then click the Save Setting button before closing the WinCon Utility window Version Update Tab The Version Update tab provides the function to be able to update newer versions of the operating system Users can download the OS image file from the web site http www icodas com You can choose the new OS image file name and directory path with the Browse button Click the Write to flash now button to update the current OS version lt will take ten or more minutes to update your OS to Flash memory and then reboot your system WinCon 8000 Getting Start Manual 20 Winton Utility 1 Ver 2 1 0 OK x Save Registry System Config A
14. WinconSDK_DLL and the Wincon DLL for the l 8000 series modules which are used in the Wincon 8000 Embedded Controller The WinconSDK DLL has all the essential DLL functions designed for the l 8000 series modules for Microsoft WinCon 8000 Getting Start Manual 3 WinCE Net platform It can be applied on embedded Visual C Visual studio 2003 C NET and VB NET on WinCE 4 1 Net refer the figure 1 2 and even on the newer platforms Users can easily develop WinCE NET applications on WinCon 8000 by using this toolkit The various functions in WinconSDK_DLL are divided into the following sub group functions for easy use in different applications For more detail please refer to the WinconSDK DLL for C NET and VB NET or WinconSDK lib for embedded Visual C DD DD Visual Studio net Eembedded Visual C Smart device Visual C net programmability Visual Bacie net SY Managed code Native code Applications downloadded through LAN orstored in storage card or USB driver om pact ework WinCON 8000 y A CE net Fig 1 2 1 2 Hardware Setup for W 8X3X Only There is the W 8731 hardware setup sample Fig 1 3 In the right side connect the standard computer interface like 15 pin VGA port monitor can support the touch screen as HMI device Keyboard Mouse and Ethernet In the middle and left area you can plug in the ICPDAS s I 8K andi 87K series I O modules The W 87XX can plug in 7 max
15. major items e WinCon SDK DLL amp library files for EVC WinCon SDK include files for EVC eo Demo files Step by Step Installations of WinconSDK 1 Please insert the CD ROM into your CD ROM driver 2 Then run WinconSDK_8XXX_EVC_YYYYMMDD msi in the folder of CD ROM SDK 3 After successfully installing the software E WinCon SDK library amp DLL files are located at C Program Files Windows CE Tools wce410 SA_IA Lib ARMV4 E WinCon SDK include files for EVC are located at C Program Files Windows CE Tools wce410 SA_IA Include Armv4 Demo files are located at C Program Files Windows CE Tools wce410 SA_IA Pac Wincon 4 SA_IA is the hardware platform name for W 8X3X For W 8X4X WCE configuration name is SADU_SACR fm Demo Microsoft eMbedded Visual CHA emo lg PP E El Edit Yiew nsst Project Build Took Window Help DA Ga dm9000 ay 284401 8 gt cDemoDlg__ Demo El Workspace Demo 1 project s Demo files 3 Source Files Demo cpp Demo rc 4 DemoDlg cpp StdAbx cpp Header Files E Demo h E DemoDlg h E newres h E Resource h E StdAfx h C Resource Files E ReadMe txt 7 External Dependencies membe ers 90 gt OnCheckdo29 00 it jn32 cE ARMYA Release SA_IA Device ASi dutTemp AS mies EheETk 1 7 0utTemp OutTenp m_b02 GetCheck gt 1 7 0utTemp OutTe m 0031 RetCheck 1 2 0utTemp Lf JA_number 32
16. 2 5 Start The First Application Program 5 1 Applications in eMbedded Visual C MFC All the eMbedded Visual C 4 0 demo programs are listed in the directory under C Program Files Windows CE Tools wce410 SA_IA Pac Wincon They have been tested OK in WinCE NET4 1 or newer versions and in the eMbedded Visual C 4 0 development toolkit When users want to create a new program they have to use these files from the EVC environment toolkit as shown in the following 1 WINCON INC WinconSDK h include all h files 2 WINCON INC WinCon h gt functions for D l D O 3 WINCON INC I801 7h h gt functions for 8017H Module 4 WINCON INC I8024 h gt functions for l 8024 Module 5 WINCON INC 8090 h gt functions for l 8090 Module 6 WINCON INC 8091 h gt functions for l 8091 Module 7 WINCON LIB WinconSDK lib gt import library of WinconSDK DLL The application procedures for how to create a program are listed below More detailed information for each step will be described in the following section Create a Forms Based Application Specify the Locations for Demo Files Configure Compiler Options Design an application program Build the application program Execute the application program on the Wincon 8000 platform SAA AIN a Example list for the reference of user program design 5 1 1 Create a Forms Based Application A form is the dialog box with control items that lets users access and possi
17. 2 Select the configuration Win32 WCE ARMV4 Release in Settings for item as shown in following figure WinCon 8000 Getting Start Manual 39 Project oetinigs General Debug Cice Link Resources M nn Hesel settings For lwin32 PCE ARMY4 Release All Configurations Multiple Configurations Microsoft Foundation Classes Use MFC in a Shared DLL r Output directories Intermediate files ARMV4 Rel Output files ARMY Rel T Allow per configuration dependencies Caneel Fig 5 1 8 3 In the Project Settings dialog select the Link tab and set the library file name as WinconSDK lib in Object library modules item Project Settings 3 ax Settings For General Debug C C Link Resources Mi BG lwin32 MCE ARMY4 Release Category General Reset Output file name ARMY HRel Dema exe Objectflibrary modules WinconsDK lib M Generate debug info Ignore all default libraries Generate mapfile Project Options WinconoDk lib fnologo fbaser 0x00010000 stack 0x10000 0 1 000 fentry wyYy inMainCRI Startup fincrementalino pdb ARMY4Rel Demo pdb sl cancel Fig 5 1 9 WinCon 8000 Getting Start Manual 40 5 1 4 Design an Application Program After you finish the initial creation of a project you can build user interfaces These interfaces can involve the first design and creation of dialo
18. 4 4 Double click on the Push Button object so that you can edit the button s event code Then type OnBtnDO into the Member function name field see figure 5 1 15 and click the OK button to display the Editor window WinCon 8000 Getting Start Manual 43 Add Member Function is l ig TA Wes Member function name jonBinDo Cancel Message BN_CLICKED Object ID IDC_BUTTON1 Fig 5 1 15 5 Inthe Editor window type the code in as follows void CDemoDlg OnBtnbO 4 72 TODO Add your control notification handler code here int DOWal int slot 1 TCHAR temp 46 m_DO GetWindowText temp 10 DOVal ttoi temp DO 8 slot DOWal Fig 5 1 16 6 Press CTRL Home to move your cursor to the top and then insert the include WinconSDK h within the header area ff DemoDlg cpp implementation file ff include stdafx h Atinclude Demo h include DemoDlg h HHinclude WinconSDK h a T ifdef _DEBUG fidefine new DEBUG_HNEW ttundef THIS FILE static char THIS FILE _FILE_ Fig 5 1 17 5 1 5 Build the Application Program Microsoft eMbedded Visual C provides two ways for building an application program The first and most common method is to build the application program within WinCon 8000 Getting Start Manual 44 the eMbedded Visual C development environment The second method is to build the application program by using command line tools within the M
19. C supports single inheritance and creates Microsoft intermediate language MSIL as input to native code compilers C is fully integrated with the NET Framework and the common language runtime which together provide language interoperability garbage collection enhanced security and improved versioning support C simplifies and modernizes some of the more complex aspects of C and C notably namespaces classes enumerations overloading and structured exception handling C also eliminates C and C features such as macros multiple inheritance and virtual base classes For current C developers CH provides a powerful high productivity language alternative All the demo programs for Microsoft Visual Studio 2003 Visual Basic Net and C Net are given in the directory WINCON DIL DO Demo VB NET Demo and AWINCON DL DO_Demo C Demo They have been tested OK on WinCE NET 4 1 or newer version platforms and on VB NET or C NET development toolkit The demo programs have been implemented in the VB or C applications through the Wincon DLL which declares all functions for all Modules in WinCON 8000 This section shows you the procedure for how to create the first demo program with VB NET or C NET development tools as below Create a new SDE project Add project reference for an application Design an application program Execute the application program on the Wincon 8000 platform ee RA a Example list for the re
20. D CID d YO ES a D E am gt D c D am D ims I CE D I I c 1 I ce TTT k 4 T 354 26 ney 73 2 331 26 53 2 a Y a Dooooooo cooooooo oopooooo oooooooo i coooodoo oooooooo oosooooo oooooooo ooogocoo ooooooen coooooce 20000000 gooooooo oooooooo y A A IN 00000000 DN L y A Y El i L_I PES oe 1 a x La 9 6 O GS Sa WZ E A oa o n ez Q 4 z o o y a aie 9105 0 16 What s News Added 2 3i 87K Module Settings tool by DCON Utility of PC Added 2 2 New CARD Wizard function for 1 81 XX Serial Card Added 1 3 Specifications Added 1 4 Dimensions 1 7 Package List One set of WinCon 8000 hardware One Compact Flash card for storing system files One hardware user s manual One software utility CD One Null Modem cable CA 0910N For WinCon 833X 834X 873X 874X only WinCon 8000 Getting Start Manual 11 2 Wincon 8000 System Settings In this section we will explore how to set the Windows CE System and the WinCon Utility for the Wincon 8000 embedded controller You can change configura
21. Eile C OM P ot i Search Run rminal The 7000 8000 Modules Fonda pels mnm el WinCon IP Address Please inputthe vvinCon IP Address Cancel fi 0 0 0 100 E Searching Status COM Port ICOM 1 Address lO1 dec E 1fhex Baud Rate 1115200 EF 11 37 WinCon 8000 Getting Start Manual 25 8 Once you successfully make connection click on gt i button to search i 87K modules Note If you fail to find modules Please make sure your COM Port Address and Baud Rate settings are accurate for more detail information please refer to DCON Utility manual 9 Configure the i 87K modules by click on the module you d like to make a change of Please refer to DCON Utility manual for more detail information WinCon 8000 Getting Start Manual 26 Fi DCON Utility Ver 4 3 8 Sele File COM Fort earch Eun terminal Help a The Found Gat I 7000 8000 module Ll E Winton 9000 10 115200 Disable DCON CE exit button Description WinCon Firmware wersion 2 00 OOOO ol EK module or Mone OOOO a EK module or None DONA Se ok module or None 07024 oJ 115200 Disable 4 H Analog Output 07018 a4 115200 Disable 2H Thermo Input La ok module or Mone Sh EK module or Mone ae 115200 Disable 4 Ol 4 Relay DO e Stat COM Port com1 N Address O7 dec 7ihex Baud Rate 9600 Setting Config
22. HCP server you need to configure the network setting by using the manual method The following steps demonstrate the procedure for how to configure the network system 1 Choose Start gt Settings gt Network and Dial_up Connections on the Windows CE desktop to open this dialog 2 Double click the LAN90001 icon to open the LAN9000 Network Compatible Adapter Settings dialog LAN9000 Network Compatible Adapter Settings IP Address Name Servers An IP address can be Obtain an IP address via DHCP automatically assigned to this computer If your network does not automatically assign aay 192 166 254 200 IP addresses ask your notar IP Address 192 160 254 200 administrator for an address Subret Mask 255 355 6 and then type itin the space H provided Default Gateway 1192 16 255 254 Fig 2 3 3 When the LAN9000 Network Compatible Adapter Settings dialog displays see figure click enable the Specify an IP address radio button in the IP Address tab and type in the IP Address Subnet Mask and Default Gateway into the respective fields 4 Choose the Name Servers tab and also type in the Primary DNS Secondary DNS Primary WINS and Secondary WINS into the respective fields as shown in the figure below WinCon 8000 Getting Start Manual 13 LAN9000 Network Compatible Adapter Settings IP Address Name Servers Mame server addresses may be Primary DNS 05 192 1 automati
23. S DOS prompt environment The procedure for building an application involves a number of items namely the preprocessor the compiler and the linker Their main functions are described as below e The preprocessor prepares source files for the compiler by translating macros operators and directives e The compiler creates an object file containing machine code linker directives sections external references and function data names e The linker combines the code from the object files created by the compiler and from the statically linked libraries plus it resolves the name references and also creates an executable file The Building Process The following diagram shows the components in the building process using eMbedded Visual C and starting with the editor in which you create your source code Makefile Header Files hello cpp iostream h Object File hello obj mlibcew g lib hello exe hello exe Fig 5 1 18 If you build your program outside the IDE you may use a makefile to invoke the command line tools Microsoft eMbedded Visual C provides the NMAKE utility for processing makefiles If you build your program within the IDE the eMbedded Visual C project system will use the project vcp file to store the make information WinCon 8000 Getting Start Manual 45 The vcp file is not compatible with NMAKE However if your program uses a makefile rather than a vcp file you can still build it in the development e
24. W 8X4X only Dual LAN version WinCon 000 7 BA 2SPCCIICALIONS eneen E E tassvecnecesecaneusveesers 9 Ls DIMENSIONS id 10 Lo What SNEWS usais 11 E7 a O Cakes sce scccssce see iis ek aecadese se ccce tees cuaceveccuecvewcdaeccwoccuueveeecceseeescusseceeceescccacusbens 11 2 WINCON 5000 SYSTEM SETTINGS tiseccccicecscdeccdicdececdecsdecsdecccdecdecsleccdecdededsecsieccdecceces 12 Zo Windows CE SOMOS nannan a 12 22 WV AMC OW IA onei E EEE rE E EEEE EO E TEE 16 ATI acts desaazessdesatesencdedsiadsiactscetaazesssesateaeneaeis 24 JARCHIFECEURE UNDER WINCE NET sisscsscisscsccecssceassccscaceatesceassacsasesacseacaaacisaneesias 29 4 1 INSTALLATION WINCON 8000 SDK FOR EVC ON PC ooonncccccccocccccccccccoccccccccnonos 31 4 2 INSTALLATION WINCON 8000 SDK FOR VS NET ON PC eeeeeccssossssssssse 32 5 START THE FIRST APPLICATION PROGRAM cc cccccsssssssssssssssssssssssssssssssees 33 5 1 Applications in eMbedded Visual C MFC sessessossossossossossossossossossossossossossossoes 33 SC reate a Rorms based Application 33 5 1 2 Specify Locations tor Demo Files iii 37 5 4 3 ConNsure Compiler OPON S resso E a 39 5 1 4 Design an Application Program oooccnnnccnncconnocccnnnnnnnnnnnnonononnncnnnnnonnnonnnncnnnnonnnnass 41 3 13 Buld the A ppliCatOmiPrO dali 44 5 1 6 Execute the Application Program on the Wincon 8000 Platform 46 5 2 Applications in Visual Studio VB NET and C NET ccscssssssssss
25. WinCon 8000 Getting Started Rev version 1 4 001 Hardware amp Software amp Application Using I 7000 I 87K I 8000 Series Modules Warranty All products manufactured by ICPDAS Inc are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICPDAS Inc assumes no liability for damages consequent to the use of this product ICPDAS Inc reserves the right to change this manual at any time without notice The information furnished by ICPDAS Inc is believed to be accurate and reliable However no responsibility is assumed by ICPDAS Inc for its use or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 1997 2004 by ICPDAS Inc LTD All rights reserved worldwide Trademark The names used for identification only maybe registered trademarks of their respective companies License The user can use modify and backup this software on a single machine The user may not reproduce transfer or distribute this software or any copy in whole or in part WinCon 8000 Getting Start Manual 1 Contents INTRODUCTION AND HARDWARE SETUP cc ccssssssssssssssssssssssssssssssssssssssssssees 3 Li A seis szaasecccacassascdiaensacaies sss saasesecaatasssaadaaansseaiaassssdisessaeaiasisuadans 3 12 Hardware Setup for W 8X3X Only sccccccccccsssssssssccsccccscccsssssssscccssssesssssceecs 4 1 3 Hardware Setup for
26. bly change data You may want to develop an application in which the user chooses from a selection of forms Commonly a forms based application allows the user to choose WinCon 8000 Getting Start Manual 33 New on the File menu to access forms A dialog based application which does provide menus is also considered a forms based application Users can apply the WCE MFC AppWizard exe to create a forms based application When creating a new form they have the choice to create a single document interface or a dialog based application e A single document interface SDI forms based application allows only one instance of a particular form to run at a time However it is possible to run different forms at the same time from an SDI forms based application by selecting a new form from the New command in the File menu e Adialog based application is a form based application by definition However if you choose this option you will not be able to use the New Form command on the Insert menu to add additional forms to the application A dialog based application does not use the document view architecture So when you need to add forms you have to manage the creation and access methods for them The last step of the wizard lets you view and change seitings for the classes created by the wizard For a single or multiple document interface application you should set CformView as the base class for the vie
27. cally assigned if DHCP p l is enabled on this adapter Secondary DNS TRS ey ko E ou can specify additional a WINS or DNS resolvers in the Primary WINS space provided Secondary WINS es ma Fig 2 4 5 Click OK va Note If you have changed any value of network configuration you must save the registry by means of WinCon Utility tools For more information about the WinCon Utility tool please refer to the WinCon Utility section Setting up the Device Name You can configure Wincon 8000 to have the device name of your choice To change the device name please refer to the following steps 1 Choose Start gt Settings gt Control panel to open the Control panel dialog 2 Double click the System icon on the Control panel dialog to open the System Properties 3 When the System Properties dialog is displayed see figure select the Device Name tab in the dialog window System PERE Et General Memory Device Name copyrights These settings are used to identify your Windows CE device to ah other computers Please type a name without any spaces and a short description Device name Device description Device Fig 2 5 4 Type your preferred Device Name in the Device Name box and click OK WinCon 8000 Getting Start Manual 14 a Note If you have changed any information of the Device Name you must save the registry by means of WinCon Utility tools For more information about t
28. conds to clear your registry settings back to Factory Setting and Wright to non volatile internal memory You must then reboot the system for the new configuration eo View Registry button Any settings are changed in the WinCon embedded controller can be pre viewed by using this function It is just like the regedit function in the windows system that you are very familiar with shown in below figure File Help E HEEY CLASSES ROOT EY HKEY CURRENT USER E HEEY LOCAL MACHINE E HKEY USERS HE E L Fig 2 7 WinCon 8000 Getting Start Manual 17 e Change the VGA resolution box You can setting the VGA Resolution to 320x240 640x480 800x600 or 1024x768 and 2 4 8 16 bits color Bpp the monitor reflash Frequncy for normal TFT LCD setting is 60 Hz e Change FTP default directory to box Enter a FTP default directory path and click change button to setup the defined path to the ftp server e Change HTTP default directory to box Enter a HTTP default directory path and click on the change button to setup the defined path for the web server System Config Tab The System Config tab allows you to view the information in the Wincon 8000 embedded controller system WinCon Utility 1 Ver 2 1 0 OK x Save Registry System Config Auto execute version Update Com About Winton Utility 1 Slot 1 1 8041 Serial Number 9 1D 54 68 3 0 0 9D Slot 1 8040 MAC address OO DO EQ FO 00 i og Sot3 Le 18017 EEPROM
29. ctive platform Add references with care to ensure your application will run correctly message dialog pops up Click OK to close this message dialog See Figure 5 2 6 Microsoft Development Environment The reference Wincon d1 may or may not be valid for the active platform Add references with care to ensure your application will mn correctly Cancel Fig 5 2 6 5 You have completed adding the mscorlib and Wincon dll references for your application now expand the Demo and References folders in the Solution Explorer tab to make sure the Wincon dll has been added into the project references see Figure 5 2 7a of VB NET or Figure 5 2 7b of WinCon 8000 Getting Start Manual 55 C NET solution Explorer Dema es solution Demo 1 project E System Data a 2 System Drawing a A System Windows Forme E n D Wincon FE Assembblnto vb EE Forml vb Taa ohti 23 Chas E Res Fig 5 2 7a Solution Explorer Demo a x es solution Dero 1 project Gl Demo Gy References eS MeCorLib E System Data 5 System Drawing 5 2 System Windows Forms E System XML o ES Wineon ne E AssemblyInto cs n ES Form cs gp Bolti PF Ches E Reso Fig 5 2 7b 5 2 3 Design an Application Program Take a moment to explore Visual Studio and note that the appearance is almost identical to what you are used to when developing desktop application
30. d Reboot button to renew the system configuration If you do not save the current configuration into the registry you will lose your information settings when you reboot the Wincon 8000 va Note The OS image in flash memory will crash if we push the reset or power off buttons for WinCon 8000 whilst it was writing the registry settings to flash memory It will take 10 15 seconds to save the registry settings Add these notes to your user manual because it is very important WinCon 8000 Getting Start Manual 16 WinCon Utility 1 Ver 2 1 0 oK x Save Registry system Config Auto execute Version Update Comi l About Wincon Utility 1 It will take several seconds to save your settings to registry and settings you changed will take effect after system reboot Change all settings to factory default settings Resolution 640 x 480 640 x 480 Recover to Factory Settings Freguncy 60 He loz E Any setting changed could be pre viewd Change View Registry Change FTP default directory Temp to ewe Change HTTP default directory Compact Flash Temp HTTP to Compact FlashiTemp HTTF Fig 2 6 The Save Registry tab includes the following folders e Save and Reboot button It will take several seconds to save your settings into registry and non volatile internal memory You must then reboot the system for the new configuration Recover to Factory Setting button It will take several se
31. e COM1 Serial Control for 87k Series COM2 RS 232 COMS RS 485 FRnet option I O Expansion Slot 3 slot for W 83X1 7 slot for W 87X1 m Environment Operating Temp 25 C to 75 C Storage Temp 30 C to 85 C m Humidity 5 95 m Dimensions 115 66x110x93 8 none slot 230 25x110x93 8 3 slot 354 26x110x93 8 7 slot m O module optional l 8000 series modules which include DI DO AO AI I 87K series modules which include DI DO AO A l 7000 series modules which include DI DO AO AIl For more information please refer to relative catalog or http www icpdas com WinCon 8000 Getting Start Manual 9 1 5 Dimensions None slot e 35 6 25 HT 19 TT ES C E g B A a gt DO m c aoa lt J U cr l C D SS c D c D CE D C D o D E D m BD l A ps 4 H j Te my W oi 93 8 la 113 00 E j Da 1 A J p q 2 gt oS T ER Le fe e
32. elect the mscorlib WinCon 8000 Getting Start Manual 54 file and click the Select button the component mscorlib must appear in the Selected Components area Note If you use the C NET development tool MSCOorLib is the default project reference DLL Therefore the user does not need to add this project reference to their application dd Reference x NET Projects Component Mame ICPDAS Deon Remote 1 2000 10 2 ICPOAS Weon Inside 1 80001 1020 D Program Files Microsoft Vis Microsoft isnalBasic 70 5000 0 DProgram Files Microsoft Yis Microsoft Windows E Forms 1 0 5000 0 DProgron Files Microsoft Y iz maori LU 5000 E Piles Microsoft 15 ovsem EE DAFroeram Fileshiicrosoft Vis neystemn Data 1 0 5000 0 D Program Files Microsoft Yis evyvaten Data Conunon 1 0 5000 0 D Program Files Microsoft Vis nerstemn Data Sq ll lient 1 0 5000 0 DProsvam FilesMicrosoft Yis vetem Data oq erent le 1 0 5000 0 DoProgrn Files Microsoft Vis yate Drawing 1 0 5000 0 DProgran Files Microsoft Vis artar Met Tr ii Tiraera Bales aera ft Mis Selected Components Component Mame Tpi ILPDAS Woon Inside I 8000 T 8 NET msecorhb NET Remove DProsram Files Microsoft Yisa comal top Fig 5 2 5 4 Click OK to close the Add Reference dialog zx Note If the The reference Wincon dll may or may not be valid for the a
33. ference of user program design WinCon 8000 Getting Start Manual 49 5 2 1 Create a New SDE Project Let s start with the traditional Demo application which while clearly trivial still illustrates in a nutshell the entire development process We will assume you have led both Visual Studio NET and the Smart Device Extensions SDE Furthermore you are trying to develop the user program to be instal development tools applied in the Wincon 8000 controller target device The following steps are illustrated in detail to explain the developing process 1 For the first step users need to open Microsoft Visual Studio NET 2003 software And then in the File menu please select New and choose the project item to open the New Project dialog 2 Open the New Project dialog and select the development tools as followings Here we provide two ways for developing applications for Wincon 8000 2a Select the Smart Device Application template from the Visual Basic Projects folder see Figure 5 2 1a New Project Project Types Templates E a 3 Visual Basic Projecte _ y Y Visual C Projects ZJE iE Eu 4 Visual JH Projects 1 GA Visual Ces Projects Windows ClasLibray Windows L Setup and Deployment Projects application Contra Y Other Projects 3 Fisual Studio Solutions 2088 ASP NET Web ASP NET Web IL Bikin al Application PEC ICE F 4 project fo
34. g boxes menus toolbars accelerators and other visual and interactive elements Then you can hook them up to code Due to the difference in size and shapes of devices the user interface elements must be tailored to the design requirements of each targeted device In the following we will explore some methods on how to create control items in the user s program To create an Edit Box 1 Inthe Workspace window select the ResourceView tab Click on the Dialog folder to expand it and double click the IDD_ DEMO_DIALOG in order to open the dialog form as shown in below figure 3 Demo MimafteMbedded E sal CF Demo re 10D DEMO DIALOG English MES Dialog E ny xj i File Edit View Insert Project Build Tools Window Help E x Demo resources E Y Dialog SDD DEMO DIALO a 3 Version Fig 5 1 10 2 By clicking the icon Aa to create a static text object WinCon 8000 Getting Start Manual 41 3 Right click on the Static text object and select Properties 4 When the Text Properties dialog is shown set Input DO Value in the Caption field Text Pro perhes al Es General Styles Extended Styles ID IDC_STATIC Caption Input DO Value W Visible Group Disabled l Tab stop Fig 5 1 11 5 Click the icon abl to create an edit box object 6 Right click on the edit box object and select Class Wizard 7 When the MFC Class Wizard dialog is show
35. he WinCon Utility tool please refer to the WinCon Utility section Here we only provide some demonstrations for configuring your settings The configuration steps and operation methods are the same as with the windows system However you need to keep in mind if you have changed any setting on WinCon 8000 embedded controller you would need to use the WinCon utility to save the current setting into non volatile internal memory Otherwise when you restart the system the setting will not change WinCon 8000 Getting Start Manual 15 2 2 WinCon Utility The WinCon Utility provides many tools to save view the system information registry and to setup the HTTP FTP path and update non volatile internal memory within the Wincon 8000 embedded controller This handy utility WinCon Utility 1 exe located in the Compact Flash icpodas Tools directory should be located in the computer s Program group Therefore you can launch it on the computer through Start gt Programs gt WinCon Utility menu The WinCon Utility provides many functions within the following five tabs Save Registry Tab system Config Tab Auto execute Tab Version Update Tab Com Tab About WinCon Utility 1 Tab Save Registry Tab This tab provides functions to save view the registry of the systems information and to setup the HTTP FTP directory path It is very important to save the registry when you change any system information Then you need to click the Save an
36. isual Basic NET desien Foral vb Deian File Edit View Project Build Debug Data Tools Window Help A E Deng gt pf In Hs 5 i ob ath Sl EE Gl 2 Windows CE NET Emulator Default gt Toolbox CX Start Page Form yb Desi gt Device Controls ar a E olution Exp lo Ter hem q Vere il project 3 References oo PE AssemblyInfo vb i EE Formi vb DataGrid E ListBox Windows Forms Ca HA AA AAA A A A FLA LA PL Pa es A A A AA PAP Cl s E Reson OO Le st Deployment Devi Windows CE NE a Output File Folde Program Files Der Project File Demo whd proy a ee ee ee eee eee Laa a a a a a a a a a a a a a a La LALA LA LS LALA R A LS LA LA LS UL A LA LA A A A A AA A E R o Laa Hs La Pa a Ha Ha Aa A a La PL PLA La La Aa Aa LS LA as A AAA A AA AAA AAA LAA AA APLAR AA A A AAA A AA PAP A AA A AA PLA a AAA a aa a AA a a Ha ARA Aa A AAA A Sele eee ele le le ee ele le le ele le PLAM AM AN gg Ag BR Bg Dg La gg Pg eg La Ma Lana ALA LA LA ee LA LA LA PLA LAS LALALA AL ee ee ALA AL IA TALA AL IA ee IA a EEE EE ee a CLA a a A A AA AAA AAA AS AAA a a A a a Ha AAA a AA a AA Dele eee ele le le ele eee le ele le yh rg A gg AA aaa La ig gg eg Ag Pg Pg IA ee AAA AA AAA AAA IA Clipboard Ring Walla a la ani ea Project ES Eo Sig nl Tools Window Help ES Debug gt oe Windows CE NET Emulator Default Gh Sel Sot Es S at oF oh EE ey
37. l e de system Eve Dim slot As Integer 1 Dim data As Integer data Val TextBoxl1 Text con End zi 43 18057 18060 18063 IF 164 ERER Fig 5 2 12 12 Select 18064 from the pop up list box and press the TAB key 13 After typing behind the 18064 a list box pops up a hint for available WinCon 8000 Getting Start Manual 59 functions that can be used for this selected module as shown in the following figure Imports Wincon Public Class Forml Inherits System Windows Forms Form Friend WithEvents Labell As System Windows Forms Label Friend WithEvents TextBox As System Windows Forms TextBox Friend WithEvents Buttonl As System Windows Forms Button TEA r ACI Tee Windows Form De 519118 4 Code l Private sub Buttonl_Click By al sender As System Object EyYal e s System Eve Dim slot As Integer 1 o Dim data As Integer data Val TextBoxl_ Text Ycon 18064 L End or q TURES Public Shared Sub DO Blot As Integer edata As Byte Fig 5 2 13 14 Select DO_8 from the pop up list box and press the TAB key Then input the parameters of the function which means inputting slot data Private Sb Button _Click By al sender 4s Dim slot 4s Integer 1 Tim data As Integer private void buttonl Clickiobject sender i int slot 1 data Val TextBoxl Text Mela dedos con 15064 D0_S slot data data Corwert ToByteltextBoxl Text End Sub icon 18064 D0 B s
38. llowing figure Fig 5 1 20 3 Type 3 into the Input DO Value field above figure and click the Digital Output button Then you can turn on the channel 0 and 1 of the Digital output Module plugged into the slot 1 of Wincon 8000 WinCon 8000 Getting Start Manual 47 5 2 Applications in Visual Studio VB NET and C NET What are Smart Device Extensions Smart Device Extensions SDE for Microsoft Visual Studio NET allows you to leverage all of your NET programming skills to build Microsoft Windows applications for smart devices that support the Microsoft NET Compact Framework When using SDE you can produce applications for Pocket PC and Microsoft Windows CE NET platforms using the familiar Microsoft Visual Basic NET or Microsoft Visual C language with the same tools and class libraries that are used to build NET applications for the desktop and for servers Since these smart devices don t offer all the features of their larger cousins the hardest thing to master is learning which parts of the Microsoft NET Framework have been modified to align with the reduced functionality of these more limited portable platforms Fortunately the Visual Studio environment provides full Support for this as well as enabling desktop debugging for applications running on these platforms Creating applications using SDE from Visual Basic NET is so straightforward that you might be tempted to just jump right in by c
39. lot data Fig 5 2 14a for VB Net Fig 5 2 14b for C Net 5 2 4 Building an Application Program When you have finished the above processes you could build an application by following the below steps 1 In the toolbox menu select Release from the solution Configurations in the Combo box File Edit View Project Build Debug Tools Window Help 0 9 1115 Windows CE NET Em H i Hy at Jaca Configuration Manager 7 SS ee oP Fig 5 2 15 WinCon 8000 Getting Start Manual 60 2 Inthe toolbox menu select Windows CE NET Device from the Deployment Device Combo box see Figure 5 2 16 File Edit View Project Build Debug Took Window Help i gt Gl amp Gi Relesse gh Sub oh St a Windows CE NET Emulator Default BB al BS Windows CE NET Device Windows CE NET Emulator Default Pocket PL Device Pocket Pl 2002 Emulator Fig 5 2 16 3 On the Build menu choose Build Demo 4 If you have finished steps 1 4 you would obtain the following message in the Output window which means the execution application has been built Otherwise you will get error messages Then you will need to debug the source code and rebuild the application Chatput E a EU Task List El Output TA Index Results for Dim keyword Fig 5 2 17 5 You can find the Demo exe file in C project Demo Demo bin Release 5 2 5 Execute the Application Program on the Wincon 8000 Pla
40. m products wincon winconutility htm Save your execution file into the folder Compact Flash ICPDAS Tools go to My Computer gt Compact Flash gt ICPDAS Tools Connect PC and WinCon over Ethernet connect Ethernet port directly or by using a hub please note the IP address of PC and WinCon must be on the same subnet for example if your WinCon IP address is 192 128 100 17 then your PC IP address must be set up as something like 192 128 100 xx Connect your PC RS232 connector and WinCon COM2 by Null Modem Null Modem is included in your hardware package null modem DB 9 female ajea 6 gd Connector 1 Connector 2 Function Ry Ts TH Rx Signal ground 5 Please install the latest version of DCON_ Utility software on your PC You can download it from WinCon 8000 Getting Start Manual 24 website http www icpdas com products wincon winconutility htm 6 After you install DCON_ Utility software on PC execute the program go to Start gt Programs gt DAQPro gt DCON Utility E OCON Utility Ver 4 3 8 Eg TOM Port earch Eun Terminal Help The Found Gut 1 7000 8000 module Telnet button a jo Checksum Description BaudRate setting 115200 bps user can change Comport COM 1 gt COM n Searchinwet4tes Address DO dec Ofhexl Baud Rate 9600 Bea leads i WAH 1 1 i i 7 Click on eel button a pop up window will prompt you to input WinCon IP address oO DCON Utility Ver 4 3 8
41. n select the Member Variables tab MPC Class Wizard Message Maps Member Variables Automation ActiveX Events Class Info Project Class name Add Class 7 CDemoDis Add Variable CaiprojeciDemo lDemoDig h C projecti Demo DemoDlg cpp Control IDs Type Member IDCANCEL Update Columns IDOK Bind All Delete Variable Description 8 Click the Add Variable button to add a new member variable Fig 5 1 12 WinCon 8000 Getting Start Manual 42 Add Member Variable xj Member variable name m_DO Cancel Category Control IN Variable type CEdit Description map to CEdit member Fig 5 1 13 9 Set m_DO in the Member variable name field and configure the Category dropdown box as Control and Variable type as CEdit 10 Once you have completed the above list of steps click the OK button to save the Member variable and close the dialog To create a Button 1 Create a new button object by clicking on the icon al in the Con window 2 Right click on the Button object and select Properties 3 When the Push Button Properties dialog is shown type Digital Output into the Caption field see figure and close the dialog Push Button Properties a W General Styles Extended Styles 1D IDC_BUTTON1 Caption EE TT l Visible Group Disabled M Tab stop Fig 5 1 1
42. nvironment as an external project To Build the Demo Application 1 On the Build menu choose Build Demo 2 If you have finished the above steps you would obtain the following message in the Output window which means the execution application has been built Otherwise you will get error messages You would then need to debug the source code and rebuild the application DemoDlg cpp Generating Code Linking Demo exe O error s warning s Fig 5 1 19 3 If there no error messages are produced you will find the Demo exe file in C Project Demo ARMV4Rel 5 1 6 Execute the Application Program on the Wincon 8000 Platform When you have finished the building process for the Demo exe you could apply the developed execute file Demo exe into the Wincon 8000 controller unit For example you can use a portable memory stick Like Pen Driver to store the file and to copy it to Wincon 8000 In a following section we will develop a method for how to download the application to the main controller unit through the Ethernet TCP IP or RS 232 series protocol The main idea for running the user program within the WinCon 8000 target control device is to make the process simple just like in the following steps 1 Copy the Demo exe from C Project Demo ARMV4Rel subfolder to the Wincon 8000 2 Double click on the Demo exe file to run it on the Wincon 8000 as shown in WinCon 8000 Getting Start Manual 46 fo
43. r creating an application for Pocket PC and resource co netrained devices Name t Location e Browse New Solution Name Demo Create directory for Solution Project will be created at CprojectilDemo Demo ses Comi mu Fig 5 2 1a 2b Select the Smart Device Application template from the Visual C Projects folder see Figure 5 2 1b WinCon 8000 Getting Start Manual 50 New Project Project Types Teraplates E BSE of Visual Basic Projects FT 5 g al Y Visual CH Projects 53 Visual J Projects Pek Class Library Windows HO Visual C Projecte ood Setup and Deployment Projects E 123 Other Projects pos 3 2 Visual Studio Solutions E 1 y mart Device ASP NET Web ASP NET Web Applicaton Application PREDICE T A project for treating an application for Pocket PC and resommce constrained devices Hime Demo Location CAproject Browse New Solution Name Demo e Create directory for Solution Project will be created at CAprojectDemo Demo ses Comel ty Fig 5 2 1b You can change the project location which is to be created if so desired Give your application a Name for example Demo This will create a new directory under the defined Location to contain your application s source code Click OK This will start the Smart Device Application Wizard see Figure 5 2 2 At this point you need to choose between developing for Windows
44. reating a new SDE project dropping some controls on a form and writing some code In fact we re going to do just that in a moment But we are also going to step you through the entire development debugging and deployment process and point out exactly where the special nature of SDE development is different than developing desktop applications And for those of you who have a technical interest in how this stuff works we will explain what s going on under the hood What is C NET Visual C pronounced C sharp is designed to be a fast and easy way to create NET applications including Web services and ASP NET Web applications Applications written in Visual C are built on the services of the common language runtime and take full advantage of the NET Framework CH is a simple elegant type safe object oriented language recently developed by Microsoft for building a wide range of applications Anyone familiar with C and WinCon 8000 Getting Start Manual 48 similar languages will find few problems in adapting to C C is designed to bring rapid development to the C programmer without sacrificing the power and control that are a hallmark of C and C Because of this heritage CH has a high degree of fidelity with C and C and developers familiar with these languages can quickly become productive in C Besides C also provides intrinsic code trust mechanisms for a high level of security garbage collection and type safety
45. s by Visual Basic NET or Visual C NET The first thing to be noticed is that some of the Toolbox items in the Device Controls tab for example some dialogs Color Files Font Print and advanced user interfaces Calendar ImageList DataGrid are not included within the development environment tools of the Smart Device Extension SDE However there is also a new Device Extension toolbar And if you ve selected something on the Form proceed to fit your target smart device you may also notice that there are fewer things listed in the Properties window Now let s do the remaining steps in building this small demo test program 1 Right click on Form1 and select View Code from the pop up menu see Figure 5 2 8 F View Code Lock Controls Ei Properties WinCon 8000 Getting Start Manual 56 Fig 5 2 8 Move your cursor to the top and select the development tool you want by using the following methods 2a In the VB NET development tool insert the Imports Wincon on the first line location Start Page Formi vb Design Form vb 4 box ePublic Class Forml Inherits System Windows Forms Form Windows orm Vesigner generated code End Class Fig 5 2 9a 2b In the C NET development tool insert the Using Wincon into the command line after using System Data as shown in following figure 5 2 9b bat Page Fonml cs D esion Formi est t box e Demo Formy
46. s can easily understand how to use the functions and develop their own applications within a short period of time The relationships among the WinconSDK DLL Wincon DLL and user s application are depicted as follows Application Layer 2003 and new version Driver Layer l 8000 series Module functions for EVC C NET VB NET Physical Layer Fig 3 1 Functions for the Wincon 8000 Main Controller Unit 1 Get Module ID functions 2 Analog Input Output functions WinCon 8000 Getting Start Manual 29 Interface functions for C NET VB NET Digital Input Output functions Motion card application functions Encoder card application functions Support for eMbedded Visual C Language Support for Microsoft Visual Studio NET 2003 CH Support for Microsoft Visual Studio NET 2003 VB oF tee a ee The DLL functions in Wincon_DLL are designed for WinCE NET and can be utilized by CF and VB NET The main characteristics of the Wincon_DLL that have been developed the application in the C NET and VB NET developer environments are very simple to use just like the applications in ActiveX OCX controls Users can easily find the method they need for their application from the descriptions in the following section and in the demo programs developed by ICP DAS WinCon 8000 Getting Start Manual 30 4 1 Installation Wincon 8000 SDK for EVC on PC Wincon 8000 SDK for EVC consists of the following
47. ssssssssssssssssees 48 2 Create a New SDE Project ias 50 5 2 2 Add the Project Reference to an Application cccccccoooonccnnnnnnnnonononocnnncnnnnnononanos 54 5 2 3 Design an Application Program essssseeeesssssssseceressssssseccreosssssseecreessssssseceeeos 56 5 2 4 Building an Application Program eener a E 60 5 2 5 Execute the Application Program on the Wincon 8000 Platform 61 WinCon 8000 Getting Start Manual 2 Introduction and hardware setup Welcome to the Wincon 8000 user s Quick Start manual ICPDAS provides this manual for new user how to install the hardware and software quick start 1 1 Introduction The main hardware of the WinCon 8000 embedded controller are depicted in figure 1 1 which include VGA USB mouse keyboard compact flash series Ethernet and an I O slot standard interface CPDAS also provides another remote I O modules You can communicate the remote I O modules by pass through the COM3 RS 485 network On the standard Ethernet port you can use the intranet and internet advantages such as www ftp SQL database application and so on 300 154 WSR Touch Sereen OF jp ma R f wrsmoiem f ESE ato Modem lt y serlalTonehsi reen Bezmiar EserP romam tia lth enasi a i aae F Ara bit E m24 EEL al Module i Uho dute 101 00 Fade Ethe met paso Maii Fig 1 1 For The software develop ICPDAS provides two DLL files namely the
48. t in 200ms the Wincon need more current to start up typical 1 2A at 24VDC WinCon 8000 Getting Start Manual 6 1 3 Hardware Setup for W 8X4X only Dual LAN version WinCon Another succeeding WinCon family is W 8X4X Inheriting almost all hardware features from W 8X3X W 8X4X has the same user interface and OS features The only difference between W 8X4X and W 8X3X is that W 8X4X adopts 2 USB ports and two 10 100M Ethernet ports instead of 2 PS2 jacks Fig 1 5 In the left side connect the standard computer interface like 15 pin VGA port monitor can support the touch screen as HMI device Keyboard USB Mouse USB and Ethernet 10 100Base x2 In the middle and right side area you can plug in the ICPDAS s I 8K andi 87K series I O modules The W 874X can plug in 7 max local I O modules and W 834X for 3 max local I O modules There is no I O slot for W 804X so it can t plug in any local I O modules On the under lift side The COM2 is a standard 5 wire RS232 com port You can connect the standard RS232 device modem The COM3 is standard RS485 port You can connect to the RS485 devices like ICPDAS s products I 7K series l O modules andi 87KX expansion unit RISC CPU 206MHZ EEPROM Flash SDRAM Parellel Bus LED Indicator Real time Clock I O Expansion Slot Watchdog Timer Unique Hardware S N 10 100 Ethernet Reset Key i b a MENA A par aay COM Port i pee i g RS232 wi r COM Port RS485
49. tform When you have finished the building process for the Demo exe you could apply the developed execution file Demo exe into the Wincon 8000 target controller device For example you can use a portable memory stick Like Pen Driver to store the file and copy it to Wincon 8000 Or later on we will develop a method on how to download the application to the main controller unit through the Ethernet TCP IP or Rs 232 series protocol The main idea for running the user program in the WinCon 8000 target control device is because it is very simple as shown in the following steps WinCon 8000 Getting Start Manual 61 Copy the Demo exe and Wincon DLL from the C Project Demo ARMV4Rel subfolder to Wincon 8000 Double click on the Demo exe file to apply it into Wincon 8000 as shown in the following figure Fig 5 2 18 Type 3 into the Input DO Value field above figure and click the Digital Output button Then you can turn on channels 0 and 1 on the Digital output Module plugged into slot 1 of Wincon 8000 WinCon 8000 Getting Start Manual 62
50. tions such as the system time or network setting of the Wincon 8000 through the Windows CE control panel WinCon Utility allows you to view Wincon 8000 s information or save the current system configuration into Windows CE OS image 2 1 Windows CE Settings Setting Up the System Time You can setup a new date or time in the Windows CE system by using the following steps 1 Choose Start gt Settings gt Control panel to open the Control panel dialog A ese D Display Keyboard Mouse Network and Owner Password Dial up Eo PE Power Regional Storage System Volume amp Connection Settings Manager Sounds Fig 2 1 2 Double click the Date Time icon on the Control panel dialog DatefTime Properties Date Time July 2003 Current Time 11 13 33 AM EEE Time Zone GMT 08 00 Taipei y Automatically acest chock Tar daylight saving Fig 2 2 WinCon 8000 Getting Start Manual 12 3 When the Date Time Properties dialog displays set the date or current Time and click the Apply button to set your system date and time za Note If you have changed any value of the date and time You must save the registry by means of WinCon Utility tools For more information about WinCon Utility tools please refer to the WinCon Utility section Setup the network Generally most users don t need to setup the network because DHCP is the default setting However if your network system does not contain a D
51. to go to the following step WILE MFG App Wizard fee Step 1 of 4 Application What type of application would you like to create a C Single document tt tas ICAC hr E Document View architecture support What language would you like your resources in lt Back Finish Cancel Fig 5 1 2 3b WCE MFC AppWizard Step 2 of 4 Please enter a title for your dialog in WinCon 8000 Getting Start Manual 35 the defined area and click Next to go to the following step see figure 5 1 3 Windows Help ActiveX Controls Please enter a title for your dialog Demo Help contents file Demo htp lt Back Finish Cancel Fig 5 1 3 3c WCE MFC AppWizard Step 3 of 4 In this step please choose Yes please to generate source file comments And set the MFC library as a shared DLL or statically linked library Then Click Next to go to the next step C No thank you How would you like to use the MFC library As a shared DLL C As a statically linked library lt Back Finish Cancel Fig 5 1 4 8d WCE MFC AppWizard Step 4 of 4 Click the Finish button to start the AppWizard to create the classes which are shown in the figure below WinCon 8000 Getting Start Manual 36 see figure 5 1 5 CDemoDilg Class name Header file CDemo pp Demo pp h Base class Implementation file CWinApp
52. uration for 87063 87K A2 00 X I 8 7063 EF 11 44 ad Digital Output 10 D LSB EH 01 MSB CH 3 E A O oe Power On Value of D0 Safe Value of DO Digital Input o 0x0 LSB CH 0 MSB CH 3 oo ee eee 10 Once you are done with your configuration Click on button to WinCon 8000 Getting Start Manual 27 disconnect and remotely exit DCON_CE DCON Utility will automatically exit DCON_CE if DCON Utility idle more than 30 minutes DCON Utility A Sure To Exit And To Terminate DCON CE EXE Note If unpredicable condition happened during the procedures you may try it again close DCON_ Utility program power off and power on WinCon and redo the process accordingly If you should have any question or if any information presented is not clear enough for you please do not hesitate to contact us WinCon 8000 Getting Start Manual 28 3 Architecture under WinCE NET The WinconSDK DLL amp Wincon DLL are the dynamic link library DLL files that are designed for applications running on the Wincon 8000 main controller unit and its modules with Windows CE NET The user can apply them to develop their own applications with many development tools such as embedded Visual C Microsoft Visual Studio 2003 C NET and Visual BASIC NET In order to assist you there are many demo programs provided for the user when using EVC C NET and VB NET Based on the demo programs user
53. use the Wcon keyword in the program design you must add the Wincon dll into the reference list of your application Please follow the below process to import Wincon dll into the project reference 1 Open the Add Reference dialog by choosing Project Add Reference see Figure 5 2 4 Add Reference g p mi x TETEN prosa ED att O D on ae Microsoft Windows E Forms 1 050000 D Program Files Microsoft Vis mecorib 1 0 5000 0 DProeram Filesbliciosort Vis ester 1 0 5000 0 DoProsgr n Files Microsott Vis nevstem Data 1 0 5000 0 De Program Filesthlicrosoft Yis so oveen Data Conunon 1 0 5000 0 DiProgrn Files Microsoft Vis nerstemn Data Sq ll lient 1 0 5000 0 DiProcram FilestMicrosoft Yis vsem Data oq erverte 1 0 5000 0 D Proeram Files Microsoft Vis yate Drawing 1 0 5000 0 DProgran Files Microsoft Vis Hartera Met Trid 1A SnnA N TAPraorara Bales aera ft Was irdi selected Componer Fig 5 2 4 2 Select the ICP DAS Wcon Inside 1 8000 1 87K series modules for Wincon 8000 in the list box and click the Select button va Note If you don t find the ICP DAS Wcon Inside I 8000 I 87K series modules for Wincon 8000 item in the list box then you can add the Wincon DLL file by using the button Browse The default location of the file is Ch Program Files Windows CE Tools wce410 SA_IA Dotnet 3 If you use the VB NET development tool in the list box s
54. uto execute Version Update Com About W inton Utility 1 Specify the new OS image file for version update Browse ex iServerame ShareFolderWame nk bin if Write to Flash now Fig 2 10 ComPort Tab Fig 2 12 Wincon 8000 show set the touch screen Com Port No now we can support ELO 3COM Dynapro EGALAX Please plug in the right Com Port No Winton Utility 1 Ver 2 1 0 Save Registry System Contig Auto execute version Update Com About Winton Utility 1 Serial Touch Change ComPort 2 Disable 1 Elo COP Dynaproa CORTO dd ii Eqalax COMO Parallel Communication Modules Setting Fig 2 11 WinCon 8000 Getting Start Manual 21 Setting the 1 81 XX Serial Port 1 To click New Card Wizard button and show the New Card Wizard Window New Card Wizard Wer 1 0 OK a Card Mame Slotl Slote Resource Slots LL sot slots soto Slot lent Slot Scan Registry Registry for Factory Setting Save New Module Factor Default 2 To click Slot Scan button and show all Cards in system New Card Wizard Ver 1 0 OK x Card Mame sloti 8041 Resource 8041 Digital Out 2 8040 Digital In 3 801 Analog In 4 8024 Analog Out 5 8114 Serial Port Devicel Device Slot2 8040 Slots 8017 Slot4 8024 ae Slots 8114 Slot Slot leg Slot Scan Registry for Factory Setting Sa
55. ve New Module WinCon 8000 Getting Start Manual 22 3 To click Save New Module button and save the setting ES Card Mame Resource Slot 8041 Slot2 jan4o Eo Slot3 e017 ee It will take few minute to create registry for new Module hem sot 8077 Slot Scan Registry Save New Module Registry for Factory Setting Factor Default Save 4 To click Yes button and reset to finish adding Com Port New Card Wizard Wer 1 0 OK Card Mame Sloti lan41 _2 8040 Digital In 3 8017 Analog In _4 8024 Analog Gut 5 8114 Serial Port Slate Slots 8017 Slot Slots Slot VAT Slot loaqyy Slot Scan Registry for Factory Setting Save New Module WinCon 8000 Getting Start Manual 23 About WinCon Utility 1 Tab This tab provides an easy function to hyperlink to the ICPDAS World Wide Web site http www icpdas com This is the best place to go for the latest developments and support information application stories and product news 2 3 i 87K Module Settings Configuration of 87K modules on WinCon 8000 can be done easily on PC by the following instructions 1 On WinCon please check out if you get the latest DCON_CE software under the folder Compact Flash ICPDAS Tools My Computer gt Compact Flash gt ICPDAS Tools lf you do not have the latest version of DCON_CE please download it from website hitp www icpdas co
56. w class of your application If your application is database supported you can also select any class that is derived from CtormView A form is any window derived from CformView or from any class that comes from CformView To create a demo for forms based application 1 Firstly users need to open the EVC software Then in the File please click the New to open a new program 2 Inthe Projects tab select WCE MFC AppWizard exe and set the Project name Demo and the Location then select the location that you want Then select Win 32 WCE ARMV4 in the CPUs list box and other options if necessary Finally click OK to start the wizard process as shown in the following figure WinCon 8000 Getting Start Manual 34 Files Projects Workspaces AWCE Application Project name H WCE ATL COM AppWizard Deml 1 WCE Dynamic Link Library WCE MFC Activex Control fizard e Location E WCE MFC AppWizard dll ocation Bee WCE MFC AppWizard exe CAPROJECT Demo SS WCE Static Library f Create new workspace Add to current workspace Dependency of MWin32 WCE ARMVA CIWin32 WCE ARMVAl CIWin32 WCE ARMV4T CiWin32 WCE MIP516 CWin32 WCE MIPSII CWin32 WCE MIPSII_ FP Fig 5 1 1 3 The configuration of WCE MFC AppWizard E Y 3a WCE MFC AppWizard Step 1 of 4 Set Dialog based as shown in the following figure Click Next
Download Pdf Manuals
Related Search
Related Contents
MODE D`EMPLOI : CHRONOMETHÉMT 12805 広報1月号 1, 2, 3 Décollage Contexte - Chiffres - secteurs Fieldmann FZS 3020-B grass trimmer KRAFTWERK 4900-02B Installation Manual CINQ CLEFS POUR DES ALIMENTS PLUS SûRS MANUEL User Manual U9910-BSW (EU) Philips Economy Stick Stick energy saving bulb 871829121659900 Copyright © All rights reserved.
Failed to retrieve file