Home
WinCON - ISaGRAF User`s Manual
Contents
1. 00000 internal Enter new value T HALO ms o Start Stop Cancel Now we are going to simulate the K1 amp K2 input Click on K1 using the right button of the mouse 8 example E File Tools Options Help SE Click on K1 using the right button of the mouse Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 47 To exit simulation please close the debugger window ISaGRAF EXAMPLEI Debugger E File Contol Toole Optons Help N Close debugger will end RUN mmm simulation 4 3 Download amp Debug The Example Project We have 2 ways to download the project to the Wincon One is using Ethernet cable the other one is using RS232 cable Here will show you the RS232 way Please refer to section 3 2 4 1 if you would like to download the project via ethernet To begin this process please install the hardware as below The RS232 cable wiring should be 2 3 cross as below figure Please make sure the Modbus RTU Slave Port is set as COM2 refer to Appendix A 2 or it can only be download via ethernet 2 8
2. C Screens T DI E Group Screen mu Click on Text again to add label and then click on Text I O Symbols Click on Text first to add a label 8077 DI O Double click the object and the Object Properties window will show as below then type DI in the Tag Expression Replace Hint Text 10 Tag E pressis C Input Enabled Password Confirm Repeat former method to create other objects and click Save icon on the main menu to save this main screen page as MainPage scr Note For the Output object as 87024 AO 0 the Input Enabled of the Text I O should be checked as below Replace Hint Text LAU Minirum Value Input Enabled _ Password Confirm hd asimum Security E Sign 2 Disable 0 Check on it means user may input its value at run time Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 103 Workspace x v gl Project Demo 01 APP Drivers Create Modbus workspace Click Comm in the Workspace and in the folder of Drivers click right mouse button and select Add Remove drivers to open Communication Drivers window as below Workspace x sn ANLE Demo 01 Click mouse right button on Drivers Click
3. 9 6 4 EXECUTE THE APPLICATION IN THE WINCON 8XX7 PLATFORM eee eene 92 OSE M eee 92 COOU sido PDE RES 92 D ToU To RKV F UNCHONS 92 RIV F UN ONS 94 CHAPTER 7 EVC PROGRAM RUNNING IN WINCON ACCESS ISAGRAF VARIABLES rr RT 96 CHAPTER 8 INDUSOFT PROJECT RUNNING IN WINCON ACCESS TO ISAGRAF VARIABLES 98 CHAPTER 9 ISAGRAF EXAMPLE PROGRAM eee eee eeeeee eese 108 EU Pee ate tek Died apologia 108 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 3 9 2 INSTALLING THE ISAGRAF PROGRAMMING 55 0 0 00000000000000 111 CHAPTER 10 PROGRAMMING W 8X37 BY 2 1 114 10 1 SET WHMLEXE TO BE FIRST AUTO EXECUTE 07000 114 10 2 SETTING WPAN EV Gis WEB HMI DEMO 115 POD Tren T esSetupMhe HardWare ueniet bcati e dimmi IE au 115 10 2 27 Step 2 Make Sure Whmiexednstalled 115 Senmme The Web 115 10 2 4 Step 4 Download And Run Demo Program 116 10 2 5 Step 5 Download Web Pages T
4. 19 Fe Fo 179 pU Block on the lett Now we are going to assign the associated variable amp constant to each item Double click anywhere inside of the block and the Function Block assignment window appears Select the BLINK type function block To learn how the BLINK function operates you can click on the Info button for a detailed explanation of its functionality iae ISaGRAF EXAMPLEILDI Quick LD Program EU S x File Edit Tools Optons Help B amp xuzs me sd sn m es 4 Fa FS FE F JH F8 Fgm 77 Double click anywhere inside of the block Function block write float value to array read long value fram array write long value to array read short value from array Cancel write short value to array get ascii cade Into arc sine arc tangent running average Convert BCD to decimal value Transfer BCD to decimal value zz Complement ta engin format transfer 15 bit to 1 word blinking signal convert to boolean concat messages function block sample Click on Info to get detailed explanation get character Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 39 Now move your cursor to the left of the parameter CYCLE of the BLINK block Double click it select Timer and then double click on variable name T1 mis
5. On the left ABD 10 0 0 103Aogin Norton AntiVirus E Logout This is a Web HMI sample page The width amp scrolling can e K1 be modified Tror width OUTO01 OUT02 5000 ms Horr Enter Hello Welcome to Web HMISampl Getting Started Wincon 8037 8337 8737 The Web Ver 1 0 2005 by ICP DAS 71 Welcome Microsoft Internet Explorer E Bl iO AREA IA L A 9 QO2 1 usse Gee 6 8 AST http 710 0 0 103 login dl v E Norton atts m mI o n a U I This is a Web HMI sample page On the top K1 K2 Error The width amp scrolling can be modified OUTO01 OUT02 T1 8000 ms Horr Enter e Hello Welcome to the Web HMI Sample 2 Below is the basic code for the menu htm lt top or 1 scrolling 0 width 60 resize 1 gt The fist line is not a comment it defines the Page Menu behavior top or left 1 Top O Left scrolling 1 Yes O No html width width of the Menu Frame 0 999 unit is pixel head resize 1 Yes 0 No title Title 1 lt title gt lt meta http equiv Content Type content text html charset UTF 8 gt SCRIPT LANGUAGE JavaScript src msg wincon js gt lt SCRIPT gt SCRIPT LANGUAGE JavaScript gt function start
6. Booleans inteqersiReals Timers Messages FB instances Define word Attrib Addr Comment auuick declaration Input 1 in the 8077 board Cancel Internal Constant Other C nteger Length Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 33 When you click on the OK button all two outputs will be immediately added to the Global Boolean window Click on Save to store them salrRAF EHAMPLEI Global booleans File Edit Tools Options Help amp oe6e ada Booleans Integers Feals Messages FB instances Defined words Attrib A ddr Comment 0000 K2 0000 OUTO1 o wut 0000 E 00000 output false true Input 1 in the l 5077 board Input 2 in the l 5077 board To declare the timer T1 variable used in this example program click on the Timers tab in the setup screen Double click on the colored area and enter the Name as T1 set the Attributes to Internal the Initial Value to T 8s then click on the Store button Then please click on X to close the dictionary window S ISacRAF EXAMPLE Global timers File Edit Tools Options Help w d Booleans IntegersiRealz Timer Messages FB instances Defined words _ Mame _ Attrib Addr C
7. mm Begin empty program mE wn SaGRAF EXAMPLE2 I O connection File Edit Tools Options Help a empty Ladder program ref 8077A a is just fine m i 8077 o DI 1 B 018 ne 2 DOB n 2 u 87024 wv 4 IoaGRAF EXAMPLE connection E E x 2 File Edit Tools Options Help SaGRAF EXAMPLE connection 7 3 al x File Edit Tools Options Help 0 2 a ret 077 21 ami 8077 a DO 1 a ref 87024 range 33 e a AO 1 87024 4 4 7 d 2 m ae ja If you are not familiar with ISaGRAF please refer to section 4 1 to 4 3 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 98 The ISaGRAF variables to be exchanged with Indusoft must be declared with a Modbus Network Address as below ISaGRAF EXAMPLE2 Programs E File Make Tools Debug Options Help Eg e zxr ini x Begin ae empty program ini x Ede Edit Tools Options Help Gnick declaration Import true false definitions Modbus SCADA addressing map El Edit Options Help _ Hexadecimal Please set No as Decimal Segment 00000 In this example Please assig
8. lt html gt This line is only for the Login htm please do lt head gt not apply to other pages For example the menu htm amp main htm amp other htm pages lt title gt Login lt title gt lt meta http equiv pragma content no cache gt lt meta http equiv Content Type content text html charset UTF 8 gt script language JavaScript gt var random val 123 function get random val Please apply your charset here For example English UTF 8 Chinese gb2312 Traditional Chinese big5 or other language var rightNow new Date random val 323456789 rightNow getMinutes 107654321 rightNow getTime 1000 setTimeout get_random_val 197 repeat call check if username and possword are empty function validate fm setKey fm return true Embed key whille submitting function setKey fm var rightNow new Date cookieVal random val rightNow getTime fm key value cookieVal lt script gt get random val should be always called at the beginning of the Login htm It is the entry point of the lt head gt Login htm lt body onload get_random_val gt lt div style position absolute width 332px height 34px z index 5 left 147px top 27px id layer1 gt Welcome lt div gt Your caption here Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 70 div style position absolute
9. 0 else B12 blink 1 body onLoad init gt The layout or location of the Text object B12 is defined here by the lt div lt div gt tags lt div style position absolute width 214px height 53px z index 2 left 102px top 79 gt lt font id font_B12 color blue size 3 gt lt b id B12 gt OK lt b gt The lt font gt amp lt font gt tags can be used for controlling the font s color and font s size lt font gt lt div gt o The declaration of Text object B12 is defined here by the lt b tag amp id B12 amp lt b gt tag initial value of this B2 is OK lt body gt 5 4 2 6 Displaying Float Value With Fixed Digit Number Behind The Symbol Demo example whmi 06 amp whmi_07 section 3 1 The float 11 1 para2 function can convert float value to a string with fixed digit number behind the dot symbol para is the float value to be converted for ex 1 234567 para2 is the digit number behind the dot symbol O to 6 for ex float str1 1 234567 return 1 234 while float str1 1 234567 2 return 1 23 Convert float val at Network Address 21 to a string with function refresh data digit number 3 behind the dot symbol F21 innerText float str1 float val 21 3 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr
10. er H Q dose Que 9 Ww BLD Emons ess amp searcn Hotbar Ge CARE EF RT BATT EA REE TARE URTE S Double click here to display the error message FE 3 Enable it and then click HARAP T FEO on OK HAAN dn And also check if your ISaGRAF project already download to the controller Section 4 3 or or section 3 2 4 Wincon ISaGRAF Driver Setting Web About Configuration Slave Number m Current running ISaGRAF roject name is listed here Modbus ATU Slawe Port ione proj Baud Rate 19200 1 Project Current Application 1 Elapsed Time o 0 44 18 And do you assign the correct Modbus Network address to the respective ISaGRAF variables Section 4 1 5 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 68 Chapter 5 Web HMI Basics Note 1 This chapter describes the programming basics for the Web HMI We will not focus on the HTML programming basics If you want to know more about the HTML programming the best way is to buy a HTML related book from the bookstore There are a lot of books doing this job 2 The Web HMI only supports the basic HTML tags It doesn t support ASP PHP or JSP or other Page Server language 3 Please do not use lt frameset gt lt frameset gt frame lt frame gt in the Web HMI 4 Note The object name amp object ID amp code amp variabl
11. Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 31 To declare the program variables for the ISaGRAF project double click on the colored area below the Boolean tab and a Boolean Variable window will open Enter in the name of the variable to be used in the project For the purpose of this example program the variable Boolean Variable Name is K1 and Input 1 in the 1 8077 board is added to the Comment Section The next item that must be declared is what type of Attribute the variable will possess In this example program K1 s attribute will be an Input Then press the Store button to save it The new Boolean variable has now been declared SalRAF EX AMPLEI Global booleans File Edit Tools Options Help amp ejo6e sm Booleans linteqers Redls Tiers Messages FB instances Defined words Mame trib Addr Comment 0000 In
12. tag initial value of this 531 is empty Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 77 5 4 2 5 Trigger A Boolean Object To Blink Demo example whmi 02 amp whmi 05 section 3 1 Some application may need a message to blink when the boolean value changes For example If boolean val 12 is False it means OK However if boolean val 12 is True it means Error User may want to make this Error blink to attract viewer s attention The below code can do this job The blinking period unit is ms var blink period 500 setTimeout blink obj blink period Setup a timer to handle the blinking action var B12 blink 0 init as O not blink function blink obj if blink_step 1 blink_step 0 if B12_blink 1 Blink step 1 To display Error in red color B12 innerText Error font B12 color red else Blink step 2 Sinc Step i To display nothing in red color if B12_blink 1 12 font B12 color red setTimeout blink obj blink period Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 78 function refresh data The action of the Text object B12 is defined here ifiboolean val 12 0 If boolean val 12 0 not blink However If boolean val 12 71 blink B12 innerText Ok font B12 color blue 12
13. x Language Install Cancel S aGRAF Workbench C 15 Documentation Acrobat Reader 4 0 Select the language Recommand to use English because this manual using English version 1990 2000 CJ International 15 aGHAF is a trademark of CJ International To begin the ISaGRAF 3 x software program click on the Windows Start button then on Programs and you should see the ISaGRAF program group as illustrated below IsacRAF 3 4 Diagnosis zd Libraries Projects amp Read Me B Report NOTE You must install the hardware protection device dongle provided with the ISaGRAF software on your computers parallel port to for the ISaGRAF program to achieve fully authorized functionality While using ISaGRAF and the dongle is plugged well if the Help About says Maximum number of IO variables 32 it means ISaGRAF workbench cannot find the dongle well Please reset your PC and then check the Help About again If it still displays Maximum number of ISaGRAF Project Management Fie Edit Project Toole Options Help Ey c Gel f XE User s guide memo Lange reference I5 aGRaAF Workbench Wersion 3 41 Copyright 1990 2000 International Configuration Reference 2 Maximum number of 10 vanables 372 IO variables 32 the dongle driver may not be installed well Please execute the ISaGRAF CD
14. 0 am i 8077 018 008 5 TRUE 4 21 FALSE FALSE FALSE Another VERY helpful window you can open is the Quick LD Program window From this window you can observe the LD program being executed in real time ISaGRAF EZAMPLEI Debug programs E B File Project Toole Options Help amem Begin Sig IS3GRAF 1 01 Quick LD Program EE Begin File Edit Options Help TRAGE UC Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 52 4 4 Design The Web Page After finishing the ISaGRAF project amp download it to the Wincon 8x37 we are going to design the Web Page for this ISaGRAF project If you havn t practiced Setting Up A Web HMI Demo listed in the Chapter 3 it s better to do it once to get familiar with it We will use Microsoft Office FrontPage 2003 or higher version to build web pages in this manual User may choose your prefer web page editor to do the same thing You may refer to the finished web pages of this example in the W 8x37 CD ROM at design time However it is better to do it one time by yourself to get more understanding napdos isagraf wincon WebHMI_Demo example 4 4 1 Step 1 Copy The Sample Web HMI pages These is a sample Web HMI pages in the Wincon 8x37 CD ROM napdos isagraf wincon WebHMI Demo sample Please copy this sample folder
15. AO 3 0 2 8 16 64 15 ME FR SS A a i Times New Roman 3 H UD main him x 1655855 B This is a Web HMI sample page You may switch from these three items AS ERR 65 20 FREE EET BED Please switch the window to design the page Please insert a layout object Layer as below rosott FrontPage D Vohun_D Wser_Manual_Winlones000 Web riam E E 1 ARE IRE IAD TERR 2 5 Aa S go exse E New CO AERE main him gt Mi rosoft FrontPage DAUser EYED WinConeQ00 Web HMDdenoexemple train htm E AER dx LA RA AAD ROD n DO 44 mim id S vYiIxcadg nO gt ML EL PIE vx Times New Roman A a 8 main him Thisis a Web HMI sample page C pe k Layer2 ID of this Layer object E AAs Gis ae 5oKbps SE Brit 0 01 685 x 202 2827 BE 2 Getting Started Wincon 8037 8337 8737 Web Ver 1 0 Apr 2005 by ICP DAS 54 Click inside this Layer and then insert one another layer inside it as bel
16. Disable Telnet Serveice User Marne Ta set up advanced security click Settings Settings Password Priority Middle Wiser Mame Password Priority High User Mame 22 3 80 Password Note If Enable Account Security is not check any user can easily get access to your Wincon through the Internet Explorer Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 84 5 5 2 Switch One Page To One Another Page Please take a look at the menu htm of the whmi 05 demo as below The goto page function can be used for switching to other page lt top or 0 scrolling 0 width 110 resize 1 gt html head title Title 1 lt title gt lt meta http equiv Content Type content text html charset big5 gt SCRIPT LANGUAGE JavaScript src msg wincon js gt lt SCRIPT gt SCRIPT LANGUAGE JavaScript gt function start1 A_11 function refresh data at 1 return if simulate at the PC just return lt SCRIPT gt lt head gt body onload start1 gt lt Logout button gt lt form name form_logout method post action login dll gt lt input style cursor hand name CMD type submit value Logout onClick return logout this form gt lt form gt lt br gt mouse arrow as a hand when lt br gt entering the button area lt Goto main
17. Empty Application Resolution 240 320 320 x 240 O 640 240 640 480 O 800 600 1024 768 O 1280 1024 Shared Tags Cancel Wincon 8037 8337 87 37 The Web PAC Ver 1 0 Apr 2005 by ICP DAS alos H gt NR Brows 100 Now you could see the new project shown on the Workspace window as below gi Project Demo 1 Screens Group Screen Define application tags Select Insert gt Tag on the main menu bar or click on the right button of the mouse in the Database tab of the Workspace orkspace gt X Project Demo _01 APF Application T File Edit View Insert Project Tools Wint Tag J Applica ecreen TEE B Dat ln H3 Tasks Bp 9 Shared datahase The New Tag window will show as below MH ame Array Size Type Description 8077 DI channel 1 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 101 This demo uses a DIO module 8077 AO module I 87024 and one internal variable defined as follow Please create these tags one by one Web Data Boolean DI 10 7 8077 Di channel 1 Input Boolean DO 0 8077 DO channel 1 Output integers AO 0 87024 channel 1 Output 0 2 Integers Interior Internal variable Inte
18. 3 child blink Begin Structured Text Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 25 Click on Setup first and then entering the IP address of your controller The port number should be 502 PC PLC link parameters Target Slave Number Communication port ETHERNET Cancel Control k Setup Time aut seconds ESI ETHERNET link parameters id E x Internet addres 10 0 0 103 N Workbench uses the WINSOCE OLL library for communications Ensure that this file is corectly installed an the hard A Cancel Pork number disk To download whmi 05 project to the Wincon 8xx7 Click on Debug If the communication is established click on stop first to stop the old project running in the W 8xx7 ISaGRAF WHMI 05 Programs File Make Project Tool Debug Options Help E m BM D E m Begin E VA For String amp integer amp Float LOT For system time amp DIO eS sfcl mode 1103 hild1 blink sequential File Control Tools Options Help gt M P 9 6 whimi active Stop application Then click on Download to download it to the controller Download ISaGRAF WHI 05 Debugger File Control Tools Options Help application Application symbols Cancel Gett
19. C Power the Wincon up 10 2 2 Step 2 Make Sure Whmi exe Installed A Please set a fixed IP address to the Wincon 8037 8337 8737 No more DHCP B Please refer to section 10 1 to set whmi exe to be first auto execute program amp then reboot your Wincon 10 2 3 Step 3 Setting The Web Options 57 Microsoft WordPad a 1 Internet WinCon 8000 Windows CE net whmi exe is running click on it 2 Getting Started Wincon 8037 8337 8737 The Web Ver 1 0 2005 by ICP DAS 115 Check on Enable Web and then click on Setting Please check on Enable Account Security then click on Edit to set username password Then remember to click on OK Note If Enable Account Security is not check any user can easily get access to your Wincon through the Internet Explorer Wincon Web HMI Driver Setting sei Ophions gamers ia Low set up advanced security User Mame Settings 3 Password Priority Middle User Name Password Priority High N User Mame uper Password 10 2 4 Step 4 Download And Run EVC Demo Program Please download EVC Demo program form the W 8x37 CD ROM napdos isagraf wincon non_isagraf_demo EVC whmi_c01 c armv4rel whmi_c01 exe to Wincon Compact Flash lSaGRAF then run it Getting Started Wincon
20. Read Write When finished all setting press Ctrl F4 to close all inside windows and save all files Project Setting Select Project gt Settings to open Project Settings window Click the tab of Runtime Desktop In the Startup screen edit box fill in MainPage scr then click OK to close this window File Edit View Insert Project Tools Window Help DI ao Identification Options Runtime Desktop Web Preferences Run Application Stop Application 1 Titlebar Application Name C Execution Environment Minimize Box Active area indication NEUSS m Mi Maximize Eo O Show Object Edge wy Logon D Project Demo Close Box SERE 7 3 M Menu Options O Virtual Keyboard MAIN DRIVER SHEET Bl Danza Border TCPAP M Status Line L o tartup screen Enable ToolTips Hide Taskbar Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 106 Download and run the project Select Project gt Execution Environment to open Execution Environment window On the Target tab select Network IP then type W 8x36 s correct IP address and click Connect File Edit View Project Tools Window Help Workspace at Proj
21. 1 0 Apr 2005 by ICP DAS 95 Chapter 7 EVC Program Running In Wincon Access To ISaGRAF Variables User can write his EVC 4 0 application to access to the ISaGRAF variables running at the same Wincon by using the below functions for Read Write boolean word long and float value The include file and library at design time are WinConAgent h and Quicker lib Wincon 8x37 CD ROM napdos isagraf wincon EVC _LIB The DLL at run time is the Quicker dll which is in Wincon Compact Flash lSaGRAF Please copy and run your EVC application at Wincon Compact Flash ISaGRAF Set boolean value unsigned char UserSetCoil unsigned short iUserAddress unsigned char iStatus iUserAddress 1 to 8191 Variable s network address in ISaGRAF project iStatus 0 set boolean to False 1 set boolean to True for ex UserSetCoil 100 1 set boolean at network addr 100 as True Set word or float or long value unsigned char UserSetReg unsigned short iUserAddress long iStatus unsigned char iDT ype iUserAddress 1 to 8191 Variable s network address in ISaGRAF project iStatus A pointer to a long type which stores the data to set iIDType 0 type is word 1 data type is float 2 data type is long use long for Timer value in ISaGRAF unit is ms for ex float float val long word val long val long temp val set word val 32768 to 32767 to ISaGRAF variable with network address 1 word val 20000 temp val long am
22. 177888E 1278264E F 2 1 2 One Quick way to avoid the hold problem on windows 2000 You may create a short cut for the ISaGRAF project manager And then check on run in separate memory space option in the shortcut property Projects Properties General Shortcut Security Projects Target type Application Target location EXE Target CISAWINSEXENWSEMTEDT EXE Runin separate memory space y Run as different user a a UD S Start in 00000 Shortcut key None Run Normal window Comment Find Target Change Icon Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 18 2 2 Step 2 Installing The ICP DAS Utilities For ISaGRAF The ICP DAS Utilities For IS SaGRAF consists of major items I O libraries of I 841 7 881 7 8437 8837 7188 I 7188XG amp W 8037 8337 8737 Modem Link utility Auto scan l O utility Note The ISaGRAF Workbench software program must be installed before attempting to install the ICP DAS Utilities for ISaGRAF If you have not already installed the ISaGRAF Workbench program please refer to step 1 before continuing There is a CD ROM supplied with each of the W 8037 8337 8737 controllers with the ICP DAS Utilities for ISaGRAF Please insert the CD ROM into your CD ROM drive Then run CD ROM napdos isagraf setup exe Follow the steps to install it v DAS Utilit
23. NE2000 compatible 10 BaseT Program download port Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 6 Motion control Counters Serial counter Remote D l counter High speed counter Protocols Modbus serial protocol Modbus TCP IP protocol Web HMI protocol Remote I O Modbus slave I O devices Ebus SMS Short Message Service User defined protocol Modem_Link MMICON LCD Redundant Bus 000 File Access W 8337 8737 can integrate with one 1 8091 2 or two l 8091 4 axes motion board to do motion control Counter input 100Hz max Counter value 0 to 65535 16 bit Optional serial 87K boards 1 87051 87052 87053 87054 87055 87058 87063 All remote 7000 amp 87 modules support counters 100Hz max Counter value 0 to 65535 16 bit i 8 082 100kHz max 32 bit i 8080 450kHz max 32 bit COM2 default for connecting ISaGRAF PC HMI amp MMI panels Ethernet port for connecting ISaGRAF amp PC HMI Ethernet port for connecting PC running Internet Explorer supports l 7000 I O modules amp I 87K base serial boards as remote I O Max 255 I O modules for one controller 2 or COM3 supports Modbus master protocol to connect to other Modbus slave I O devices A software mechanism built in Ethernet port to exchange data between ICP DAS s ISaGRAF Ethernet controllers 2 or if found in one extra l
24. amp EVC or VS net it is also possible Please refer to Chapter 6 or Chapter 7 2 1 Step 1 Installing The ISaGRAF Software The user has to install two kinds of software before he can program on the W 8037 8337 87 37 controller system They are A ISaGRAF Workbench amp B ICP DAS Utilities For ISaGRAF User has to purchase at least one pcs of ISaGRAF Ver 3 4x ISaGRAF 256 E or ISaGRAF 256 C to install on his PC to edit download monitor amp debug the controller system Item B is free and it is burned inside the CD ROM which is delivered with the W 8037 8337 8737 Operating system Requirements One of the following computer operating systems must be installed on the target computer system before you can install the ISaGRAF Workbench software program e Windows 95 e Windows 98 e Windows NT Version 3 51 or Windows NT Version 4 0 e Windows 2000 Or Windows XP Steps To Installing The ISaGRAF Workbench Insert the ISaGRAF Workbench CD into your CD ROM drive If your computer does not have the auto start feature active use the Windows Explorer and go to the CD ROM drive where the Workbench CD is installed then double click on the install bat file listed on the ISaGRAF CD If the install bat file is not found on your ISaGRAF CD then double click on the ISaGRAF exe file to start the installation process Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 15 ISaGRAF 3 41 E
25. of word data base to send to the IE on PC 2004 End Address No of word data base 2005 starting Address No of float data base to send to the IE on PC 2006 End Address No of float data base 2007 starting Address No of long data base to send to the IE on PC 2008 End Address No of long data base Please refer to section 6 6 for the VB NET function to access to Web HMI UserSetCoil UserGetCoil to access to Web boolean data UserSetReg short amp UserGetReg short to access to Web word data UserSetReg float amp UserGetReg float to access to Web float data UserSetReg long amp UserGetReg long to access to Web long integer data Note VB net amp C NET can not access to string data of the Web HMI Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 123 Appendix A Hardware System amp Setting A 1 Applying Correct Power Supply Please apply a power supply between 10V to 30V gt 25W or higher is better USB Drive or USB Mouse Keyboard PS2 Mouse POWER SUPPLY LOY S0 YD VGA Monitor Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 124 A 2 Modify The NET ID amp Modbus RTU Port Setting User set wincon 8037 8337 8737 s Net ID Slave Number to a No from 1 to 255 The default Modbus RTU port is COM2 User may set it to others depends on its application Win
26. window will appear To start programming our LD program click on Edit from the main menu bar then click on Insert Rung Insert Rung means to insert a basic LD rung just above the current position B x File Edit Tools Options Help Unde che 4 Fd Cut z Paste top Paste special Delete De 4 Insert rung pos Enter ES mT md Or you may just simply click on the F2 Contact On The Left icon and the following will appear within the Quick LD Program window zug ISaGEAF Quick LD Program File Edit Tools Options Help Aa PH JHE Fd 4H 29 8 Fo tPF We are going to write the first line of the LD1 program Move the cursor to the first contact and then click on cut to delete it File Edit Tools Optons Help Aa eed Pr 27 Move the cursor to the first contact and then click on cut to delete it Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 38 Click on the F6 Block on the left icon and you will create a block on the left of the coil Sie ISaGRAF EX AMPLEL LD1 Quick LD Program File Edit Tool Optons Help mess HE Fd Gel FS
27. you have successfully created our example program ISaGRAF EXAMPLE Programs MDEE File Make Project Tool Debug Help ide error detected Do vau want to exit the Code Generator now Continue lf errors are detected during the compilation process just click on the CONTINUE button to review the error messages Return to the Project Editor and correct the errors as outlined in the error message window TIME TO SIMULATE THE PROJECT If the compilation is Ok you may simulate the project on the PC to see how the program works without the controller To do that click on the Simulate icon SaGRAF EXAMPLEI Programs imi xl File Make Project Tool Debug Help JE Begin Begin Ladder Diagram When you click on the Simulate icon three windows will appear The windows are the ISaGRAF Debugger the ISaGRAF Debug Programs and the I O Simulator windows If the I O variable names you have created DO NOT appear in the I O simulator window just click on the Options and Variable Names selection and the variable names you have created will now appear next to each of the I O s in the simulator window Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 45 In the ISaGRAF Debug Program window double click on the LD1 where the cursor below is positi
28. 1 0 Apr 2005 by ICP DAS 121 Set string value to Web HMI unsigned char UserSetReg Str unsigned short iUserAddress char iStatus iUserAddress 1 to 1024 Web string data base iStatus A pointer to a char which stores the string to set Max string len is 255 bytes Get string value from Web HMI unsigned char UserGetReg Str unsigned short iUserAddress char iStatus iUserAddress 1 to 1024 Web HMI s string data base iStatus A pointer to a char which will store the string returned Max string len is 255 bytes For example char strO 256 str1 256 long temp val unsigned char flag strO please set starting amp ending Addr No of each type at the beginning of your C program set string s starting addr to 201 temp val 201 UserSetReg 2009 amp temp val 0 set strings ending addr to 202 temp val 202 UserSetReg 2010 amp temp val 0 UserGetCoil 2201 amp flag strO get information flag of addr 201 UserSetCoil 2201 0 clear the information flag of Address 201 get string of network address 201 UserGetReg Str 201 strO Set string to network address 202 UserSetReg Str 202 str1 Note 1 The Address No for each type must not conflict with each other For ex below assignment is OK Boolean 1 to 100 Word 101 to 120 Float 121 to 130 long 131 to 132 String 201 to 202 However Boolean 1 to 100 Word 101 to 120 Float 121 to 130 long 125
29. Any setting changed could be pre viewd View Registry Change all settings to factory default settings Recover to Factory Settings Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 135 3 Download isawincon exe rs whmi exe mscorlib dll QuickerNet dll Quicker dll amp license bin if your Wincon 1 W 8031 8331 8731 or W 8039 8339 8739 from your PC to your Wincon controller Then please copy them to Compact FlashMSaGRAFV amp then re cycle your wincon s power You may use below methods to download these files A Using ftp Wincon Please run Start Run then type in services load PC Please open browser and then type in ftp lt IP address gt for ex ftp 192 168 2 17 copy all of them amp past it B Using Pen Drive Please isawincon exe rs whmi exe mscorlib dll QuickerNet dll Quicker dll amp license bin to Compact Flash lISaGRAF Remember to re cycle your Wincon s power Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 136 Appendix C Dimension C 1 Wincon 8037 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 137 C 2 Wincon 8337 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 138 C 3 Wincon 8737 IL IL del Getting Started Wincon 8037 8337 8737 The Web
30. Ethernet Two options IEC61131 3 standard Languages LD ST FBD SFC IL amp FC Microsoft EVC 4 0 or VS NET 2003 VB NET C net Supports Web HMI function PC running Internet Explorer can access to the Wincon 8037 8337 8737 via Local Ethernet or Internet monitoring and Control Three Level username and password protection PC running Internet Explorer amp dial modem to the internet can also access to the Wincon 8037 8337 8737 monitoring and Control 10 to 30VDC unregulated 25W when slots are empty Built in power protection amp network protection circuit 25 C to 75 C 30 C to 85 C 5 to 95 non condensed Intel Strong ARM CPU 206MHz or compatible Built in Watchdog Timer Year 2000 compliance Gives hour minute sec date of week date of month month amp year 64Mbytes 32Mbytes for OS image One Compact Flash slot CF memory card is 128Mbytes or more 16Kbytes W 8037 No IO slot W 8337 slots W 8737 7 slots Accept I 8K parallel amp 1 87 serial I O boards 1 VGA port 320x240x16 to 1024 768 16 default is 640x480x16 2 PS 2 ports keyboard and mouse 1 USB 1 1 Host port for USB drive or USB mouse 1 reset button amp 1 power Led 64 bit hardware unique serial number From 1 to 255 set by software Internal use for I 87K serial IO boards for W 8337 amp W 8737 W 8037 has no COM1 RS232 full modem signals Speed 115200 bps max RS 485 Speed 115200 bps max D D 10M bps
31. False and set Address 100 s float value to 1 234 or any float value and set Address 1009 s word value to 456 or any word value then the boolean value in Address 2001 amp 2002 amp 2100 amp 3009 will set to 1 by the Web HMI This means IE has given writing command to address 1 amp 2 amp 100 amp 1009 User s EVC program can get the information by using UserGetCoil to get boolean value in address 2001 to 3024 to know if IE on the PC want to set value to the controller Please be very careful to call UserSetCoil to clear it set to O to the related Address in Address 2001 to 3024 if your C program has got the information The Web HMI driver will set flag value to 1 next time when IE post writing command Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 118 Get boolean value from Web HMI unsigned char UserGetCoil unsigned short iUserAddress unsigned char iStatus iUserAddress 1 to 1024 Web boolean data base 2001 to 3024 indicates if Internet Explorer post writing command to W 8x37 iStatus O boolean is False 1 boolean is True for ex unsigned char bVal flag bVal UserGetCoil 2005 amp flag bVal get information flag of addr 5 UserGetCoil 5 amp bVal get boolean value at network addr 5 UserSetCoil 2005 0 clear the information flag of Address 5 Set word or float or long value to Web HMI unsigned char UserSetReg unsigned short iUserAdd
32. ISaGRAF EXAMPLEILDI G wckLLDP E E B x File Edit Tools Options Help me lt Pr F3 3HE Fd 4H Hi 29 Fd Fo tPF Sr C5 select vanable C function Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 40 Move your cursor to the coil Double click on it select Boolean and then double click on variable name dig SaGRAF EXAMPLELLDI Quick LD P EN iol x File Edit Tools Options Help m ei FO F3 3HE Fa F5 40H HE F7 3H tie 7 7 Integer H Timer Message Program C functor bd Input 1 in the 1 90 board Ez Input 2 in the I BU 7 board DUI TU File Edit Tools Options Help Xx GR Bd a 2 FONE F5 40H HE F7 3H Fa ta Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 41 4 1 8 Connecting The I O We have defined variables name of OUT0O1 2 as output attribution while K1 amp K2 as input attribution in step 4 1 4 These input amp output variables should be map to physical I O in the controller before they can work To do that click on I O connection to get into the I O connection window Double cli
33. Library Boards 8aGRAF WHMI_OS5 IO connection File Edit Tools Options Help a Lo E una a gm i 8077 IP 1 10 0 0 2 018 no IP 2 10 0 0 4 008 m mum m 4 IP 5 4 IP B m IP 7 NJA su IP 8 e gm vip 7 Es ip ns gt 8 1 Please re compile your ISaGRAF project and download it to the controller if you have modified the IO connection Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 87 Chapter 6 VB net Program Running In Wincon Access To ISaGRAF Variables This chapter lists the procedure for creating the first demo program by Visual Studio NET development tool The ISaGRAF driver of the Wincon 8037 8337 8 73 supports QuickerNet dll amp Web HMI since Rev of 3 12 6 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 of Visual otudio NET and the Smart Device Extensions SDE development tool Furthermore you are trying to develop the user program for applied in Wincon 8000 controller target device The following steps illustrate in detail for the developing process 1 In the first users need to open Microsoft Visual Studio NET 2003 soft
34. ROM Sentinel5382 setup exe for ISaGRAF 80 or Sentinel setup exe for other ISaGRAF version and then reset the PC again Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 16 Important Notice For Window NT Users If your computer is using the Windows NT operating system you will need to add one line to the file in the ISaGRAF Workbench EXE subdirectory C isawin exe isa ini You can use any ASCII based text editor such as Notepad or UltraEdit32 to open the isa ini file Locate the WS001 header in the isa ini initialization file it should be at the top of the file Anywhere within the WS001 header portion of the isa ini initialization file add the entry shown below within the WS001 header WS001 NT 1 Ilsa C ISAWIN IlsaExe C ISAWIN EXE Group Samples lsaApl c isawin smp lsaTmp C ISAWIN TMP 2 1 1 When closing my ISaGRAF window on windows 2000 it holds Why This problem usually happens on the windows 2000 When you close some ISaGRAF windows by clicking on the X it holds about 20 to 40 seconds No response saGRAF WHMI 5 Programs File Make Project Toole Debug Optons Help E m8 5 J D RED m X 26 de 850 Begin For String amp Integer amp Float sequential eS mode 11403 eS child blink Ec child Fight to Lett gc child3 Left to Right Begin LD1 Ladder Diagram This hold beha
35. Ver 1 0 Apr 2005 by ICP DAS 20 Chapter 3 Setting Up A Web HMI Demo This Chapter lists steps to set up a Web HMI Demo in the Wincon 8037 8337 8737 3 1 Web Demo List The Web page location Wincon 8xx7 CD ROM napdos isagraf wincon WebHMI_ Demo The respective ISaGRAF project location Wincon 8xx CD ROM napdos isagraf wincon demo New demo will be found at http www icpdas com products PAC i 8000 isagraf htm Demo list Description board whmi 03 Write Long float amp Timer value No I O board whmi 04 Read Write controller s String No I O board whmi 05 Multi Pages demo slot 1 l 8077 slot 1 1 8077 menu is the Left whmi 05a Multi Pages demo slot 1 1 8077 slot 1 8077 Page menu is on the Top whmi 06 demo scaling is in ISaGRAF slot 2 87024 slot 3 8017H whmi 07 demo scaling is in PC slot 2 87024 slot 3 8017H whmi 08 download controller s file to PC whmi 09 up an alarm window on PC slot 1 1 8077 whmi 10 Entering data to the controller and then store slot 1 1 8077 them into file Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 21 3 2 Steps To Set Up A Web HMI Demo 3 2 1 Step 1 Setup The Hardware A Please have a Wincon 8337 or Wincon 8737 amp plug one l 8077 board in its slot 1 If you don t have the 8077 8 IN amp 8 OUT simulation board please follow the same steps as b
36. Web HMI pages 53 2 2 DUN GINS d steel e itte i opu ceo 54 4 4 3 Step 3 Adding Control Code To The Main htm seen 59 4 4 4 Step 4 Download Web HMI Pages To The Controller esse 66 CHAPTERS WEB HMLEBASIG 2 lt uo aede 69 od BASIC FORTHE WEBHM 69 S EOGINHIM ash ted 70 MENO 71 IK MAIN Co tno oua ea 73 SUNOS MGM MIM EX caseo ea ES 73 5 4 2 More About The refresh data Function And Dynamic 79 0 4 5 POSE Data TOINE CONTOU T aa E S 80 Joe MULTEEAG LT 84 DP E OAE E E E ta SD SE 94 2 5 2 One Puaee To One Another 85 102 WEB SECURITY Ducem pete 96 CHAPTER 6 VB NET PROGRAM RUNNING IN WINCON ACCESS TO ISAGRAF VARIABLES 88 88 6 2 ADD PROJECT REFERENCE FOR AN 89 6 2 BUILDING AN APPLICA TION PROGRAM
37. drivers and manuals can be found at http www icpdas com products PAC i 8000 isagraf htm Technical Service Please contact local agent or email problem report to service icpdas com FAQ on the Web http www icpdas com fag isagraf htm New information can be found at www icpdas com Copyright Apr 2005 by ICP DAS CO LTD All Rights Reserved Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 1 Table of Contents GETTING STARTED W 3057 833 7 8 LI 1 THE WEB PAG s 1 Po E 1 Trademark Cori 1 nS ON eati RIDE OM 1 NCTE E AE 1 VEU EI TET BOYS QUI 1 TABLEOFCONTENIS D 2 REFERENCE GUIDE itti EE HU de eee epe epe ec dete ope 5 SPECIFICATIONS WINCON 8057 8337 8737 aic beseesdssexeeekeeseeueta 6 CHAPTER I TYPICAL APPLICA TION 8 1 1 WINCON WEB HMI ON THE LOCAL ETHERNET 8 12 WINCON W EB EDVIEON EHE INTERNE iioii ceto 9 1 3 DOWNLOAD DATA FILE FROM THE WINCON 2 00 10 1 4 PLC WITH LARGE STORAGE MEMORY ccccccccccceeeeeeeeeeeeesetessscceaaaeecceeeeeeseeeeeeeeeettesaeeeaaaaees
38. get long val function For example get long val 11 get long 13 get long val 15 get long val long integer value the ISaGRAF 2147483648 to 2147483647 Note The long integer amp timer amp float variable s Network Address No must occupy 2 No in the ISaGRAF project refer to section 4 2 of User s Manual of ISaGRAF Embedded Controllers or the CD ROM napdos isagraf wincon english_manu User Manual 8xx7 pdf That means if you assign a Network Address No 11 to a Real type variable or Timer or integer will have 32 bit value larger than 3276 or smaller than 32768 the next No 12 should not assigned to any other variable in the ISaGRAF project However you may assign No 13 to one another variable Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 75 5 4 2 1 Displaying Dynamic Boolean Data Demo example whmi 02 amp whmi 05 section 3 1 Let s look back to the refresh data function If user want to display the dynamic boolean value the below code can be used LM The action of the image object B1 is defined here function refresh data B1 src J img circle blue boolean val 1 jpg if boolean val 1 71 it display image B1 as img circle blue1 jpg if boolean val 1 0 it display image B1 as img circle blueO jpg body onLoad init gt div style position absolute width 214px height 53px z index 2 le
39. get long val 15 If data is word please use word F17 innerText float val 17 If data is timer please use timer If data is string please use string The layout or location of the text object L15 amp F17 are defined bod Load init gt 79 pem oar here by the lt div lt div gt tags div style position absolute width 195px height 25px z index 2 left 45px top 52px gt L15 b id L15 gt xxxx lt b gt lt div gt div style position absolute width 196px height 29px z index 3 left 45px top 82px gt F17 lt b id F17 gt xxxx lt b gt lt div gt div style position absolute left 47px top 131px width 204px height 60px gt lt form name form1 method post action main dll gt lt input name BEGIN type hidden value gt text input L15 amp F17 lt input name L15 type text value Enter long val L15 gt inside the form input name F17 type text value Enter float val F17 gt if data is timer please input name END type hidden value gt use L W for lt form gt word 5 for string lt div gt div style position absolute width 74px height 31px left 234px top 150px gt lt input type button style cursor hand onClick return Check form1 value Enter gt lt div gt cursor hand will display the When mouse click on this button it calls Check to pos
40. gt lt p gt amp nbsp lt div gt Please insert name B1 just after the lt img Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 60 OUTO2 Area Layer11 to Layer13 div style position absolute width 100px height 100px z index 5 left 242px top 164px id layer1 1 gt div style position absolute width 71px height 31px z index 1 left 4px top 8px id layer12 gt OUT02 lt div gt lt div style position absolute width 61px height 48px z index 2 left 5px top 45px id layer13 gt lt img style cursor hand namez B2 onclick ON_OFF form_B2 form B2 B2 boolean val 2 border 0 src img cmd0 jpg width 50 height 40 gt lt div gt lt form name form_B2 method post action main dll gt lt input name BEGIN type hidden gt lt input namez B2 type hidden value 0 gt lt input name END type hidden gt lt form gt Please insert Style cursor hand 2 onclick ON OFF form B2 form B2 B2 lt p gt amp nbsp lt div gt a boolean val 2 just after the img tag Please insert form name form B2 method post action main dll gt input name BEGIN type hidden gt lt input name B2 type hidden value 0 gt lt input name END type hidden lt form gt Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 61 T1 Area Layer14 to Lay
41. htm lt A style cursor hand page main htm 278 11H lt A gt lt br gt lt br gt Switch page to main htm lt Goto kitchen htm gt lt A style cursor hand onClick 2 goto page kitchen htm Kitchen A br br lt br gt Switch page to kitchen htm Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 85 cursor hand will display the 5 6 Web Security There are some ways user get access to the Wincon 8037 8337 873 via its ethernet port 1 Using Modbus TCP protocol at port No 502 ISaGRAF and other HMI can do this 2 Using ftp for example ftp 10 0 0 103 on the Internet Explorer 3 Using telent for example keyin telnet 10 0 0 103 in the command window 4 Using the Web server The Web HMI does For safety recommand to disable item 2 and 3 at run time Wincon ISaGRAF Driver Setting Web about Options Enable Web HMI Check it to disable To set up advanced security click on Settings Settings Setting About Account Modbus List IP Setting Security Settings Setting user name amp FTF Serveice Disable Telnet Serveice Low password here ser Mame To set up advanced security click on Settings Password Priority Middle farne Password Priority High Use
42. line is necessary for menu htm main htm amp other multi pages SCRIPT LANGUAGE JavaScript src msg wincon js gt lt SCRIPT gt SCRIPT LANGUAGE JavaScript gt show scroll word 200 Hello Welcome to the Web HMI Sample function refresh data Calling show scroll world will display a moving word at the i bottom of the Internet Explorer Here 200 means 200 ms You may make it slower for example using 500 lt SCRIPT gt refresh_data is called when the Internet Explorer has received lt head gt the requested data from the controller It is called in the period about 1 25 to 5 seconds depends on the communication quality init is the entry pint of the main htm amp other multi pages font color blue size 4 gt style position absolute width 353px height 24px z index 1 left 73px top 12px E 1 gt Hello amp div gt lt body onLoad init gt lt font gt lt body gt A layout object is starting with lt div amp ending at lt div gt tags lt html gt Here only show a message Hello Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 73 You may replace the main htm in the Wincon 8x37 CD ROM napdos isagraf wincon WebHMI_ Demo sample to the above main htm amp download it to the controller refer to section 4 4 4 You will see the below window when you login successfully Welcome Micros
43. long word val long val 2 long temp val long long pt please set starting amp ending Addr No of each type at the beginning of your C program set word starting addr To 1 temp val 1 UserSetReg 2003 amp temp val 0 set word ending addr To 10 temp val 10 UserSetReg 2004 amp temp val 0 set floats starting addr To 11 temp val 11 UserSetReg 2005 amp temp val 0 set floats ending addr To 20 temp val 20 UserSetReg 2006 amp temp val 0 set long s starting addr To 21 temp val 21 UserSetReg 2007 amp temp val 0 set long s ending addr To 30 temp val 30 UserSetReg 2008 amp temp val 0 set word val 32768 to 32767 to network address 1 word val 20000 long pt long amp word val UserSetReg 1 long pt 0 setfloat val to network address 11 float val 1 2345 long pt long amp float val UserSetReg 11 long pt 1 setlong val to network address 21 long val 0 12345678 long pt long amp long val 0 UserSetReg 21 long pt 2 setlong val to network address 23 long val 1 4567 long pt long amp long val 1 UserSetReg 23 long pt 2 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 120 Get word or float or long value from Web HMI unsigned char UserGetReg unsigned short iUserAddress long iStatus unsigned char iDType iUserAddress 1
44. port comapern apen return Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS ar f rread float value from array binzeng z s Complement to engin Format 109 On line help of ICP DAS add on I O boards amp I O complex equipments ISaGEAF WDEMO 03 Programs EE ini xj File Make Project Tools Debug Options Help 2 msn Begin get time SYSDAT_R SY SINT vv 5 R SYSTIME vv cal time calculate time v 4 VO connection See control output ow lsaGRaAk WDEMQ 03 10 connection File Edit Toole Options Help cor _ 68 8 Technical nate i 90 ru d 1 i_ On line help of ISaGRAF languages A ISaGRAF Project Management P 3 4 10 X File Edit Project Tools Options Help DE fh We Ters emite 9 creation Language reference HMA AH SC 9 ISaGRAF Language reference B Project architecture Common objects SFC language FC language language ST langua L language mw Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 110 9 2 Installing The ISaGRAF Programming Examples The ISaGRAF programming examples are installed on the same CD ROM that you receive with the Wincon controller system You will find the pro
45. to 1024 Web analog data base iStatus A pointer to a long type which will store the data returned iIDType 0 type is word for ex Getting Started 1 data type is float 2 data type is long float float val long word val long val 2 long ret val unsigned char flag float val flag word val flag long val 2 get word val 32768 to 32767 of network address 1 UserGetCoil 2001 amp flag word val get information flag of addr 1 UserSetCoil 2001 0 clear the information flag of Address 1 UserGetReg 1 amp ret val 0 if ret val 0 amp amp ret val 32767 word val ret val else word val ret val OxFFFFO0000 get float value of network address 11 UserGetCoil 2011 amp flag float val get information flag of addr 11 UserSetCoil 2011 0 clear the information flag of Address 11 UserGetReg 11 amp ret val 1 float val float amp ret val get long value of network address 21 UserGetCoil 2021 amp flag long val 0 get information flag of addr 21 UserSetCoil 2021 0 clear the information flag of Address 21 UserGetReg 21 amp ret val 2 long val 0 ret val get long value of network address 23 UserGetCoil 2023 amp flag long val 1 get information flag of addr 23 UserSetCoil 2023 0 clear the information flag of Address 23 UserGetReg 23 amp ret val 2 long val 1 ret val Wincon 8037 8337 8737 The Web PAC Ver
46. to your hard drive and rename it for example rename it as example1 The basic Web HMI files includes 2 folders and 3 DLL files and 4 htm files as below Jimg default image files jpg bmp gif msg default message files wincon js amp xxerror htm whmi filter dll three DLL files login dll main dll index htm first default page login htm the Web HMI welcome page menu htm the page menu page normally on the left on the Internet Explorer main htm first page when successfully login User may put his own image files into the folder named as user img And put user defined javascript file or css file into the folder named as user msg Other folder name is not acceptable by the Wincon Web HMI The index htm file is the default entry page of the web server User should not modify it The index htm re directs to the login htm file in 1 to 2 second when someone visits the Wincon 8x3 via the Internet Explorer User may modify the login htm menu htm amp main htm to fit his own need We will only modify the main htm in this example Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 53 4 4 2 Step 2 Building The Main htm Please run the Microsoft Office FrontPage 2003 or higher version and open the main htm rosott FrontPage D Chun D User Manual Wintlons000 Web HiiDdemowxemplel unam him
47. use the same method as above to access the Archive Projects window click on the name of the project you want to restore from the Workbench window then click on the name of the backed up file from the Archive window then click on the Restore button The ISaGRAF project will now be restored to the sub directory you designated Archive Projects E 3 xj Backup Restore Close Help Workbench Archive Compress You can now open edit and download the restored ISaGRAF project file 3 2 4 1 Steps To Download a ISaGRAF Project To The Controller Double click on the whmi 05 to get into the project Then click on Link setup 38 ISaGE AF Project Management E File Edit Project Tool Optone Help BS t 0 2 fo whmi 02 Web example 2 DI amp DO demo slot 1 1 8077 EH whmi 03 Web HMI example 3 RA Long float amp Timer value Mo board Em whmi 04 Web example 4 RAW controller s String Mo board Ki ws Web example 5 Multi Pages demo slot 1 l 5077 Menu is an Eg whmi Web example 54 Multi Pages demo slot 1 I 8077 Menu is on tr whmi 05 xi File Make Project Tool Debug Optons Help Date ofcn HSU Amt REB Author ERE For String 5 Integer 8 Float Begin HH LDT For system time amp DIO Sequential PS stcl modei
48. width 122px height 38px z index 4 left 171px top 95px id layer2 gt form name form1 action login dll method post gt lt input type hidden gt lt input type submit name Submit value Enter style cursor hand onClick return validate this form gt lt form gt lt div gt You may modify Enter to your own word For example 2 This may require to modify the related charset lt body gt at the beginning of this page lt To ensure no cache work gt lt head gt lt meta http equiv pragma content no cache gt lt head gt This code is only for the Login htm please do not apply to other pages For example the menu htm amp main htm amp other htm pages That s all the login htm need You can insert more images or text to it Only remember to keep its basic code 5 3 menu htm Note If you want to know more about the multi page application there are two demos in the Wincon 8x37 CD ROM napdos isagraf wincon WebHMI _ 05 amp demo 05a Demo 05 place its page menu on the left while Demo 05a on the top Menu htm defines the Page menu of the Web HMI especially for the multi page application The page menu can place only on the left or on the top Welcome Microsoft Intemet Explorer P Dl x IA e t H QO2 2 Que Genet Quae 3 5
49. 1 This line is necessary for menu htm Please apply your charset here 110 For example a English UTF 8 function refresh_data pag Chinese gb2312 Traditional Chinese big5 if run_at_pc 1 return or other language lt SCRIPT gt lt head gt body onload start1 gt start1 is the entry point of the menu htm Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 72 lt Logout button gt form name form logout method post action login dll gt input style cursor hand name CMD type submit value Logout onClick return logout this form gt lt form gt lt body gt form_logout is for the logout button lt html gt Note lf you want to Know more about the multi page application there are two demos in the Wincon 8x37 CD ROM napdos isagraf wincon WebHMI_ 05 amp demo 05a Demo 05 place its page menu on the left while Demo 05a on the top 5 4 main htm 5 4 1 A Simple Main htm Example Before going further in the main htm first take a look at a simple main htm example This example only display Hello message when successfully login nothing else html Please apply your charset here For example English UTF 8 head Chinese gb2312 Traditional Chinese big5 or other language title Title1 title meta http equiv Content Type content text html charset UTF 8 gt This
50. 10 LS MUDIISEIVIE Se AE MOU EP S UL Sh ae s 11 LOSM eal D MN 11 1 7 DATA EXCHANGE THROUGH ETHERNET amp 485 12 LS MOTION CONTRO gnc LM tate 12 1 9 MODBUS CONVERTER OF 1 7000 amp I 87K 1 1 00 0 00000000000000000000000000 13 TER 14 1 11 DOWNLOAD amp MONITORING VIA MODEM 00 nnne nennen nnn nnne een n nns 14 CHAPTER 2 SOFTWARE INSTALLATION 15 251 STEP SINS TALEING THE ISAG RAP SOFTWARE ca om eae 15 2 1 1 When closing my ISaGRAF window on windows 2000 it holds 2 22000 17 2 1 2 One Quick way to avoid the hold problem on windows 2000 sss 18 2 2 STEP 2 INSTALLING THE ICP DAS UTILITIES FOR 22 2 0 5 19 2 35 STEP 3 INSTALLING LHE WEB PAGE EDITOR x e 20 CHAPTER 3 SETTING UP A WEB HMI DEMYO eee eee eee eee eee eee 21 2 WEB DEMO IST eet 21 327 SERS TOSET UFA WEB HMIEDEM O E 22 SLT MOD S Senipit edet cedet ttt eite Dudes si euius 22 3 2 2 Step 2 Make Sure The Right ISaGRAF Dri
51. 2005 by ICP DAS 79 5 4 3 Post Data To The Controller The former section 5 4 2 listing how to get and display data from the controller This section focuses on posting data to the controller in other word to control the Wincon via the Internet Explorer To set a new value to the boolean word long integer float timer and string variables in the ISaGRAF project we need form object appeared in the main htm or other multi pages A form object looks like as below method should be post action should be main dll name of this form form name form L21 method post action main dll gt input name BEGIN type hidden gt input name L21 type text size 8 value xxx gt lt input name END type hidden gt lt form gt Inside the form the first lt input gt must be named as BEGIN case sensitive and type as hidden Inside the form the last lt input gt All the other lt gt appeared between must be named as END case BEGIN amp END are the data to post to the sensitive and type as hidden controller The lt gt name to control the Wincon s data must follow below format The number follows behind the first letter should be in the range of 1 to 1024 This number point to the variable name in the ISaGRAF project with the same Modbus Network Address No point to the ISaGRAF boolean data for ex B5 B109 poi
52. 37 8837 Wincon 8037 8337 8737 controller systems it is the responsibility of the programmer to properly select the correct Compiler Options You MUST select the ISA86M TIC Code For Intel option as described below To begin the compilation process first click on the MAKE option from the main menu bar and then click on Compiler Options as shown below _ SIMPLELD Programs ol x File Make Project Tools Debug Options Help Make application M de 24 Beuiir Verify Touch Application run time Options Begi Resources The Compiler Options window will now appear Make sure to select the options as shown below then press the OK button to complete the compiler option selections Compiler options n E B x Targets gt SIMULATE Workbench Simulator G elect 15 ABSH TIC code for Motorola S SAGEM TIC code for intel EEN C source code 04 _ Unselect Upload You may check on all items to make better code Optimize boolean operations uid binary decision diagrams EDD s Cancel Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 44 TIME TO COMPILE THE PROJECT Now that you have selected the proper compiler options click on the Make Application Code icon to compile the example project If there are no compiler errors detected during the compilation process CONGRATULATIONS
53. 37 can be a Modbus serial amp TCP IP converter of l 7000 I 87K series I O modules HMI SCADA Modbus TCP IP Ethernet RS485 Modbus serial RS232 7188EGD er W 8xx or 8 37 HMI SCADA Remote I O Modules Getting Started Wincon 8037 8337 8737 Web Ver 1 0 Apr 2005 by ICP DAS 13 1 10 Modbus Master COM2 RS232 or COM3 RS485 may link to other Modbus PLC or devices W 8037 8337 8737 Modbus devices Modbus devices 1 11 Download amp Monitoring Via Modem Link Modem oo odo Phone Line mmm S pu ad ISaGRAF Or VB6 program Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS Modem Station COM2 W 8037 8337 8737 A 5 Phone Line 14 Chapter 2 Software Installation Please refer to CD ROM napdos isagraf wincon english_manu user manual i 8xx7 pdf for detailed ISaGRAF English User s Manual The Wincon 8037 8337 873 supports ISaGRAF programming method amp provides Web HMI solution by default If user prefer to program Wincon 8037 8337 8737 by using Microsoft EVC 4 0 or VS net 2003 VB net amp C net and access to the Web HMI it is also possible In such a case user don t need to purchase any ISaGRAF Software ISaGRAF 256 C or ISaGRAF 256 E Please refer to Chapter 10 If user would like to program W 8x3 by using both ISaGRAF
54. 5232 W 8037 8337 8737 PC W 8x37 3 Pin D Sub COM CD 1 dino e c RAD 2 TAD 3 TAD 3 DTR 4 GAD 5 GNC 5 DSR RTS 7 CTS This section lists how to download the ISaGRAF program via 5232 cable However user may also use Ethernet cable to download prgram to the Wincon 8xx7 please refer to section 3 2 4 1 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 48 Click on the Link Setup icon in the ISaGRAF Programs window When you click on the Link Setup icon the following window will appear Please set the proper value ini x ISaGRAF EZAMPLEI Programs File Make Project Tool Debug Help Begin PC PLC link parameters Net ID of the W 8037 8337 8737 Please refer to Section xxxx Target Slave Number Cancel Communication Control Setup Click on it to set COMM s serial link parameters E E o X Baudrate Parity Bee anne No flow control The RS232 communication parameters for the target W 8037 8337 8737 controller MUST be set to the same serial communication parameters for the development For W 8xx7 controllers serial port communications the default parameters for COM2 RS232 port are Baudrate 19200 Parity none Format 8 bits 1 stop Flow control none DOWNLOADING THE EXAMPLE PROJECT Before you can download the project to the controller you must first verif
55. 7 The Web Ver 1 0 Apr 2005 by ICP DAS 29 4 1 2 Creating An ISaGRAF User s Group Click on the Select Project Group and then click on New Group then type in the name for the new user s group you wish to create and last click on OK 38 ISaGRAF Project Management File Edit Project Tools Options Help Cem t 0 Bites 2 o Hg testak Eg 15101 a t 5256 cisayvinismp c usawin test C dsawintdemao testi sawintesti i Test cWsawinwc test test sawvvintestz Location Cancel Path isawin T est 4 1 3 Creating A New ISaGRAF Project To start a new ISaGRAF project click on the Create New Project icon and then enter in the name for the new project You can then enter additional information for your project by clicking on the Edit and then Set Comment Text menu as illustrated below 38 ISaGRAF Project Management File Edit Project Tools Options Help gre HH creation EB touti gg 1500 link to T506 m Eg testak project E Eg 15101 test Mock oo ED t s256 Name CONUENTU EE M Heference demo 48 jp Author Cancel Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 30 A ISaGRAF Project Management E 3 I Gl x File Edit Project Tools Options Help 2 0 Toggl
56. 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 116 10 2 5 Step 5 Download Web Pages To The Wincon A Please copy all files in the CD ROM napdos isagraf wincon non_isagraf_demo EVC whmi_c01 whmi Wincon Compact Flash Temp HTTP WebHMI B Since the Web Pages are modified or new copied please run rs whmi exe to reset the Web server The rs whmi exe must be run every time when user has modified any file in the W 8x37 s Compact Flash TempHTTPWebHMI 27 Microsoft sort Computer WordPad Recycle Bin Internet Explorer Caw ue WinCon 8000 PDF Viewer rs whrmi exe IJ Image Viewer Fei Microsoft e des Windows CE net PowerPoint Viewer Ente E xce n i euer 10 2 6 Step 6 Show Time Please run Internet Explorer Rev 6 0 or higher key in the IP address of your W 8037 8337 8737 For example 61 218 42 10 or http 61 218 42 10 Login Microsoft Internet Explorer E EO fem FRA CAD CACO RAH D at Gigs Jre 0 5 2 45 ur dB 7 61 218 42 10 Morton AntiVirus Gl _ J BAe Er o Hotmail Qh Messenger m x Wincon The Web Please click on Enter to login Enter oe EE d Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 117 10 3 EVC Function To Access To The Web HMI User can write his EVC 4 0 a
57. 8112 board can link to a GSM modem to support SMS User can request data or control the controller by cellular phone The controller can also send data amp alarm to user s cell phone Optional GSM modem M1206 GSM 900 1800 MHz User can write his own protocol applied at COM2 COM3 amp COMS5 to if multi serial port boards are plugged Supports PC remotely download amp monitor 8037 8337 8737 through a normal modem link to COM2 2 supports ICP DAS s MMICON The MMICON is featured with a 240 x 64 dot LCD and a 4 x 4 Keyboard It can display picture string integer float and input a character string integer and float Two ISaGRAF controllers can link to remote l 7000 amp I 87K I O modules at the same time Only one controller is active to control these remote I Os If one is dead the other one will take over the control of remote I Os The Compact Flash memory can be used for storing run time data or any controller setting The size depends on the memory size of the CF card default is 128Mbytes Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 7 Chapter 1 Typical Application 1 1 Wincon Web HMI On The Local Ethernet Welcome Microsoft Intemet Explorer BRO REO HAO TAD BAD er H o Q d Qss usar 5 30a FEO 1000109 Nonon AntiVirus EJ fern This is a Web HMI sample pag
58. BEGIN type hidden value gt A button to call ON input name B2 type hidden value 1 gt First parameter is the name of lt input name END type hidden value gt the form Here is form B2 lt form gt The second is the name of the lt div gt Name of lt input gt inside the form Here is B2 Because it is inside form B2 then we must lt gt inside the form is form B2 B2 use the name of form B2 B2 to identify it div style position absolute left 85px top 166px width 47px height 31px gt input type button value OFF style cursor hand onClickz OFF form B2 form B2 B2 lt div gt a A button to call OFF lt body gt First parameter is the name of the form Here is form B2 The second is the name of the lt input gt inside the form Here is form B2 B2 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 82 5 4 3 2 Post Word amp Long amp Float amp Timer amp String Value to The Controller function Check form obj Check is used for posting any form flag confirm Are you sure if flag if GetUserlD form_obj false return false form obj submit return true Demo example else whmi 03 amp whmi 04 amp whmi 05 amp whmi 06 amp Whmi 07 section 3 1 return false L function refresh data Display dynamic value here L15 innerText
59. BaD enn layer2 Kl HEUD AH Web C D S3 BASIB GR 37 4 Ba dA 1 cesse Times New Roman First Click inside the Layer2 and then insert Jess EE the Layer4 inside pe LII Please place Layer4 just below the Layer3 BA Biss ae m 56K bps 0 01 538x191 x 2 Getting Started Wincon 8037 8337 8737 The Web Ver 1 0 Apr 2005 by ICP DAS 55 Inside the Layer4 we are going to insert one image file to it as below The image file name is Jimg big Tcircle redO jpg Please browse to the correct folder in your hard driver Here we use in this BED EED BEO TAND HAO TAD Em rcm HAH PBL O HAS B B JLI H Times Mew Re i 7 Ha Web TLIC 9 9 Y H mum 5 an image cs ej TREE BS y MI IBY big BF cmd0 c 3 5 7 ellewljpg md jpg Bf cmd C biz jpe Efloginl c FRE D bleljpg BF big_Tequare_yellow0jpe E square Chun D greenDpg Tequere vellowljpg syuere User Manual WinConS U oveent f circle blueb jpe if square Web HMI red jpg blueljpg square demo redljpg Bf circle
60. Comm Available drivers DLL Description MISTE DBOPTOZ2 MISTIC Protocol OPTO22 Controller 2000 MITSA MITSUBISHI Protocol 2000 MITSU MITSUBISHI Protocol Senes 2000 9 Sb 5h MODBU MODBUS Protocol N T 2000 9 CE eb Sha MODPL MEDEN dr Protocol MT and Eel z MOTEC cee SIEMENS MPI Green Cable Protocol 3964A 2000 9 Selected drivers DLL Description Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 104 Click MOTCP driver then click Select and click OK to close this window Expanding file folder of Drivers and it will show a file folder named MOTCP Click right mouse button and select Insert to add a workspace of Modbus TCP When a MOTCPO001 DRV window appears fill in following data as corresponding field Workspace x v Project Demo 02 APP What does 127 0 0 1 502 1 mean 127 0 0 1 is the local host IP address It means send data to the same controller 502 _ is the Modbus TCP IP port No the last 1 is Disable the Net ID of the W 8xx7 Head Completed Head Status x hin Write Completed Write Status Mas 1X 1 is for reading Boolean data address 1 2 is for writing Boolean address 2 3X 5 is for reading short integer data 16 bit inte
61. Con 8000 Double Click on the WI Windows CE net icon on the Wincon Wincon ISaGRAF Driver monomer Configuration Setting Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 125 A 3 Setting The IP Address For The W 8x37 Please run Start Setting Control Panel on the Wincon then double click on Network and Dial up Connections Then click on LAN90001 Set your Wincon s IP address amp its Subnet Mask LANSOOO Network Compatible Adapter Settings Address An IP address can be Obtain an IP address via DHCP automatically assigned to this computer If your network does not automatically assign 192 188 2 17 IP addresses ask your network IP Address 192 108 2 1 administrator for an address Subnet Mask 255 755 0 and then type it in the space S provided Default Gateway Please run Start Programs Wincon Utility click on Save and Reboot WinCon Utility 1 OK Save Registry System Config Suto execute Version Update About WinCon Utility 1 Testing It wil take several seconds to save your settings to registry and settings you changed will take effect after system reboot and Reboot Any setting changed could be pre viewd View Registry Change all settings to factory default settings Recover to Factory Settings Change FTF default directory to Change HTTP de
62. F 256 C or ISaGRAF 256 E Please run Start Programs Wincon Utility and then modify auto execute to run Whmti exe WinCon Utility 1 OK x Save Registry System Config Auto execute Version Update Sbout WinCon Utility 1 Testing Program 1 compact FlasFAISaGR AFWisawincan exe Program 2 Program 3 At most 10 programs can For EVC or VS net solution please modify to Compact Flash lISaGRAF whmi exe Browse _ Then click on Save Setting Program 9 Program 10 Save Setting Then save Registry This step will re boot your Wincon controller Winton Utility 1 It will take several seconds to save your settings to registry and settings you changed will take effect after system Any setting changed could be pre wviewd Wiew Registry Change all settings to factory default settings Recover to Factory Settings If user would like to program W 8x37 by using both ISaGRAF amp EVC VS net it is also possible Please refer to Chapter 6 or Chapter 7 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 114 10 2 Setting Up An EVC Web HMI Demo 10 2 1 Step 1 Setup The Hardware A Please have a Wincon 8337 or Wincon 8737 amp plug one l 8077 or 8055 or l 8054 board in its slot 1 B Prepare one VGA monitor one PS2 mouse one Keyboard and one ethernet cable and then connect them to the Wincon
63. Getting Started W 8037 8337 8737 The Web PAC By ICP DAS CO LTD Apr 2005 All Rights Reserved ICP DAS CO LTD would like to congratulate you own your purchase of our Web Programmable Automation Controller Web PAC Wincon 8037 8337 8737 Legal Liability ICP DAS CO LTD assumes no liability for any and all damages that may be incurred by the user as a consequence of this product ICP DAS CO LTD reserves the right to change this manual at any time without notice ICP DAS CO LTD constantly strives to provide our customers with the most reliable and accurate information possible regarding our products However ICP DAS CO LTD assumes no responsibility for its use or for any infringements of patents or other rights of third parties resulting from its use Trademark amp Copyright Notice The names of products and name of company are used for identification purposes only and are the registered trademarks of their respective owners or companies Development Software Two options SaGRAF Ver 3 4x IEC61131 3 standard Languages LD ST FBD SFC IL amp FC or Non ISaGRAF Microsoft EVC 4 0 or VS NET 2003 VB NET C net Reference Guide SaGRAF English User s Manual CD ROM napdos isagraf wincon english_manu user manual i 8xx7 pdf ISaGRAF rH 5 fit AA AHH CD ROM napdos isagraf wincon chinese_manu chinese user manual i 8xx7 pdf CD ROM on the Internet Newly updated ISaGRAF IO libraries
64. M napdos isagraf wincon driver lt version Number For example version 3 12 is located at napdos isagraf wincon driver 3 12 Or you may download it from http www icpdas com products 8000 isagraf htm 1 If your Wincon is W 8037 8337 8737 or W 8036 8336 8736 please stop Wincon ISaGRAF Driver first However if it is W 8031 8331 8731 or W 8039 8339 8739 please goto step 2 WinCon 8000 M Windows CE net Wincon ISaGRAF Driver is running double click on it Click on End Driver to stop it F Driver Elapsed Time Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 133 2 Set up Wincon s IP Mask FTP directory amp Auto execute A Please create a folder ISaGRAF inside Compact Flash folder in your Wincon controller Then it will be Compact Flash ISaGRAF B Please run Start Setting Control Panel then double click on Network and Dial up Connections Then click on LAN90001 Set your Wincon s IP address amp its Subnet Mask LANSOOO0 Network Compatible Adapter Settings Address An address can Obtain an IP address via DHCP automatically assigned to this computer If your network does not automatically assign IP addresses ask your network IP Address administrator for an address Subnet Mask and then type it in the space provided Default Gateway 3 C Please run Star
65. NER 138 SANG SU INR TRENT 139 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 4 Reference Guide ISaGRAF English User s Manual CD ROM napdos isagraf wincon english_manu user manual i 8xx7 pdf ISaGRAF rari CD ROM napdos isagraf wincon chinese_manu chinese user manual i 8xx7 pdf Resource on the Internet Newly updated ISaGRAF IO libraries drivers and manuals can be found at http www icpdas com products PAC i 8000 isagraf htm Get sample and display trend curve on the Web HMI The Web HMI can display trend curve similar as below figure Please refer to CD ROM napdos isagraf wincon english_manu trend curve pdf 2 htip 10 0 0 103 abedefghijkimnoparstl 357924680abedefehijkimnoparet 25g 996 E Irend Curve 001 10 00 May 3 2005 May 3 2005 15 30 00 16 30 00 Getting Started Wincon 8037 8337 8737 The Web Ver 1 0 2005 by ICP DAS 5 Specifications Wincon 8037 8337 8737 Development software 1 ISaGRAF 2 non ISaGRAF Web HMI Basic security Dial Modem Power supply Power requirements Power consumption Protection General environment Operating temperature Storage temperature Humidity System CPU Watchdog timer Real time clock SDRAM FLASH Memory Compact Flash Card EEPROM I O slots VGA Port PS 2 Port USB port Reset Button amp Led Unique Serial Number NET ID Serial ports COM1 COM2 COM3
66. OM napdos isagraf wincon english_manu user manual i 8xx pdf Section 4 2 for detailed information Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 36 4 1 6 Create The LD LD1 Program ISaGRAF will run every program one time in each PLC scan cycle Programs in the begin area will run first then the Sequential area and last the End area An ISaGRAF cycle run in the way as the below scheme Scan all inputs Process Sequential area Process End area Reflash all outputs ISaGRAF Cycle Click on the Create New Program icon and the New Program window will appear Enter the Name as LD1 next click on the Language scroll button and select Quick LD Ladder Diagram and make sure the Style is set to Begin Main Program You can add any desired text to the Comment section for the LD program but it isn t required ISaGRAF EXAMPLE Programs EB inl xi File Make Project Tool Debug Options Help ES Pai a gt Em New Pro Create new program Comment Begin Ladder Diagram Language Style Fie Make Project Tool Debug Help E m 43 Zxr zee Begin Begin Ladder Diagram Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 37 4 1 7 Edit The LD1 Program When you double click on the LD1 name the Quick LD Program
67. PAC Ver 1 0 Apr 2005 by ICP DAS 139
68. Wemolexemplelunsindim BRO BH MAO BRO IAM HA BHO RQ MAU D 6 71 9 BRERA L 2 ESSN EEE main him This is a Web HMI sample page K1 K2 OK Hello Welcome to the Web HMI Sample 677 x 354 gaz EST A Gist AS 012515 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 4 4 4 Step 4 Download Web HMI Pages To The Controller The steps are similar as listed in Section 3 2 If you havn t practiced Setting Up A Web HMI Demo listed in the Chapter 3 it s better to do it once to get familiar with it First set the web options Check on Enable Web and then click on Setting Please check on Enable Account Security and then click on Edit to set username password Then remember to click on Note If Enable Account Security is not check any user can easily get access to your Wincon through the Internet Explorer Recycle Bin W Documents Microsoft I 1 WordPad Microsoft To set up advanced security click on Settings Settings Please don t Disable Ftp Service at design time because we need it to download the Web pages Windows CE net WinCon 8000 Wincon ISaGRAF Driver is running double click on it Wiser Hame Password Priority Middle User Mame Password Priority High Use
69. a function must always apply in the main htm and other multi pages It is called when the Internet Explorer has received the requested data from the controller The calling period is about 1 25 to 5 seconds depends on the communication quality The refresh data is often used for refreshing the dynamic data For example the boolean value integer value timer value or float value of the variables in the ISaGRAF project The Internet Explorer can access to the data in the ISaGRAF project only when they are assigned a unique Modbus Network Address No refer to section 4 1 5 The Web HMI only accepts Network Address No in the range of 1 to 1024 The data without a Network Address No No 0 or not in the range of 1 to 1024 is not accessible by the Internet Explorer The main htm and other multi pages can use the below variable array to access to the ISaGRAF s data case sensitive The identifier appeared in the is the related Network Address No For example boolean val 2 means the boolean value of the ISaGRAF boolean data which is assigned with the Network Address No 2 boolean val boolean value in the ISaGRAF word val word value in the ISaGRAF 32768 to 32767 float val real value in the ISaGRAF for ex 1 234 0 456E 02 timer val timer value in the ISaGRAF unit is ms max 86399999 1 day string val message value in the ISaGRAF max string length is 255 To access to long integer value 32 bit integer please use
70. aGRAF project Microsoft FrontPage D Chun_D User_Manual_WinCon8000 Web_HMIdemolexample unaii kon m 4 BRO HE RAY BO TAD RA BAD ERR si 99H BETERA 8 agaa Y Bag dp mE Times New Roman 3012 main bin x body lt div gt This is a Web HMI sample page K2 14 OUTOl OUTO e ET Gest Ae em 6 B FH 56 285 1 7 Getting Started Wincon 8037 8337 8737 The Web Ver 1 0 2005 by ICP DAS 58 Click on Save to save this page Micro FrontPage D hin DMTser Manual WintconsSOn Web HhDwdenmolexeampleunsmohtm HAE RHE meon am 34 2 1 2 teem BM imes New Eoman 3 l2 pt U d Se i main him E This is a Web HMI sample page OUTO1 EI ae EFA 56Kbps Sieg 0 01 2 581 285 885 4 4 3 Step 3 Adding Control Code To The Main htm Please switch the window to the source code A valid HTML document will contain the basic objects as below If you want to know more about the Web EC HAD EIO TAC source code please refer to Chapter 5 id d mm 6 915 ad
71. an 3020 H main him x Layer6 This is a Web HMI sz tx rEHISE SEES Seti 4 S6Kbps RAR 0 01 538x191 We will use K1 to display the state of the first input of the 8077 board and K2 for its second input Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 57 Please follow the similar steps to insert OUTO1 amp OUTO2 as below The OUTO1 uses Jimg circle blueO jpg as its image source while OUTO2 using 0 j jpg amp Microsoft FrontPage D User Manual WinConS WWeb hin x fase te 920 LR E an BHH D Goall 9 a M fr Times New Roman 2 27 This is a Web HMI s P Layer10 Layer12 ay Layera 4 SERRE 0 01 7 581x285 BET y We will use OUTO 1 to display the state of the first output of the 8077 board while OUTO2 is for controlling and displaying the second output of the l 8077 Now please insert one another Layer14 Inside the Layer14 please insert one Layer15 with a T1 xxx ms symbol And two empty Layers Layer16 amp Layer17 just below the Layer15 We will use T1 to display the Timer value T1 in the IS
72. ata Demo example whmi 03 amp whmi 05 section 3 1 If user want to display the dynamic long integer value 32 bit format the below code can be used reton refresh data The action of the Text object L11 is defined here L11 innerText get long val 11 The layout or location of the Text object L11 is defined here by gt the lt div lt div gt tags div style position absolute width 214px height 53px z index 2 left 102px top 79 gt b id L11 gt xxx lt b gt lt div gt lt body gt 55 The declaration of Text object L11 is defined here by the lt b tag amp id L21 amp lt b gt tag initial value of this L11 is xxx 5 4 2 4 Displaying Dynamic String Data lf user want to display the dynamic string value max length is 255 the below code can be used uneton refresh data The action of the Text object S31 is defined here 31 innerText string val 31 The layout or location of the Text object 531 is defined here by Load init gt mm m the lt div lt div gt tags div style position absolute width 214px height 53px z index 2 left 102px top 79 gt b id S31 gt empty lt b gt lt div gt lt body gt 5 The declaration of Text object S31 is defined here by the b tag amp id S31 amp lt b gt
73. ck on the No 1 slot Please make sure your 8077 I O board is plug in slot 1 amp then check on the Equipments amp double click on the 1 8077 8 CH DI amp 8 CH DO simulator Programs EN File Make Project Tool Debug Help ajgem Le A WO connection Begin iBl File Edit Tools Options Help tt RK Click on Note to get explanation of this I O device ag E eh io Link to Modbus ILI bus m lt Mew gt Set as Fous Master fous_ amp Mew Set as Fbus slave Isolated 16 amp 156 CH 16 Eh selectable 1 0 Isolated 8 DI amp 8 CH DO 8 CH DI amp 8 CH DO 063 ibus reri I prenne b 870134 4 CH Input with Alarm Gru A 8 EH Analog Input with Alarm 570194 8 Thermocouple with Alarm C Boards Equipments Then we have ISaGRAF EXAMPLEI I O connection _ lol x File Edit Tools Options Help m m i 8077 018 DOB ne If you don t have l 8077 1 0 board you may click on Real Virtual board to make this I O board become virtual Then you can simulate it Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 42 To map input variables K1 amp K2 to the input channel No 1 amp 2 of the l 7077 double click on
74. dder SFC ST IL amp FC Compact Flash Card 128MB Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 10 1 5 Multi HMI amp Remote I O HMI amp SCADA software R5 252 Modbus 1 8437 8837 7188 or W 8037 8337 8737 m PC HMI l 7000 amp 1 87K series Remote l 8xx7 7188 W 8037 8337 8737 Alarm Information M1206 GSM Modem Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 11 1 7 Data Exchange through Ethernet amp RS485 Data Exchange Controller to controller data exchange Ethernet W 8037 8337 8737 1 8437 8837 amp 1 7188 RS485 1 8417 8817 8437 8837 1 7188 amp I 7188XG 1 8 Motion Control One 1 8091 can control 2 axes X Y plane or 2 axes independent Two 8091 can control 4 axes X Y plane 2 axes independent or 4 axes independant Wincon 8337 87 31 l 8091 2 axes l 8090 3 axes Encoder Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 12 1 9 Modbus Converter Of I 7000 amp 1 87 1 7188XG amp 8417 8817 can be a Modbus RTU serial converter of 7000 amp I 87K series I O modules Modbus serial RS232 RS485 um p I 7188XGD or 8x17 HMI or SCADA RS485 m Remote I O Modules W 8037 8337 8737 7188 amp 8437 88
75. e 22 Welcome Microsoft Intemet Explorer BRO HAO HAW 9 00 4 usse Que 9 59 E http 10 0 0 103 0gin dll gt Norton Antivirus Sifern ah OS This is a Web HMI sample page Kl K2 o Error K2 Error OUTO1 OUT02 5000 ms OUTO1 OUT02 5000 ms Hon 000 Hos 000 ON ON Hello Welcome to the Web HMI Sample od ERES 2 2 Ethernet Wincon 8037 8337 8737 7000 Remote l 87K Remote Free HMI No extra software to be installed on the PC Just Running Microsoft Internet Explorer Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 8 1 2 Wincon Web HMI On The Internet Welcome Mic Internet Ex BRO RHO RARBG IA HAU E Welcome Mic Internet Ex BRO RHEO RARBG IA HAU H E gt 0AA arima Owe JE 9 09 01 1 gamete gue 2 5 9 65 597 AHED S 10 00 103 4 a orton AntiVims E FED hitp 10 0 0 103ogin al i E i orton AntiVirus B This is a Web HMI sample page K1 K2 Error OUTO1 OUTO2 5000 ms H
76. e name amp function name is case sensitive For example refresh data and Refresh data is different 5 There are more than 10 Web HMI examples in the Wincon 8x37 s CD ROM Please refer to section 3 1 5 1 Basic Files For The Web HMI The basic Web HMI files includes 2 folders and 3 DLL files and 4 htm files as below Jimg default image files jpg bmp gif msg default message files wincon js amp xxerror htm whmi filter dll three DLL files login dll main dll index htm first default page login htm the Web HMI welcome page menu htm the page menu page normally on the left on the Internet Explorer main htm first page when successfully login User may put his own image files into the folder named as user img And put user defined javascript file or css file into the folder named as user 50 Other folder name is not acceptable by the Wincon Web HMI The index htm file is the default entry page of the web server User should not modify it The index htm re directs to the login htm file in 1 to 2 second when someone visits the Wincon 8x3 via the Internet Explorer User may modify the login htm menu htm amp main htm to fit his own need Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 69 9 2 Login htm Login htm is the first welcome page when a user visiting It can be modified Below is the basic code for the login htm
77. e separator redundant Master 132 158 3 1388 cam lt gt 045 redundant Slave a 00 Move up in list oo redundant Slave Hove down in list redundant Slave 192 158 3 188 comz 70430 demo 47h F Project comment text a ges Reference exa Project examnle Author Comme Bee Cms You will now see the name of the new project in the Project Management window Double click on the name of the new project to open the new project 38 ISaGE Project Management E 3 10 File Edit Project Tools Options Help Melt 9 2 demo 51 7188 redundant Master 192 168 3 199 com lt gt 7043 f demo 46b 718805 redundant Slave Eg demo 49b 8437 8837 redundant Slave Eg demo 451b T188EG redundant Slave 182 158 3 188 com2 7043C E examplel demo Heference exa Author 1 Double click on the project name to get into the project window z 4 1 4 Declaring The ISaGRAF Project Variables Before you can start creating an ISaGRAF program you must first declare the variables that will be used in the ISaGRAF program To begin this process first click on the Dictionary icon and then click on the Boolean tab to declare the Boolean variables that will be used in our example program ISaGRAF EXAMPLE Programs ENS ini File Make Project Tool Debug ptons Help Oem
78. ect Demo 7 24 Drivers MOTCP MAIN DRIVER SHEET 73 Targ Application Import CE License 10 0 0 80 Please type in the IP address of v Only newer files your Wincon 8036 8336 8 736 If connection is fine click on the tab of Application then click Send to Target When download finished click RUN to start the project Target ication Import CE License Application Path Local Target Compact FlashndusoftiDemo_01 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 107 Chapter 9 ISaGRAF Example Program Please refer to CD ROM napdos isagraf wincon english_manu user manual i 8xx7 pdf for detailed English User s Manual 9 1 Get On Line help If you have question you may email to service icpdas com On line help of ISaGRAF standard functions amp function blocks Sar RAF Project Management File Edit Project Tools Options Help Uer eie EB creation Language reference wdemo 01 wW ncondemo Library Eg wdemo 02 Wincon demo Atout le m ARPEI Project create GEIB ISaGRAF e 003712715 1 Language reference Project architect
79. ect Windows CE NET Device from the Development Device Combo box d 2002 Emulator On the Build menu choose Build Demo 4 If you have finished the step 1 4 you will obtain the following message in the Output window which means the execution application is built Otherwise you will get error messages Therefore you need to debug the source code and rebuild the application Chatput Rebuild ll 1 succeeded O failed 0 skipped sj Task List E Output Index Results for Dim kewword 5 You can find the Demo exe file Your VB net Project folder gt bin Release demo exe Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 91 6 4 Execute The Application In The Wincon 8xx Platform When you have finished the building process for Demo exe You can apply the developed execution file Demo exe into the Wincon 8xx target controller device 1 Copy the Demo exe Mscorlib dll Quicker DLL and QuickerNet DLL to your prefer folder of Wincon 8000 If you are copying file to the Compact FlashMSaGRAFY it already has Mscorlib dll Quicker DLL and QuickerNet DLL please do not replace them just copy your demo exe into it 2 Double click on the Demo exe file to excute it 6 5 Examples There are several VB NET example demo in the Wincon 8xx CD ROM napdos ISaGRAF Wincon VB NET Demo User can copy the files to your hard drive and open the fi
80. ed Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 62 In the head area please modify the sample code to be as below variable to record object s blink state O not blink 1 blink For example Ydokckck kc e e kk var B12_blink 0 init as O not blink ec c function to blink object var blink step 0 The Error symbol will blink when the K2 function blink obj True in this example Please un mask the code inside these 3 areas if blink_step 1 blink_step 0 display your object here blink B12 For example kkkkk 7 k kkkkkkkkkk B12 innerText Error font B12 color red KRERERERERERERERERRRRERERERERERERE else blink step 1 un display your object here blink B12 For example k k kkkkkkkkkkkkk B12 innerText font_B12 color red quem cUm T NU NM kk setTimeout blink_obj blink period Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 63 We need a function Check L21 to check the entered T1 value and post it to the Wincon Please un mask the sample code to be as below form sample to check value of L21 amp then post val to controller For example kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk var val form_L21 L21 value if val gt 12000 val lt 4000 alert T1 s
81. elow however your Web HMI demo may be replaced to whmi 01 not whmi 05 B Prepare one VGA monitor one PS2 mouse one Keyboard and one ethernet cable and then connect them to the Wincon C Power the Wincon up 3 2 2 Step 2 Make Sure The Right ISaGRAF Driver Installed To run a Web HMI Demo please make sure the ISaGRAF driver installed in the Wincon 8037 8337 8737 is version 3 12 or high If the version is lower than 3 12 please upgrade it The procedure is listed in Appendix B or in the W 8xx CD ROM napdos isagraf wincon english_manu Upgrade w833 7 pdf Note If you have upgraded the driver please recycle the power of your W 8037 8337 8737 Computer W Recycle Bin r WinCon 8000 20 Microsoft Windows CE net WordPad Wincon ISaGRAF Driver K T T Ta Wincon ISaGRAF Driver is running double click on it lt Version should be 3 12 or i higher Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 22 1 3 50 3 2 3 Step 3 Setting The Web Options A Please set a fixed IP address to the Wincon 8037 8337 8737 No more DHCP B Check on Enable Web HMI and then click on Setting Please check on Enable Account Security and then click on Edit to set username password Then remember to click on Note If Enable Account Security is not check any user can easily get access to
82. er17 div style position absolute width 181px height 90px z index 6 left 374px top 162px id layer14 gt lt div style position absolute width 119px height 28px z index 1 left 4px top 7px id layer15 gt 1 b id T1 gt xxx ms lt b gt lt diy gt Please modify T1 xxx ms lt div gt to become T1 lt b id T1 gt xxx ms lt b gt lt div gt lt div style position absolute width 98px height 28px z index 2 left 4px top 45px id layer16 gt lt form namez form 121 method post action main dll gt lt input name BEGIN type hidden gt lt input name L21 type text size 8 value xxx gt lt input name END type hidden gt Nc lt form gt Please insert below code inside Layer16 form 121 method post action main dll gt input name BEGIN type hidden gt lt input name L21 type text size 8 value xxx gt lt input name END type hidden gt lt form gt lt div style position absolute width 67px height 33px z index 3 left 106px top 44px id layer1 7 gt lt input type button value Enter onclick Check_L21 gt amp nbsp lt div gt lt p gt amp nbsp lt div gt Inside the Layser17 please insert lt input type button value Enter onclick Check_L21 gt We have finished the code in the lt body gt lt body gt area Now please go to the head area Getting Start
83. erAddress As System Ulnt16 ByRef iStatus As Integer As Byte ScanKernel UserShare UserGetReg Float ByVal iUserAddress As System Ulnt16 ByRef iStatus As Single As Byte Parameter iUserAddress Specify the Network Address of Variable 1 to 8191 iStatus Get the short or long integer or float value Example Dim float val As Single Dim short val As Int16 Dim long val As Int32 Get float value of the variable of Modbus Network Address 7 ocanKernel UserShare UserGetReg float Convert ToUInt16 7 float val Get long value of the variable of Modbus Network Address 9 scanKernel UserShare UserGetReg_long Convert ToUInt16 9 long val Get short value of the variable of Modbus Network Address 11 ocanKernel UserShare UserGetReg short Convert ToUInt16 11 short val Demo program Please refer to WINCON8xx7 CD ROM napdos isagraf wincon VB NET 05 amp vbdmo 06 for RAW Analog Input Output 16 bit short 2 napdos isagraf iwincon VB NET 07 for long integer value 32 bit float value 32 bit amp Timer 32 bit Note The long integer amp timer amp float variable s Network Address No must occupy 2 No in the ISaGRAF project refer to section 4 2 of User s Manual of ISaGRAF Embedded Controllers or in the CD ROM WMapdosVsagrafwinconlenglish User Manual 8xx7 pdf Getting Started Wincon 8037 8337 8737 The Web PAC Ver
84. fault directory to Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 126 A 4 Connecting Your PC To The W 8x37 Ethernet Port Before you can download an ISaGRAF application to the W 8x37 controller system using the Ethernet port you must first setup the Ethernet port to properly communicate with the host PC On the W 8x37 Set IP Mask and Gateway address Refer to former section Setting The IP Address For The W 8x37 On your PC First open an ISaGRAF project and select a program you wish to communicate between your and the W 8x3 7 controller system Next select the Link Setup button on the project screen as shown below ISaGRAF TEST Programs File Make Project Tools Debug Options Help i msa aoe Begin inc 1 1 Simple Test Program Test Begin Test Ladder Diagram A PC PLC Link Parameters dialog box will appear as shown below From here select the Ethernet communications option and click on the Setup button PC PLC link parameters E EH AX Target Slave Number 87 Communication port ETHERNET Cancel Control 1 COM Setup Time out seconds COMS COM4 ETHERNET Once you have clicked on the Setup button an Ethernet Link Parameters dialog box will appear Set the Port Number to 502 and enter in the Internet address IP of the W 8x37 controller ETHERNET link paramete
85. ft 102px top 79 gt lt img name B1 src img circle blueO jpg div The layout or location of the image object B1 is defined here by lt body gt the lt div lt div gt tags The declaration of image B1 is defined here by the img tag amp name B1 src src defines the initial value of B1 5 4 2 2 Displaying Dynamic Float amp Word amp Timer Data Demo example whmi 01 amp whmi 03 amp whmi 05 section 3 1 If user want to display the dynamic float value the below code can be used function refresh data The action of the Text object F21 is defined here F21 innerText float val 21 If want to display Word data please use word val If want to display Timer data please use timer val For ex F21 innerText timer val 21 ms The layout or location of the Text object F21 is defined here by Load init gt the lt div lt div gt tags div style position absolute width 214px height 53px z index 2 left 102px top 79 gt b id F21 gt xxxx lt b gt lt div gt lt body gt The declaration of Text object F21 is defined here by the lt tag amp id F21 amp lt b gt tag initial value of this F21 is Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 76 5 4 2 3 Displaying Dynamic Long Integer D
86. ger Word 32768 to 32767 address 5 4X 6 is for writing short integer data 16 bit integer Word 32768 to 32767 address 6 DW 10 is for reading amp writing long integer 32 bit integer Double Word address 10 FP 12 is for reading amp writing floating point data 32 bit REAL address 12 For more details please refer form as below Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 105 Data sample Valid Range of Initial Syntax Addresses per Worksheet Coil Status Read and write events using Modbus Dex Varies according to the equipment EIES Vosicenccor dine to m Status Read events using Modbus instructions 3X 3X 4 Varies according to the equipment ipa PEE instruction 04 Holding Register Read and write events using COM Varies according to the equipment 03 06 06 Floating point value Holding Register Read and Varies according to the equipment write float point values using two consecutive Holding Registers 32 bit Integer value Holding Register Read and DW DW 2 VVaries according to the equipment write 32 bit integer values using two consecutive Holding Registers DRV Name MOTCPO001 DRV MOTCP002 DRV MOTCP003 DRV MOTCP004 DRV Description DI DO AO Internal 127 0 0 1 502 1 Address 0X 11 4 21 3 31 Action Read Write Write
87. gramming example files in the Napdos ISaGRAF Wincon Demo sub directory on the CD ROM Example lists Project Description Boards Or Complex Name Equipment Used Wdemo 01 R W float value from file Wdemo 02 R W long integer value from file Wdemo 02a R W long integer value in Text format from file Wdemo 03 To output something at a scheduled time interval For ex Moday 09 00 18 00 Sunday 10 00 User defined Modbus protocol No using Mbus wdemo 05 To do something at some sec later when an I 8055 event happens Using Message Array MsgAry_r MsgAry w Convert float value to string using real str 8 rea_str2 wdemo_08 PID control refer to CD napdos isgrafiwincon english_manu PID_A L Atm To From files To From EEPROM wdemo 11 Connect to other Modbus RTU devices via COM2 RS232 or COM3 RS485 wdemo 12b Send receive Short Message from GSM Modem M1206 wdemo 15b Bus 000 Redundant Slave in W 833 7 8737 Motion x slot 1 i 8091 slot 2 i 8090 Napdos lISaGRAF 8000 Driver motion pdf i 8090 Motion x y slot1 i 8091 slot2 i 8090 NapdosMSaGRAF 8000 DriverWmotion pdf i 8090 Moving to he Abs position when CMD is given slot 1 i 8091 slot 2 i 8090 i 8090 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 111 When you install the ISaGRAF programming example for the Wincon controller it is recommended that you create an ISaGRAF Project Group
88. gxeenD jpg square exemplel yellow jpg Bfcimle greenljpg ER square Ga yellow jpe Bf circle red jpg square i E blueDjpg cicle redljpg f square ER OFFICE _ 1 gf circle jpg wincor 2 FTP tE fe fii HX 8 I TABLE 22 mein htm E EE SES EEO RERU dEAD dix p BAD EE WE 1 d S B ia m 715 GA 10 poe Times Mew Roman a 120 CCCII NNNM This 15 a Web HMI sample page m Bests 1 5 5 RAP 0 01 2 538x191 ABE BET x Getting Started Wincon 8037 8337 8737 The Web Ver 1 0 Apr 2005 by ICP DAS 56 Please follow the similar steps to insert one another Layer5 and one Layer6 with a K2 symbol neice it and ae a iud bis inside it as below TET T MO E pz sry ES ZED ERD uz bd d 23 BO o a a a Times New Re B Web rft REG 582 t ER BaD j First click here to insert Layers and ei then follow the similar steps as 538x191 REE BET former to insert Layer6 amp inside the Layer5 WD PRO ALO re ET HD WEN EXBHD L HASIB 48 VIAE BES 9 Times New Rom
89. hive Projects ER x Backup Hestore Close Help Workbench Archive Archive location File name Falders backup SCOTT DESKTOP gt 1 To install all of the Demo files click on the wdemo 01 file then press and hold down the Shift key continue to hold down the Shift key and use your mouse to scroll down to last file in the Archive window Click on the last file name from the demo file location and that will select the entire group of demo files Lastly click on the Restore button in the Archive Projects window and all of the demo files will be installed into the sub directory you have created Archive Projects E xj Backup Hestore Close Help Workbench Archive work 2h Compress Archive location XDOCHME 7 155 COTTXDESKTUPSI BSEX 771 Browse Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 113 Chapter 10 Programming W 8x37 By Non ISaGRAF 10 1 Set Whmi exe To Be First Auto execute Program The Wincon 8037 8337 873 supports ISaGRAF programming method amp provides Web HMI solution by default by auto running the isawincon exe when controller is booting up If user prefer to program Wincon 8037 8337 8737 by using Microsoft EVC 4 0 or VS net 2003 VB net amp C net and access to the Web HMI it is also possible In such a case user don t need to purchase any ISaGRAF Software ISaGRA
90. i Times Mew Roman 3 d2pf html blink step i title Your Title here lt title gt un display your obja blink For exam ff REG itf Blz blink 1 i 1 lt head gt ff wy Blz innerText if font_Bl color rq ffi dec ccc EEE SCRIPT LANGUAGE JavaScript gt lt SCRIPT gt JavaScript code is E normally placed inside e Check igghecessary wh lt head gt the head Git Eye E stas 4 35 Z2AT Rl setTimeout blink obj j lt body gt The body area describes the lt body gt behavior of this page lt html gt Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 59 Please go to the body area and then modify the code as below Caption Area Layer1 A Layer is starting with lt div amp ending with lt div gt tag lt Caption ont goler blue size 4 gt style position absolute width This is a Web HMI sample page lt font gt 53px height 24px z index 1 left 73px top 12px id layer1 gt K1 Area Layer2 to Layer4 lt div style position absolute width 102px height 93px z index 2 left 75px top 52px id layer2 gt lt div style position absolute width 44px height 24px z index 1 left 3px top 10px id layer3 gt K1
91. ich may require changing a BIOS setting or change the Serial Link Parameters in the ISaGRAF program If there is a project already loaded in the controller system you will need to stop that project before you can download the example project Click on the STOP icon as illustrated above to halt any applications that may be running ISacRAF EXAMPLE Debugger File Contol Toole Optons Help Ie5s1237 active Stop application STARTING THE DOWNLOADING PROCESS From the ISaGRAF Debugger window click on the Download icon then click on ISA86M TIC Code For Intel from the Download window as shown below ISaGRAF EXAMPLE Debugger ENS ini xl File Contol Toole Optons Help AS 20 16 Download pplication stopped Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 50 O ISaGRAF SIMPLELD Debugger File Conk 005 Options Help Pike S Ae pnr E Dorica f 7 1 up pplication stopped Download 1 5 TIC code for Intel Application symbols If ISA86M TIC code fort Intel is not found here that means the compiler option ISA86M TIC code for Intel is not checked Please refer to section 4 2 to check it amp re compile the project again Download h Cancel The example project will now start downloading to the W 8xx7 con
92. ie File Make Project Tools Debug Option Help Author y eo de m 8 825 Date sm Begin Ladder program name LD1 Begin LOI Ladder Diagram Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 28 Variables declaration Type Attribute Name __ OUTO1 Boolean Output Output 1 in the 8077 board Modbus network addr 1 OUT0O2 Boolean Output X Output 2 in the l 8077 board Modbus network addr 2 K1 nput 1 in the l 8077 board Modbus network addr 11 K2 Boolean Input nput 2 in the 8077 board Modbus network addr 12 T1 Timer Time Period of blinking initial value set as T 8s Modbus network addr 21 Ladder Logic Program Outline 4 1 1 Open ISaGRAF Project Management Click on the Windows Start button then click on Programs then click on ISaGRAF 3 4 then click on Projects as shown below Diagnosis Logitech Mouseware EX Libraries Macromedia Dreamweaver 4 Macromedia Extension Manager d m Read Me Master Converter d Report Matrikon OPC MCSD Training Microangelo Microsoft Developer Network Microsoft Office Tools Microsoft Press Microsoft Visual Studio 6 0 MSDN HelpDesk Sample im NC3 1 Metzero Internet Mew Visio Drawing Norton AntiVirus Corporate Edition T Getting Started Wincon 8037 8337 873
93. ies for ISaGRAF ICP DAS Utilities for 1SaGRAF Welcome to the ICP DAS Utilities For SaGRAF Setup program This program will install ICP DAS Utilities Far ISaGRAF on your computer It ig strongly recommended that you exit all Windows programs before running this Setup pragram Click Cancel to quit Setup and then close any programs you have running Click Next to continue with the Setup program WARNING This program protected by copyright law and International treaties Unauthorized reproduction ar distribution of this program any portion of it mau result in severe civil and criminal penalties and will be prosecuted to the maximum extent possible under law Hest gt Cancel Note If ICP DAS Utilities for IGaGRAF is not in your CD ROM please download ICP DAS Utilities For ISaGRAF zip from http www icpdas com products PAC i 8000 isagraf htm Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 19 2 3 Step 3 Installing The Web Page Editor This is an option You may not need it if you are very familiar with the HTML design It is also possible to use any text editor to build web pages For example Notepad on the windows 2000 or XP We will use Microsoft Office FrontPage 2003 or higher version to build web pages in this manual User may choose your prefer web page editor to do the same thing Getting Started Wincon 8037 8337 873 The Web PAC
94. ing Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 26 3 2 5 Step 5 Download Web Pages To The Wincon A Please copy all files in the CD ROM napdos isagraf wincon WebHMI_ demo whmi_05 to the W 8037 8337 8737 s Compact Flash Temp HTTP WebHMI whmi 05 demo need one I 8077 If you don t have the l 8077 8 IN amp 8 OUT simulation board you may download whmi 01 CD ROM napdos isagraf wincon WebHMI_demo whmi_01 B Since the Web Pages are modified or new copied please run rs whmi exe to reset the Web server The rs whmi exe must be run every time when user has modified any file in the W 8x37 s Compact Flash Temp HTTP WebHMI Recycle Bin Microsaft rdPad Se Internet Computer Explorer i zi dp pen WinCon 8000 PDF Viewer rs wbhmi exe I Image Windows CE net 3 2 6 Step 6 Show Time Please run Internet Explorer Rev 6 0 or higher key in the IP address of your W 8037 8337 8737 For example 61 218 42 10 or http 61 218 42 10 Login Microsoft Internet Explorer d c EE WIE RIOD BAe TCA RGD Ola d Gress Ose eS ee eee 61 218 42 10 Norton AntiVirus Gl msn 8 5138918 C oo Hotmail 4 Messenger zm Wincon The Web loj x Please click on Enter to login Enter o me HER E Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 A
95. is iles Microsoft YR iles Microsoft Vis tles Microsoft Vis eon dum aS pu Suns ue 5 EB 5 2s 54 2s 2s 54 54 54 58 54 54 54 zd 54 54 54 54 54 54 54 2s 54 2 2 2 54 zs zs s zs zs E i E _ UM 2 Click the Browse button Select the QuickerNet dll from Wincon 8xx7 CD napdos ISaGRAF Wincon VB NET_Demo VbDmo_01 Demo_1 subfolder or from your own location BSS SBD 295 TE SEXE CD Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 3 Click OK to close the Add Reference dialog Note If the The reference QuickerNet dll may or may not be valid for the active platform a TE You should delete old 5 Demo 1 Demo 1 QuickerNet dll reference and then add new QuickerNet dll reference Ew again with care to ensure your application 2a WUL TUN COTEEGHY If QuickerNet dll is not valid right click on it to delete it and then add it to the reference again 4 You have completed adding mscorlib and Demo QuickerNet dll reference for your application now expand the Demo and References folders the Demo l H Solution Explorer tab to make sure the Bl J ERI QuickerNet dll has been added into the project c reference
96. le to run the project by Microsoft Visual Studio Net 2003 6 6 QuickerNET DLL This section we will focus on the description of the application example of QuickerNET DLL functions There are some functions that can be used to R W data from to the ISaGRAF softlogic The functions of QuickerNET DLL can be clarified as 2 groups as depicted as below 1 Digital RAW Functions 2 Analog R W Functions 6 6 1 Digital R W Functions m UserSetCoil Description This function is to set the value to a Boolean variable by Modbus network address Syntax ScanKernel UserShare UserSetCoil iUserAddress As System UInt16 iStatus As byte Parameter iUserAddress Specify the Modbus Network Address of Variable 1 to 8191 iStatus Set the status For instance iStatus 1 for True iStatus 0 for False Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 92 Return Value None Example Set the output variable of Modbus Network Address 1 to True ocanKernel UserShare UserSetCoil Convert ToUInt16 1 1 Demo program WINCON8xx7 CD ROM napdos isagraf wincon VB NET 01 WINCON8xx7 CD ROM napdos isagraf wincon VB NET 02 WINCON8xx7 CD ROM napdos isagraf wincon VB NET 03 m UserGetCoil Description This function is to get the value from a boolean variable by Modbus network address Syntax ScanKernel UserShare UserGetCoil iUserAdd
97. le wiring RS232 COM2 TXD 2 41 RxD 2 RXD 3 GND 5 GND 5 CTS 7 Touch 5065 506L 510 W 8037 8337 8737 For more information regarding interfacing the Touch series of MMI devices to the W 8x37 controller system please refer to Chapter 4 Linking The l 8xx7 To HMI Devices of the User s Manual Of The ISaGRAF Embedded Controller Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 131 A 10 Linking To Other Modbus Devices The COM2 RS 232 or COM3 RS 485 supports Modbus Master protocol Please refer to Chapter 8 of the User s Manual Of The ISaGRAF Embedded Controllers for more information 2 RS232 Modbus device W 8037 8337 8737 COM2 RS232 RXD 2 _ XD GND 5 GND CTS RTS COM3 RS485 Ju 7 Modbus device Modbus device W 8037 8337 8737 COM3 RS485 RS485 D 485 485 D 485 485 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 132 Appendix B Update Wincon s ISaGRAF Driver to Higher Version Note If you have purchased W 8037 W 8337 or W 8737 or W 8036 or W 8336 or W 8736 the Wincon ISaGRAF Driver is already installed when shipping out You don t need to install it However if you want to upgrade to higher version you may upgrade it by yourself The Wincon ISaGRAF driver can be obtained at WINCON8000 CD RO
98. lt div gt lt div style position absolute width 58px height 46px z index 2 left 1px top 38px id layer4 gt img namez B11 border 0 src img big Tcircle redO jpg width 43 height 41 gt lt div gt lt p gt amp nbsp lt div gt Please insert name B11 just after the lt img K2 Area Layer5 to Layer lt div style position absolute width 101px height 93px z index 3 left 241px top 51px id layer5 gt div style position absolute width 47px height 26px z index 1 left 6px top 4px id layer6 gt K2 lt div gt lt div style position absolute width 92px height 35px z index 2 left 7px top 38px id layer gt lt font id font_B12 color blue sizez 3 b idz B12 OK lt b gt lt font gt lt div gt Please modify lt div gt to become lt p gt amp nbsp lt div gt lt font id font B12 color blue size 3 gt b id B12 gt OK lt b gt lt font gt lt div gt OUTO 1 Area Layer8 to Layer10 lt div style position absolute width 82px height 79px z index 4 left 71px top 168px id layer8 gt lt div style position absolute width 60px height 31px z index 1 left 3px top 6px id layer9 gt OUT01 lt div gt lt div style position absolute width 37px height 31px z index 2 left 6px top 42px id layer10 gt lt img namez B1 border 0 src img circle blueO jpg width 19 height 20 gt lt div
99. n No 1 to DI 1 No 11 to DO 1 No 21 to AO 1 No 31 to Interior 00011 Variables not magped Booleans pr qers Reals Timers Messages Please save amp compile the ISaGRAF example project amp then download to the W 8336 If you are not familiar with it please refer to Section 4 1 to 4 3 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 99 Step 2 Create an Indusoft project Select File gt New from the InduSoft Web Studio main menu the New window will appear and click on Project tab Then type in the name for the new user s project in the Application name and select CEView Lite in the Target Press OK and the Project Wizard window will appear Select Empty Application on the Template 320 x 240 on the Resolution and None on the Shared Tags Web Studro Getting Started lose Ctl F4 Ll Save Cubs nave Az save HTML Print 1 MamPage 2 MODBUUDI DRV 3 MODBUOOL MOY 4 MOTCPOO DRY Exit InduSoft Web Studio Display Fie Edit View Insext Project Tools Window Help New CtrleN Open Project 22 Open File Chto Nev Location D Program FilesIndusoft Web Studio v6 0 Projects Configuration D Pro gram FilesIndusoft Web Studio vo O0 Projects Demo 01Demo 01 app Lits interface CEView Standard Project Wizard Template
100. nel UserShare UserSetReg long Convert ToUInt16 1 Convert Tolnt32 1234567 Set a short value 12347 to the variable of Modbus Network Address 3 ScanKernel UserShare UserSetReg short Convert ToUInt16 3 Convert Tolnt16 1234 Set a float value 2 1747 to the variable of Modbus Network Address 4 scanKernel UserShare UserSetReg float Convert ToUInt16 4 Convert ToSingle 2 174 Demo program Please refer to WINCON8xx CD ROM napdos isagraf wincon VB NET 05 amp vbdmo 06 for RAW Analog Input Output 16 bit short 2 napdos isagraf wincon VWB NET 07 for long integer value 32 bit float value 32 bit amp Timer 32 bit Note The long integer amp timer amp float variable s Network Address No must occupy 2 No in the ISaGRAF project refer to section 4 2 of User s Manual of ISaGRAF Embedded Controllers or in the CD ROM napdos isagraf wincon english_manu User Manual 8xx7 pdf Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 94 mUserGetReg short mUserGetReg long mUserGetReg float Description These functions are to get 16 bit short integer 32 bit long integer amp 32 bit float value from the specified Modbus network address Syntax ScanKernel UserShare UserGetReg Short ByVal jUserAddress As System Ulnt16 ByRef iStatus As Integer As Byte ScanKernel UserShare UserGetReg Long ByVal iUs
101. nt boolean lt body gt identify it value Here is boolean val 2 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 81 B To post by buttons Demo example whmi 02 amp whmi 05 section 3 1 function ON form obj obj firm turn fag ON function is used for posting boolean value f as True to the controller obj value 1 if GetUserlD form_obj true form obj submit function OFF form obj obj OFF function is used for posting boolean flag confirm turn OFF value as to the controller if flag obj value 0 if GetUserlD form_obj true form obj submit Display the current boolean image In this example function refresh data 0 img big Tcircle redO jpg 1 img big Tcircle red1 jpg B2 src img big Tcircle red boolean val 2 jpg The layout or location of the image object B2 is defined here by the lt div lt div gt tags lt body onLoad init gt lt div style position absolute width 56px height 40px z index 5 left 82px top 69px gt img name B2 src img big Tcircle redO jpg lt div gt div style position absolute left 85px top 124px width 42px height 27px input type button value ON style cursor hand onClick ON_ form B2 form 2 2 gt form name form B2 method post action main dll gt input name
102. nt to the ISaGRAF word data 32768 to 32767 for ex W9 W1001 point to the ISaGRAF long integer data 2147483648 to 21474883647 for ex L21 This L Also point to the ISaGRAF timer data point to the ISaGRAF real data for ex F13 F235 point to the ISaGRAF message data for ex 18 Note The long integer amp timer amp float variable s Network Address No must occupy 2 No in the ISaGRAF project refer to section 4 2 of User s Manual of ISaGRAF Embedded Controllers or the CD ROM napdos isagraf wincon english_manu User Manual 8xx7 pdf That means if you assign a Network Address No 11 to a Real type variable or Timer or integer will have 32 bit value larger than 3276 or smaller than 32768 the next No 12 should not assigned to any other variable in the ISaGRAF project However you may assign No 13 to one another variable Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 80 5 4 3 1 Post Boolean Value to The Controller A To post by the image ON OFF function is used for posting function OFF form obj obj current boo value boolean value to the controller by reference to the current boolean value if current_boo_value 0 The first parameter is the name of the form flag confirm turn ON The second paramenter is the lt input gt name inside the form if flag obj value 1 The last parameter is the current boolean
103. nu bar click on Archive and then click on Projects An Archive Projects window will open which allows you to designate where you want to save the ISaGRAF project to Click on the name of the ISaGRAF project you want to backup and then click on the Backup button You can compress the size of the file you have backed up by clicking on the Compress checkbox BEFORE you click on the Backup button E Diagnosis zd Libraries Projects 22 Read wo Report 4 ISaGRAF Project Management File Edit Project Tools Options Help fa st exam il exam Hy sfc exam p Fa A Simple LO Program Reference Simple LD Project Author ICP DAS USA Inc i Date of creation 12 15 2001 Version number 1 lsaGRAF 3 41 Description Simple Example Of An LD Program Archive Projects Workbench Archive demo 15a Backup demo_15b demo 16 demo 17 Hestore exam il exam 0414 Close d simpleld Help st inter work O1 work 2a work 02 Compress gt Arch You will now find the backed up ISaGRAF project file in the Archive location you have designated In the example above the name of the backed up file is simpleld pia Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 24 Restoring An ISaGRAF Project To restore an ISaGRAF project from a backed up file pia
104. o The 117 ERR DR E eee E S 117 10 3 FUNCTION TO ACCESS TO THE WEB 118 10 4 VB NET FUNCTION TO ACCESS TO THE WEB HMII eene 123 APPENDIX A HARDWARE SYSTEM amp 1 124 APPLYING CORRECT POWER SUPPE 124 2 MODIFY THE NET ID amp MODBUS RTU PORT 4 125 A 3 SETTING THE IP ADDRESS FOR THE W 8X37 ccccccssccssccscccscccsccsccssccsscesscesscesccescesscesscesscs 126 A 4 CONNECTING YOUR PC THE W 8X37 ETHERNET 127 A 5 MULTI CLIENTS CONNECTION TO THE W 8X37 ETHERNET 128 A 6 CONNECTING YOUR PC TO THE W 8x37 COM2 OR 0 128 A 7 DELETING THE ISAGRAF PROJECT FROM THE 8 37 700 129 A 8 LINKING l 7000 AND I 87K MODULES FOR REMOTE 130 A 9 LINKING TO AN HMI INTERFACE DEVICE 4 00000 0 000000 131 ALTO LINKING TOOTHER MODBUS DEVICES neis bee dme debe og 132 APPENDIX B UPDATE WINCON S ISAGRAF DRIVER TO HIGHER VERSION 133 APPENDIX C 255224 oe deus ae Iove deua ee ortos 137 C I VIN ONG ELI 137 eo ENC OE PN TU
105. oft Intemet Explorer ES GE RA BORSA IAM e t H O2 4 Que Giese Gee C En d Eee d HOA DO http 10 0 0 103ogindll Hs gt Norton AntiVir TT Hello A moving word is display here This is because the action of calling show scroll world Hello Welcome to the Web HMI Sample eee User try to plug out the Ethernet cable of the Wincon or of your PC You will see it show Communication is temporary break in about 10 seconds When you plug the cable back the communication will be recovered in about 10 to 45 seconds Welcome Microsoft Internet Explorer ini xl GE BA BREA IAM HAU E gt 9 Que Gee C6 E S d 849 amp http 10 0 0 103 login dll Re gt Norton AntiY ins Logout Hello Communication 1 temporary break now Meme If the communication break time exceeds 120 seconds it will show the below message You have to close the Internet Explorer amp open it again to re login Microsoft Intemet Explorer Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 74 5 4 2 More About The refresh data Function And Dynamic Data Note The code amp variable name amp function name is case sensitive For example refresh data is correct however Refresh data is not correct The refresh dat
106. omment E Timer Variable Attributes Store value intemal Constant Retain carnes ISaGE AF EXAMPLEI Global timers File Edit Tools Options Help BOOS Booleans IntegersiReals Timers Messages instances Defined words Attrib f Addr Comment internal E T1 00000 internal t os Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 34 4 1 5 Assign Modbus Network Address No to Variables The Web HMI will exchange the variable value with the ISaGRAF project if they have assigned the proper Modbus network address The Web HMI only recognize Modbus No from 1 to 1024 However other SCADA software may R W the Modbus No from 1 to 8191 in the W 8xx7 Variables without assigning Modbus No will not be available by Web HMI and other SCADA software or HMI devices Please refer to CD ROM napdos isagraf wincon english_manu user manual i 8xx7 pdf oection 4 1 amp 4 2 for detailed information about assigning Modbus network address Please get into the dictionary then click on Tools Modbus SCADA addressing map ISaGRAF EXAMPLEI Programs EN inl xl File Make Project Tool Debug Help E Oem 85 Quick declaration stances Defined words k Import text ommo M TRUE NEXT Import tuefal defini
107. on Enter ON This is a Web HMI sample page Error OUTO01 OUT02 5000 ms K2 Hox 000 Enter ON Hello Welcome to the Web HMI Sample ag ERES 2 Ethernet Wincon 8037 8337 8737 l 7000 Remote Monitoring amp Control Everywhere Free HMI No extra software to be installed on the PC Just Running Microsoft Internet Explorer PC running the Internet Explorer memes 4 23 Welcome Microso lolx BRO REO HAO AREWO IAM Ea L A gt 0AA Ars user 5 40 2849 84 E nttp 10 0 0 103ogin al ess gt Norton AntiVirus E This is a Web HMI sample page 2 Error OUTO1 1 5000 ms Hos pono Enter ON Hello Welcome to the Web HMI Sample od 2 Dial Modem PC running Internet Explorer Modem l 87K Remote Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 9 1 3 Download Data File From The Wincon Controller Internet or Local Via Ethernet or Modem DI 1 14 4 34 e Vat Wincon Internet Explorer 1 4 PLC With Large Storage Memory Supporting ISaGRAF IEC61131 3 programming language Data can save in the Compact Flash Disk 128MB or more W 8037 8337 8737 ISaGRAF IEC61131 3 Standard La
108. on s COM3 RS485 you need a l 7520 RS232 485 converter as below PC W 8x3 9 Pin D Sub COM3 ED l 7520 RsS232ms485 0 i GMD5 Convetor D p Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 128 For the ISaGRAF Workbench RS 232 communications to operate properly only the RXD TXD and the GND signals are used If your PC is running a hardware device or software program that uses the CTS and DSR signals you will need to wire the RTS CTS and DTR DSR signals together as shown below PC W 8x37 9 Pin D Sub COM 2 RKD 2 THD 3 Wee GL Pn 3 GNOD 5 GHD 5 DTE 4 DSE6 EIS CIS A 7 Deleting the ISaGRAF Project From The W 8x37 For some reasons user may delete the ISaGRAF program in the Wincon 8x3 7 controller Computer Recycle Bin WinCon 8000 Microsoft fal Windows CE net Wincon ISaGRAF Driver is running double click on it Click on Setting amp then click on Delete ISaGRAF Project Wincon ISaGRAF Driver D X ae Current Application 013 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 129 A 8 Linking l 7000 and 1 87K Modules For Remote The W 8x37 controller system can use its COMS port to link to ICP DAS s I 000 and I 87K series of remote I O modules This configuration can be very usef
109. oned This will open up the ISaGRAF Quick LD Program window and you can see the LD program you have created ISaGRAF EXAMPLEI Debugger EN In xj File Control Tools Options Help K gt Rd Close the debugger window will exit the simulation examplel EXAMPLE Programs E _ Project Toole Debug Options Help P D E ux de Ladder Diagram 14 Running The Simulation Program When you double click LD1 in the ISaGRAF Debug Programs window the follow window should appear File Edit Options Help TRE TRE TRE TREE You can see outputs 01 will blink in the period of 8 seconds Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 46 You can adjust the T 1 variable while the program is running To accomplish this click on the Dictionary icon which will open the ISaGRAF Global Variables window as shown in the first two pictures below Click on Timer tab and then double click on T1 to change the timer value TZ4000ms this means 4000 ms Then click on Write File Edit Options Help HI ISaGR AF EXAMPLE Global timers File Edit Tools Options Help e E L lobe Booleans Integers Reals Timer instances Defined words Aftrib Addr Value
110. ow Please enter K1 into the new created Layer E Microsoft FrontPage DXChun DAUsez Manual WinConB 00Web HMIWemotexempleLunsindfim EE inj xj ERE EEO HO ao TaD BAD RR Ra SAD B 7 AnA aR Times New ET Fetes B P main him This is a Web laver 02 EX Web FAR soft FrontPage D Chun_D User_Manual_WinCon8000 Web_HMI demo examplel main hin ml xj lA E IA ABA FAD FRR RBM RAD di 2 idd mim as vi amp aagyo c r sorida o gt Times New Roman 330270 First click inside the 2 and then insert one another inside it Now we have Layer3 inside the Layer2 2 56 RER 0 01 685x292 38 7 ogri Follow the same former steps to insert one another Layer to be in just below the Layer3 below oft FrontPage D XChun DXUser Manual WinConS 00WWeb ECTS nain htn Micros ER QD HAD E 2 KFL B 39 92 2 PRANA B Times New Re B X M EM main htm x lt lt div gt lt p gt This is a Web T Tat 5 HOD TRO pu
111. p word val UserSetReg 1 temp val 0 setfloat val to ISaGRAF variable with network address 2 float val 1 2345 temp val long amp float val UserSetReg 2 temp val 1 setlong val to ISaGRAF variable with network address 4 long val 12345678 temp val long amp long_ val UserSetReg 4 temp val 2 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 96 Get boolean value unsigned char UserGetCoil unsigned short iUserAddress unsigned char iStatus iUserAddress 1 to 8191 Variable s network address in ISaGRAF project iStatus 0 boolean is False 1 boolean is True for ex unsigned char bVal UserGetCoil 5 amp bVal get boolean value at network addr 5 Get word or float or long value unsigned char UserGetReg unsigned short iUserAddress long iStatus unsigned char iDType iUserAddress 1 to 8191 Variable s network address in ISaGRAF project iStatus A pointer to a long type which stores the data returned iIDType 0 type is word 1 data type is float 2 data type is long use long for Timer value in ISaGRAF unit is ms for ex float float val long word val long val long ret val get word val 32768 to 32767 of ISaGRAF variable with network address 10 UserGetReg 10 amp ret val 0 if ret val 0 amp amp ret val 32767 word val ret val else word val ret val OxFFFFOOOO get float of ISaGRAF variable with netwo
112. pplication to access to the Web HMI The include file and library are WinConAgent h and Quicker lib CD ROM napdos isagraf wincon EVC _LIB The DLL at run time is the Quicker dll which is in Wincon Compact FlashMSaGRAF Please copy and run your EVC application at Wincon Compact Flash lSaGRAF The below functions are used for access to the Web HMI data base You may refer to CD ROM napdos isagrafiwincon non_isagraf_demo EVC for example programs Note Please check whmi exe listed in section 10 1 has been installed for non ISaGRAF solution Set boolean value to Web HMI unsigned char UserSetCoil unsigned short iUserAddress unsigned char iStatus iUserAddress 1 to 1024 Web boolean data base 2001 to 3024 indicates if Internet Explorer post writing command to W 8x37 iStatus 0 set boolean to False 1 set boolean to True for ex long temp_val please set starting amp ending Addr No of each type at the beginning of your C program temp val 100 UserSetReg 2001 amp temp val 0 set boolean s starting addr To 100 temp val 200 UserSetReg 2002 amp temp val 0 set boolean s ending addr To 200 UserSetCoil 100 1 set boolean at network addr 100 as True Note The boolean s Address No 2001 to 3024 indicates if the IE on the PC gives writing command to the Web data base For example If IE gives writing command to set Address 1 amp 2 s boolean value to True or
113. pr 2005 by ICP DAS 27 Chapter 4 Programming A Web HMI Example This chapter show you how to build a simple ISaGRAF project and its Web HMI pages Please refer to CD ROM napdos isagraf wincon english_manu user manual i 8xx7 pdf oection 2 1 for detailed ISaGRAF programming basics The Wincon 8037 8337 873 supports ISaGRAF programming method amp provides Web HMI solution by default If user prefer to program Wincon 8037 8337 8737 by using Microsoft EVC 4 0 or VS net 2003 VB net amp C net and access to the Web HMI it is also possible In such a case user don t need to purchase any ISaGRAF Software ISaGRAF 256 C or ISaGRAF 256 E Please refer to Chapter 10 If user would like to program W 8x3 by using both ISaGRAF amp EVC or VS net it is also possible Please refer to Chapter 6 or Chapter 7 4 1 Writing A Simple ISaGRAF Program We are going to use ISaGRAF Workbench to write a simple ISaGRAF example program then download it to the W 8037 8337 8737 controller with one l 8077 board in it to make it work If you havn t installed ISaGRAF amp ICP DAS Utilities for ISaGRAF please back to chapter 2 This example contains one Ladder program Qi IsaGRAF Project Management 72 4 Name of your project group File Edit Project Tools Options Help Br uat HH creation touti gg 1500 link ta 1506 m 16 ISSGRAF EXAMPLE Programs EEUU _ ol xj Em
114. put 1 in the 8077 board oC Input 1 inthe l 6077 board 00000 input false true NOTE You MUST make sure that the variable you have declared has the desired Attribute assigned If you decide that you want to change a project variable s attribute just double click on the variable name and you can reassign the attribute for the variable Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 32 Please follow the above same step to declare one another boolean variable K2 Then you will have as below Sac E AF EXAMPLEI Global booleans File Edit Tools Options Help Cd OO Oe KEd x8 Booleans integersiReals Timers Messages FB instances Detined worda Mame Attrib Addr Comment Input 1 in the l 5077 board Input 2 in the l 6077 board 00000 input false true There are two outputs used in this example program named 01 and OUTO2 ISaGRAF provides a quick and easy way to declare like variables that are sequentially ordered To begin this process click on the Quick Declaration icon and enter in the output number that you will start with in the Numbering from and To field this example uses from 1 to 2 Enter the Symbol name for the output variables being declared and lastly set the attribute to Output ISaGE AF EXAMPLEI Global booleans File Edit Tools Options Help 06e
115. r Hame Password About item 1 user may set up to 8 IP address for ISaGRAF or other HMI to get access to the W 8x37 via the Modbus TCP IP protocol as below Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 86 On the IO connection window of ISaGRAF Please connect vip and entering the IP which can get access to the W 8x37 via Modbus TCP IP protocol If vip is not connected any remote IP can get access to your W 8x3 via Modbus TCP IP protocol If vip is connected and No IP is entered all assigned as N A No HMI and ISaGRAF can get access to it anymore DENT aw IEaGEAF WHMI 05 140 connection File Edit Tools Options Help Lo am i 8077 B DIG 008 EIE select board equipment 6063 Isolated 4 CH DI amp 4 CH DU 9 063 8 0 amp Cnt Max 100Hz z Counter amp 2 read back DO Gr BzF 2 Frequency amp 2 DU Iv 4 CH DI amp 2 CH Relay DO Iv dia8 4 DI amp 4 EH DU Iv Keypad Input mbus Modbus master COMS er COMA Connect by ar Ec modem pz Set Password of Com4 M adem 000 Link ta M TEP S430 8830 S256 512 Battery backup SRAM I Bxs SMS Short Message Service Permissive IP via Modbus TCP IP 102 BDI amp DU for the 71884G EG x113 FDI amp DU for the 19953 2
116. r Mame Password Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 66 And then please copy all files in this example1 to the controller your hard drive gt example1 to the Wincon 8037 8337 87 37 s Compact Flash Temp HT TP WebHMI Since the Web Pages are modified or new copied please run rs whmi exe to reset the Web server The rs whmi exe must be run every time when user has modified any file in the W 8x37 s Compact Flash Temp HTTP WebHMI Recycle Bin Microsaft WM orcP Internet Computer Explorer mi cie ree 2 VinCon 8000 PDF Viewer rs wbhrmiexe ILU La Image LT i Windows CE net Show Time Please run Internet Explorer Rev 6 0 or higher key in the IP address of your W 8037 8337 8737 For example 61 218 42 10 or http 61 218 42 10 E Login Microsoft Internet Explorer Heo AOD FASE CAD BRBHOD Signi THE We K 2154210 7 mem OUR 4 Wincon The Web Please click on Enter to login Enter El E Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 67 If there is something wrong with the web page You may enable the below item to display the debug message every time it has error ay Welcome Microsoft Internet Explorer 5254 E _ BJ x tO
117. ress As System Ulnt16 ByRef iStatus As byte Parameter iUserAddress Specify the Modbus Network Address of Variable 1 to 8191 iStatus Get the variable status iStatus 1 for True iStatus 0 for False Return Value None Example Get the variable status of Network Address 1 Dim iStatus As Byte ocanKernel UserShare UserGetCoil Convert ToUInt16 1 iStatus Demo program WINCON8xx7 CD ROM napdos isagraf wincon VB NET_ 02 WINCON8xx7 CD ROM napdos isagraf wincon VB NET 03 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 93 6 6 2 Analog R W Functions mUserSetReg short mUserSetReg long mUserSetReg float Description These functions are to set 16 bit short integer 32 bit long integer amp 32 bit float value to the specified Modbus network address Syntax ScanKernel UserShare UserSetReg Short ByVal jUserAddress As System Ulnt16 ByRef iStatus As Integer As Byte ScanKernel UserShare UserSetReg Long ByVal iUserAddress As System Ulnt16 ByRef iStatus As Integer As Byte ScanKernel UserShare UserSetReg Float ByVal jUserAddress As System Ulnt16 ByRef iStatus As Single As Byte Parameter iUserAddress Specify the Network Address of Variable 1 to 8191 iStatus Set the short or long integer or float value Example Set a long value 1234567 to the variable of Modbus Network Address 1 ocanKer
118. ress long iStatus unsigned char iUserAddress 1 to 1024 Web analog data base 2001 starting Address No of boolean data base to send to the IE on PC 2002 End Address No of boolean data base 2003 starting Address No of word data base to send to the IE on PC 2004 End Address No of word data base 2005 starting Address No of float data base to send to the IE on PC 2006 End Address No of float data base 2007 starting Address No of long data base to send to the IE on PC 2008 End Address No of long data base 2009 starting Address No of string data base to send to the IE on PC 2010 End Address No of string data base iStatus A pointer to a long type which stores the data to set iIDType 0 type is word 1 data type is float 2 data type is long Note 1 The Address No for each type must not conflict with each other For ex below assignment is OK Boolean 1 to 100 Word 101 to 120 Float 121 to 130 long 131 to 132 String 201 to 202 However Boolean 1 to 100 Word 101 to 120 Float 121 to 130 long 125 to 132 otring 201 to 202 is not Ok because Float amp long conflict at No of 125 to 130 2 he more No assigned will make the data size bigger to deliver to IE Please do not assign too many No especially for float long amp string data Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 119 for ex float float val
119. rk address 11 UserGetReg 11 amp ret val 1 float val float amp ret val get long of ISaGRAF variable with network address 13 UserGetReg 13 amp ret val 2 long val ret val Note The long integer amp timer amp float variable s Network Address No must occupy 2 No in the ISaGRAF project refer to section 4 2 of User s Manual of ISaGRAF Embedded Controllers or in the User Manual 8xx7 pdf Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 97 Chapter 8 InduSoft Project Running In Wincon Access To ISaGRAF Variables Please refer to CD ROM napdos isagraf wincon english_manu user manual i 8xx7 pdf for detailed ISaGRAF English User s Manual Wincon 8036 8336 8736 supports InduSoft and ISaGRAF control logic running in the same controller A simple example to run InduSoft amp ISaGRAF logic in the same controller Step 1 Create a new ISaGRAF project as below This demo uses a DIO module l 8077 in slot 1 of W 8336 and an AO module 1 87024 in slot 2 and one internal variable defined as follow Variable Type Name Network Comment Attributes o 8077 DI channel 1 Input I Rom 00 a 8077 DO channel 1 Output Integers AO 1 87024 AO channel 1 Output I R Internal variable Internal _ ini x File Make Project Tools Debug Options Help D
120. rnal Create main screen Click mouse right button in the file folder of Screen of the Graphics tab in the Workspace then the Screen Attributes window appears Setting screen attributes such as Size Location Runtime Properties and Background Picture then press to edit screen InduSoft Web Studio gt File Edit View Insert Project Tools Window Help ag EHE 2 0 5 lx wL PFJ a eaea A l ERL E T 6 Workspace EE v Project Demo 02 APP Screens 8 C3 Web Pages Click mouse right button in the file folder of Screen 4 Name gt ex i amp DB1 4DB2 ADB2 B Log lt XRef Insert new screen Description M ainP age Background Picture Security 1 Enable Background a Width 320 0 Shared image Height 240 Runtime Properties Titlebar System Menu Bo Style Replace Partial Don t redraw CK Cre Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 102 Select Text icon then clink on the main screen where want to establish a text and type 8077 DI 0 And select Text again following the previous text and type then select Text gt 12 4 0 11119 g 5 E Workspace Project Demo 01
121. rs Internet address 192 168 1 1 Port number 02 EN GM The Workbench uses the WINSOCK DLL library for TCP IP communications Ensure that this file is correctly installed on the hard disk Once you have entered the appropriate information click on the OK button and now you have configured your PC to communicate with the W 8x37 through the Ethernet port Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 127 A 5 Multi Clients Connection to The W 8x37 Ethernet Port Each W 8037 8337 8 3 7 has an IP address and with a fixed Ethernet port No 502 Up to 8 PCs can link to one W 8037 8337 8737 throughout Ethernet Modbus TCP IP protocol Another PC or MMI can link to COM2 RS232 port or COM3 RS485 Modbus RTU protocol PC HMI PC HMI PC HMI Modbus TCP IP Modbus RTU PC HMI MMI IP2 A 6 Connecting Your PC To The W 8x37 COM2 or COM3 The default Modbus RTU port is COM2 RS232 User may change it to COM2 RS232 or 485 or None please refer to A 2 Modify NET ID amp Modbus port setting Default communication parameter is 19200 8 1 Pin assignment of the Wincon s COM2 RS232 is the same as PC s 1 So the cable should be 2 3 cross PC W 8x37 3 Pin D Sub COM CD 1 Rad e n c RAD 2 TAD 3 TaD 3 4 GAD 5 GND 5 DSR B RTS 7 CTS 6 RI8 If connecting your PC to Winc
122. s bo 2 1 Data 05 System Drawing CJ System Windows 8d System XML bin b 4 d 5 Right click on the Form1 and select View Code from the pop up Move cursor to top and insert the Imports Quicker in the first statement Forml vb db x n z 8B EPublic Class Demol Inherits S stem Windows Forms Form A Windows Form To output boolean please use Quicker lserShare lserSetCoilt Private Sub Buttonl ClickiByVal sender System Object Eyval e System EventArgs Hz Quicker sershare UserSetCoil Convert TollIntlo TextBoxDO1l Texti 13 DN End Sub Private Sub Buttonz ClickiByVal sender System Object ByVal e System EventArgs Hz luicker lserShare lserSetCniliConvert TolIntlbtTextBoxDOl Text3 0 OFF End Sub Private Sub Button3 ClickiByVal sender System Object ByVal e System EventArgs Hz Quicker Isershare UserSetCoil Convert TollIntlo TextBoxD02 Texti 13 End Sub Private Sub Buttond Click By al sender As System bject ByVal e As System EventArgs Hew Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 90 6 3 Building an Application Program When you have finished writing a demo you can build an application by the following steps 1 In the toolbox menu select Release from the solution Configurations of Combo box HERE Ux S 2 In the toolbox menu sel
123. t Programs Wincon Utility WinCon Utility 1 Save Registry System Config Suto execute Version Update About WinCon Utility 1 Testing It wil take several seconds to save your settings to registry and settings you changed will take effect after system reboot and Reboot ould be pre viewd Set FTP directory here For ex Compact Flash lISaGRAF agistry Remember to click on Change Then click on Auto execute to do next step factory default Recover to Factory Settings Change FTP default directory to M ampact FlashAISaGRAF Change HTTP default directory to Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 134 Winton Utility 1 Save Registry System Config i version Update About WinCon Utility 1 x Program 6 Program 7 SS Program o O O Program 9 o O O Program 10 azz Gave Setting Program 1 JCompact Flash ISaGRAFsawincoan exe Program ACompact Flash ISaGRAF isawincon exe Then click on Save Setting each program oave Registry This step will re boot your Wincon controller Winton Utility 1 Save _ ar Config amp uto execute version Update About WinCon Utility 1 It will take several seconds to save your settings registry and settings you changed will take effect after system Save and Reboot
124. t to the controller mouse arrow as a hand when entering the button area lt body gt Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 83 5 5 Multi Pages The Web HMI in the Wincon 8x37 supports multi pages application You may refer to Chapter 3 to setup the multi page demo whmi 05 to see how it work 5 5 1 Level 2 And Level 3 Page The multi page name can be any valid html file name For example page2 htm kitchen htm u2 page4 htm If u2 appear in front of the page name the page will become a Level 2 page For example the u2 Page4 htm in the whmi 05 demo If u3 appear in front of the page name the page will become a Level 3 page For example the u3 time htm in the whmi 05 demo What is a Level2 page Only users login with the Middle or High priority can get access to it To access to the Level3 page users have to login as a High priority user The page name without u2 and u3 is identified as Level 1 page That means any user successfully login can access to it For example the main htm The other rules for multi pages are almost the same as main htm section 5 4 Recycle Bin WinCon 8000 Wincon ISaGRAF Driver OK Setting Web About Security Settings OK Options account modbus Lst Setting user name amp JADE ACCUEIL SECUN password here Prionty Low
125. the channel 1 and then click on Connect Then click on Connect again to connect channel 2 aa SaGRAF EXAMPLE _ ol x File Edit Tools Options Help EL SG 4 ref Connect channel 1 Previous By the same way please connect OUTO1 OUTPUT0O2 to output channel 1 to 2 Then we have below window Click on Save and then exit SGRAF EXAMPLEI connection E File Edit Tools Options Help Ol Save EJ maj ref 8077B gm i 80 77 OUTO1 E 018 n re OUTO gt 008 y n EB 4 b 5 IMPORTANT NOTICE 1 Slots 1 through 7 are reserved for REAL I O boards that will be used in the W 8xx7 You can use slot No 8 and above for additional functionality 2 All of the variables with Input and Output attribute MUST be connected through the I O connection as described above for any program to be successfully compiled Only the Input and Output attributed variables will appear in the I O Connections window In this example we have only 2 boolean output variables OUTO1 OUTO2 and 2 boolean input variables K1 amp K2 Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 43 4 2 Compiling amp Simulating The Example Project For ANY AND EVERY ISaGRAF program to work properly with any of the 1 7188 7188XG 1 8417 8817 84
126. tions sort ir Raenyumber addresses Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 35 Please click on Options Decimal or it will use Hexadecimal format as default First click on 00001 on the top window and then double click on OUTOT to attatch it to the Modbus No 1 Modbus SCADA addressing map e E 2 X File Edit Options Help Hexadecimal Segment ized DOCU Reserved 00001 Variables not mapped Booleans IntegersiReals Timers Messages Input in the board Input 2 in the l 2077 board Please follow the same method to assign OUTO1 to No 2 K1 to No 11 K2 to No 12 and then Timer variable T1 to No 21 Then we have below window SeGRAF EXAMPLE Global booleans mizil z File Edit Tools Options Help SaGRAF EXAMPLE Global timers ix we File Edit Tools Options Help LIIIl p oc E Booleans IntegersiReals Timers Messages FB ir 1 amp 8 066 amp 4 Attrib Cw 2 Booleans Integers Reals Timers MesageN instances input 0008 LL LU Attrib 000 Addr Comment ZEN internal 0015 The Modbus No display here are always in hexidecimal format Very Important If assign Modbus No to Long integer or Float or Timer variables they should occupy two Modbus No Please refer to CD R
127. to 132 otring 201 to 202 is not Ok because Float amp long conflict at No of 125 to 130 2 he more No assigned will make the data size bigger to deliver to IE Please do not assign too many No especially for float long amp string data Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 122 10 4 VB NET Function To Access To The Web HMI You may refer to 1 CD ROM napdos isagraf wincon non_isagraf_demo VB NET for example programs 2 Section 10 2 for similar steps to set up VB NET demo vb demo program napdos isagraf wincon non_isagraf_demo VB NET whmi_vb01 vb01 bin release vb01 exe Web pages napdos isagraf wincon non_isagraf_demo VB NET whmi_vb01 whmi Note Please check whmi exe section 10 1 has been installed for ISaGRAF solution User can write his VB NET application to access to the Web HMI The Address rule is the same as the former section The Address No for each type must not conflict with each other Web HMI boolean data base Address No 1 to 1024 Web HMI word data base Address No 1 to 1024 Web HMI float data base Address No 1 to 1024 Web HMI long data base Address No 1 to 1024 Web HMI String data base Address No 1 to 1024 Information Flag boolean Address No 2001 to 3024 Word Address No of 2001 starting Address No of boolean data base to send to the IE on PC 2002 End Address No of boolean data base 2003 starting Address No
128. to install the demo program files into S33 ISaGR AF Project Management Fie Edit Project Tools Options Help Be mmm to al Eg bottlef Flow Chart Simulation of both Greca 1 EB demo demo with Quick LD programming pa EH rfa demonstatres array management functions Project groups y Default samples cWzaweinismp H ame Cancel s CASA WIN 1 Location Sub dir Browse Path c XigzawinlsD emo To install the demo programs into the project you have created open the ISaGRAF Project Management window to select Tools from the menu bar then select the Archive option and then click on Projects E ISaGRAF Project Management Edit Project Tools Options Help ez Archive ee m bottle Libraries Common dat EH bottlef E demo Import IL program EH rfa rray emonstatres array management functions EH rfbars demonstrates graphic bra graphs EH rfbonl demonstrates SFC boolean actions z Reference Hf Imr Author CJ international E Date of creation 3 2 94 When you click on the Projects selection the Archive Projects window will open Click on the Browse button to select the drive and the sub directory where the demo files are located ANapdos ISaGRAF Wincon Demo on the CD ROM Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 112 Arc
129. troller system A progress bar will appear in the ISaGRAF Debugger window showing the project downloading progress ISaGRAF SIMPLELD Debugger gml xj File Control Tools Options Help Qis rub 23 39 37 0 application stopped When the example project has successfully completed the downloading process to the W 8xx7 controller system the following two windows will appear SaGRAF EXAMPLE Debugger E lai xl File Conto Toole Optons Help Qi ru Ae RUN allowed 0 2 maximum 4 overtlow 0 43 1003 0 application stopped Isa GRAF EXAMPLEI Debug programs To terminate the communication File Project Tools Options Help between your PC amp the controller please click on X Begin LOT Ladder Diagram Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 51 RUNNING THE EXAMPLE LD PROGRAM You can observe the real time I O status from several ISaGRAF windows while you are running the example project One of the windows is the I O Connections window which shows each of the inputs and outputs as assigned Click on the I O Connections icon in the ISaGRAF Debugger window to open the I O Connections screen You may switch ON OFF the D I on the front panel of the l 8077 I O board to see what happens about K1 amp K2 cc You may also click on Dictionary to File mue tmt Begin Lot File Tools Help
130. ul in applications that require distributed remote I O throughout the system You can link up to 255 7000 or 87 series remote modules to one W 8x3 controller system It is better not to link up to 40 7000 or 87 You must remember to set each 7000 and l 87K remote module must have a unique address and be set to the same baud rate as the W 8x3 controller system For more information regarding setting up and programming an l 7000 87K remote module please refer to Chapter 6 Linking To l 7000 and I 87K Modules of the User s Manual Of The ISaGRAF Embedded Controller COM3 D DATA DATA 5485 D DATA DATA DATA 7000 modules I 87K modules Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 130 A 9 Linking To An HMI Interface Device The COM2 RS 232 and COM3 RS 485 ports of the W 8x37 controller system can be used to interface with additional Human Machine Interface HMI devices such as touch screen displays Please refer to section A 2 first for setting Modbus RTU port ICP DAS provides a full line of touch screen displays such as the Touch series screens The models in the product line include the Touch 506 Touch 506L and Touch 510T HMI products If you are using any of the Touch series of MMI devices to connect to an W 8x3 controller you can only interface the devices to the 2 port on the W 8x37 controller Cab
131. ure Common objects Fi language D FBD language i ST language IL language Standard operators function blocks and functio Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 108 On line help of ICP DAS add on functions amp function blocks A ISaGRAF Project Management File Edit Project Tools Options Help te User s guide Em creation Language reference wdemo 01 Wincon demo Eg wdemo 02 Wincon demo Atout To output at W SYSTIM Technical nates Em Project i 2003 12 boards Functions Function blocks sample nteger analog addition C function blocks rread byte value from array byte value to arra tar rread value fram array any float value to array an n rread long value from array an n wrwrite lang value array arn rread short value from array any Ww short value to array BCO W Lanvert BCD to decimal value read float value 32 bit f Target s5 803 7 033 Call NUM Integer whit 4 16 bit ta 1 ward ADR Integer rwrite byte ta COM port camay byte to nmw write integers ta wiwrwri short int ta camclear apen port camclase close
132. value else flag confirm turn OFF 27 obj value 0 Demo example whmi_02 amp whmi_05 section 3 1 if flag if GetUserlD form_obj true form obj submit Display the current boolean image In this example function refresh data 0 display img cmdO jpg 1 img cmd1 jpg B2 src img cmd boolean val 2 lt body onLoad init gt The layout or location of the image object B2 is defined here by the lt div lt div gt tags lt div style position absolute width 100px height 100px z index 5 left 242px top 164px gt cursor hand will display the mouse arrow as a hand when entering the image area img style cursor hand name B2 onclick ON_OFF form_B2 form B2 B2 boolean val 2 src img cmdO jpg Nameoribedenm Name of the image object The onclick will call ON OFF when the mouse click on it form name form B2 method post action main dll gt input name BEGIN type hidden gt lt input name B2 type hidden value 0 gt lt input name END type hidden gt The first parameter is the name of the form Here is form B2 The second paramenter is the lt form gt lt input gt name inside the form Name of lt input gt inside the form Here is Here is form B2 B2 lt div gt B2 Because it is inside form B2 then B es we must use the name of form B2 B2 to The last is the curre
133. value should be in the range of 4000 to 12000 return Check form L21 post value to the controller kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk And also inside the refresh data function please insert below code To refresh displayed data this function is called by IE about every 1 5 sec later B1 src img circle blue boolean val 1 jpg B2 src img cmd boolean val 2 jpg B11 src img big Tcircle red boolean val 11 jpg if boolean_val 12 0 B12 innerText Ok font B12 color blue i B12_blink 0 else B12 blink 1 T1 innerText timer val 21 ms Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 64 Now we have finished all the code Please save it amp Microsoft FrontPage D User Manual WinConBOD0iWreb HiIdemotexenmplel TRUE WRO RA Bl src BZ src img circle blue boolean val l jpg img cmd boolean val z Jjpq Bll src img big Tcircle red boolean val ll jpq ifibonlean val le 0 12 0 font Blz color hlue Ble blink 0 EF else he ts BAe nsa Sit BE 4 You may click on Preview to simulate its run time behavior Microsoft FrontPage D XChun DWUser Manual WinCon8000VWWeb HMI
134. ver Installed esses 22 3 240 2916D DS Seng LEN 23 3 2 4 Step Download ISaCcR AT PO CCL uei RENE 23 3 2 5 Step 5 Download Web Pages To The Wincon eese 227 92250 SUC OS OV CT TIO oii 22 CHAPTER 4 PROGRAMMING WEB HMI 21 28 Getting Started Wincon 8037 8337 873 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 2 4 I WRITING AC SIMPLE ISAGRAB PROGRAM ane m doge ated aste bua us 28 4 1 1 Open ISaGRAF Project 29 ddl CrIeannp User et RII 30 A New SHORE FIO OC Mes otc met CS n Eas Del 30 4 1 4 Declaring The ISaGRAF Project Variables eese 31 4 1 5 Assign Modbus Network Address No to Variables eene 33 Created Ne DI PET PO CHAM duet 37 d L4 Bd The AAT PRODEGNn 38 Qo DTP SETS CET 42 4 2 COMPILING amp SIMULATING THE EXAMPLE 44 4 5 DOWNLOAD amp DEBUG THE E XAMPEB PROJECT dicite it ete e e tete ee irati est 48 DESIGN THB WEB mom aaah 53 4 4 1 1 Copy The Sample
135. vior is caused by the CTFMON EXE process We still don t know the reason yet You may stop this process by click on the Ctrl amp Alt amp Del the same time to open the window Task Manager and then stop it as next page However you will find the CTFMON EXE still load to run when you reboot your PC or run Microsoft Office So you need to stop it every time when your windows 2000 is rebooted If you want to know more about the CTFMON EXE please visit www microsoft com amp search CTFMON EXE Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 17 FARF Re mdm exe 520 0 00 00 2 044 NAVAPSVC EXE 560 0 00 02 3 724 NISUM EXE 604 00 0 00 00 4 316 TE SSC EME 656 0 00 00 952 mztazk 696 00 0 00 00 3 272 of MPROXYSWVL 720 00 0 00 00 9 500 E WinMgmt exe 900 00 0 00 06 220 svchost exe 96 00 0 00 02 9 672 904 03 0 00 00 9 688 NISSERV EXE 936 00 0 00 00 5 258 oo 1140 00 0 00 06 5 940 E 00 0 00 5 500 EXE 1 MCN OOOO Dela ke 00 0 00 01 9 304 NAY APW 32 1444 00 0 00 00 7120 E msnappau exe 1469 00 0 00 00 4 504 E 1504 00 0 00 00 1 572 Tl Lite exe 1512 00 0 00 01 14 248 E gt ava 1522 nn n nn nn nnn p te BERE 32 CPU 19
136. ware And then in the menu of File please click the New and select the project item to open the New Project dialog 2 Open the New Project dialog and select development tool as following Here we provide two ways for developing application for Wincon 8000 2a Select from Visual Basic Projects and the Smart Device Application template if n if un pe z Visual C Prost ae Visual C Projects Windows Cls Library MSN setup and Deployment Projects EU Onto Other Frojects Visual Studio Solutions PNET Web Service a Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 88 6 2 Add Project Reference for an Application The QuickerNet library contains all modules functions Before you use the Quicker keyword in the program design you must add the QuickerNet dll into the reference list of your application Please follow the below process to import DLL into the project reference 1 Open the Add Reference dialog by choosing Project Add Reference There are two libraries we have to add One is mscorlib dll and the other is QuickerNet dll Select the mscorlib in the list box and click the button Select the component mscorlib must appear in the Selected Components area sTerence Wu Click on Browse to search QuickerNet dll lest Microsoft V
137. y that your PC and the controller system are communicating with each other To verify proper communication click on the Debug icon in the ISaGRAF Programs window as shown below ISaGRAF EXAMPLE Programs File Make Project Tool Debug Help E D E m ow Soe Begin Begin Ladder Diagram Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 49 If the development PC and the W 8037 8337 873 controller system are communicating properly with each other the following window displayed below will appear or if a program is already loaded in the controller system the name of the project will be displayed with the word active following it Mm Your project name in the D ISaGEA EEAMPLEI Debugger ISaG RAF software on the PC Tele 0m File Contro fek Atone Help m I enp E test 32 active Current running project name inside the controller AE If the message in the ISaGRAF Debugger says Disconnected it means that the development PC and the controller system have not established communications with each other The most common causes for this problem is either the serial port cable not being properly configured or the development PC s serial port communications DO NOT match that of the W 8xx controller system You may have to either change the serial port communication settings for the development PC wh
138. your Wincon through the Internet Explorer Wincon ISaGRAF Driver Disable ETP Serveice Disable Telnet Serveice User Marne set up advanced security click on Settings Password Edit Settings Priority Middle ser Hame Password Edit Priority High Iser Mame Password 3 2 4 Step 4 Download ISaGRAF Project Please download ISaGRAF project whmi 05 to the W 8337 8737 This project is in the CD ROM napdos isagraf wincon demo whmi_05 pia whmi 05 demo need one 1 8077 you don t have the l 8077 8 IN amp 8 OUT simulation board you may download whmi 01 CD ROM napdos isagraf wincon demo whmi 01 If you know how to restore whmi 05 to your ISaGRAF Workbench and download it to the controller please go ahead to section 3 2 5 However if you don t know it please refer to the below steps Please make sure the ISaGRAF Workbench is already installed to your PC refer to section 2 1 amp 2 2 Steps To Backing Up amp Restoring An ISaGRAF Project For archiving purposes you can Back Up and Restore an ISaGRAF project For example you may want someone to test your program or email to Service icpdas com for ICP DAS s ISaGRAF technical service Getting Started Wincon 8037 8337 8737 The Web PAC Ver 1 0 Apr 2005 by ICP DAS 23 Backing Up An ISaGRAF Project Open the ISaGRAF Project Management select Tools from the me
Download Pdf Manuals
Related Search
Related Contents
Da-Lite 80848 projection screen Voir la notice 防雨里・ 人感センサー (点滅タイプ) (Y。47A)。 Weider HABR60 User's Manual USER'S MANUAL Manual de Instrucciones CHEMA LISTO PISO AUTONIVELANTE_Abril 2014.cdr Philips HR2744 CITRUSPERS Copyright © All rights reserved.
Failed to retrieve file