Home
WinCON - Getting Started Manual
Contents
1. 19 ers c EN ES C D D o C D WU om c D D C I gt my D Li D C A D I C gt gt C I p C LS J gt c gt rt X ar E 115 66 gt 3 93 8 _ 53 2 F 1 A 4 Fr f M 4 i j El E O E k o j 5 4 D a gt 10 m F ll l an O a o Ho NL 1 Ss r a a 3 slots A a i c gt 7 7 7 7 T 1 ETE mark TI Cr EMM ETT El I I ONT T I LI I I I y WU gt ED aD c s c D I C I J al I I I D Ct O I ll ll ll c I D E c m C D D To UIT C ID tal To To C DP W J LL L a ke 230 25 a e 93 8 F 19 2 207 25 B aa g a 2 53 2 T ES D ZI n I a A y D I i 7 0 0 0 gt 00005000 00050000 09
2. 16 What s News Added 2 3 87K Module Settings tool by DCON_ Utility of PC Added 2 2 New CARD Wizard function for I 81XX Serial Card Added 1 3 Specifications Added 1 4 Dimensions 1 7 Package List e One set of WinCon 8000 hardware e One Compact Flash card for storing system files e One software utility CD 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 configurations 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 e Certificates Display Keyboard Mouse Network and Owner Password Dial up Eo 4 E a Y We es Y PF DD Y e PE Power Regional Storage System Volume amp Connection Settings Manager Sounds Fig 2 1
3. 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 Formi vb Design Formi vb gt x oP Button Click a Publie Class F Forml E Inherits system Windows Forms Form Friend WithEvents Labell As System Windows Forms Label Friend WithEvents TextBoxl As System Windows Forms TextBox Seer WithEvents Buttonl As a As Integer 1 Din data As Integer data Val TextBoxl Text E f Fig 5 2 11a 10b C NET int slot 1 byte data WinCon 8000 Getting Start Manual 57 data Convert ToByte textBox1 text lex Forml cs 4bx 9 Demo Fom g button _Click object sender ayetem Even i Application Runinew Formi 5 se private void buttonl Clicklobject sender vatem Event res e int slot 1 byte data data Convert TobyteltextBoxl Text ii 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 box a Button amp Click EZ Imports Wineon Public Clase
4. l Generate debug info Ignore all default libraries Generate mapfile Project Options YfinconoDk lib fnologo base Ox00010000 a stack 000 01 000 fentry2 Pin MainCR Tstartup fincrementalino pdb ARMW4Rel Demo pdb O o j oma Fig 5 1 9 WinCon 8000 Getting Start Manual 39 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 dialog 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 ES Demo Microsoft eb bedded E sal CF Demos IDD DEMO DIALOG English MES Dialog 2 lolx ie File Edit View Insert Project Build Tools Window Help E x Demo resources Ej Al Dialog SDD DEMO DIALOG a 3 Version Fig 5 1 10 2 By clicking the icon Aa to create a static text object WinCon 8000 Getting Start Manual 40 3
5. Parallel Communication Modules Setting Fig 2 11 WinCon 8000 Getting Start Manual 21 Setting the I 81XX Serial Port 1 To click New Card Wizard button and show the New Card Wizard Window New Card Wizard Ver 1 0 OK x Card Mame Slot1 Resource glotz Slats Slot Slots Slote TH Slot Slot Scan Registry for Factory Setting 2 To click Slot Scan button and show all Cards in system Save New Module Hew Card Wizard Ver 1 0 Card Mame Sloti Resource 8041 Digital Out 2 8040 Digital In 3 801 Analog In 4 8024 Analog Out 5 8114 Serial Port Devicel Device glot 8040 Slots Slot Slots Slote LE Shot Slot Scan Registry for Factory Setting Save Mew Module WinCon 8000 Getting Start Manual 22 3 To click Save New Module button and save the setting ok x Card Mame Resource Slotl 5041 Slot2 an40 E Slota e017 A Slota Slats It will take few minute to create registry for new Module hem eL Slot Slot Scan Registry Save New Module Registry for Factory Setting 4 To click Yes button and reset to finish adding Com Port New Card Wizard Wer 1 0 OK Card Name Slotl jen41 Resource _2 8040 Digital In 3 8017 Analog In _4 8024 Analog Out 5 8114 Serial Port Slotz Slots 8017 Slot Slots
6. Basic Projects folder see Figure 5 2 1a Project Types Templates 3 Visual Basic Projecte 4 Visual C Projecte 5 Visual J Projecte H Visual C Projecte 9 Setup and Deployment Projecte ES Other Projecte I m g wae Clas Library Windows Contra i E E Viena Studio Solutions ip ove i W ASP NET Web ASP NET Web i Application PEC ICE O E E A E ee ee ee oe ee an E n Name Demo Location CAproject Browse New Solution Name Demo be Create directory for Solution Project will be created at C projectDiemo Demo ales comer mos Fig 5 2 1a 2b Select the Smart Device Application template from the Visual CF Projects folder see Figure 5 2 1b WinCon 8000 Getting Start Manual 49 Furthermore you are trying to develop the user program to be Tew Project Project Types Templates 3 Visual Basic Projects T Ay Vimal C Projects go EN Visual J Projects Z Polec Windows Class Library Windows Application Contra a Visal C Projecte am gl 9 Setup and Deplowment Projecte 13 Other Projecte mart Device ASP NET Web ASENET Web Application Application BeDvICe T 9 Vimal Studio Solutions Name Demo Location CAproject r Browse New Solution Name Demo le Create directory for Solution Project will be created at C projectDemo Demo sles camel He Fig 5 2 1b You can change the project lo
7. Slote TEATE Slot laggy Slot Scan Registry for Factory Setting Save Mew 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 1 87K Module Settings When the module of 87K is put in the slots of WinCon 8000 it can be set up through the DCON Utility of PC The method is easy to use gt When you do it orderly you will find it is easy to set up the parameter of the I 87K module 1 You must prepare for a cable CAT6 to start the DCON_CE of WinCon for PC through ethernet telnet to use gt To prepare one line of Full Null Modem and connect the Comport of PC and the COM2 of WinCon 8000 data transmission S SS Y a D A SS S P 6 Gas mu Transmit Data Data Terminal Ready Transmit Data Data Set Ready Carrier Detect Data Set Ready Carrier Detect Request to Send Clear to Send Data Terminal Ready Clear to Send Request to Send as apa Le Signal Ground 5 S SigmalGrouna Care EAE a fr WinCon 8000 Getting Start Manual 24 2 To confirm the DCON CE V200 exe in the folder of WinCon 8000 Compact Flash ICPDAS Tools 3 To enforce the DCON Utility V4 3 8 later vision of PC and press the conn
8. ICPDAS s products I 7K series I O modules and I 87KX expansion unit RISC CPU206MHz EEPROM Flash SDRAM Real Time Clock USB Parallel Bus id rae sions LED Indicator Hardware Unique S N Re set Key Kayhoarg lfOExpansion Slot COMPort RS232 DC Power Sa Mi COM Port owerin RS485 A Analoginput Analog outpu LED Indicator YGA Current Loop Compact Flash Digitallnp ut Digital output Ethernet Port ag saan A pen Collector Output Operating Temp 25 C 75 C Counter F reque ncy Fig 1 3 By the Ethernet you can communicate to the Ethernet devices such as I 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 Wireless Modem Led Panel F Internal j 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 moment 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
9. Then you will need to debug the source code and rebuild the application Cutput Sa Task List E 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 Platform 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 60 1 Copy the Demo exe and Wincon DLL from the C Project Demo ARMV4Rel subfolder to Wincon 8000 2 Double click on the Demo exe file to apply it into Wincon 8000 as shown in the following figure Fig 5 2 18 3 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 61
10. 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 51 Demo Microsoft Visual Basic NET desten Fomal wb Peise ao Yaw a BW e Dak Took Wintow Help gt O E Debug gt da In ales a a ahh Sl EE Gl A 2 Windows CE NET Emulator Default gt gt E o ee n Exp lo Ter DET Totis a StartPase Forml vb Desi gt x Device Controls al Mainblenu e CheckBox sa Solution Demo 1 project El a References o PE Assembbylnto vb Ha EE Forml vb a RadioButton 1 a DataGrid Windows Forms ELEC gg eg EEEE EE LA AH A APAA A AAA A ACA ALA FA A AP A AAA A AA PLA ae CIA IA ALA AAA AA AAA AAA Laa a a aa a a aa a a a a a a La IA AAA SET SET SEE AA AAA AAA IIA AAA AAA AA AAA AAA A Laa Hs la la Ha Ha Ha Ha Ha La Ha HL a Ha La Ha Ha HL Clipboard Rins AAA AAA CA Lada atada ada Ha a a Ha a aa ala E LA A a PL a Aa La Ha Ha A a Pa PLA PLA a La AA AA FS LAA A AA AAA A A AA A A PLA FLA PL A APA AAA LAA Aa a AA AA A AAA A AAA AA AAA a a a a a ee AAA a H aaa aa aaa a a a a a a Cara rl CLAN AM Aa Pa a FA A A Pa ALA Pa La a La La PLA PL A ES LAA A A PLA A A A PA A A PLA FAP AA AA AAA AAA A aa a a a a Ha
11. 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 Toolslwce4101SA_lAlDotnet m Demo files are located at C Program Files Windows CE Tools wce410 SA_ IA Pac Wincon 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 31 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 WINCONUNCWWinconSDK h include all h files 2 WINCONUNCWinCon h gt functions for D l D O 3 WINCON INC i8017h 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 WINCONILIBWinconSDK 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
12. Inside 1 8000 1 87K series modules for Wincon 8000 in the list box and click the Select button za 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 C Program Files Windows CE Toolslwce4101SA_lAlWDotnet 3 If you use the VB NET development tool in the list box select the mscorlib WinCon 8000 Getting Start Manual 53 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 MSCorLib is the default project reference DLL Therefore the user does not need to add this project reference to their application Add Reference NET Projecte ICPDAS Deon Remote 1 700004 1 ICPDAS Peon Inside S000 1020 DiProeram FilesiMicrosoft Vis Microsoft VimalPede 7050000 DAProsram Files Microsoft Vis Microsoft Windows E Forms O DProgram Files Microsoft Yis MProeran Piles Miera Yis ers i DA oean FlestMicnscrt Vis nevstem Data 1 0 5000 0 D Program Files Microsoft Yis pven Data Conunon 1 0 5000 0 DProgrn Files Microsoft Vis nerstemn Data Sq 1 lient 1 0 5000 0 DProsvam FilestMicnosoft Yis serstem Data 5qlerrene 1 0 5000 0 D Proeram Files Microsoft Vis yate Drawing 1 0 5000 0 DProgran F
13. 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 General Styles Extended Styles ID IDC_STATIC Caption Input DO Value je Visible W Group M Disabled M 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 shown select the Member Variables tab MFO Class Wizard 2h x Message Maps Member Variables Automation Activex Events Class Info Project Class name Add Class a CDemoDilg ater ae 3 Add Variable CAprojectDemo DemoDlg h C project Demo DemoDig cpp Control IDs Type Member Delete Variable IDCANCEL Update Columns IDOK Bind All Description Fig 5 1 12 8 Click the Add Variable button to add a new member variable WinCon 8000 Getting Start Manual 41 Add Member Variable TE lx Member variable name m_DO Cancel Category T nee 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 Mem
14. Slot 3 slot for W 83X1 7 slot for W 87X1 m Environment Operating Temp 25C 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 1 0 module optional l 8000 series modules which include DI DO AO Al l 87K series modules which include DI DO AO Al l 7000 series modules which include DI DO AO Al For more information please refer to relative catalog or http www icpdas com WinCon 8000 Getting Start Manual 9 1 5 Dimensions None slot
15. Statt COM Port COMI N Address lO7fdec Tihex Baud Rate 9600 a Setting Configuration for 87063 87K A2 00 l 87 063 Digital Output 0 ae LSB CH 0 MSB CH 3 Power On Value of DO Safe Value of D O Digital Input T J Ox0 O LSB EH 01 MSE CH 3 ae ATA LE FETE I i T IYE ia ri pI L i mi WinCon 8000 Getting Start Manual 26 6 To press the exit button of DCON CE and it can close the DCON_CE_V200 exe of WinCon 8000 Moreover gt it will exit automatically when the DCON_ Utility does not work during the programs automatically scan in thirty minutes gt DCON Utility A Sure To Exit And To Terminate DCON CE EXE Please operate the methods according to the steps If you find the abnormal situation gt you can close the DCON Utility first and then power ON OFF WinCon8000 Web Download 1 DCON_ Utility PC side gt http www icpdas com products wincon winconutility htm 2 DCON_CE WinCon gt http www icpdas com products wincon winconutility htm Finally you may react the questions to service icpdas com please Thank you WinCon 8000 Getting Start Manual 27 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
16. 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 and I 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 I O modules and I 87KX expansion unit RISC CPU 206MHZ EEPROM Flash SDRAM Real time Clock Watchdog Timer Unique Hardware S N USB Parellel Bus LED Indicator I O Expansion Slot 10 100 Ethernet Reset Key h PI A ian x 7 i MA J 3 x 3 ME A ee eg TT f si A i Pe reaasas eee METES 3 a ale O f t AOL a prod Eeee t TELLG 6 COM Port eg E RS232 par z x 14 8741 gt COM Port RS485 Powe Anaiog input Analog output DC Power in Current Loop Compact Flash Digital input Digi
17. 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 1 Open the Options dialog in the Tools menu 2 Inthe Directories tab select the SA_lA for W 8X3X or SADU_SACR for W 8X4X on the Platform item 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 wes Tabs Debug Compatibility Download Build Directories oO a Platform SA l o R ind2 WCE ARMVA 1 F Show directories Include files Directories ox C3Praaram Files Windows CE Tools wee410 SA_lA Include ARMV4_ CiProgram Files findows CE Toolswce410154 lAimichinclude CiProgram Files findows CE Tools wce410 54 lA athinclude 7 ANS Location of WinCon SDK Include files cancel Fig 5 1 6 WinCon 8000 Getting Start Manual 37 5 Fig 5 1 7 di
18. a a a H AA AA a a a A a a a AA Aa A A AAA AA AAA ARANA NANA La a da daa a Maa LAN AN Dg A Dg Ag ana A A ada NA na Mara na AA TA AAA IA AAA IA IA AA IA AAA Jh Properties X RAE ttt casee Demo eS Properties gt Deployment Dewi Windows CE NE a Output File Folle Program Files Der iaa File Demo wbdproj T The remote device or emulator the application i 13 targeting i Demo Microsoft Mieval EF NET design Forni z Design File Edit View Project Build Debug Data Format Tools Window Help E Debug 2 Windows CE NET Emulator Default ut le Toolbox 4 Device Contr a a ae nae se se ee ee k Pointer EA Form o pal Solution Demo 1 project A Label yh ee sb Button abi TextBox 2l MainMenu I CheckBox ie Tea EE 4 4 1 e E E iE a ea amp E gH Demo ls References pu A semblylnto cs ae Form cs AS le e e ele Ee ea ee ee E de e ENEE A E E EEE s s El A AAA le e e p p e p r l le ee AREA A AAA AA gt e le e RRA EDE i de Er Solu os lass Reso ee amp E EL ee E E ELE EEE E E ELE EE AAA Ep E A A et et A ee A E ven Windows Forme ae zaas le lee AAA AAA AAA A A A AA AA ee FEOEO FO FOFO FOFO A oe A Al TAR A A TA AAA El AAA AAA AAA EE El AAA AAA E A AT A A A AA A A A A TA ee El AA AAA AAA El AAA AAA ole co ee ee ee ee ee AAA A AT A A A A A A
19. 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 users 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 3 Digital Input Output functions WinCon 8000 Getting Start Manual 28 Interface functions for C NET VB NET 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 Oe Oo ES 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
20. assign ee 192 168 254 200 IP addresses ask your neto IP Address 192 168 94 200 administrator for an address Subnet Mask SBS and then type itin the space H i provided Default Gateway 192 169 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 Name server addresses may be Primary DNS me 05 192 1 automatically assigned if DHCP is enabled on this adapter Secondary DNS e F You can specify additional WINS or DNS resolvers inthe Primary WINS la na space prove secondary vans CO Fig 2 4 5 Click OK x 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 Cho
21. eo TA A gt le e AAA A A A A TTT 7 ri 1 e e eE AA ATA Ce E A AA A Gutput a x E GridSize B 8 Oo El Icon az leon Language Default Localizable False El Location a l Task List El Output TA Index Results for Dim keyword Locked Fig 5 2 3b WinCon 8000 Getting Start Manual 52 5 2 2 Add the Project Reference to an Application The Wincon library contains all the module functions Before you 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 TS xj TETEN roja ED at O i A ae pe sj Microsoft Windows E Formis 1 0 5000 0 D Program Files Microsoft Yis macorlih 1 0 5000 0 DProeram FilesMicrosoft Vis ester 1 0 5000 0 DoProsgr n Files Microsott Vis neystem Data 1 0 5000 0 De Program Files Microsoft Yis e oveen Data Conunon 1 0 5000 0 D Program Files Microsoft Vis nerstenn Data Sq ll lient 1 0 5000 0 DProsvam Filestbiciosort Vis vetem Data oq lerverte 1 0 5000 0 D Proeram Files Microsoft Vis yate Drawing 1 0 5000 0 DProgran Files Microsoft Vis Harter Met Trid 1A SnnA N Tt Pcversra Bales aera ft Wa selected Lomi pia nests Fig 5 2 4 2 Select the ICP DAS Wcon
22. 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 A A AA E 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 possibly 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 32 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
23. 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 3d 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 35 see figure 5 1 5 WCE MPC App Wigs CDemoDig Class name Header file CDemo pp Demo pp h Base class Implementation file CWin pp DemeApp cpp lt Back Next gt Cancel 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 files File type Path contents Executable files Specify locations for the build utilities such as the compilers CL CLARM CLMIPS and so on NMAKE LINK and BSCMAKE 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 36 Path information is stored in directory settings and it allows you to configure them
24. 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 icpdas 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 and 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 a 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 Ver
25. 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 settings 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 view class of your application If your application is database supported you can also select any class that is derived from CformView 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 33 ala Files Projects Workspaces Al WCE Application Project name WCE ATL COM AppWizard Demo 2 WCE Dynamic Link Library WCE MFC Activex ControMMizard Location WCE MFC AppWizard dll aoe WCE MFC AppWizard exe CAPROJE
26. when it is started up You can choose the execute file and file directory path by means of the Browse button o 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 icpdas 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 It will take ten or more minutes to update your OS to Flash memory and then reboot your system WinCon 8000 Getting Start Manual 20 WinCon Utility 1 Ver 2 1 0 OK x Save Registry System Config Auto execute wersion Update com About WinCon Utility 1 Specify the new OS image file for version update i Browse ex WServerNarne ShareFolderName nk bin ji 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 Systern Contig Auto execute Version Update Com About Winton Utility 1 Serial Touch Change ComPort 9 Disable 3 Elo COP Dynapro COMO dde Egalax COMO
27. 00 Getting Start Manual 47 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 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 C 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 A WINCONIDI DO DemoWB NETiDemo and WINCON DI_DO_Demo C Demo They have been tested OK on WinCE NET 4 1 or newer version platforms and o
28. 2 Double click the Date Time icon on the Control panel dialog DatefTime Properties Date Time July 2003 E3 ee 13 33 am Time Zone GMT 08 00 Taipei EF de ed 29 automatically acllust clock far daylight saving 28 2030031 1 2 45 bb 8 8 Apply 14 15 16 17 Fig 2 2 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 WinCon 8000 Getting Start Manual 12 xa 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 DHCP 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 LANGO00 Network Compatible Adapter Settings IF Address Name Servers Ar IP address can be 5 Obtain an IP address via DHCP autornatically assigned to this computer If your network does not automatically
29. 7 ifdef _DEBUG define 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 43 the eMbedded Visual C development environment The second method is to build the application program by using command line tools within the MS 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
30. 800000 Lo gt 7 a AS 00000000 co0000000 00000000 E SY 5 7 O OA O AA ES O j l GY m 4 D O ES Z Lo a E O O g FL O a a O e an A o Lf PL z NO 3 J o 5 L r 8 r ae O O Al Ia a e NU y AS F l lt J L y WinCon 8000 Getting Start Manual 10 7 slots L B E B A 5 T ll I ID JO l D D OD b UD m i p OO D T D D D D D D T cor l il nl i I ime ma i pl y H l p Ta W o 93 8 F 73 2 53 2 1 f y Fa f y i l Wao y 00000000 22520000 0000 o GU J ooooooon ooooooon oooooo 0000 ooo00000 00000000 q SE AS 00000000 A T 90000090 o 511 5 Aa O a NS O ge y ao EY J se VOY g o5 A so Laa 39 Al o m os E a 81 I 15 i o L i j e A L GU
31. CT Demo E S WCE Static Library f Create new workspace Add to current workspace Dependency of RW in32 WCE ARMV4 OWin3 WCE ARMVAI CIWin32 WCE ARMYAT OwWin3 WCE MIPS16 OWin3 WCE MIPSII CWin32 WCE MIPSIL FP xi Fig 5 1 1 3 The configuration of WCE MFC AppWizard 3a WCE MFC AppWizard Step 1 of 4 Set Dialog based as shown in the following figure Click Next to go to the following step WCE MFC App Wizard fexe Etep 1 of 4 RIES a a a a a o RR A AS What type of application would you like to create C Single document E DocumentView architecture support What language would you like your resources in La e be be e a a a A 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 34 the defined area and click Next to go to the following step see figure 5 1 3 bepa of 4 l E 7 x What features would you like to include Application lC 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
32. Forml Inherits System Windows Forms Form Friend WithEvents Labell s System Windows Forms Label Friend WithEvents TextBox As System Windows Forms TextBox Friend Y WithEvents I Button ds System Windows Forms Button Windows Tar oe ee U Se Sees ANE Forti lesiener generated code 3 Private Sub Buttonl_Click By al sender 4s System Object ByVal e fe byatem Eye Dim slot s Integer 1 Dim data As Integer data Val TextBoxl Text con End zi 43 18057 lt 18060 18063 IF 164 its Pe 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 58 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 Private sub Buttonl_Click By al sender As System Object EyYal e ds System Eve Dim slot As Integer 1 o Dim data s Integer data VYal TextBoxl_ Text Ycon 18064 Cera Chace O ProM Public Shared Sub DO Bebot As Integer ciat 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 functi
33. Forms n E System EML 2 E Wincon pe E Assemblyl nto cs lees ES Form cz Th sent 2 Class El Reso Fig 5 2 7b El Reso Fig 5 2 7a 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 applications 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 Form41 and select View Code from the pop up menu see Figure 5 2 8 amp Lock Controls Ei Properties WinCon 8000 Getting Start Manual 55 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 Formivb Desien Formi vb gt x g Public Clase Forml Inher
34. 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 AO AO Visual Studio net Eembedded Visual C Smart device Visual C n programmability Visual Howie am 3 code Native code Applications downloadded through LAN or stored in storage card or USB driver mpact 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 and I 87K series I O modules The W 87XX can plug in 7 max 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
35. WinCon 8000 Getting Started Version 1 4 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 uu cccssssssssssssssssssssssssssssssssssssssssssssssssees 3 LL APP a E eaa 3 1 2 Hardware Setup for W 8X3X Only ssssssecccoccsssesececooossssscceecocosssesceceossssssseeeesso 4 1 3 Hardware Setup for W 8X4X only Dual LAN version WinCon 0000 7 LA SPECHACACOOS n
36. ana dca as cas ca ssion wh tas cuca canes ea aneceensaeeeseeaaseass 9 LS DIMENSION cc 10 LO WVIAC S NO WS ecne a E 11 L Packard lose ilatina 11 2 WINCON 8000 SYSTEM SETTINGS cccccco 12 Dek WINDOWS CE SOCOMIIES ccssssiccccciss cessenesesesscseceseessaasccacececeaacteusedesacesessvodsssasscecssaeteseeesese 12 22 WV MEG OT VOTA A AAA AAA AAA AAA AA 16 2 3 87K Module SOTO es scscsecssssescsectaessesecaatecsscaadscencsosasesdansousosaateccenssdssascdoseseetansoussened 24 3 ARCHITECTURE UNDER WINCE NE Tia 28 4 1 INSTALLATION WINCON 8000 SDK FOR EVC ON PCooooccccccccccccccccccccccccccconanons 30 4 2 INSTALLATION WINCON 8000 SDK FOR VS NET ON PC ooonnncccccoccccccccccccconss 31 5 START THE FIRST APPLICATION PROGRAM ooommcnnnnnmmmmsms 32 5 1 Applications in eMbedded Visual C MEFC ccccsccccssssssssscsssssscsssssssssssssessssesees 32 5 1 Create a Forms Based Applications a 32 31 2 Specity Locations tor Demo Piles id AA 36 5 1 3 Contigure Compiler ODUONS ni ici 38 5 1 4 Design an Application Prodi 40 51 o Butla tie Applicadon Broto id 43 5 1 6 Execute the Application Program on the Wincon 8000 Platform 45 5 2 Applications in Visual Studio VB NET and CA NET 0 cccccsssssssscccccsssssccceeeees 47 5 2 Create a NEw SDE Pro eiii A 49 5 2 2 Add the Project Reference to an Application cccccccccnnnnnnnnnnnnonnncnnnnnnnnnnnnnnnnnnnnnos 53 5 2 3 Design an A pplication POMAR 55 5 2 4 Building an Appli
37. ber 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 Propertes uO W General Styles Extended Styles 1D IDC_BUTTON1 Caption EE TT le Visible Group l Disabled M Tab stop Fig 5 1 14 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 42 Add Member Function Ti TEA et 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 CDemoD1lg 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 Finclude WinconSDK h within the header area ff DemoDlg cpp implementation file ff include stdafx h Htinclude Demo h Hinclude DemoDlg h include WinconSDK h ae
38. cation PrograM oooooonnnnnnnnccnnnononnnnnnnnnnnnnonnnnnnnnnnnnnncnnnnnnnnnnnnnoss 59 5 2 5 Execute the Application Program on the Wincon 8000 Platform 60 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 IB TU en Sereen Moenibad BserProgam tia lth ene bit 1 m24 EEL al M adul e i Ufo dute 101 00 Fhedule Eihemet ramion Uni Fig 1 1 For The software develop ICPDAS provides two DLL files namely the 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
39. cation 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 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 50 sad Device Applicaton Wian Dema 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 MET 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 OK Cancel Help Fig 5 2 2 7 Choose the Platform use Windows CE for the Wincon 8000 device 8 Choose the Project Type For the first simple application which simply displays a form on the device choose Windows Application 9 Click OK and let the wizard create the project for you this may take a moment 10
40. e 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 45 following 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 46 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
41. ective button of Telnet to open the DCON CE V200 V2 0 0 WinCon 8000 EJ OCON Utility Ver 4 3 3 Eile COM Port Jbearch Eun Terminal Help The Found Ont i 7000 8000 module Telnet button i aie a er Checksum Description BaudRate setting 115200 bps user can change Comport COM 1 gt COM n COM Port com 1 Address DO dec Dhed Baud Rate eS SEG 4 To input the address of IP of WinCon 8000 Fj DCON Utility Y Ver 4 3 8 Eile COM Fort earch Run The 7000 8000 Modules Found caja 30001 m Module Address Baudrate 7 La ur Checksum Description WinCon IP Address Please inputthe WinCon IF Address OK Za m E Searching Status COM Port ICOM 1 Address O1fdecl 1fhex Baud Rate 115200 WinCon 8000 Getting Start Manual 25 5 After connecting the WinCon 8000 gt refer to the manual of the DCON_ Utility to use gt please gt Fi DCON Utility Ver 4 3 8 Sele File COM Port Search Eun Terminal Help The Found Out 1 7000 2000 module DCON_CE exit button Baudrate Aarm Checksum Description ________ 115200 Disable Winton Firmware Version 2 00 ok module or Mone ok module or None 8K module or Mone 115200 Disable 4 2H Analog Output 11500 Disable o LH Thermo Input ok module or Mone ok module or Mone 115200 Disable 4 Ol 4 Relay DO Searching
42. iles Microsoft Vis Sarton Met Irit A TiiPrnorara Hilado dt Mis Selected Components Component Name Tye PDAS Weon Inside I SO00 Te l mecorlb NET Li Program Files Microsoft Viena comal top Fig 5 2 5 4 Click OK to close the Add Reference dialog a Note If the The reference Wincon dll may or may not be valid for the active 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 a of VB NET or Figure 5 2 7b of WinCon 8000 Getting Start Manual 54 C NET solution Explorer Fema es solution Demo 1 project E System Data a 2 System Drawing a A System Windows Forme E 3 Wincon FE Assembbnto vb EE Forml vb a a areais E Solution Demo 1 project cl E Demo Gay References H MestCorLib 2 E System Data gt System Drawing 5 2 system Windows
43. its System Windows Forms Form Y vu o fin 0 ANA indowsz Form lesiener 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 ett Page Form cz Desten Formi est box e Demo Formi Busing system using bystem Drawing using syvetem Collections using System Windows Forms using System Data using Mincon en amezpace Demo YI lt summary gt if Summary description for Formi PER fi public class Forml System Windows Forms Form a 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 1l 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 56 Pro perez f Labell ystm Windows Forms Labe x 2 e a El Location 136 72 e Locked False Modifiers Friend E Size 100 20 Input DO Yalue TextA hen TopLeft Visible Tie Fig 5 2 10 Click the icon TexiBox 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 so Buton in the
44. n 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 E Se SS Example list for the reference of user program design WinCon 8000 Getting Start Manual 48 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 installed both Visual Studio NET and the Smart Device Extensions SDE 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 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
45. 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 29 4 1 Installation Wincon 8000 SDK for EVC on PC Wincon 8000 SDK for EVC consists of the following major items e WinCon SDK DLL 4 library files for EVC WinCon SDK include files for EVC e 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 Toolsliwce4101SA_lAlncludelArmv4 m 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 E Demo eee eMbedded Firual C Demo DiE cpp ES Fie Edit View Insert Project Build Tools Window Help Os BA OMA A fimo 7 w CDemoDlg MWhelass members 4OnCheckdo22 __ r iii Demo in32 WCE ARMV4 Release f Bi 2 xj OutTempe m 0024 lios 197 0utTemp OutTemp m_ tie ECk 1 7 0utTemp El Workspace Demo 1 projectjes DutTenp m_ po _GetCheck 1 0utTenp E Demo files QutTemp m_DOY GetCheck 1 7 0u
46. on which means inputting slot data Private Sub Buttonl Click ByVal sender ds Dim slot s Integer 1 Tim data As Integer data ValiTextBoxl Text private void buttonl Clickiobject sender int slot 1 byte data Woon 18064 DO _e slot data data Convert Toby tet textbox Text End Sub Ncon I8064 00 6fslot 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 Inthe toolbox menu select Release from the solution Configurations in the Combo box File Edit View Project Build Debug Tools Window Help a Al gp Een Bl Windows CE NET Em Contiguration Manager El a E at Fig 5 2 15 WinCon 8000 Getting Start Manual 59 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 l E Relea gt g Sub Toh Ef 3a Windows CE NET Emulator Default El Windows CE NET Device Windows CE NET Emulator Default Se Pocket PL Device Pocket PL 200 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
47. ose 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 Properties 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 va 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 the 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
48. 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 44 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 environment 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 DemoDblg cpp Generating Code Linking Demo exe O error s warning s Fig 5 1 19 3 Ifthere 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 w
49. sion Update Com About Winton 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 Frequncy 60 He om l Any setting Saas could be pre viewd View Registry Change Change FTP default directory Temp to kem Change Change HTTP default directory Cormpact FlashiTemp HTTP to Compact PlasHiTemprHTTP 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 lt will take several seconds 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 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 F E HKEY CLASSES ROOT E HKEY CURRENT USER Y HKEY LOCAL MACHINE HKEY USERS HEE E Fig 2 7 WinCon 8000 Getting Start Manual 17 e Change the VGA resolution box You can set
50. splays the default location of Library files Tabs Debug Compatibility Download Build Directories So an Platform CPUs show directories Location of WinCon SDK Library files Fig 5 1 7 x 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 2 Select the configuration Win32 WCE ARMV4 Release in Settings for item as shown in following figure WinCon 8000 Getting Start Manual 38 A General Debug CiC Link Resources M mg Hesel Project settings settings For Win32 MYCE ARMY4 Release All Configurations Multiple Configurations Microsoft Foundation Classes Use MFC in a Shared DLL Output directories Intermediate files ARMY4 Rel Output files ARMY Hel M Allow per configuration dependencies cnc Fig 5 1 8 3 Inthe Project Settings dialog select the Link tab and set the library file name as WinconSDK lib in Object library modules item Project Settings o j aj xj Settings For General Debug C C Link Resources M Te Win32 MYCE ARMY4 Release l Category General Reset Output file name ARMV4 HRel Dema exe Objectflibrary modules iInconSOK lib
51. tTenp y ad Source Files dutTemp m_p628 GetCheck 1 7 0utTemp Demo cpp DutTenmp y940029 GetCheck 1 7 DutTemp Demo rc DutTenp y m DO30 GetCheck 1 OutTemp m 0031 GetCheck 1 7 0utTemp _number 32 2 DemoDlg cpp StdAk cpp 3 Header Files E Demo h E DemoDig h E newres h E Resource h E StdAfx h Resource Files E ReadMe txt WCE b latrone orttig tration out 7 External Dependencies FF TODO Add your control notification handl int temp slot char string1 29 Slot n_Slotbo0 GetCursel 1 temp GetNameOfModule slot stringi SslothO slot WinCon 8000 Getting Start Manual 30 4 2 Installation Wincon 8000 SDK for VS NET on PC Wincon 8000 SDK for VS NET consists of the following major items e 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
52. tal output eM Relay Output LED Indicator Config Rotary SW Open Collector output Counter Frequeney 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 mM 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 x 2 10 Base T NET2000 compatible COMO Internal use COM1 Serial Control for 87k Series COM2 RS 232 COM3 RS 485 FRnet option I O Expansion
53. 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 creating 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 C is a simple elegant type safe object oriented language recently developed by Microsoft for building a wide range of applications Anyone familiar with CF and WinCon 80
54. thernet MAC address Lower field displays 2 Ethernet MAC address o EEPROM Size box This field displays the EEPROM size of the Wincon 8000 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 Ver 2 1 0 Save Registry System Config Auto execute Yersion Update com About Wincon Utility 1 Program 1 Program 2 Program 3 At most 10 programs can be specified to execute Program 4 automatically when system starup And there is none Program 5 dependency between each program Program 6 Program Browse Programe Program 9 Browse Program 10 Browse Save Setting orf Fig 2 9 The tab includes the following folders Program 1 10 boxes These files allow one to configure the auto execute files for Wincon 8000 for
55. ting 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 Winton Utility 1 Wer 2 1 0 ox x Save Registry System Contig Auto execute Version Update Corn About WinCon Utility 1 Slot 1 Slot 2 Slot 3 Slot 4 Slot 5 Slot 6 Slot F T8044 e040 T8017 e024 0 187064 1 8077 Serial Number MAC address EEPROM Size Flash Memory Size OS Version 05 Image Size Winton SDE Version Fig 2 8 This tab includes the following folders DO OD EO FO 00 89 16k bytes 32M bytes CE Net 4 1 2 04 09 02 TC EGU 28956244 bytes e Slot 1 7 box The Slot1 7 fields display the module names plugged in the Wincon 8000 WinCon 8000 Getting Start Manual 18 Oo Serial Number box This field displays the serial number of the Wincon 8000 eo MAC address The field displays the physical address of Ethernet port For W 8X4X upper field displays 1 E
Download Pdf Manuals
Related Search
Related Contents
Avigilon Control Center Client User Guide Mode d`emploi Pi-Ku-Plast Capital naturel et développement durable en Afrique Herunterladen MANUEL D`UTILISATION Gebrauchsanweisung Instructions for use Mode d`emploi Istruzioni Manual - Audio Visual Revolution b-platz press(ビープラッツ プレス)vol125 Copyright © All rights reserved.
Failed to retrieve file