Page 1
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.
5.1.4 Design an Application Program ................41 5.1.5 Build the Application Program ................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 ..........48 5.2.1 Create a New SDE Project .................. 50 5.2.2 Add the Project Reference to an Application ............
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 . ICPDAS also provides another remote I/O modules. You can communicate the remote I/O modules by pass through the COM3 (RS-485 network).
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.) local I/O modules and W-83XX for 3(max.) local I/O modules.
Page 5
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. 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...
Page 6
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...
(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.
Page 8
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...
115.66×110×93.8(none slot) 230.25×110×93.8(3 slot) 354.26×110×93.8(7 slot) I/O module(optional) I-8000 series modules, which include DI,DO,AO,AI… I-87K series modules, which include DI,DO,AO,AI… I-7000 series modules, which include DI,DO,AO,AI… For more information please refer to relative catalog or http://www.icpdas.com WinCon-8000 Getting Start Manual-- 9...
Added 2.2 New CARD Wizard function for I-81XX Serial Card. Added 1.3 Specifications Added 1.4 Dimensions 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...
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...
Page 13
Address tab and type in the IP Address, Subnet Mask, and Default Gateway into the respective fields. 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...
Page 14
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:...
Page 15
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.
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/icpdas/Tools directory) should be located in the computer's Program group.
Page 17
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). Fig. 2-7 WinCon-8000 Getting Start Manual-- 17...
Page 18
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. Fig. 2-8...
Page 19
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.
Page 20
The tab includes the following folders: 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.
Page 21
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。 Fig. 2-11 WinCon-8000 Getting Start Manual-- 21...
Page 22
Setting the I-81XX Serial Port 1. To click New Card Wizard button and show the New Card Wizard Window: 2. To click Slot Scan button and show all Cards in system: WinCon-8000 Getting Start Manual-- 22...
Page 23
3. To click Save New Module button and save the setting: 4. To click Yes button and reset to finish adding Com Port. 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.
Page 25
6. After you install DCON_Utility software on PC, execute the program(go to: Start > Programs >DAQPro>DCON Utility) Telnet button BaudRate setting 115200 bps user can change Comport (COM 1 COM n…) 7. Click on button, a pop-up window will prompt you to input WinCon IP address. WinCon-8000 Getting Start Manual-- 25...
Page 26
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...
Page 27
DCON_CE exit button 10. Once you are done with your configuration. Click on button to WinCon-8000 Getting Start Manual-- 27...
Page 28
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 & 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.
Page 30
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 major items. WinCon SDK DLL & library files for EVC DK DLL & library files for EVC WinCon SDK include files for EVC...
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.
3. Configure Compiler Options; 4. Design an application program; 5. Build the application program; 6. Execute the application program on the Wincon-8000 platform; 7. 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.
Page 34
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...
Page 35
(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. 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...
Page 36
DLL or statically linked library. Then Click “Next” to go to the next step. 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-- 36...
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...
Page 38
. Fig 5-1-6 display the default location of include files. Location of WinCon SDK Include files Fig. 5-1-6 WinCon-8000 Getting Start Manual-- 38...
To set the compiler options in the development environment, please follow these steps: In the “Project“ menu, choose “Settings” to open the “Project Setting” dialog. Select the configuration “Win32 [WCE ARMV4] Release” in “Settings for” item as shown in following figure. WinCon-8000 Getting Start Manual-- 39...
Page 40
Fig. 5-1-8 In the Project Settings dialog, select the “Link“ tab and set the library file name as “WinconSDK.lib” in “Object/library modules” item. Fig. 5-1-9 WinCon-8000 Getting Start Manual-- 40...
In the “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. Fig. 5-1-10 By clicking the icon to create a static text object. WinCon-8000 Getting Start Manual-- 41...
Page 42
Right-click on the edit box object and select “Class Wizard”. When the MFC Class-Wizard dialog is shown, select the “Member Variables“ tab. Fig. 5-1-12 Click the “Add Variable“ button to add a new member variable. WinCon-8000 Getting Start Manual-- 42...
Page 43
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...
“WinconSDK.h” ” within the header area. 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...
Page 45
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...
(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.
Page 47
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...
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 C# and WinCon-8000 Getting Start Manual-- 48...
Page 49
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.
Visual Studio.NET and the Smart Device Extensions (SDE) development tools. Furthermore, you are trying to develop the user program to be applied in the Wincon-8000 controller target device. The following steps are illustrated in detail to explain the developing process.
Page 51
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-- 51...
Page 52
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).
Wincon-8000” in the list box, and click the “Select” button. 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 “...
Page 55
“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...
Properties window. Now let's do the remaining steps in building this small demo test program. Right-click on “Form1” and select “View Code” from the pop-up menu.(see Figure 5-2-8) WinCon-8000 Getting Start Manual-- 56...
Page 57
Click the icon 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...
Page 58
10. 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 slot As Integer data As Integer data = Val(TextBox1.Text) Fig. 5-2-11a (10b.) C#.NET slot=1; byte data; WinCon-8000 Getting Start Manual-- 58...
Page 59
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. Fig. 5-2-12 12.
5.2.4 Building an Application Program When you have finished the above processes, you could build an application by following the below steps. In the toolbox menu select “Release” from the solution Configurations in the Combo box. Fig. 5-2-15 WinCon-8000 Getting Start Manual-- 60...
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.
Page 62
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”...