Home

User`s Manual of ISaGRAF Embedded Controllers

image

Contents

1. WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 17 Set Size as W 155 amp H 25 Fore Color as the below picture To Which Page as 1 Title as Go To Page 1 and then click Ok Ask before operation Location X 23 iF na Ask message Font size Fore Color Level 0 To Which Page Show as picture Title F Using bool addres to hide ea Deny message Next set up the download IP configuration Click Project IP Setting enter the IP address of PAC and then click Setting SOott GRAF Studio Demoli sof IF Setting Click the download tool icon click Yes to answer the save project question then the download process begins After downloading the result shows up automatically on the PAC s VGA as the picture below if the HMI creation succeeds SOtt GRAF Studio Demo sof 1 File Project Help Soft GRAF DemoO1 e Save Project ON OFF ON gt 5 sec gt OFF Goto Page 2 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 18 3 3 HMI Objects Description 3 3 1 g Label Display a Label Hello Word n e e ee H e 2 a ay m a m H 5 Tsing bool address to hide JA a 9 Options 1 Network Address Set the IsSaGRAF Modbus NetWork Address for the variable useless for the g_ Label object here 2 Font size set the font style and size of the text useless in othe
2. Press to different page Hippopotamus o F5 a 8 Rarejanimal 5 Gh Elephant Back to previous page Press ON OFF to show different effect Back to previous page WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 81 Back to previous page Ba Ladybug I like to take a bubble bath in Ladybug s home 25 0 C Input a value 1 3 to show different text Back to previous page Input an Integer to set the temperature Press ON OFF to show different effect Back to previous page Press ON OFF to switch the picture s animation WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 82 Back to previous page Press ON OFF to switch the picture s animation Back to previous page Back to previous page Precious Index Rare animal a A E 12 A2 67 1 They are two g B_Inp objects User can plug one i_ 8056 virtual I O board to test the DO switches Setting object to TRUE can enable the picture s animation WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 83 3 7 3 Demo06 Display the Trend Curve and the Angular Gauge This demo shows how to create the trend and gauge Restore demo06 pia and download to the PAC ISaGRAF A SaGRAF Project Management File Edit Project Ophons Help ki Projects mm sofgr 08 Libraries Common data Traport IL program ETO MA ooo eaaa eaa Archive Proj
3. cccccccesscccessecccesececeeececeeseeceeaeceseuecesseaeeseees 2 A3 Setting the IP Address tor tne WP 5XXZ autarcia a a a wiht aed eta aes 3 A 4 Connecting Your PC to the WP 5xx7 Ethernet Port cccsssscssssresssssescsssccccesrencusssscssssencessencns 4 A 5 Pin Assignment of COM1 COM2 COM3 and Multi Clients Connection to the WP 5xx7 5 A 6 Connecting PC to WP 5xx7 COM POMS sissevedssrsarmancedarneaatnoatendanideagadeeanadlavaeyegetenseendentsssaadeasoikavees 6 A 7 Deleting the ISa GRAF Project from the WP 5XxX7 cccccssecccssececeeseeceeseceeesceceenceeeeeceseuecesseeeeesees 7 A 8 Linking I 7000 and I 87K Modules for Remote I O cccccccccccccccccseeeeeeeeeeesesseeeeeeececcesseeeeeeeeeaaeegs 8 A 9 Linking toan HMIINterrace DEVICE ecnin sta siecehgica picwntiadevensea aed EE 9 A10 hinkine tO Other Modbus DEVICES crruo iea a A N TA NAN 10 A11 Control the Llane 2 LED eenn e E E T TN AE E 11 Appendix B Upgrade WinPAC s ISaGRAF Driver to Newer Version s sessssesececesescecececesescececeseseececes 12 Appendix C DiIMenslon cocsrnsanenin iaa E T TEE T T E 16 Appendix D How to Enable Disable WP 5xx7 s LANZ csscssssssscssscsscssccnsscesesescnsscessescusscesseceessees 17 Appendix E Using Expansion RS 232 485 422 csscssccssscssccsscssccssccescssccnsccessscccesscesessccusssesesceussees 18 Appendix F Slow Down ISaGRAF Driver s Speed csscscscessccscsceccccscsccccccscsceccccscnc
4. foe 400 00 gop a 0 en a 300 700 i 100 a m 100 900 0 1000 a l 40 96 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 85 3 7 4 Demo07 Using Alarm Message and Alarm Records X Welcome to refer to another g Alarm demo example in FAQ 160 http www icpdas com faq isagraf htm gt 160 Besides displaying the Alarm message it can trigger the PAC to send message to user s mobil phone This Demo07a shows how to use g_ Alarm object First restore demo07a pia to the PC ISaGRAF and then download it to an ISaGRAF WinCE PAC X Demo07a triggers the English Alarm messages Demo07b triggers the Traditional Chinese messages If your PAC OS Language is different change the Encoding option of g Alarm object and the value of the Message variable in the ISaGRAF project Ex for Simplified Chinese set Encoding to gb2312 and change the message of msg1 variable in the ISaGRAF project to Simplified Chinese text ISaGRAF A SaGRAF Project Management File Edit Project iti Options Help By eie E sotgr nf Libraries Cormon A m sofgr_03 Import IL pma Ree ee eo E x mm onotor N R Workbench Archive alarmdUz alarmdl alarmts1 creation demo 01 demol demolz Restore Close demola demalls demol3z9 demo 4 demols demol demol demola demoall b rE Help W Compress File Make Project Tools Debug Options Help SP HSM Oat seb mH AgS Begin Archive locat
5. 1 pos 1 1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 11 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 mr aGRAF EXAMPLEI LDI Quick LD Program File Edit Toolk Optons Help aal 4s wBe KE s w Ht aant F2 4HE F3 JHE Fd GH FS F HE F7 JH Fe Int F Double click on anywhere inside t the block then select BLINK 1 Function block x BINZENG 2 s Complement to engin forma transfer 16 bit to 1 word pos 2 1 IK blinking signal Version for ICP DAt convert to boolean AN BY Send max amp bytes to CAN BUS read one CAN bus frame Comm state of CAN OPEN dewi Send one string to CAN BUS concat messages Click on Info to get C function block sample detailed explanation get character Read CJC Temperature Read CJC Temperature ReadCic temperature with offs comparator COM _MRTU enable disable Modbus RTU por COM SET test if receive byte or not COM_STS Now move your cursor to the left of the parameter CYCLE of the BLINK block ar SaGRAF EXAMPLEI LDI Quick LD Program File Edit Tools Option Help Aa XOa ms xd Pr QQgak gf FQ 4B
6. O U a PXA270 520 MHz 128 MB 64 MB 16 KB microSD socket with one 2 GB microSD card support up to 32 GB microSDHC card Require one XW608 512 KB for retain variables Provide second minute hour date day of week month year SDRAM Flash EEPROM Expansion Flash Memor Battery Backup SRAM RTC Real Time Clock 64 bit Hardware Serial Number Yes for Software Copy Protection Dual Watchdog Timers Yes 1 LED for Power and Running 2 LEDs for user programmable Yes 0 9 VGA amp Communication Ports A Yes 640 x 480 800 x 600 RJ 45 x 2 10 100 Base TX Auto negotiating Auto MDI MDI X LED indicators LED Indicators Rotary Switch G Ethernet USB 1 1 client USB 1 1 host Audio COM 1 COM 2 COM 3 Microphone In and Earphone Out RS 232 RxD TxD and GND Non isolated RS 485 Data Data 2500 V isolated RS 232 RxD TxD and GND Non isolated WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 14 I O Expansion Yes to mount one optional XW Board I O Expansion Bus No supporting XW5xx board i e XW506 XW507 XW508 XW509 XW511i XW514 Dimensions W x Lx H 91 mm x 132 mm x 52 mm Installation DIN Rail Mounting Operating Temperature 25 75 C Storage Temperature 30 80 C Ambient Relative Humidity 10 90 RH non condensing Input Range 10 30 Vic Software Specifications Protocols some protocols need optional devices NET ID 1 25
7. P solution wp CshacpOl 1 project 47l wp_CSharp01 Sa Properties using System Collections Generic j References using system Componenthodel moal I using System Data ot E using System Drawing Fi Right click using System Text r T using System Windows Forms pen With tusing Quicker ee IE View a a ms namespace wo CSharpul l i View Desgner public partial class Forml Form Then you can design all required objects and actions inside your C Forms WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 5 11 3 Compiling an Application Program When you have finished writing a program you can build an application by the following steps 1 Remember to save at any time for safety FA project Mlicre Visual Studio File Edit View ae Build Debug ae SEAMA EN 5 mt A Error List Bee Microsoft Visual Orns o Warne Febuild preyect Device Deploy project t romter i BindingSource Clean projectil Build succeeded 3 You can find the execution file in lt Your C net Project folder gt bin Release lt project_name gt exe Please copy this execution file to the WinPAC 5xx7 s Micro_SD ISaGRAF path to run it Note User may copy the C net execution file to other path to run it but there should contain at AN least three DLL files with it or it cannot run correctly For instance the project1 exe can run in the Micro_SD path if
8. UserShare UserSetReg_float Convert ToUInt16 4 Convert ToSingle 2 174 Demo Program WinPAC 5xx7 CD ROM 1 napdos isagraf wp 5xx7 vb net_2008 demo wp_vb02 for R W analog I O 2 napdos isagraf wp 5xx7 vb net_2008 demo wp_vb03 for R W internal long integer Timer and Real floating point values The long integer amp timer amp real 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 wp 5xx7 english_manu User_Manual_ _8xx7 pdf WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 9 m UserGetReg short m UserGetReg long m UserGetReg 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 UserShare UserGetReg_ Short ByVal iUserAddress As System UInt16 gt ByRef iStatus As Integer As Byte UserShare UserGetReg_Long ByVal iUserAddress As System UInt16 gt ByRef iStatus As Integer As Byte UserShare UserGetReg_ Float ByVal iUserAddress As System UInt16 gt 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
9. main dll lt form name form_L21 method post action main dll gt lt input name BEGIN type hidden gt Inside the form the first lt input gt lt input name L21 type text size 8 value xxx gt must name as BEGIN case sensitive lt input name END type hidden gt and type as hidden lt form gt Inside the form the last lt input gt must All the other lt input gt appeared between name as END case sensitive and type BEGIN amp END are the data to post to the as hidden controller The lt input gt name to control the WinPAC s data must follow below format The number followed behind the first letter should be in the range from 1 to 1024 This number is 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 point to the ISaGRAF word data 32768 to 32767 for ex W9 W1001 point to the ISaGRAF long integer data 2147483648 to 2147483647 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 timer and 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 wp 5xx7 engl
10. DLL Gioball MGraphics G Tasks TH Comm p Communication Drivers Available drivers DLL Description MODBU MODBUS Protocol RTU ASCI CE vi0 4 MODPL MODBUS PLUS Protocol v1 10 MODSI SCI and R Serial and TCP IP CE 2 5 Ty ga MUV BELJES Protal RTL vie Hy MPI z sets i MPIAD SIEMENS MPI Green Cable Protocol 3964R CE v1 00 R5 MPMPI SIEMENS MPI Protocol HMI MP370 57 200 57 300 57 400 only CE v1 04 i Loe iu Selected drivers DLL Description Cancel Expanding file folder of Drivers and it will show a file folder named MOTCP Click the right mouse button and select Insert to add a workspace of Modbus TCP Project Explorer 4 Project Demo_01 APP Right click MOTCP and then click Insert Aks IL OF dm INSOLE ap gt OPC UA Satti ettings d TCP AP To Help Global Graphics GTask4 TZ Comm WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 7 When a Modbus TCP workspace MOTCP001 DRV appears fill in following data as corresponding field Description DI Read Trigger Write Trigger Station 127 0 0 1 502 1 Tag Name t DI What does 127 0 0 1 502 1 mean Enable Read when Idle 127 0 0 1 is the local host IP address It means send data to the same controller Enable fe on Tag Change 502 is the Modbus TCP IP port No The last 1
11. Program File Make Project Toole Debug Begin Options Help j mson Goi san HW 288 VO connection aw SaGRAF EZ AMPLE 140 connection Begin LO File Edit Tools Options Help Version fo a eee i Select board fequipment 1719 K203 w303 walg w305 5 308 10 td 4316 x510 an z sbon_ Version TOT ICP DAS Fer TDI DO forthe 1654G EG 240 EDO 201 for 1eo4G EG 104 740 600 401 for 71884G EG 104 340 400 401 for 1684G EG 104 740 200 201 for 1688G EG 440 600 tor 7188sG EG 104 340 400 401 for 168G EG 104 B40 for 7188sG EG 104 amp BAL tor 18e4G7EG ASO 8 9 401 400 for the 188eG EG ADL amp 500 for the 1864G EG 60 608 Batter SAAM for l 7188E GAG io Analog lOs for simulation io Boolean lOs for simulation io Message IOs for simulation awl 8 D1 amp 8 0 0K A Cancel Hote Click Note to see Library more description C Boards Equipments Then we have If you don t have the XW107 you may click the Real Virtual board to make it become virtual board File Edit Tools Option Help oes Fe DIG a SaGRAF EXAMPLE1 1 0 connection ojx Fie Edit Tools Options Help ee alt Realvirtual board mS Jeo ne To map input variables K1 amp K2 to the input channel No 1 amp 2 of the XW107 please click on DI8 and then double click on the chann
12. Very Important If assign Modbus No to Long integer or Float or Timer variables they should occupy two Modbus No Please refer to WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 english_manu user_manual_i_8xx7 pdf section 4 2 for detailed information 5 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 runs in the way as the below scheme Process Sequential area ISaGRAF Cycle WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 9 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 SaG RAF EXAMPLE Program File Make Project Tools Debug Optons Help A mga oen xe New Program Now we have one program inside this project Please double click on the LD1 to get into it TSaGRAF EXAMPLE Program ojx Fie Make Project Tools Debug ptons Help A HSN Oat Zxr mk zee 5 1 7 Edit the LD1 Program When you double click on the LD1 name the Quick LD Program window will appear To start programming our LD progr
13. WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 23 5 4 2 Step 2 Building the Main htm Please run the Microsoft Office FrontPage 2003 or advanced version and open the main htm m Microsoft FrontPage DWohoun_D Wser_Manual Wintlons000 Web AMT Wernotexannple nisin Ai AAE RPE RO GRA fest LR RA BED FERRE Re JE E is E S lS D F Hamda Tl i Times New Roman 3 i20 By wv main htm s OO p i This is a Web HMI sample page You may switch from these three items Please switch the window to design the page Please insert a layout object Layer as below R Microsoft FrontPage D Chon_Dieer Manual WinConS000 Web HMTdemotex aa wan Fri BRO BEE PRW E 7 a 4 O gt a 0 gt Hd 2 Times New Ro a Ele i s HEEE r i 8 A a a 5 E Microsoft FrontPage D Chon D Us r_ Manal WinCons000 Web AMemnveranple inam hii BRE HE AGO A fest 6 LRT OR BED TERR Reo JEE TiD cG HAAMATA QSL ad b oxen B A a 3 M2 pt B Z U fr Times New Roman main _him Eto tive Thisjs a Web HMI sample page CFA ID of this Layer object Layer2 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS BAJZ 9 C SHBR ws trgam F oF aan WL piga i DAH ERRE Ae 4 r IEH SoKbps RER OD 66x 204 REE BET z rr 5 24 1 e x E m Click inside this Layer and then insert o
14. 3 In the function MSGARY_W set parameter ADDR_ as 7 and assign the alarm description to parameter Msg When the Alarm is triggered it will pop up an ALERT message window show all unacknowledged Alarm messages and record this message in the g Alarm list EX MS GARY I In this example the type of msg3 is Message K3 is internal Boolean Please set K3 to False in the 2nd line R to avoid multiple triggering WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 88 HMI Screen Side When k3 TRUE the alarm message in the main Alarm window is as below 0011 21 11 2012 12 09 45 Alarmi laa 21112012 12 09 45 Alarm OMG 21 11 2012 12 09 35 Alarmi OME 21112012 12 01 46 K 1 is triggered Ack ALL 4 In the function MSGARY_W set parameter ADDR_ as 6 and assign the specified text to parameter Msg then user can acknowledge the Alarm message in the ISaGRAF program EX When fill in LAST means to acknowledge the last one of the Alarm messages if ACK1 then ACK1 FALSE TMP MSGARY_W Cast end_if When fill in ALL means to acknowledge all the Alarm messages if ACK2 then ACK2 FALSE TMP MSGARY_W Cau gt end_if When fill in an Integer value ex number and then need to convert it to String via function MSG means to acknowledge the Alarm message that issued by the integer number if ACK3 then ACK3 False
15. 8 Server device Or WinCon automatically report data to PC via TCP IP Q How to Write 16 bits to Modbus RTU devices by Mobus function call No 6 Q How to Read or Write Floating Point value to Modbus RTU Slave device Q How to use WinCon 8xx7 8xx6 to control FRnet I O Q Setting a special CODE_ parameter of MBUS_R amp MBUS_ R11 to get a clear 49 Degree Celsius or Degree Fahrenheit input value of M 7000 temperature module 41 42 43 44 45 46 7 4 For ex 3012 means 30 12 degree 50 Q How to connect an ISaGRAF controller to M 7000 Remote 1 0 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 12 s1 52 5s s Q How to connect l 7018z to get 6 channels of 4 to 20 mA Input and 4 channles of UI UI Thermo couple temperature Input And also display the value on PC by VB 6 0 program 56 Q How to do periodic operation in ISaGRAF PACs Q How to record I 8017H s Ch 1 to Ch 4 voltage Input in a user allocated RAM memory in the WinCon 8xx7 The sampling time is one record every 0 01 second The record UI N period is 1 to 10 minutes Then PC can download this record and display it as a trend curve diagram by M S Excel Q How to record l 8017H s Ch 1 to Ch 4 voltage input in S256 512 in l 8437 80 or l 8837 80 The sampling time is one record every 0 05 second The record period is 1 to 10 minutes Then PC can download this record and display it as a tr
16. 8 g Gauge Display a Long Short Integer or a Real value as an angular gauge 3 2 Edit the HMI by the Soft GRAF Studio Software To test Soft GRAF Studio demo projects please refer to the demo4 description in Section 3 7 1 and the demo My Sweet Home in Section 3 7 2 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 5 To execute the Soft GRAF Studio please double click the D Soft GRAF Studio Soft GRAF Studio exe or install it by referring to Section 3 1 when the Soft GRAF Studio exe is not found The software operating environment Ba GRA Stet Penje tO oof 14x ibe 197 16 For the basic file operating password setting upload IP configuration HMI Tool Bar HMI Page Editing Area Display and switch the project HMI pages One Soft GRAF project can contain maximum 200 HMI pages No 1 200 The Soft GRAF displays page No 1 when PAC powering up Every Page is displayed as full screen and only one Page is shown on the VGA monitor so user can set up the VGA resolution when create a new project To change the resolution please refer to Section 3 6 8 The PAC Resolution that Soft GRAF supported PAC Supportted VGA Resolution XP 8xx7 CE6 640 480 800 600 1024 768 XP 8xx7 Atom CE6 WP 8x37 640 480 800 600 1024 768 WP 5417 640 480 800 600 VP 25W7 640 480 VP 23W7 320 240 Soft GRAF Studio offers two ways to use the manual to query the functions Click the menu bar H
17. About Configuration Slave Number fi Modbus RTU Slawe Port hone Current running ISaGRAF M S 1 a Baud Rate P3200 pa MSs project name is listed here Project Current Application SA11 1036 ISA12 940 x Elapsed Time 2 19 End Driver WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 38 Chapter6 Web HMI Basics The WinPAC 5xx7 or WP 5xx7 is the abbreviation of the WinPAC 5147 WP 5147 OD The WinPAC 5xx6 or WP 5xx6 is the abbreviation of the WinPAC 5146 WP 5146 OD Important Notice 1 WP 5xx7 5xx6 support only XW board in its slot 0 2 Please always set a fixed IP address to the WinPAC 5xx7 No DHCP Note 1 This chapter describes the programming basics for the Web HMI We will not focus on the HTML 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 lt frame gt lt frame gt in the Web HMI Note The object name object ID code variable name and function name is case sensitive For example refresh_data and Refresh_data is different 5 There are more than ten Web HMI examples in the WinPAC 5xx7 s CD ROM Please refer to Section 4 1 6 1 Basic Files for the Web HMI The basic Web HMI file
18. Add Reference NET Projects Browse Recent eerie O vb0l O F oE TEHAT Component Files dll tlb olb ocx exe Cancel 4 When both mscorlib and QuickerNet dll are added please double click on My Project to check if the QuickerNet dll is well added Solution Explorer ix E Double click projectl Forml vb Design Start Page x Application Compile Keferences we Reference Paths RaferoncaName Type Vers Copy Local Path QuickerNet NET 1 0 0 9 True DChun_DiWPex47VWP Sxx7 CD napdosiisagrafwrp Sxx wE WET 20 0 0 False CsProgram Files Microsoft NE TISDE CompactFra mework we Sain NET 2 0 0 0 False CsProoram Files Microseft NE TSODE CompactFra mework we System Drawing NET 20 0 0 False CsProoram Files Microsoft NE T SOE CompactFra mework we Resources System Windews For NET 20 0 0 False CsProgram Files Microsoft NE T SDE CompactFra mework we System ml NET 20 0 0 False CsProoram Files Microseft NE TISDE CompactFra mework we Siening Devices WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 4 5 Right click on the Form1 vb and select View Code from the pop up Move cursor to top and insert the Option Explicit On and Imports Quicker in the first two statements Solution Explorer lx Form L wb Design Form1 vb a a E E a CJ General Declarations Jel project Option Ex
19. Begin Simulate Begin LD1 Ladder Diagram Version for ICP DAS fP1 ef edooiView incon series controllers only 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 gt Variable Names to show the name as shown below 3 ISaGRAF EXAMPLE Debugger 2 example jofx Fie Contool Toole ptions Help Fie Tool Weinek bl Db Ae co v Color display ALUA Variable names KA M2 kz Hexadecimal values Always on top File Project Tools Option Help By wd ALES Begin LOT Ladder Diagram In the ISaGRAF Debug Program window double click on the LD1 This will open up the ISaGRAF Quick LD Program window and you can see the LD program you have created WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 17 Running the Simulation Program When you double click on LD1 in the ISaGRAF Debug Programs window the follow window should appear You can see outputs OUTO1 will blink in the period of 8 seconds m SaGRAF EXAMPLEI LDI Quick LD Program File Edit Options Help You can adjust the T1 variable while the program is running To accomplish this 1 Click on the Dictionary icon which will open the ISaGRAF Glo
20. Cancel O IO configurations WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 3 You can then enter additional information for your project by clicking on the Edit and then Set Comment Text menu as illustrated below A SaGR AF Project Management File Project Tools Options Help t Q lt BS Test Le met comment text h E Toggle separator Project comment text x mil oo Move up in list Project example Move down in list a Comment TT Heference example Auth SAn OF k Cancel 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 A SaGRAF Project Manazement File Edit Project Tools Options Help Be Ae mee to Best 2 m0 creation example 1 m zamei Double click on the project name to get into the project window Reference example l Author S Date of creation 2009 67 8 Yersion number 1 iSaGHRAF 3 55 Description 5 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 Declare the Boolean Variables 1 Click on the Dictionary icon File Make Project Tools Debug Options Help al DE tm Mic mK Aes Dictionary EE WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 4 2 Click on the Boolean tab to decl
21. OUTO1 amp OUTO2 as below The OUTO1 uses img circle_blueO jpg as its image source while OUTO2 using img cmd0 jpg We will use OUTO1 to display the state of the first output of the XW107 board while OUTO2 is for controlling and displaying the second output of the XW107 main him x abo i a This is a Web HMI sample page EJ Sok bps ARF 0 01 E pal x209 fea BET a WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 27 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 ISaGRAF project E Microsoft FrontPage Dhon OW r Manual WinCons000 Web AMT Wemotesaniple iain M ioj x BR GRRE WA TEAM fest TR RA AEDI ERE REW RAE D S HASIBIGR FiABaRASFIYO C aR D iE Times New Eoman a3 027 B ii main him p 4 ebodty gt lt div gt edi 5 This is a Web HMI sample page Layer16 Layer17 IEH hoe bps RE 001 Ft 581 x25 fee BT ee AAs Gigs Aras Click on Save to save this page ERD ED RAC MAD RAO TA SEO ENO ERO REW BE D SAlam aa TF MA7 aa fe gt He Ties New Roman 3 12 pt B fF U E 2S fs sere Se main htm fl This is a Web HMI sample page p H
22. lt meta http equiv Content Type content text html charset UTF 8 gt lt script language JavaScript gt var random_val 123 Please apply your charset here For example function get_random_val English UTE 8 nglish var rightNow new Date random_val 323456789 rightNow getMinutes 107654321 rightNow getTime 1000 Traditional Chinese big5 Simplified Chinese gb2312 or other language setTimeout get_random_val gt 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 lt head gt WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 2 get_random_val should be always called at the beginning of the Login htm It is the entry point of the 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 is here lt div style position absolute width 122px height 38px z index 4 left 171px top 95px id layer2 gt form1 is necessary lt form name form1 action login dll method post gt lt input type hidden name key_ gt lt input type submit nam
23. project 1 Please download wpdmo56 to the PAC then the Spy list window will pop up as below y SaGRAF WDEMO_56 LIST1 List of variables l Ioj x File Edit ptons Help Bare Mame Value Comment Meg Get Retained data from file Ok Fiel operation state Len 126 Data _Ok1 TRUE True means data is read Ok from file False means error File_name fCompactFlashidataSe txt File name Len 64 RE LOAD FALSE init as TRUE to load data from a file Data 1 User data be retained total is SL2E1 name can be different Dataz 2 User data be retained total is SIZE1 name can be different Datas 3 User data be retained total is SL2E1 name can be different Data4 0 User data be retained total is SIZE1 name can be different Datas 0 User data be retained total is SIZE1 name can be different DatalG 0 User data be retained total is SIZE1 name can be different batal 0 User data be retained total is SIZE1 name can be ditterent Datat 0 User data be retained total is SIZE1 name can be different Patala a User data be retained total is SIZE1 name can be different Data 0 10 User data be retained total is SIZE1 name can be different Data 1 0 User data be retained total is SIZE1 name can be different Datal 2 0 User data be retained total is SIZE1 name can be different Data 3 0 User data be retained total is SIZE1 name can be different Datal 4 14 User data be retained total is SIZE1 name can be different Data S 0 User data be retained total is SIZE1 name ca
24. 119 120 121 122 m e N UJ N D m e N vI m e N 128 129 English ISaGRAF Ver 3 FAQ Q Why my PC running ISaGRAF can not connect the ISaGRAF PAC correctly Q Program The 8 Channel PWM Output Board I 8088W In WP 5xx7 VP 25W7 23W7 And iP 8xx7 PAC Q How to display the frequency trend curve by running ISaGRAF and C net 2008 program in the WinPAC 8xx7 plus l 8084W Q How to do auto time synchronization and measure the local Longitude and Latitude by using the i 87211W GPS I O module in ISaGRAF PAC Q How to display the temperature trend curve by running ISaGRAF and C net 2008 program in the WinPAC 8xx7 plus i 87018z Q How to adjust the system time of some ISaGRAF PACs via Ebus by using ISaGRAF PAC and I 87211w Q ZigBee Wireless Application How to control remote I O and acquire data Q How to use the GTM 201 RS232 to send a short message in user s local language Q Program the I 8093W 3 axis high speed Encoder input module by ISaGRAF Q Linking IsaGRAF PAC to Modbus TCP IP Slave Devices By Modbus TCP Master Protocol Q How to avoid garbled content when printing IsSaGRAF PDF documents Q Working eLogger HMI with ISaGRAF SoftLogic in the WP 5xx7 VP 2xW7 and XP 8xx7 CE6 PAC the document version is 1 03 released on Jul 15 2010 Q How to enable the second to fifth Modbus RTU slave port of the WP 5xx7 and VP 2xW7 without modifying the ISaGRAF project Q How to i
25. 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 Backing Up an ISaGRAF Project Open the ISaGRAF Project Management 1 Select Tools gt Archive gt Projects from the menu bar to open Archive Projects window 2 Click on Browse to set up the file path e g C demo and you can also click Compress to reduce the file size 3 Select the project name you want to backup from the Workbench field Click on Backup to start the process SS 1SaGRAF Project Management File Edit Project Tools Option Help fk Archive Projects m creation Libraries m example Import IL program Reference example Author Date of creation 2008 8 1 Version number 1 lSaGRAF 3 55 Description WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 3 Archive Projects Workbench Archive creation example 3 Select the files 4 Start to backup to backup w Compress Archie location LC ADEMO Browse Click to reduce file size 2 Set up or change the file path Restoring an ISaGRAF Project To restore an ISaGRAF project from a backed up file pia use the same method as above to access the Archive Projects window 1 Select the project
26. Appendix Using RS 232 Serial USB Touch Monitor There are three types of RS 232 Serial or USB Touch monitor supported by the WinPAC openmount_serial_ touch and penmount_usb_ touch or penmount compatible touch monitor elo_serial_ touch and elo_usb touch or elo compatible Touch monitor egalax_serial_ touch and egalax_usb touch or egalax compatible Touch monitor I 1 The Driver and Notice for installing the Touch Monitor The touch monitor Drivers of WP 5xx7 are in the path System_Disk external_device_driver of PAC controller listed below Please run only the correct one for your Touch The _vyyyymmdd may be a different name depends on its modification date Zs egalax_serial_touch_v20100 25 cab egalax_usb_touch_w20100507 cab S elo serial touch v20100507 cab S elo usb touch v20100506 cab zs penmount_serial_touch_v20100824 pmb6000r cab penmount_serial_touch_v20100824 cab penmount_usb_touch_w20100526 cab pmo6000_serial_touch_v20100614 cab If you cannot find them please download from the following web link ftp ftp icodas com pub cd winpac napdos wp 8x4x ce50 micro sd external device driver Then copy the external device_driver dictory to your PAC s System_Disk via ftp Important Notice DONOT install both USB and RS 232 drivers in the same PAC at the same time If you installed the wrong driver Please uninstall the driver refer to Appendix 1 4 and the
27. Download Web Pages to the WinPAC A Please copy all files in the CD ROM WinPAC 5xx7 CD napdos isagraf wp 5xx7 wp_webhmi_demo wphmi_05 to the WinPAC 5xx7 s Miscro_SD Temp HTTP WebHMI wphmi_05 demo need one XW107 in its slot 0 If you don t have the XW107 8 IN amp 8 OUT board you may download wphmi_01 B Since the Web Pages are modified or new copied please run rs_wphmi exe to reset the Web server The rs_wphmi exe must be run every time when user has modified any file in the WP 5xx7 s Micro_SD Temp HTTP WebHMII f My Device ts wohmi W WINPAC sa PDX 4 2 5 Step 5 Show Time Please run Internet Explorer Rev 6 0 or higher key in the IP address of your WinPAC 5xx7 For example 192 168 1 232 or http 192 168 1 232 Login Windows Internet Exolorer Go COE ee TT CE on mA oe wg g3 rcepas Logn x A Do Ro WinPAC The Web PAC Please click on Enter to login NB 100 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 7 Chapter5 Programming a Web HMI Example This chapter shows you how to build a simple ISaGRAF project and its Web HMI pages The WinPAC 5xx7 or WP 5xx7 is the abbreviation of the WP 5147 WP 5147 OD The WinPAC 5xx6 or WP 5xx6 is the abbreviation of the WP 5146 WP 5146 OD Important Notice 1 Please always set a fixed IP address to the WinPAC 5xx7 No DHCP 2 Recommend to use the Industria
28. Its default message is Access denied if left it blank 11 To Which Page the page want to switch to 12 Title the text displayed on the object WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 34 3 3 11 g M_Inp Button Components Input a Message to the Corresponding ISaGRAF Variable via a Pop up Keyboard Description Show a read message Show a fixed Show as picture Displayed figure String Input string Input m H Ra a D He Ge e 8 H Recon e m BE 20 5 Location X 164 F a77 Language encoding i 11 6 Title of dialog 12 Options 1 Network Address Set the ISaGRAF Modbus Network Address for the variable Value range 1 1024 2 Font size set the font style and size of the text useless in other font setting 3 Fore color set the fore color of the object text 4 Size set the size of the object W for Width H for height 5 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 6 Title of Dialog the text showed on the title bar of the pop up dialog window 7 Show as picture the button is showed as a picture The picture format can be JPG GIF PNG BMP Recommemd not to use the BMP format because it consumes larger memory size 8 Show as Title show the button as the setting text 9 Show as value show the value that ISaGRAF read 10 Using bool address to hide Use a Boolean Address to
29. LAN2 Set your WinPAC s IP address amp its Subnet Mask Please always set as Fixed IP for ISaGRAF application No DHCP LANI Fast Ethernet Adapter Settings IP Address An IP address can be Obtain an IP address via DHCP automatically assigned to this computer If your network does not automatically assign 792 168 1 182 IP addresses ask your network IP Address ot ste Se ace administrator for an address Subnet Mask 555 255 755 0 and then type it in the space E provided Default Gateway 1192 168 1 1 Please run Start Programs WinPAC Utility Set FTP directory to the root dircetory Then check all three ftp options as Enable Remember to click on Setting Then click on Auto Execution to do the next step WINPAC Lit File Help Configuration ity i be System Setting Ethernet Setting Network Setting System Information Auto Executic ae i FTP Setting Users and Password File Server Settings EL Vie yy FTP Enable Disable Allow Anonymous Enable Disable TaskMgt Allow Anonymous 8 Enable C Disable Change FTP default download directory Temp to Change HTTP document root directory windows www iwwwpoub to is1 213 415 el7TeTololJ Tabl a Jw Le EEE TH WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 13 D Please click on Auto Execution tab and then click on Browse to select or type
30. Manage your credentials p Change your password Create a password reset disk n l Remove your password Link online IDs Administrator Change your picture Password protected Manage your file encryption l gey ypt Change your account name certificates k C h Yy cco tty Configure advanced user ange your account type profile properties Change my environment pi Manage another account vanables W Change User Account Control settings A Parental Controls 2 After clicking it will show up the screen as below WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 6 Windows Vista Uncheck the option Use User Account Control UAC to help you protect your computer and then click on OK g Turn User Account Control On or Off Turn on User Account Control UAC to make your computer more secure User Account Control UAC can help prevent unauthorized changes to your computer We recommend that you leave UAC turned on to help protect your computer se User Account Control UAC to help protect your computer Cancel Windows 7 Move the slider down to Never Notify and then click on OK pessoa 2 2 SiS SNR SHSGRSATRM PLLA SHeAS EENEN mU e Dal Ll E TES SS FRR FRENE E E TERGA RATERS RANELAS THEE ASR PES BSS Windows 7 Re Te eela 3 Reboot your computer to apply the change 4 After rebooting please refer to section 2 1 Installing the ISaGRAF S
31. Modules Units T ms PROFIBUS UGE VXC Card ViewPAC O M2M Solution PoE Solution Poaeamnahie PPDS 700 Series erial to Ethemet Programmable Device Server rvar gt Intelligent Serial Ethernet Gateway PDS mar ay Power over Ethemet Flexible COM Ports Built in Watchdogs and DIDO Virtual COM technology ET 7000 SoftLogic PAC Ethemet VO Ordering oe Sane Selection Guide Related Products Short Message service gt ISaGRAF PACs xXP 8xx7 CE6 ViewPAC pany WP 8x37 8x47 VP 25W7 23W7 HMI amp SCADA Demo Fides WP 2117 Software PC HMI i gt Sx47 Le Sox amp I 8x37 so a i uPAC 7186EG Nees Y All EP EBBEG dale EPASBXG a Comparison Table Modbus M 7000 RU 87Pn I 87Kn FAQ i Al ever orate avs Devices EKAN Remote I O 7000 Remote VO amp 87K Remote iO c9 oD WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 XW board Add on Expansion Boards More at http www icodas com tw gt Product gt Solutions gt PAC gt WinPAC gt WP 5000 Selection Guide gt W board DI DO Expansion Al AO Expansion 6 channel A D 5 Vor0 5 V 1 channel D A 5 V XW304 4 channel D O 4 channel D XW310 4 channel A D 10 V 2 channel D A 10 V 3 channel D O 3 channel D 4 channel Differential 8 channel Single Ended A D 0 20 mA XW310C 1 channel D A 0 20 mA 4 channel D O 4 channel D SRAM Expansion XW
32. Provide cut copy and paste multiple objects The operation is the same Please refer to the Section 3 6 1 3 When select one or more HMI objects user can press the direction key of the keyboard to adjust the position and press once to move 1 pixel 4 Add a new function about the object layer older sent the object to the front back or forward backward one layer User can use this function to hide or display the HMI objects Please refer to Section 3 6 3 for the operation 64855 As the order of the tool icon a Sent to Front b Sent to back c Forward one d Backward One WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 74 3 6 10 View the Fashion Mode or Old Style Mode Soft GRAF Studio provides two view modes of tool box for user to switch How to Switch the View Mode Click menu View Select Fashion for graphic mode or Old Style for text mode WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 75 3 7 The Description of Some Soft GRAF Studio Demo Projects 3 7 1 Demo04 Display the Objects and the HMI Access This demo displays all HMI Objects and basic operation First restore demo04 pia and download it to the PAC Restore ISaGRAF Project Demo04 Download Demo04 to PAC A SaGRAF Project Management SaGRAF DEMOOD4 Programs File Edit Project Mewe Options Help File Make Project Tool Debug Options Help Be S HSe Aet s vel umk aes Libr
33. Refer to the Section 3 7 5 or FAQ 158 http www icpdas com fag isagraf htm gt 158 for detail information 38 Year Address assign the Network Address of the variable for year It can set the file s year in the manual FTP function 39 Month Address assign the Network Address of the variable for month It can set the file s month in the manual FTP function 40 Day Address assign the Network Address of the variable for day It can set the file s month day in the manual FTP function 41 Command Address assign the Network Address of the variable to send the FTP upload command It can enable the manual FTP function 42 Result Address assign the Network Address of the variable to read the result of the FTP function 0 no upload action 1 FTP is uploading file 21 upload succeed 101 upload fail that date file doesn t exist 102 fail to upload to the FTP Server 103 the Soft GRAF doesn t enable FTP 43 Progress Address assign the Network Address of the variable to read the FTP upload status It can get the progress status in the manual FTP function WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 54 3 3 21 g Logger1 Create a Data Logger Button with FTP Upload Function lt Please refer to the Section 3 7 5 for the description of a g_Logger1 demo program X The g Loggerl supports to record maximum 50 data Tags since the Soft GRAF Studio V 1 07A fa 1 Font size
34. WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 7 ST functions G_data If any name of Datal to Data17 is modified or value of SIZE1 is modified User must modify the below code Data1 Data2 Data3 Data4 Data5 Data06 Data07 Data08 Data09 Data10 F VAL1 0 F VAL1 1 F VAL1 2 F VAL1 3 F VAL1 4 F VAL1 5 F VAL1 6 F VAL1 7 F VAL1 8 F VAL1 9 get variable value from F_VA1L 0 16 Data11 F_VAL1 10 Data12 F_VAL1 11 Data13 F_VAL1 12 Data14 F_VAL1 13 Data15 F_VAL1 14 Data16 F_VAL1 15 Data17 F_VAL1 16 G data TRUE function returns TRUE If any name of Datal to Data17 is modified or value of SIZE1 is modified User must modify the below code F VAL1 0 Data1 store variable value to F_VAL1 0 16 F VAL1 1 Data2 F VAL1 2 Data3 F VAL1 3 Data4 F VAL1 4 Data5 F VAL1 5 Data06 F VAL1 6 Data07 F VAL1 7 Data08 F VAL1 8 Data09 F VAL1 9 Data10 F VAL1 10 Data11 F VAL1 11 Data12 F VAL1 12 Data13 F_VAL1 13 Data14 F VAL1 14 Data15 F VAL1 15 Data16 F_VAL1 16 Data17 S data TRUE function returns TRUE ST functions read_f1 This function read SIZE1 number of REAL value from file and store them to F_VAL1 return reaf_f1 as TRUE Ok FALSE Error read f1 FALSE set as F
35. hold behavior 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 at 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 4 E Windows LiF Ese lel ea ERA GEIR ATO aH EHA SetEt2e ree BRAHA N PID CPU cru BS teti w mime s520 0 00 00 odd E Wa APSVC EXE Seo 00 0 00 02 TTA E HISUM EXE 604 g 0 00 00 4316E TE SSC EHE 656 0g 0 00 00 O52 E u mstask ene 696 oD 0 00 00 3 272 E Note If the Mem Usage SYMPROEYSYVC 720 00 0 00 00 500 l Wink ent exe soo o0 0 00 06 220 E field is blank also stop it Sipe 876 00 0 00 02 9 672 E ehnan 904 03 0 00 00 9 688 E WISSERY EXE 936 oO 0 00 00 5268 E explorer exe 1140 OO 0 00 06 5 940 E PEO 1160 00 0 00 00 5500 E METON EIE Sm lahore Tun ee AFP Eee i426 OD 0 00 01 304 E NAVAPWG2 EXE i444 00 0 00 00 7190 E MSP Da eee 1468 00 0 00 00 4 504 E UsxPrmptexe 1504 00 0 00 00 LETZ E ICOLite exe 1512 g 0 00 01 14 348 E i DBA AJAA owe 15727 D D O O qc F 0 oF in
36. identity Password sid Identify Password 14 Title of Dialog Using bool address to hide 15 9 6 Show as picture the button is showed as a picture The picture format can be JPG GIF PNG BMP Recommemd not to use the BMP format because it consumes larger memory size 7 Show as string show the button as the setting text 8 Show as value show the replaced text depend on the value of the ISaGRAF variable Boolean False Show this text when the value of the variable is False Boolean True Show this text when the value of the variable is True 9 Title of Dialog the text showed on the title bar of the pop up dialog window 10 Mode select the input mode of the Boolean There are 5 modes a Normal can input True or False b Only False False only c Only True True only d True gt False True first and switch to False after a setting time e False gt True False first and switch to True after a setting time The following 2 modes are supported only when the Show as picture is checked f ON presssed OFF released presss to ON releas to OFF g OFF presssed ON released presss to OFF releas to ON 11 Switching Time If select the Mode of False gt True or True gt False set the switching time here The time unit is seconds and range is 1 10 seconds 12 Level Set the permission level used when the HMI has the permission setting refer to the Section 3 4
37. mA Trend Curve ai Trend Curve m Curevel Cureve2 Cureve3 Curevel Cureve Cureve3 7 balm I ALT TT oo NT TT Ur O E I a E T BURSLA ZAAN AAA 100 0 0 0 00 00 00 00 03 00 OB 9 AE fateh ae An dds JUNE O4 UNOS 23 33 00 2330 45 23 40 30 23 44 15 e alii2 Fause Resume Hi TUE XP 8xx7 CE6 8xx7 Atom CE6 Max 100 g_ Trend objects are available WP 8xx7 WP 5147 VP 25W7 23W7 Max 30 g_ Trend objects are available Curve Enable Curve 3 Addres EE Addres 7 tit me Color C Curve 3 Back color S Grid Color P Enable Curve 2 Address Color 2 3 4 Options 1 Curve set the address curve title and color max 3 curves in a trend map Address the ISaGRAF Modbus NetWork Address of the variable for the curve Title the title of the curve Color the color of the curve 2 Fore Color set the color of the scale and the text 3 Back Color set the color of the background 4 Grid Color set the color of the grid WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 45 5 6 7 8 9 10 5 Size set the size of the object W for Width H for height 6 Location The X Y starting position of the HMI object Refer to the Ch3 2 for its definition of the X axis and Y axis 7 Sample Time sampling time of the trend Set the time interval to read and display the curve once It must be the foll
38. password that setup in the Soft GRAF Studio designing step user cannot input this Float value For test this button please go to Page1 press the button Login and enter the password 012345 then the system will go to Page2 automatically and then user can press this button to change its value 4 The function is the same as 3 For testing go to Page1 and enter the password of Level 1 or Level 2 5 Switch to Page3 This button the same with the authority protection switches to Page3 only when user logins in with the password of Level 2 or upper level Page3 1 1 Switch to the Page2 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 78 3 7 2 Demo05 My Sweet Home Demo Description This demo shows how to design an interactive and dynamic HMI page Restore demo05 pia and download to the PAC Restore ISaGRAF Project Demo05 A SaGRAF Project Management File Edit Project MEMA Options Help A 0 amp m sofgr 08 Archive Projects x Workbench Archive demas Hestore Yr Close Help i Compress Browse Archive location D SOFT PAC Download Demo05 to PAC SaGRAF DEMOOS Programs File Make Project Tools Debug Options Help A Sit Om xr me AB HHH BB Generate a pulse Wii and get Time isa WW PO WinPAG Sex7 5ex6 ISaGRAF Driver Setting About Configuration Slave Number fi Modbus ATU Slawe Fort hone jis2o0 p M 5 1
39. 00 00 DI 1 SjSEOFF ON WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 92 3 7 5 Demo08 How to use g Loggerl This Demo08 shows how to use g_Logger1 object First restore demo08 pia to the PC ISaGRAF and then download it to an ISaGRAF WinCE PAC A SaGRAF Project Management File Edit Project Options Help 4 Projects Common data m sofgr 08 m sofgr 09 I l Import IL program Backup Restore Close Help W Compress Archive location DASUFTA Browse Then download this program to the ISaGRAF WinCE PAC User may refer to the section 1 1 1 2 and section 2 1 of the ISaGRAF User s manual if not familiar with the ISaGRAF software The manual resides at http www icpdas com products PAC i 8000 getting started manual htm about 11MB HMI view of this project Soft GRAF demo for g_Loggerl www icpdas com gt FAQ gt software gt ISaGRAF gt 158 Trend Curve ma 100 0 15 10 00 18 11 30 Pause Resume History WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 93 Project Structure There is one Ladder and one ST program in the Demo08 project Global Variables SaGRAF FAQIS56 Programs File Make Project D meg Dat xr mk ai Begin Toole Debug O x Options Help Begin ST1 Structured Text Name Type Attribute Description INIT Boolean Interna
40. 086 ISaGRAF PAC WinPAC PAC iPAC ViewPAC WP 8x47 WP 5xx7 pPAC 7186EG iP 8x47 VP 2xW7 rs 232 g 1 7530 RS 232 to CAN Converter i A r gt H amp amp CANopen Device Sensor CAN Device Sensor WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 7 1 15 ISaGRAF PAC Connects the Smart Power Meter Support standard Modbus protocol support multiple RS 485 ports to connect to multiple PM 2133 2134 Smart meters PM 2133 2134 is a series of 3 Phase 4 Loops 1 Phase Compact Smart Meter with true RMS energy and power parameters measurement in a compact size The ISaGRAF PACs combining with PM 213x can apply to various control monitor systems about intelligent electric power measurement More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 129 ISaGRAF PAC WinPAC XPAC WP 8xx7 WP 5xx7 XP 8xx7 CE6 see i WPAC 718xEG pPAC Sxx7 VP 2xx7 iP 8xx7 PAC ViewPAC iPAC RS 485 Modbus RTU protocol PM 2138 Modbus RTU protocol PIM 213x Modbus RTU protocol PM 213x ICP DAS Intelligent Power Meter PM 2133 2134 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 8 1 16 ZigBee Wireless Solution The WP 5xx7 plus ZB 2550P and ZB 2551P RS 232 RS 485 Converters can apply wireless communication reduce the wiring cost and achieve the mission of remote I O control and data acquisition More at www icpdas com gt FAQ
41. 1 02 Feb 2013 by ICP DAS 12 3 The read_f1 and save_f1 program use local variables as below read f1 Name Tye Ateibute Description Index of for loops To declare local variable please double click read_f1 to get into this program Then get into the Dictionary window Then click on Local objects to declare them ISaGRAF WDEMO 56 Programs File Make Project Tools Debug Options Help A BSG Cet xMe Oe Ae Begin ST1 Functions Read retained data from file save_Fl Rie retained data to file de ISaGRAF WDEMO_56 READ Fi ST program lima Functor File Edit Tools Options Help ELSIF ba 4a mse xd elg CASE amp This function Dictionary PO REAL value from file and store vratuyrn ran FIF nam TDIR ib Ril CR Berar SaGRAF WDEMO 56 READ FI Local booleans File Edit Tools Options Help aloo ext Rg Booleans integers Reals Timers Messen LEE instances Defined words Name Attrib ml Local objects Pe internal aa OON O ON scl WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 4 Global variables Amount of retain variables Can be 1 to 255 Pls modify SIZE1 Integer Constant the Dim value of the F_VAL1 and Old_F_VAL1 to the same value as SIZE1 Here we use SIZE1 as 17 How many rows in the file This value is automatically num_row1 Integer Internal eaten ee
42. 2 AU Fan0 3 m 040 gif Location x RAAT Al Image Formats bmp ipe sif png True File Fan03 m 041 gif False File Fan03 m 040 gif WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 14 Next create two g B_Inp objects Drag amp drop a g B_Inp object into the editing area 1 123 45 6 4 P MSG i To Pa ge ON OFF ON gt 5 sec gt OFF Mouse right key click and select Setting then set Network Address as 11 Font Size as 9 Bold and set the same Input color for True and False Mode select Normal O Show as picture O Sin sane switching Time 1 O Show as value Laval Boolean False off Ask before operation Boolean True Identify Password Title of Dialog Using bool address to hide WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 15 Then create one another g Inp object Right click and select Setting to set the Network address as 11 Font Size as 9 Bold and set the same Input color for True and False ON gt 5 sec gt OFF common Input Setting imac Location mp Pallss Switch to the Input Setting page key in ON gt 5 sec gt OFF in the Textbox of Show as string select False gt True for Mode Select set Switching Time as 5 Sec and then click Ok common Input ee O
43. 30 File format the transmission file format It can be CSV or txt file 31 Hour to Send the specified upload time every day There are 3 time zones to set up The file will be sent at the 3rd minute of that time zone for instant if the specified time is 00 00 the file will be upload to the FTP Server at 00 03 X Hour1 upload the data of the previous day and 00 00 Hour1 of today Hour2 or Hour3 upload today s data since 00 00 to Hour2 or Hour3 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 52 Setting 1 Setting 2 Setting 3 oS i iain Enable Ftp 2 FIP server IP 192 169 11 1 Fort NG 32 33 34 35 36 32 Enable Ftp 2 check to enable the 2nd FTP Alarm data will be send to the 2nd PC FTP Server 33 FTP Server IP the IP address of the FTP Server Ex 192 168 11 1 34 Port NO the port number to connect the FTP Server normally is 21 35 User name amp Password the user name amp password to log in the FTP Server 36 FTP Directory the directory of the server that the file to be upload to Default is the root directory WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 53 Setting 1 Setting 2 Setting 3 Setting 4 Setting JR as 09 41 Command Address g 42 Result Addres o o 37 Enable Manual FTP setting check to enable the manual FTP function and to set up the related Network Addresses in this page
44. 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 30 OUTO1 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 name B1 border 0 src img circle_blueO jog width 19 height 20 gt lt div gt lt p gt amp nbsp lt div gt u liye 1 Please insert name B11 just after the lt img OUTO2 Area Layer11 to Layer13 lt div style position absolute width 100px height 100px z index 5 left 242px top 164px id layer11 gt lt 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 name 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 name B2 type hidden value 0 gt lt input name END type hidden gt lt form gt Please insert below code after the lt img lt
45. COMI Control COM Time out seconds ahaa ETHERNET Retries Cancel 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 WP 5xx7 controller ETHERNET link parameters l E xj Internet address 192 168 1 1 Port number 502 The Workbench uses the WINSOCK DLL library for TCP IP communications Ensure that this file is corectly installed on the hard disk Once you have entered the appropriate information click on the OK button Now you have configured your PC to communicate with the WP 5xx7 through the Ethernet port WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 4 A 5 Pin Assignment of COM1 COM2 COM3 and Multi Clients Connection to the WP 5xx7 Each WP 5xx7 has an IP address and with a fixed Ethernet port No 502 Up to 32 PCs can link to one WP 5xx7 throughout Ethernet Modbus TCP IP protocol one TCP IP connection for each PC Other PC or HMI can link to COM2 RS 485 port or COM3 RS 232 or COM1 5 6 Appendix G amp E Modbus RTU slave L i o e Modbus RTU WP 5xx7 WP 5xx7 Options Industrial Ethernet Switch http www icodas com products Switch switch list htm NS 205 10 100M 5 ports NS 208 10 100M 8 ports Pin Assignment COM1 COM2 and COM3 oMi OM COM D H rar PAL y of FP 5141 i _ an S a
46. E ee ee 3 42 2AL7 g Rect Drawa Rectangle Been ne PC oad PO A 3 44 3 3 18 g Trend Create a real time trend to display max 3 curves and may also enable the nistoricaltrend TUMCLION CO record theni nieoneisiiinn eaaa INEAN 3 45 3 3 19 g Gauge Display a Long Short Integer or a Real Value as an Angular Gauge 66 3 48 3 3 20 g Alarm Display an Alarm List to Show the Triggered Alarm Messages and Provide FTP Oa FUNCH Oia sce tihutic cactcchaahceaces T eatacet ee 3 50 3 3 21 g Logger1 Create a Data Logger Button with FTP Upload FUNCTION ccccceseeeeeeeees 3 55 3 4 How to Set Up the Access Permission Of HMI vccsisscccascscsdscecaessaevsasasdnseavendassciecsasabevesavesvecdavens 3 61 3 5 How does the Soft GRAF Driver Distinguish the Picture Animate or Not ccccccesseeeeeeees 3 63 3 6 Other Features IMEFO CUCU ON onsas a E E Aa 3 64 3 0 1 Copy the HMFODEctHathe CHD DOAN ducea ai aa TAN 3 64 3 6 2 Paste the Text into HMI Object via the Clipboard ssssessensssensssersseerssresssersseersseersseessseee 3 65 20 3 Adjust TNE OD ect Orde rrrsrn a 3 65 3 6 4 Switch the Soft GRAF HMI Page by ISaGRAF Program c sscccsssscccesseceeseceeesececeesceseuaees 3 68 3 6 5 Check Upgrade the Soft GRAF Driver Version ccccccccccccccccccssseeeeeeeeeeeeesesseeeeeeececeeseeess 3 70 3 6 6 To Display the Soft GRAF HMI with Real Full Screen ccccccccssscccessececeseceeeececseeceseenees 3 71 WinPAC 5
47. HMI or other Touch 8000 series products For more information regarding interfacing the Touch series of MMI devices to the WP 5xx7 5xx6 controller system please refer to chapter 4 Linking the I 8xx7 to HMI Devices of the User s Manual of the ISaGRAF Embedded Controller RS 232 Touch 500 WP S5xx7 Touch 8000 5l Touch 6000 Modbus RTU Slave i RS 232 RS 232 e a sai RxD TxD GND _ GND CTS ars WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 9 A 10 Linking to Other Modbus Devices The COM2 RS 485 or COM3 RS 232 or COM1 COMS to 12 refer to Appendix E supports Modbus Master Protocol Please refer to chapter 8 of the User s Manual of the ISaGRAF Embedded Controllers for more information RS 232 WP 5xx7 Modbus Device COM 1 3 RS 232 TXD RXD RXD _ _ _ _ _ _ _ _ _ _ TXD GND GND CTS RTS RS 485 WP 5xx7 Modbus Device Modbus Device COM2 RS 485 RS 485 D 485 485 D 485 o 485 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 10 A 11 Control the L1 and L2 LED In the ISaGRAF you can use show3led function in the I O Connection window to achieve this procedure 1 Mouse click I O Connection to open the window 2 Inthe 1 O Connection window double click on a slot number large than 0 and select show3led then click Save 8aGRAF TEST Programs File Make Sone Tools D
48. Integer Internal Tag Server y Integer Server integer Server WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 4 Create Main Screen 1 Select the Graphics tab in the Workspace window 2 Click mouse right button in the file folder of Screen The Screen Attributes window appears yy lt 3 Set up the screen attributes such as Size Location Runtime Properties and Background Picture then press OK to edit screen gd a i fi eed Home View Insert Project paa R Translation HE screen Mp Alarm Report KEY Scheduler W OPC client PB Add Remove Driver p filtrend Script E Database Fal TCPAP Client Hf Driver Sheet Recipe Baath 4f oDsc 2 Click right button in the file folder of Screen Task Worksheets Communication ii corn Screen Attributes 3 Setup the screen attributes 4 ProjectPemo_01 APP l an Socos Description MainPage J Screen d Insert s i Thin Clients Background Picture Size E Location m E Project Symbols _ Enable Background BMP Width 320 Top 0 ATERS Shared image Height 240 Left 0 27 Symbols B Layout Runtime Properties Security Titlebar Level 0 Style Replace Partial v Screen Logic Maximize Box Bord Minimize Box a Wn Upen Don t redraw a While Open Disable Commands w On
49. Manual Send UDP Str to PC 3 sec later wpdmo19a is better Time_Gap is 250 ms slot0 XW107 Chapter 19 2 of the ISaGRAF User s Manual receive String coming from remote PC or controller via UDP IP using com _MRTU to disable enable Modbus RTU slave port o o Ee O ajoa Q Q 3 3 3 3 O O O O me me NI N LO LO Ee oO PWM I O demo Pulse Width Modulation minimum scale is slot 0 XW107 2ms for WinPAC Q 3 O N N Send Time String to COM3 RS 232 every second by using COMOPEN COMSTR_W FAQ 059 _ Send string to COM3 when alarm 1 to 8 happens slot 0 XW107 WP 5xx7 10 0 0 102 link two i8KE8 I O one is 10 0 0 108 one is 10 0 0 109 FAQ 042 WP 5xx7 10 0 0 2 link one i8Ke8 I O 10 0 0 109 FAQ 042 Set up WP 5xx as TCP IP Client amp link to other TCP IP server slot 0 XW107 1 connection Chapter 19 3 of the ISaGRAF User s Manual Same as Wpdmo_ 32 but send message only when event last slot 0 XW107 for larger than 3 seconds Read Real Val from Modbus RTU device www icodass com gt FAQ gt Software gt ISaGRAF gt 47 amp 75 Write Real Val to Modbus RTU device FAQ 047 amp 75 Using Modbus function code 6 to write 16 bits FAQ 046 amp 75 COM2 connecting 1 M7053D 2 M7 045D MBRTU format baud 9600 Chapter 21 of the ISaGRAF User s Manual COM2 connecting 1 M 7053D to get D I counter value M
50. Multi Pages demo wphmi_O5a Slot 0 XW107 Page menu is on the Top l a Slot 2 Virtual I 87024W wphmi_06 AIO demo scaling is in ISaGRAF l Slot 3 Virtual l 8017HW oo Slot 2 Virtual l 87024W wphmi_07 AIO demo scaling is in the PC l Slot 3 Virtual l 8017HW wphmi_08 Download controller s file to PC Slot 0 XW107 wphmi_09 Pop up an alarm window on PC Slot 0 XW107 Slot 2 Virtual l 87024W wphmi_11 Trend curve l Slot 3 Virtual l 8017HW WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 1 Record 1 to 8 channel i8017HW s volt every 50ms Slot 3 Virtual 8017HW and draw the trend curve by M S Excel Slot 2 Virtual l 8024W aomi 12 Record 1 to 4 Ch i8017HW s voltage every 10ms Slot 3 Virtual 8017HW lie and draw the trend curve by M S Excel Slot 2 Virtual I 8024W wphmi_ 12 4 2 Steps to Set Up a Web HMI Demo 4 2 1 Step 1 Setup the Hardware A Please have one WP 5147 and then plug one XW107 board in its slot 0 If you don t have the XW107 8 IN amp 8 OUT board please follow the same steps as below however your Web HMI demo may be replaced to wphmi_01 not wphmi_05 B Prepare one VGA monitor one USB mouse and one Ethernet cable and then connect them to the WinPAC 5xx7 The keyboard is using the software keyboard on the bottom right of the VGA screen C Power the WinPAC 5xx7 up 4 2 2 Step 2 Setting the Web Options A Please refer to the Appendix A 3 to set a
51. NET System Windows Forms 2 0 0 0 2 0 0 0 C Program Files Microsoft NET System Windows Forms Dat 2 0 0 0 2 0 0 0 Ci Program Files Microsoft NETS o Cirta Y onl FAAN FAA fe ees erie aa Balaeth Aanrenet ME Th 4 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 3 3 Click the Browse button Select the QuickerNet dll from WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 CSharp net_2008 demo wp_CSharp01 subfolder or from your own location Add Reference NET Projects KS WEB gt wp_CSharp0l Cob s Job Click Browse to find gt Properties QuickerNet dll S aa WEAR ARRANT Component Files d1 tlb olb 0cx exe 4 When both mscorlib and QuickerNet dll are added you can see them in the solution explorer as below P solution wp CshecpOl il projecti S 2 wp_CSharp01 W ual Properties B OF References 43 mecorlib T 42 quickemet T System 42 System Data 42 System Drawing 42 System Windows Forns I System Eml CE Formal cs H Formul Designer cs H Forni esx c Program cs WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 4 5 Right click on the Form1 cs and select View Code from the pop up Move cursor to top and insert the using Quicker in the first statements Solution Explorer Solution w A X _ Form1 cs Forml cs Design ligusing system 2
52. RS 422 This often leads into a new problem of inefficient communication The tGW 700 series gateway of ICP DAS can solve this problem Using the tGW 700 series gateways can change the RS 485 to the high speed Ethernet and eliminate the cable length limitation of the RS 485 network to solve the problem about poor communication efficiency This section introduces the way to use the tGW 700 with the ISaGRAF PAC ISaGRAF WinCE PAC Lighting Control Module ot ee ar os r s F E LC 103 WinPAC mI WP 8xx7 WP 5xx7 Modbus TCP to RTU SRA ASCII Gateway E es Porto lt lt lt ID 1 ID 2 ID 3 3 Phase Compact Smart Meter PM 2133 sc sera a z iDz1 iDz2 ID 3 Ethernet RS 232 485 422 port1 am VP 23W7 25W7 Universal IR Learning Temperature and tGW 700 Series o Remote Module Humidity Data Logger Will Using one IP address E aa 2 Port a YI Ss o Module XPAC ID 1 a ip 3 PO ir iy Sng PA IR 210 IR 712 DL 100 Series dis The following versions of the ISaGRAF PACs support to send Modbus TCP commands of different NET ID to the same Modbus TCP Slave device i e to the tGW 700 series ISaGRAF WinCE PAC ISaGRAF Driver Version WP 5xx7 1 02 or later version WP 8xx7 1 52 or later version VP 25W7 23W7 1 44 or later version XP 8xx7 CE6 1 32 or later version XP 8xx 7 Atom CE6 1 01 or later version Download the Document and the Demo Programs www icpdas com faq isagraf htm g
53. Safe Mode run the Uninstall feature from the Start menu to remove the driver gt Communication ee ee Bea Calibration SEE HS Command Prompt DrawDemo y RightButton ie Favorites 1 4 Documents DA Regview E setcom ar Settings I TaskMaor O Uninstall CP Run a Windows Explorer i WINPAC_Utility 4 As the figure below click Yes to start the procedure and then click Yes to reboot the WP 5xx7 Please back to Section 1 2 RS 232 or Section 1 3 USB to install the proper driver and run the monitor calibration Remember to run the WinPAC_ Utility and set all settings that you recorded before WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 29 I 5 Adjust the WinPAC Display Frequency The default display settings of the WinPAC do not support all kinds of the monitor Please refer to this appendix to adjust the display problems like the following list 1 Moire 2 No display 3 The screen cannot be displayed properly Bigger or smaller The WP 5xx7 supports the function to adjust the display frequency since the following versions V1100 and latter V2 0 2 7 and latter Note Some frequency maybe cannot display on the monitor So please set the VCEP auto execute to remote control the WinPAC before you try to change the frequency to solve the display problems Refer to WinPAC FAQ Chappter 2 001 WinPAc Utility 2 0 2 7 1 Step 1 Push the auto a
54. Support SQL Server Communication Application SQL Client SQL Server SaGRAF PAC M S SQL Server E 2000 SP3 2005 2008 WinPAC Machine to Business WP 5xx7 WP 8xx7 Ril Write Data to Server XPAC Ethernet XP 8xx7 CE6 ViewPAC VP 25W7 VP 23W7 Read Data from Server One PAC can connect max 4 Servers www icpdas com gt Support gt FAQ gt Software gt ISaGRAF gt FAQ 135 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 10 1 18 2G 3G Wireless Application The WP 5xx7 can communicate with remote Server by 2G 3G wireless modem More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 143 151 153 2G 3G Wireless Application GSM 201 RS232 2G GTM 201 3GWA 3G COM3 RS 232 WP 5Sxx7 tre 2 Z TCP UDP GPRS 2G data m WCDMA 3G e mail with attached i 4 Control Center WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 11 Chapter 2 Software Installation Please refer to Chapter 3 for the Soft GRAF HMI applications The WinPAC 5xx7 WP 5xx7 is the abbreviation of the WP 5147 WP 5147 OD The WinPAC 5xx6 WP 5xx6 is the abbreviation of the WP 5146 WP 5146 OD Important Notice 1 Please always set a fixed IP address to the WinPAC 5xx7 No DHCP 2 Please always set WP 5xx7 s LAN2 as disabled if not using it refer to Appendix D 3 Recommend to use the Industrial Ethernet Switch NS 205 NS 2
55. System_disk may crush or lost for some days or months later This chapter lists the procedure for creating the first demo program by Visual Studio NET 2008 development tool There is some sample programs in the WinPAC 5xx7 CD ROM WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 vb net_2008 demo wp_vb01 Digital I O demo with one XW107 in slot 0 of the WinPAC 5xx7 wp_vb02 Analog I O demo with virtual I O board I 87024W I 8017HW wp_vb03 Read Write ISaGRAF internal integers timers amp real variables No I O The related ISaGRAF demo project names are wp_vb01 pia wp _vb02 pia and wp_vb03 pia in the Same directory 7 1 Create a New Project In the first users need to open Microsoft Visual Studio NET 2008 software And then in the menu of File please run the New Project fe start Page Microsoft Visual Studio Edit View Tools Test Window Help BY New Project Ctrl N eS New Web Site N Shift Alt N Page New File Microsoft GJ Open Broject CO AVEK a0 e M00 ES Open Web Site ShifttAlt O 2 Check the Smart Device on the left then selecting the NET frame work 2 0 and Smart Device Project Entering a proper project name and the last click on OK WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 1 WET Framework 2 0 Visual Studio installed templates Project types Templates E Visual Basic o i Windows Web JES mart Device
56. TMP2 f_close File1 All rows are read Ok if ii2 num_row1 then read Fl TRUE return value as TRUE Ok end_if WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 9 ST functions save_f1 return save_f1 as TRUE Ok FALSE Error save_f1 FALSE set as FALSE Error at the beginning Filel f_creat File name1 Creat a new file to write if Filel O then return creat failed exit this function end_if str1 set initial value of str1 if ii2 num_row1 1 then last row max num_row1 rows to save these REAL values each row in the file contains 10 REAL values for ii2 0 to num_row1 1 do num2 last_num1 last row has only last_num1 number of data else non last row num2 10 non last row has 10 data end_if for jj2 0 to num2 2 do str1 str1 REAL_STR F_VAL1 10 ii2 jj2 end_for the last data in each row should end with lt CR gt lt LF gt character str1 strl REAL_STR F_VAL1 10 ii2 num2 1 SODSOA TMP2 f_writ_s Filel str1 write one row to file end_for Any file been open should be closed by f_close TMP2 f_close File1 save _f1 TRUE return value as TRUE Ok WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 10 This function write 20 REAL value F_VAL1 0 19 to file How to test this wpdmo56
57. The declaration of Text object B12 is defined here by the lt b tag l and id B12 and lt b gt tag the initial value of this B2 is OK lt div gt lt body gt 6 4 2 6 Displaying Float Value with Fixed Digit Number Behind The Symbol Demo example wphmi_06 and wphmi_07 Section 4 1 The float_str1 para1 para2 function can convert float value to a string with fixed digit number behind the dot symbol paral 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 3 return 1 234 float_str1 1 234567 2 return 1 23 Convert float val at Network Address 21 to a string function refresh_data with digit number 3 behind the dot symbol F21 innerText float_str1 float_val 21 3 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 12 6 4 3 Post Data to the Controller The former section 6 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 WinPAC 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 Name of this form Method should be post i Action should be
58. Tie HarGWal e oa aa ea a a 4 2 4 2 2 Step 2 Setting the Web ODU OMS sirsie a N E 4 2 42 Step DOWwNoad ISIGRAR Proje Cl tirei a a E E A 4 3 4 2 4 Step 4 Download Web Pages to the WinPAC esssssseesssesssrssseesssereseersseessseesseereseresseersseee 4 7 AS SED 552 SOW MG asn a a A 4 7 Chapter5 Programming a Web HMI Example s ssesessecessesessecesosoecssoesesoesseoesssoesesoecesoscesoscsessececee 5 1 sM Writing a Simple ISaGRAF Pros rain ucini aa aaa 5 1 5 1 1 Open ISaGRAF Project Management cccssccssccssccseccsccesccesecasecsseesecesecessceseseeessetseceaees 5 2 S2 Creatine amisaGRAFRUSEr S GiOU D sisensesinte n a 5 3 Diigo Creating a New lSaGRAF Project ienne E N E N N 5 3 5 1 4 Declaring the ISaGRAF Project Variables iiis TEE AE AEE ANA EARTEN 5 4 5 1 5 Assign Modbus Network Address No to Variables cccccsscccessecceessecceeseceeeeceseeeceseeeeeees 5 8 SLO Create tne LD LDI Proerd meaa a a E N 5 9 SE EdE LDLAPrOe aMi rR nee Ea OE 5 10 SEE COnNectine thel A Ren nr ree Ror n PEE a a ee eee 5 14 52 Compiling ss Simulating the Example Proje tinas uioun a E 5 16 5 3 Download amp Debug the Example Proje ct ccccccssecccsssecceeseceeesececesceceeeceesesecesseecessencessuaees 5 19 5 4 Desin the Web Pala anaron E aG 5 23 54 1 Step t Copy the Sample Web HMI page Seron a OTR R 5 23 5 4 2 Step 2 Building The Maint sivecleiccneszicessteus Hworveastiuneladecusszeasustedn eancecaatinet aa i 5 2
59. ToPaze Png e a ToPage setting 1 2 3 4 5 6 7 8 9 10 DE To Which Page a 11 12 Options 1 Size set the size of the object W for width H for height 2 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 3 Font size set the font style and size of the text useless in other font setting 4 Fore Color set the fore color of the object text 5 Level Set the permission level used when the HMI has the permission setting refer to the Section 3 4 When user s login permission level is higher than this level the user can access the function 6 Appearance show the object by a picture The picture format can be JPG GIF PNG BMP Recommemad not to use the BMP format because it consumes larger memory size 7 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False 8 Ask before operation to ask again by a pop up window before operation 9 Ask message the text in the pop up window of Ask before operation 10 Deny message The message will show when the user Level is too low to access the switch page
60. Utilities for ISaGRAF The ICP DAS Utilities For ISaGRAF consists of 3 major items 1 O libraries for all ICP DAS ISaGRAF controllers Modem_Link utility Auto scan I 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 Section 2 1 Step 1 before continuing There is a CD ROM supplied with each of the WinPAC 5xx7 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 ISaGRAF Utilities InstallShield Wizard Welcome to the InstallShield Wizard for ISaGRAF Utilities The InstallShieldR Wizard will install ISaGRAF Utilities on your computer To continue click Next instaliShiait Note If ICP DAS Utilities for ISaGRAF 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 gt Driver WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 9 Chapter3 Working Soft GRAF HMI with ISaGRAF SoftLogic Soft GRAF is an HMI Human Machine Interface software developed by ICP DAS which allows user to create his colorful HMI application running with the control logic in the same ISaGRAF WinCE series PAC Using the PAC with the Soft GRAF supp
61. Ver 1 02 Feb 2013 by ICP DAS 3 9 To open an existing file 1 Click File gt Open GS Soft GRAF HMI Editor Fa Soft GRAF HMI Editor File Project Help EERI Pala Eza t BE E Am HAITI HAES a ELAS pw on Demol sof RRA T SoftGraf files sof Now create a HMI page The following HMI is the same as the Demo01 please set all the Network address in this project as 11 the address is the same as the Boolean variable LED_01 in the ISaGRAF program 1 First create a g Label object Drag amp drop g Label object into the editing area WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 10 2 Mouse right key click on the object and select the Setting or just mouse double click on the object Mouse right click here 3 Click Font size to set up as 9 Bold or the size you want NetWork Addres al Size W H Font 126 9 Resular Locaton X Y Fore Color LC Font Setting Back Color F Using bool address to hide al 4 Set up the Object Size as W 300 and H 60 NetWork Addres Sine W H Font size Location X T Fore Color AAN Text Alien O Using bool address to hide WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 11 Or using the mouse left key to change the Object size Move the mouse with holding the left key to r
62. Web HMI and other SCADA software or HMI devices Please refer to WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 english_manu user_manual_i_8xx7 pdf for section 4 1 amp 4 2 for detailed information about assigning Modbus network address a a Click on dictionary icon Click Tools gt Modbus SCADA addressing map Select Options gt Decimal or it will use Hexadecimal format as default Click on 00001 on the top window Double click on OUTO1 to attach it to the Modbus No 1 File Make Project Tools Debug Options Help HS 0 OOO viel me SOs Map Import text Segment gee AE Export text _ __ pgg Reserved 00001 Yarnables not mapped Booleans Integers Reals Timers Messages K1 Input 1 inthe SAMO board K2 Input 2 in the MAM DF board OUTO1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 8 Please follow the same way 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 amp SaGRAF EXAMPLE1 Global boolean SaGRAF EZXAMPLE1 Global timers File Edit Tools Options Help File Edit Tools Option Help DOG x DO x B instanc Booleans Integers Reals Timers MegeSqeN B instanc Attrib Addr Comme Name Attrib Addr Comme input 0006 inputi T1 internal THE O O NXI Modbus Addr No display here is always in hexidecimal format
63. WinPAC 5xx6 WP 5xx6 is the abbreviation of the WP 5146 WP 5146 OD Please refer to WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 english_manu user_manual_i_8xx7 pdf amp user_manual_i_8xx7_appendix pdf for detailed ISaGRAF User s Manual 10 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 4 IsaGR AF Project Management n O x File Edit Froject Tools Options Help Balten SCE ae User s gvide m creation Language reference m wdemo Ol vincon demo Library m wdemo 02 Wincon demo about m iol x BRO RE FL MIRAH Project create Mia aaa E B RAZCeO ISaGRAF 2003 12 16 1 Language reference Project architecture a FC language a FBD language ED language gt I language IL language standard operators function blocks and functions WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 1 On line Help of ICP DAS Add on Functions amp Function Bocks A ISeGRAF Project Management File Edit Project Toole Options Help Ey Gl Cy Ge tm 220 ae User s gvide fi creation fi wdemo Ol m wdemo 02 oo EEE Project created b 20031216 14 3 Language reference Wincon demo Wincon demo About To output at Technical notes E x C functions z chsample mbad a Functions Function blocks sample functions oe B
64. WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 5 A 6 Connecting PC to WP 5xx7 COM Ports The default Modbus RTU slave port is None User may change it to COM2 RS 485 or COMS3 RS 232 or None Please refer to A 2 Modify the NET ID amp Modbus RTU Port Setting and Appendix G amp E for more Modbus RTU ports Default communication parameter is 19200 8 N 1 Mi M COM D a Or Oe g ao a r o oa o a eo e DD A 8 ef Ff amp If connecting PC to WinPAC COM2 RS 485 an l 7520 RS 232 485 converter is necessary as below PC HMI l 7520 or I 7520R WP 5xx7 9 Pin D Sub RS 232 485 Converter RS 232 RxD 2 RS 232 RS 485 COM2 RS 485 TxD 3 TxD D D GND 5 RxD D D GND 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 HMI WP 5xx7 9 Pin D Sub RS 232 COM3 RS 232 RxD 2 TxD TxD 3 RxD GND 5 GND a DTR 4 E DSR 5 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 6 A 7 Deleting the ISaGRAF Project from the WP 5xx7 For some reasons user may delete the ISaGRAF program in the WinPAC 5xx7 controller Click on Setting tab and then click on Delete button to delete the ISaGRAF P
65. X axis and Y axis 6 Value Type set the value type to 16 bit Word or 32 bit Long 2 32 bit Long will occupy 2 Network Addresses g_F_Val doesn t have this option 7 Show as picture the button is showed as a picture The picture format can be JPG GIF PNG BMP Recommemd not to use the BMP format because it consumes larger memory size 8 Show as Title show the button as the setting text 9 Show as value show the value that ISaGRAF read 10 Fixed digit amount display the setting digit number only for g WD_Inp andg N _Inp Ex Set it as 3 if the value is 6 displayed as 006 if the value is 62 displayed as 062 etc WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 30 rai aa 11 nn Ask before operation 15 a8 a2 is roo a Up Linut 13 11 Limit setting set the up low limit of the input value 12 Alarm string a pop up window text when user input a value beyound the limit Low limit the text showed when the input value is lower than the Low limit Up limit the text showed when the input value is higher than the Up limit 13 Title of Dialog the text showed on the title bar of the pop up dialog window 14 Level Set the permission level used when the HMI has the permission setting refer to the Section 3 4 15 Ask before operation to ask again before operation 16 Identify Password ask to re input the password of that level 17 Using bool
66. and testing 1 Use a Boolean variable to testg_B_val g B_Inp g B Led g B Pic Settheg B_Inpas different input type to switch the Boolean variable such as press the button ON gt 5 sec gt OFF can set the Boolean to True for 5 seconds and then set it to False 2 Switch to Page2 3 Display the Trace function draw the curve according to the read value Setting the Action Address can select the way to draw and setting the Clear Address can clear the curve by manual In the HMI Page2 user can press the button Clear to clear the trace curve WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 77 4 Display a Bar meter 5 Ag _N_ Text object display the specific text according to the read value 6 The buttons set a Word Integer or Float value from up to down 7 Press the login button can go to Page2 Page2 1 3 i g_ToPage with level2 security pls login as i level 2 or Higrt user to operate it 2 5 g_F_inpwith level2 security pls login as level 2 or Higher user to operate it a g_F_inpwith level 1 security pis login as level 2 or Higher user to operate it w 1 Press the button to go to the Page1 2 Log out If login from the Login button of Page1 and login successfully press this button can return to Page1 and logout 3 This isa g_F_Inp object with the level 2 authority protection If user does not login with the Level 2 or upper Level
67. array management functions x New group Close Samples c isawiniismp New project group gt xl FREER EERE TEER TERRES EOE ERE HEHEHE HEHE RE HEROES Fee HERE ERR EEE Hee eee ee eee nee ees QIL Location C ISAWIN1I Cancel Sub dir ian Path c isawinl Demo To install the demo programs into the project group you have created first open the ISaGRAF Project Management window WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 9 Then select Tools from the menu bar then select the Archive option and then click on Projects A 1SaGRAF Project Management File Edit Project Tools Options Help D Archive Libraries demo rfarray Import IL program emonstatres array management functions rfbars demonstrates graphic bra graphs rfbool demonstrates SFC boolean actions hd Reference Rf Tmr FB Al Author CJ international a Date of creation 9 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 napdos isagraf wp 5xx7 demo in the WinPAC 5xx7 CD ROM x Workbench Archive Backup Hestore Close Anman na Help Archive location 7 2 x File name Folders backup c desktop i Sxx 1 demo a i po TR l Compress 1 Select the hard Browse drive ex C F N 2 Select the folder that
68. contains demos 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 Archive Projects E x Workbench Archive Click on the last file name from the demo file demo_09 m packs location and that will select the entire group of Ree aa i i demo 11b e demo files Lastly click on the Restore button in demo 12 i demo_13 the Archive Projects window and all of the demo demo_14 _ Cose i z i demo_15a files will be installed into the sub directory you have demo_15b Help demo_16 created demo_17 work_O01 work 02a work 02b Compress Archive location C ADOCUME 1 SCOTTADESKTOPMI 8XX771 Browse WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 10 10 3 Frequently Asked Questions FAQ ISaGRAF Ver 3 FAQ Questions Descriptions Demo programs http www icpdas com faq isagraf htm www icodass com gt FAQ gt Software gt ISaGRAF Ver 3 English FAQ Table Wo CS nahiSaGRAFVerSFAQ a arcant create my own uncionsinsidelSoGRAF gt ISaGRAF L Master controller to gather data from other Modbus devices Q What is the limitation of program size of I 8417 8817 8437 8837 7188EG amp I 7188XG Q Can not fine I O boards in the ISaGRAF I O connection window 2 Can not fine Q Can not fine I O boards in the ISaGRAF I O connecti
69. data56 txt max 255 integers wpdmoS56c Save 25 integer and 2 BOOL variables in Micro_SD data56 txt max 255 wpdmo56d Save 17 REAL 2 BOOL and 10 integer variables in Micro_SD data56F txt and Micro_SD data56 txt max 255 REALs and integer BOOL lt 255 wpdmo56e Save max 1024 REAL and max amount of integer BOOL is 1024 This paper shows the way to save the ISaGRAF variables to the Micro SD memory in the WP 5xx7 WP 8xx7 and VP 25W7 PAC The PAC will restore the last value of variables when power up And at any time when the value is modified it will save the last value automatically This paper is very useful for the WP 5xx7 PAC like the WP 5147 because its default hardware has no battery backup memory so it can not use the new retain variables if the XW 608 is not purchased and installed inside it Important Note 1 Please store your application programs and data files in the Micro_SD don t store them in the System_disk That is because the System_Disk is using Nor Flash memory Its size is small and major purpose is for storing OS some basic utilities and DLL The Nor Flash memory is not good for frequently updating files If update files frequently in the System_Disk for example update a file every 1 to 5 seconds then it will be about ten thousand more updates in one day the data or files in the System_disk may crush or lost for some days or months later 2 To read writ
70. example 61 218 42 10 or http 61 218 42 10 Login Windows Internet Explorer Seles GO Sinwwinseices 220a Sen ei RO SEO HAOD SHREW TRO wD E B A m E we de agl icppas Logn x A W RAEO WinPAC The Web PAC amp Please click on Enter to login Q10 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 37 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 Intemet Explorer T F E loj x BRO SEO RAO BAREA Tan HAW FE gt 0AA ara mms Gee gp s0 Heuser FRED E hepv 10 0 0 103 ogin al PRE Ei Norton AntiVirus pf Search a Hotbar A5 ats rie ed bel This is a Web HMI sample page Tntemet Explorer E x qf ee False o AR LEE ERE TST gt E EA Ar A E E la Lisa F LATERA ea GE A ABEN we EmO eS Enable it and then click on OK 7 ON iT 356 FE 3 fare DARAH tz 7 0 HAm Mn a 1 e 1 11 ma Aae ts 1 1 aea n a 11 r FHE TE Double click here to display the error message And also check if your ISaGRAF project already downloaded to the controller Refer to Section 5 3 or Section 4 2 3 And do you assign the correct Modbus Network address to the respective ISaGRAF variables Refer to Section 5 1 5 WinPAG 5ex7 bxx6 SaGRAF Driver Setting web
71. fixed IP address to the WinPAC No DHCP B Check on Enable Web HMI and then click on Setting Please check the Enable Account Security and then click on Edit to set username password Then remember to click on OK 3xx7 5xx6 ISaGRAF Driver J Security Settings fx Ed PAs rA Getting Account Modbus List IP Setting Bo Options Account Security a web HMI Pirity Low d Didable FTP Serveice User Name Level Disable Telnet Serveice Password To set up advanced security clickor Note If Enable Account Security is not checked settings any user can easily get access to your WinPAC through the Internet Explorer Priority High User Name Levels Password p WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 2 4 2 3 Step 3 Download ISaGRAF Project Please download ISaGRAF project wphmi_05 to the WinPAC 5xx7 This project is in the WP 5xx7 CD ROM napdos isagraf wp 5xx7 demo wphmi_05 pia wphmi_05 demo need one XW107 If you don t have the XW107 8 DI amp 8 DO board you may download wphmi_01 CD ROM napdos isagraf wp 5xx7 demo wphmi_01 pia If you know how to restore wphmi_05 pia to your ISaGRAF Workbench and download it to the controller please go ahead to the Section 4 2 4 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 the Section 2 1 amp
72. going to insert one image file to it as below The image file name is img big Tcircle_redO jpg Please browse to the correct folder in your hard driver Here we use example1 img in this example fF Microsoft FrontPas re DAC Shon DU r Manual WinConeQ00 Web _HMI demo examplel main l ioj xj fase ARPE WACO IBAD EAO IAD ted 2410 HES BE AG Bea KEL D Goa S Bt oem B 9 db psmee M ir r Times Hew Eg HEHEHE E A U zE El a Web TC F HER BAE R FEAU 1 Click inside the Layer4 Insert an image redi ape BF big Tsquare_oreen jpe BY cicle elow jpe ER biz_Tsyuare_green Jpg ET emdd j on 3 5 BREE A ellowljpg Bf big_Tsquare_red0 jpg ef cmall j HH Sot TEE Cc bhueXjpg BY big_Tsyuare_red jpg Bf login F Ea AE D _bluel jpg ey big_Tsquare_yellowOjpg Bf square i _gwendjpe EF big_Tsquare_yellowl jpg EF square _sreenl jpe lef civcle_bluel jpg ER square red pe wy civcle_bluel jpe ER square edl pe ei civcle_eveenl jpg ER square yelow jpg ER circle_green IDE E square elow jpg ER civcle_redO jpe ER square e bluel ips ley civcle_red1 JPE Ej avare ER OPPICEI1 iF e bluel jipe ER circle_yellowl jpg ef winor FLAEN PAi gt G FIP hE rie I akii FTP ne axe af tpg png bmp wm dib ha HGH Fe You will see a window as below E Microsoft FrontPage D Chun_D Vser_Manual
73. lamp The real state of lamp The real state of lamp Device1_1D1_D01_ state Device1_ID1_DO2_ state Device1_ D1_D0O3_state Device1 02 DO1 state Device1_ID2_DO2_state _ state Device1_ID2_DO3 TRUE FALSE FALSE TRUE FALSE FALSE The real state of lamp The real state of lamp The real state of lamp The real state of lamp The real state of lamp The real state of lamp lt end of list gt Version for ICP DAS 7183 3000 View Wincon series controle If set ALL_POWER_ON to true lt end of list gt If set lamp1 to true Note If user is not familiar with the ISaGRAF recommend to study the Section 1 1 and 1 2 and Section 2 1 of the ISaGRAF User s manual The PDF file names of the manual are user_manual_i_8xx7 pdf and user _manual_i_8xx7_appendix pdf You may find them in the CD ROM of the PAC product box or the web site htt roducts PAC i 8000 gettin www icodas com started manual htm WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 6 13 3 3 Description of the Demo faqi59_1 ISaGRAF Project Architecture There are two ST programs INIT1 LogCtrl and four LD programs DevRead Lamp1Pro Lamp4Pro DevWrite x isacrar Faqiss1 progans i ae eee File Make Project Tools Debug Options Help D HSM DE Fxr Oe ABR INIT1 initialize the modbus TCP handler mA DevRead Read the state of DOs fH lamp1Pro Control the DO1 of D1 mA lamp4Pro Control the DO1 of D2 the logic contr
74. left clicks on the box of Title in the HMI then mouse right click and select the Paste a Cormon NetWork Addres M Size a H Font siz6 O Regular Fore Color nee Oe 20 B Back Color Text Align Centr ov C Using bool address to hide Title Eg B PI HRC Hi EE E IRE T ie AE TAAA E aE Unicode ERFT E HRA Unicode ERFT 3 6 3 Adjust the Objects Order Soft GRAF Studio offers the function to adjust the layer order of the objects The first created object in the Soft GRAF Studio default has the highest level Layer The higher Layer object is above the lower Layer object when the objects overlap with others User can change the Layer level to use the overlapped object When you click an object its layer level and position will show on the left up corner of the HMI editing area the larger number Layer with the higher level Operation Example There are two overlapped objects g Label Label button and g_B_Inp The object g Label has the higher Layer than the g B_Inp and covers on it WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 65 Select the Label and click on the tool icon Sent to Back then can see g B_Inp x bet y 26 Layer 0 5 Inp _ ta Bool Ing When the HMI page needs a background picture please add it via g B Pic object Note Recommand user to add it at the last step for the convenience 1 First drag ag B Pi
75. months WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 46 Set Sample Time 1 second if enable 3 curves it consume about 1 44 MB for retaining 1 day about 45 MB for 1 month and about max 135 MB for 3 months Set Sample Time 2 seconds if enable 1 curve it consume about 0 24 MB for retaining 1 day about 7 5 MB for 1 month and about max 45 MB for 6 months Set Sample Time 2 secs if enable 3 curves it consume about 0 72 MB for retaining 1 day about 22 5 MB for 1 month and about max 135 MB for 6 months Set Sample Time 3 secs if enable 1 curve it consume about 0 16 MB for retaining 1 day about 5 MB for 1 month and about max 45 MB for 9 months Set Sample Time 3 secs if enable 3 curves it consume about 0 48 MB for retaining 1 day about 15 MB for 1 month and about max 135 MB for 9 months The rest are the same For example if enable 10 g Trend historical functions 3 curves for each and set Sample Time 1 second retain time 3 months the max memory consumption is about 135 M x 10 1 35 G byte 11 Low Limit set the minimum value of the Y axis in the trend map 12 Up Limit set the maximum value of the Y axis in the trend map 13 Conversion check if convert the value Original value the value range read originally Ex 0 32767 0 65535 Value after the value range after conversion Ex if the Original value is O 32767 and the Value after is O 1000 that means
76. on penmount_serial_ touch_v20100824 pm6000r cab in the WP 5xx7 s System_Disk external_device_driver to install it The last V 20100824 may be a different name depends on its modification date Note Users Must choose the correct driver Moreover the egalax and penmount versions can t be installed in the same PAC Address System Disk External device driver F egalax_serial_touch_v20100729 cab F egalax_usb_touch_v20100507 cab fF elo serial touch v20100507 cab ePelo_usb_touch_v 20100506 cab Ee penmoaunt serial touch_v20100824 ome6000r cab 7 penmount_serial_touch_v20100824 cab fer penmount usb touch _v20100526 cab F PMEO00_ Serial TOUCH 20100614 C4B If you can t find out the driver under the System_Disk external_ device_driver please visit ftp ftp icodas com pub cd winpac napdos wp 8x4x ce50 system_ disk to download them and then use FTP to copy the external_ device driver folder into the WP 5xx7 s System_Disk WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 24 3 After installing the driver please run WinPAC Utility gt Save and Reboot to save and reload WinPAG Utility 2 0 2 6 i 4 Note If you ever remove the aCA Help Configuration N INPAC Util driver under the Safe Mode ity oo Save and Reboot i Rotary Switch 1 please Reboot Without Save set the all settings again Restore Default Settings Exit 4 Click on SetCOM fe
77. one internal variable defined as follow ISaGRAF Variable Definition boolean 001 a xwiorDochanel1 Output O mees noa at Vitual87024W AO channel Output integers memi s1 imeralvariable Internal If you are not familiar with ISaGRAF please refer to Section 5 1 to 5 3 And setup the I O connection as following I O Connection Setting av SaGRAF EXAMPLE I connection File Make Project Tools Debug Options Help File Edit Tools Options Help SY Si OS m S Mie E aeset tl ERAS SaG RAF EXAMPLE Program Jof x o om xwi B nuan Sig B DIB 1 oj D x DOs 2 A Ed EE E WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 1 u SaGRAF EXAMPLE I O connection Wis ES ws ISaGRAF EXAMPLE 1 0 connection File Edit Tools Optons Help File Edit Tools Optone Help leB tl RK amp BS pBrn tl FRASE El imj ref 5107B o m xwlO a bua ref 87024 Es se DIG ne m range 33 2 A DOs n 1 A017 x 3 41 2 4 4 I T gt _ 87024 yr ue 3 4 sz eA Virtual I O board The ISaGRAF variables to be exchanged with InduSoft must be declared with a Modbus Network Address as below Fie Make Project Tools Debug Opti HSIf Oe tm x Qvick declaration Dictionary Modbus SCADA addressing map Booleans Begin LO Ladder Diagram Mame A Modbus SCADA addressing map amp SaGRA
78. receive message to from PC HMI or other devices WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 15 TCP Client LAN1 or LAN2 supports TCP Client protocol to send receive message to from Exchange Message amp PC HMI or other devices which support TCP server protocol Ex automatically Auto Report report data to InduSoft s RXTX driver or to connect a location camera Support the Soft GRAF HMI User can use the Soft GRAF Studio on the PC to Soft GRAF HMI design the HMI screen and then download it to the PAC to display the HMI on the PAC FAQ 146 SQL Client Support SQL Client function to write data to or read data from Microsoft SQL Server 2000 SP3 2005 2008 User Defined Protocol COM1 COMS by Serial communication function blocks COM1 COM3 can connect one l 7530 converter RS 232 to CAN to support CAN CANopen CAN CANopen devices and sensors One WP 5xx7 supports max 10 RS 232 ports to connect max 10 l 7530 FAQ 086 Support FTP client to upload files in the PAC to a remote FTP Server on PC FTP Client FAQ 151 Note COM5 COM12 are resided at the optional expansion XW Board series if it is plugged inside the WP 5xx7 ISaGRAF FAQ http www icpdas com faq isagraf htm Recommend to use NS 205 NS 208 Industrial Ethernet Switch WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 16 Chapter1 Typical Application The website for the applications supporting list of all ISaGRAF PACs htt
79. sample rate 1 min 7 2 Fore Color 3 4 Location X 53 5 Button Title 6 lt Level Options 1 Font size set the font size and style of the text the scale and the X Y values of the coordinate axis useless in other font setting 2 Fore Color set the color of the text and the scale 3 Size set the size of the object W for Width H for Height 4 Location The X Y starting position of the HMI object Refer to the Ch3 2 for its definition of the X axis and Y axis 5 Button Title set the title text for the button 6 Level set the security levels when enable the HMI screen security management 7 Sample rate set the object sample time the interval to read data once The sample rate setting affects the retaining days of data files As below The retaining time is 10 days if sampling rate setting is 1 or 2 or 3 seconds The retaining time is 30 days if sampling rate setting is 5 to 30 seconds The retaining time is 3 months if sampling rate is 1 minute or more than 1 minute The other note is one PAC can enable only one g_Logger1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 55 8 File format the file format to save It can be CSV or txt file 9 File setting the Network Address of the variables and the date format As below File sett o nw b Time format Show Date Hour Min w io am d Da
80. shape can be rectangle or ellipse 8 Font size set the font style and size of the text useless in other font setting 9 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 36 3 3 13 g B_ Pic Display a picture to show a Boolean value The picture format can be JPG PNG GIF or BMP Recommemad not to use the BMP format because it consumes larger memory size 1 6 2 3 4 5 Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 2 Size set the size of the object W for Width H for height 3 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 4 True File The picture showed when read a True value Refer to Section 3 5 for more about the dynamic image format 5 False File The text showed when read a False value Refer to Section 3 5 for more about the dynamic image format 6 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF varia
81. temp2 Set a float value 2 174 to the variable of Modbus Network Address 4 float temp3 2 174 UserShare UserSetReg_float Convert ToUInt16 4 out temp3 Demo Program WinPAC 5xx7 CD ROM 1 napdos isagraf wp 5xx7 CSharp net_2008_demo wp_CSharp02 for R W analog I O 2 napdos isagraf wp 5xx7 CSharp net_2008 demo wp_CSharp03 for R W internal Boolean long integer Timer and Real floating point values Note The long integer amp timer amp real 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 wp 5xx7 english_manu User_Manual_ _8xx7 pdf WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 9 m UserGetReg_ short m UserGetReg_ long m UserGetReg 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 UserShare UserGetReg_ Short ushort iUserAddress out int iStatus UserShare UserGetReg_Long ushort iUserAddress out int iStatus UserShare UserGetReg_Float ushort iUserAddress out float iStatus Parameter iUserAddress Specify the Network Address of Variable 1 to 8191 iStatus Get the short or long integer or float value Example float float_val short short_val int long val Get float value of the variable of Modbus Network Add
82. the animate picture that support by Soft GRAF The animate picture file should be named as ABC gif or jog or png The ABC is three number of 0 9 If the picture format is correct and the file name is correct the Soft GRAF driver will display it as animate picture The AB defines the amount of pictures to be animate The C defines the time period to switch pictures can be O to 9 If Cis O it means the picture is not animate The unit of C is about 0 125 seconds for XP 8xx7 CE6 PAC while is about 0 25 seconds for WP 8xx7 and VP 2xW7 PAC For instance gif Fan04 s 061 gif means the file is an animate picture It contains 6 pictures The switching time is about 0 125 seconds for the XP 8xx7 CE6 PAC about 0 25 seconds if running in the WP 8xx7 and VP 2xW7PAC For instance gif Fan04 s 062 gif means the file is an animate picture It contains 6 pictures The switching time is about 2 x 0 125 0 25 seconds for the XP 8xx7 CE6 PAC about 0 5 seconds if running in the WP 8xx7 and VP 2xW7PAC For instance gif Fan04 s 060 gif is not an animate picture because the switching time is 0 The following picture is the content in the gif Fan03 s 041 gif It consists of 4 small pictures to become a big picture from left to right The Soft GRAF driver will display it as animated picture r mg lt iP iP cj si A A 1 User can find the default burned in pictures in the following CD ROM or web site WP 8xx7 CD napdos isagra
83. web site htt roducts PAC i 8000 gettin www icodas com started manual htm Download Project to the PAC After compiling download the ISaGRAF project into the ISaGRAF PAC Test the Demo When the PC ISaGRAF connects the ISaGRAF PAC which is running the faqi159_ 1 project the below Spy Lists window will pop up Test the demo in the Spy Lists window 1 If set ALL_POWER_ON to true the DO1 of all LC 103 will turn on 2 If set ALL_POWER_OFF to true the DO1 of all LC 103 will turn off 3 If set lamp1 to true the DO1 of LC 103 ID 1 will turn on 4 If set lamp1 to false the DO1 of LC 103 ID 1 will turn off IsaGRAF FAQ159 1 LAMP List o E File Edit Options Help DBA smx Name ALL POWER ON FALSE ALL_POWER_OFF FALSE lamp TRUE lamp4 TRUE IsaGRAF FAQ159_1 LAMP List o beanie File Edit Options Help DBA smx Name ALL_POWER_ON FALSE ALL_POWER_OFF FALSE lampi TRUE amp lamp4 FALSE To set all lamps to turn on To set all lamps to turn off For user contro For user control To set all lamps to turn on To set all lamps to turn off For user control For user control Device1_1D1_D01_state Device1_ID1_DO2_state Device1_ D1_D03_state Device1_ ID2_DO 1_state Device1_ID2_DO2_state state Device1_ID2_DO3 TRUE FALSE FALSE FALSE FALSE FALSE The real state of lamp The real state of lamp The real state of lamp The real state of
84. will now start downloading to the WP 5xx7 controller system A progress bar will appear in the ISaGRAF Debugger window showing the project downloading progress D ISaGRAF EZAMPLEI Debugger Jof x Fie Contol Toole Optons Help mO rod oC AP RUN allowed 0 current maximum e overnlow 0 o ef Version for ICPDAS rise red00o MiewhWVincon series col Click on X to stop the communication between your PC and controller When the example project has successfully completed the downloading process to the W 8xx7 controller system the following two windows will appear 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 21 the I O Connections screen You can switch the DI status ON OFF on the XW107 I O board to see what happen about K1 amp K2 SaGRAF EXAMPLE Debug programs Jof x File Project Toole Options Heln HH gili Begin m aw ISaGRAF EXAMPLE 190 connection put 1 inthe 107 board Version for ICP DAS Ff18s e000 4 FALSE 2 4 FALSE You may also click on Dictionary to see the real
85. 01 20004601 H01 H 00 00 00 Alarm amount 8 ck In the popup Export window click Export to export data to the installed USB Disk Are you sure to export the alarm history to the USE pen drive overwrite the existing files 97 csv for excel v sub directory Format Assign the directory Select the export file format csv txt Today C Yesterday C This week i C Last week The Month Tha enh Select the date period to export OAI recent 1 more months How to use the search function Click the Search in the Alarm main window Alarm History 01 01 2000 Saturday pono o oe ee ao EOL H0LH 00 00 00 E amp E ON gt OFF 3 sec DI 342 OFF gt GN 3 sec Alert without pop up t0002 20004601 H01H 00 00 00 Alert without pop up 40001 20004201 H01H 00 00 00 Alarm amount 8 4ck 0 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 91 In the popup Search window key in the keyword and click Search to search data For this example key in DI Alarm History gt gt Search 2000 1 1 TO 2000 1 1 Set the searching time period K d E Sesen EOT Panel Type Keyword DIL 01 01 2000 01 01 2000 Found 4 Max 1000 0001 20004601 H01 H 00 00 00 DI 3 ON gt OFF 3 sec 0002 20004601 H01 H 00 00 00 DI 3 OFF gt ON 3 sec 0003 20004601 H01 H 00 00 00 DI 2 SEON gt OFF 0004 20007601 A01H 00
86. 08 or Real time Redundant Ring Switch RS 405 RS 408 for WP 5xx7 5xx6 4 For supporting retain variables you must purchase an XW 608 and plug it into the WP 5xx7 5xx6 Please refer to below location for detailed ISaGRAF English User s Manual WinPAC 5xx7 CD napdos isagraf wp 5xx7 english_manu user_manual_i_8xx7 pdf amp user_manual_i_8xx7_appendix pdf Note The WinPAC 5xx7 5xx6 supports ISaGRAF programming method amp provides Web HMI solution by default f user would like to program the WinPAC 5xx7 by using both ISaGRAF and EVC 4 0 or VS net 2008 it is also possible Please refer to Chapter 7 Chapter 8 or Chapter 11 2 1 Step 1 Installing the ISaGRAF Software The user has to install the following items before he can program the ISaGRAF 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 or Ver 3 5x IS aGRAF 256 E or ISaGRAF 256 C or ISaGRAF 32 E or ISaGRAF 32 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 WinPAC 5xx7 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 Windows 98 Windows 2000 or Windows XP Windows NT Version 3 51 or Windows NT Ve
87. 13 Ask before operation to ask again before operation 14 Identify Password to re input the password of that level Refer to Section 3 4 for the permission setting 15 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 29 3 3 7 g WD Inp g N Inp g F_Inp Button Components Input a 16 bit 32 bit Signed Integer or 32 bit Float to the Corresponding ISaGRAF Variable via a Pop up Keyboard Description Show as title Show as value Show as picture Setting a DERE 7 2 i a ii 20 5 6 Value Type Word v Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 32 bit Long integer and 32 bit REAL variables defined in the ISaGRAF must occupy two network addresses Refer to chapter 4 2 of the User Manual of ISaGRAF PAC 2 Font size set the font style and size of the text useless in other font setting 3 Fore color set the fore color of the object text 4 Size set the size of the object W for Width H for height 5 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the
88. 17 gt xxxx lt b gt lt div gt lt 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 lt input name L15 type text value Enter long val L15 gt lt input name F17 type text value Enter float val F17 gt lt input name END type hidden value gt lt form gt lt div gt Text input L15 amp F17 inside the form1 If data is timer please use L And W for word S for string lt 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 E cursor hand will display the mouse When mouse click on this button it lt body gt arrow as a hand when entering the calls Check to post to the controller button area WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 17 6 5 Multi Pages The Web HMI in the WinPAC 5xx7 supports multi pages application You may refer to Chapter 4 to setup the multi page demo wphmi_05 to see how it works 6 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 Pag
89. 2 inthe AWO board yr k2 Input 2 inthe W107 board M0000 input false true WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 5 Quick Way to Declare There are two outputs used in this example program named OUTO1 and OUTO2 ISaGRAF provides a quick and easy way to declare like variables that are sequentially ordered To begin this process 1 Click on the Quick Declaration icon In Numbering item From and To Enter a continuous sequence of variables to the start and end of the digital In this case from 1 to 2 Digits Enter the number of digit In this case 2 if the number is less than 2 digit it will add O such as 01 3 Enter the Symbol name for the output variables being declared Set the attribute to Output and then click OK to complete the setup 5 Now all two outputs will be immediately added to the Global Boolean window Click on Save to store them SaGRAF EXAMPLE1 Global booleans ojx File Edit Tools Options Help _ sid OOS exe s wee Booleans IntegersiReals Timers Messages FB instances Dein Suick declaration Mame Attrib Addr Comment KI Quick declaration Ez Numbering Attributes C Internal C Constant File Edit Tools Opies Help a CD OO G xed Attrib Addr Comment input OOO Input 1 inthe W44 OF board tat ae Ki input OOOO Input 2
90. 21 is defined here F21 innerText float val 21 If want to display Word data please use word_vall If want to display Timer data please use timer_vall For ex F21 innerText timer_val 21 ms lt body onLoad init gt The layout or location of the Text object F21 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 79px gt lt 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 b tag amp id F21 amp lt b gt tag initial value of this F21 is xxxx WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 9 6 4 2 3 Displaying Dynamic Long Integer Data Demo example wphmi_03 and wphmi_05 Section 4 1 If user want to display the dynamic long integer value 32 bit format the below code can be used function 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 Shady onLoad init gt defined here by the lt div and lt div gt tags lt div style position absolute width 214px height 53px z index 2 left 102px top 79px gt lt b id L11 gt xxx lt b gt lt div gt The declaration of Text object L11 is defined h
91. 22 334 8 M val Display a M ssag Vale siccaviccv sin tadvvdeccaderevabanindaleuavdaieteSveddcnacevetstavnedateawdacateious 3 25 3 3 5 g N_Text Display a Different Text by the Value of an 16 bit Integer Variable 3 26 3 3 6 g B Inp Button Components Input a Boolean Value to the Corresponding ISaGRAF Vala ble viaa POD UD KEV DO ar diaosna a era 3 28 3 3 7 g WD _Inp g N_Inp g F_Inp Button Components Input a 16 bit 32 bit Signed Integer or 32 bit Float to the Corresponding ISaGRAF Variable via a Pop up Keyboard 066 3 30 399 22 LOCI Cr eatea OSI UEUON opanci EN N A A a tice eeeee 3 32 33 9 g L gou ut Create T Logout BUTON rsson ana a E a 3 33 3 3 10 TOPage Greate a SWiteh Page BUWON ciroiraroaei i e E A 3 34 3 3 11 g M Inp Button Components Input a Message to the Corresponding ISaGRAF Variable via a POPUP KEYDOI umasa A a E 3 35 3 3 12 g B_Led Can Display a LED Picture to Show a Boolean Value cccccsssecccssececeseeeeesees 3 36 3 3 13 g B Pic Display a picture to show a Boolean value sssssssensssersseeesseesssersseereseereseerssees 3 37 3 3 14 g N_pic Display a Picture to Show a 16 bit Integer Value osssosenesseessserssrerssrerssersssee 3 38 3 3 15 g Trace2 Display a 2 axes x y or 1 axis x or 1 axis y Moving Trace Map 0066 3 40 3 3 16 g Bar Display a Bar meter Picture to Show a 32 bit Signed Integer 16 bit Signed Integer Oro DIFEN O ee eS T er
92. 3 3 3 O O O O ome O O O O O O O o I I I SPN I I I I I I I OO NJ NI NI U A D N N N N m m m o o o O oO Q O o D MD o O 3 O nS gt y 3 O UI O D on Virtual I O board WinPAC Web HMI example 6 AIO demo slot 2 I 87024W wphmi_06 we Slot 2 87024W 3 8017HW scaling is in ISaGRAF slot 3 I 8017HW Virtual I O board slot 2 87024W slot 3 8017HW WinPAC Web HMI example 8 download controller s file to PC slot 0 XW107 slot 0 XW107 WinPAC Web HMI example 7 AIO demo slot 2 I 87024W 3 1 8017HW scaling is in PC WinPAC Web HMI example 9 pop up an alarm window on PC slot 0 XW107 slot 0 XW107 Virtual I O board trend curve demo slot 2 87024W slot 3 8017HW slot 2 87024W slot 3 8017HW Record 1 to 8 Ch I 8017HW s volt every 50ms and draw trend Virtual I O board curve by M S Excel I 8017HW Record 1 to 4 Ch I 8017H s voltage every 10ms and draw Virtual I O board trend curve by M S Excel I 8017HW Install the ISaGRAF example programs When you install the ISaGRAF programming example for the WinPAC controller it is recommended that you create an ISaGRAF Project Group to install the demo program files into A ISaGRAF Project Management O x File Edit Project Tools Options Help Pe Dem Mel tosl ae i A 2p bottlef Flow Chart Simulation of both EE POO demo demo with Quick LD programming ef rfarray demonstatres
93. 4 5 4 3 Step 3 Adding Control Code to the Main Atm cccccssccccssececesscccesceceeseeeeeeecesseecessuaees 5 29 5 4 4 Step 4 Download Web HMI Pages to the Controller cccccssssccccesseecceeeeeseesseeeeeeseeees 5 36 Chapter Web IVI Basics iis sisceciccecct cei towi cise cedcnaseouactecesadvens tows gaveveduinseuea ntsc eacbxinmeewasaucwocdeeetes 6 1 6 1 Basic FICS Torthe Web TIM Wh ciaceiccszine Secrine cre aici E EE sa ine ese nica uate EE sate ceeeaae einem carat 6 1 6 2 OSIEA asset ase closet asta aa Sasa clea cet pete acca eased E T oan ena 6 2 6 3 Menu Ntan ee a eee ener 6 4 6 4 DVT ad gC iawerete se sescevenaieevananenoeseen EE E AE 6 6 64L ASimpre Wali Mta EXI Mp E sena a a a a aes ease ee eee 6 6 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 6 4 2 More About the refresh_data Function and Dynamic Data cccccccesssecccceseceeeeeseees 6 8 6 44 53 PostData to the Controller nseoniao onan bie ela tered cote anaes ee eae 6 13 6 5 MU 2 lt cer ane rR RR oe re eee 6 18 esis EN ei a GC VON PaE aea E sence eeacantati osetia acetaauaceaseenacaeiae 6 18 6 5 2 Switch One Page to One Another Page ccccccssecccssccccesccccesececeececeescceseeceeeeecessencessuaees 6 19 6 6 WEDS oJ Varga eee ne a nee ne eR RN en Ne on ee 6 20 Chapter 7 VB net 2008 Program Running In WinPAC 5xx7 Access to ISaGRAF Variables 7 1 7 1 Cheated NCW PrO CCU enee E E 7 1 7 2 Add Proje
94. 44 K x BPRS aeRO igh SAD Seize 328 0 CPU BRAS 0 S20 BFA 623K 1250K F 3 Ifthe problem is still there and you are using Ethernet to connect the controller check if your PC and controller are set in the same IP domain For example PC with IP Mask 192 168 1 2 255 255 255 0 can not connect controller 192 168 3 5 255 255 255 0 However it can connect the controller 192 168 1 5 255 255 255 0 well 4 Ifthe problem is still there and you are using RS 232 to connect the controller check if your RS 232 cable is correct and check if you are setting the correct PC RS 232 port number to connect the controller 5 The last way is re start your PC and try again WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 31 Appendix K Enable the Screen Saver of WinPAC Please set the following two items to enable the screen saver of WP 5xx7 Inthe Control Panel gt Power gt Schemes please select Power Scheme as AC power and then set both User Idle and System Idle to the same value or setting the System Idle value larger than the User Idle value and then remember to run WinPAC Utility gt File gt Save and Reboot The WP 5xx7 will turn off the backlight when time is up if user doesn t touch it screen and pushbuttons Then after in any time if user touches the screen or pushbutton the WP 5xx7 will turn on the backlight again To disabl
95. 5 user assigned by software Link to max 100 devices that support Standard Modbus TCP IP Slave protocol Support one or more TGW 700 series gateway Modbus TCP to Modbus RTU ASCII to expand many Modbus RTU ASCII master ports to connect many Modbus RTU ASCII slave devices Modbus RTU ASCII Master Support Multi port Max 10 ports Ethernet LAN1 amp LAN2 support total up to 32 connections When one M TCP IP SI OBUR TEER AG Ethernet port is broken the other one can still connect to PC HMI Web HMI Protocol Ethernet Ports for connecting PC running Internet Explorer COM2 supports I 7000 I O modules I 87K base I 87K Serial I O boards and RU 87Pn I 87K High Profile I O boards as Remote I O Max 255 modules for one controller Max 10 RS 485 ports can support M 7000 I O Each port can connect up to M 7000 Series Modbus I O 32 M 7000 Modules LAN2 supports ICP DAS Ethernet I O I 8KE4 MTCP and I 8KE8 MTCP If LAN2 is Modbus TCP IP I O broken it will switch to LAN1 automatically to continuously work LAN1 amp LAN2 s IP are requested set in the same IP domain FAQ 042 Send Email Supports functions to send email with one attached file via Ethernet port LAN2 to exchange data between ISaGRAF Ethernet PAC via Ethernet port UDP Server amp UDP Client Exchange Message amp Auto Report Modbus TCP IP Master l 7000 amp I 87K RS 485 Remote I O LAN1 or LAN2 supports UDP Server and UDP Client protocol to send
96. 5S Bests aes F EFA 56K bps RER 0 01 581x285 REE AR WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 28 5 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 R Microsoft FrontPage D vChim_D User_Manual_WinCon8000 Web_HMIWemotexamplel iiiain hin Be E lolx O HRE aH ED pE HAD for LAT Rd BAD E em JAD ld 4 l If you want to know more about the Web HMI s source ftr Times New Ro code please refer to Chapter 6 main _him a lt html gt i DLink steph lt title gt Your Title here lt title gt f f un display yo blink Bl2 Foy lt head gt ff REAR TT TEER ETT ff if B12_blink IE lt SCRIPT LANGUAGE JavaScript gt A i Bl2 innerTe i font Bl2 co 54 G Cc i i H lt SCRIPT gt i jj aeaaanaansaae S JavaScript code is normally J a placed inside the head area T setTimeout blink lt head gt EE 60 mm Check i pts necessi lt body gt Gs 692 es aas The body area describes the Bit Bie body gt behavior of this page lt html gt WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 29 Please go to the lt body gt area and then modify the code as below Caption Area Layer1 A Layer is starting with lt div and ending with lt div gt tag lt Caption gt lt font colef
97. 6 bit 32 bit Integer or 32 bit Float Value Studio PAC Description Set text Show text only Show text amp value Show value only A TE O5 ca Common Setting 1 Setting 2 am we 1 Wet Work Address Size 7 2 Font sze 5 Regular 3 4 9 5 a Uang bool addr to hide Location X 8 6 Tae Te vo Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 32 bit Long integer and 32 bit REAL variables defined in the ISaGRAF must occupy two network addresses Refer to chapter 4 2 of the User Manual of ISaGRAF PAC 2 Font size set the font style and size of the text useless in other font setting 3 Fore color set the fore color of the object 4 Back color set the back color of the object 5 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False 6 Value Type set the value type to 16 bit Word or 32 bit Long 2 32 bit Long will occupy 2 Network Addresses g_F_Val doesn t have this option 7 Size set the size of the object W for Width H for height 8 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis
98. 608 512 KB Battery Backup SRAM for Retain Variables RS 485 Remote I O Modules Serial Interface I 87K High Profile Modules More at http www icpdas com tw gt Product gt Solutions gt PAC gt Remote I O Modules Units gt I 8K amp 87K Note For using I 87K High Profile modules the WP 5xx7 must connect to an I O expansion unit I 87K4 5 8 9 or RU 87P1 2 4 8 by using RS 485 wiring I 87K Analog I O Modules I 87005W 8 ch Thermistor input and 8 ch digital output module I 87013W 4 ch 16 bit 10 Hz Total 2 3 4 Wire RTD Input Module with Open Wire Detection 7 ch 16 bit 12 Hz Total RTD Input Module with Open Wire Detection I 87015W for short sensor distance 7 ch RTD Input Module with 3 wire RTD lead resistance elimination and with Open Wire Detection for long sensor distance 8 ch Differential 16 12 bit 10 60 Hz Total Analog Input Module with 240 Vm Over Voltage Protection Range of 20 20 mA Requires Optional External 125 Q Resistor I 87017RCW 8 ch Differential 16 12 bit 10 60 Hz Total Current Input Module I 87017W 8 ch Analog Input Module l 87017W A5 8 ch High Voltage Input Module I 87017DW 8 ch Analog Input Module Gray Cover RoHS I 87017ZW 10 20 ch Analog Input Module with High Voltage Protection RoHS I 87018PW 8 ch Thermocouple Input Module Gray Cover RoHS I 87018RW 8 ch Thermocouple Input Module Recommend to use the better I 87018Z I 87015PW I 87017RW WinP
99. AC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 I 87018W 8 ch Thermocouple Input Module Recommend to use the better 87018Z 10 ch Differential 16 bit 10 Hz Total Thermocouple Input Module with 240 Vims Over I 87018ZW Voltage Protection Open Wire Detection Range of 20 mA 0 20 mA 4 20 mA requires Optional External 125 Q Resistor I 87019PW 8 ch Universal Analog Input Module RoHS With a CN 1824 Daughter Board 8 ch Diff 16 bit 8 Hz Total Universal Analog Input Module with 240 V ms Over I 87019RW Voltage Protection Open Wire Detection V mA Thermocouple Range of 20 20 mA need to set Jumper on board 870197W 10 ch Universal Analog Input Module Gray Cover RoHS Includes the 87019ZW Module and a DB 1820 Daughter Board I 87024CW o channel to channel isolated current output module with open wire I 87024DW 4 ch 14 bit analog output module I 87024RW 4 ch 14 bit analog output module 4 ch 14 bit analog output module 0 5 V 5 V 0 10 V 10 V O 20 mA 4 I 87024W 20 mA I 87028CW 8 ch 12 bit current output module 1 87K Multifunction I O Modules 6 ch Analog Input 2 ch Analog Output 2 ch Digital Input and 2 ch Digital Output I 87026PW Module RoHS I 87K Digital 1 O Modules 8 ch 80 250 Vac Isolated Digital Input Module 87063W 4 ch Differential Isolated Digital Input and 4 ch Relay Output Module 5 A NO 3 A NC 5 24Vpc 5 A NO 3 A
100. ALSE Error at the beginning Filel f_wopen File_name1 Try to open file in Read amp Write mode if Filel O then File doesn t exists return exit this function end_if max num_row1 rows to read these SIZE1 number of REAL values Each row in the file contains 10 REAL values for ii2 O0 to num_row1 1 do if f_eof Filel TRUE then test if End _Of_File reached exit Reach End Of File exit for loop end_if str1 fm_read Filel Read one row as String message Convert this string to some REAL values and store them into No 1 Float array NUM1 Msg F str1 1 if data number of last row is not correct if ii2 num_row1 1 and NUM1 lt gt last_num1 or non last row must have 10 REAL values ii2 lt gt num_row1 1 and NUM1 lt gt 10 then error it means the format is not correct REAL values or data number is not enough exit exit for loop end_if conversion Ok store these REAL values to F_VAL1 if ii2 num_row1 1 then last row num2 last_num1 last row has only last_num1 number of data else num2 10 non last row has 10 data end_if Get these converted REAL values from No 1 Float array s addr 1 to 10 or 1 to last_num1 for last row for jj2 0 to num2 1 do F VAL1 10 ii2 jj2 ARY_F_R 1 jj2 1 end_for end_for Any file been open should be closed by f_close
101. AN port of the PAC You may find the Gateway IP address by key in the ipconfig command on the PC which is connected in the same IP domain of the PAC File Edit View Advanced B s Laia nect Make LAN INQ New Co IP Address Name Servers An IP address can be O Obtain an IP address via DHCP automatically assigned to TIS my computer If your network Specify an IP address does not automatically assign ID addr eel nce Ronee IP Address 192 168 1 181 administrator for an address Subnet Mask 255 255 255 0 and then type it in the space Default Gateway 1192 168 1 1 provided WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 98 To send data file to a remote PC FTP Server by 2G 3G dial up wireless connection set the Transmission Type as 2G 3G Wireless And this PAC requires a 2G 3G I O module and a SIM card for example the I 8212W 3GWA http m2m icodas com i 8212w 3GWA html Then follow steps listed in the section 1 1 and section 1 2 of the following web site to setup the 2G 3G I O module http www icpdas com fag isagraf htm gt FAQ 143 x Setting 1 Setting 2 see aaa F ibe Fi PIP Directory chinez ere Hour to upload FTP Server IP J02 166 1 170 Howl foo Port NG 21 Hour none gt M Tsername chon Boule a Password ua Using the FTP_Loader to upload the data file of a specified date
102. Address 7 UserShare UserGetReg_float Convert ToUInt16 7 float_val Get long value of the variable of Modbus Network Address 9 UserShare UserGetReg_long Convert ToUInt16 9 long val Get short value of the variable of Modbus Network Address 11 UserShare UserGetReg_ short Convert ToUInt16 11 short_val Demo Program WinPAC 5xx7 CD ROM 1 napdos isagraf wp 5xx7 vb net_2008_ demo wp_vb02 for R W analog I O 2 napdos isagraf wp 5xx7 vb net_2008_ demo wp_vb03 for R W internal long integer Timer and Real floating point values Note The long integer amp timer amp real variable s Network Address No must occupy 2 No in the ISaGRAF project Refer to section 4 2 of User s Manual of IsSaGRAF Embedded Controllers or in the CD ROM napdos isagraf wp 5xx7 english_manu User_Manual_ _8xx7 pdf WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 10 Chapter8 EVC Program Running in WinPAC Access to ISaGRAF Variables Important Notice Please store your application programs and data files in the Micro_SD Don t store them in the System_disk That is because the System_Disk is using Nor Flash memory Its size is small and major purpose is for storing OS some basic utilities and DLL The Nor Flash memory is not good for frequently updating files If update files frequently in the System_Disk for example update a file every 1 to 5 seconds then it will be about ten thousand more
103. Address fpe Result Addres ps o Then run the FTP_Loader exe in a PC to do the Address Setting w FIP Loader oy xf This Utility is for loading the data file of the SOt G RAF g_Alarn or g_Logger from the I gt aGRAF PAC to the ftp server Please select the data tile date to load then click the Load button Bar Month 2m2 PO rer ie eee ee eee eee eer er ee Fip Year address 21 Ftp command address 24 Ftp Month address 22 Ftp result address 25 Fip day address 23 Ftp progress address 26 PAC Het ID i Setting FAC IF Address 192 168 i i gg Back WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 100 Chapter4 Setting Up a Web HMI Demo The WinPAC 5xx7 or WP 5xx7 is the abbreviation of the WP 5147 WP 5147 OD The WinPAC 5xx6 or WP 5xx6 is the abbreviation of the WP 5146 WP 5146 OD Important Notice 1 Please always set a fixed IP address to the WinPAC 5xx7 No DHCP 2 Recommend to use the Industrial Ethernet Switch NS 205 NS 208 or Real time Redundant Ring Switch RS 405 RS 408 for WP 5xx7 5xx6 3 The only I O slot for XW board in the WP 5xx7 is slot 0 4 1 Web Demo List The Web page location WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 wp_webhmi_demo The respective ISaGRAF project location WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 demo Demo list women Ocean Multi Pages demo wphmi_05 Slot 0 XW107 Page menu is on the Left
104. B ee ee ee ee eB ee ee ee ee ee ee ee ee ee ee ee ee SK WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 95 To simulate the value of V1 and simulate Sin and Cos value for V2 and V3 variables File Format of the g Logger1 Data The g_ Logger1 records data in a file every day If choosing CSV format for example the file name is g Loggerl 2012 11 13 csv on the date of Nov 13th 2012 Data files are saved in the following directory if it is November 2012 WP 8xx7 VP 2xW7 WP 5147 Micro_SD Soft GRAF g_Logger1 2012 11 XP 8xx7 CE6 and XP 8xx7 Atom CE6 System_Disk2 Soft GRAF g_ Logger1 2012 11 The first row lists the File Title The second row lists some Column Title The max amount of the Column title is 51 The 1st Column title is Date Time The 2nd to 51th are the Column title of each data The other rows starting from the 3th row are the data of each sampling All title can be displayed as your local language The following example shows the File Title as g Logger1 Demo The first column title in the second row is Date Time The 2nd to 4th column title are Curve1 Curve2 and Curve3 respectively g Loger1 Demo NOV 13 2012 Tuesday Date Time Curve1 Curve2 Curve3 NOV 13 2012 17 15 06 6 0 5 4 27 3 NOV 13 2012 17 15 10 10 0 1 8 36 4 NOV 13 2012 17 15 15 15 0 0 0 49 3 NOV 13 2012 17 15 20 20 0 1 5 62 3 If open the above data
105. BRTU format baud 9600 COM2 connecting 1 M7017R 2 M7024 MBRTU format baud 9600 COM2 connecting 1 M7017RC Current input 20mA 4 20mA Modbus format COM2 connecting 1 M 7019R set as T C K type input MBRTU format baud 9600 E COM2 connecting 1 M7080 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 z z z z z z z Js amp z z z zs z amp O O O O O O O O O O O O O O O ok Q ok ok ok ok ok ok ok Q ok ok ok ok Q 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 O O O O O O O O O O O O O O O gt 5 gt gt a uw W fe W w l lw N lo OD UI r W N e 00 N OD Ww N e O W T O MBRTU format baud 9600 VB net 2005 demo MBTCP_demo FAQ 051 Non linear conversion like give P to find V 7 P V relation listed in a file Read 10 REAL value from a file 10 rows each row has 1 REAL value use str_real O Q 3 O NS CO Msg F I 8xx7 since 3 19 I 7188EG XG since 2 17 2 15 WP 5xx7 since 1 0 1 Msg_N I 8xx7 since 3 19 I 7188EG XG since 2 17 2 15 WP 5xx7 since 1 0 1 Read 20 REAL values from a file 4 rows each row has 5 REAL values uses msg_f FAQ 060 Read 20 Integers from a file 2 rows each row has 10 Integers uses msg_n Retain 17 REAL value in a file 2 rows Each row has 10 REAL value Retain 2 Boo 17 REAL in a file 2 rows Each row has 10 REAL value Retain 25 Integer in a file 2 rows Each row has 10 integer value Retain 2 Boo 25 Integer in a file 2 rows Eac
106. Baud Rate Project Current Application Elapsed Time This demo uses virtual I O board User can use IO Connection feature in ISaGRAF project and add an i_ 8056 virtual I O card to test the output status of the DO SaG RAF DEMOOS Prozrams a Real O board Ks Virtual I O board Note A File Make Project Tools Debug ptons Help HSO Fem vs on ref 6056 x DOD C addr 0 int True DO addr 21 init True For using l 87K High Profile modules the WP 5xx7 must connect to an I O expansion unit l 87K4 5 8 9 or RU 87P1 2 4 8 by using RS 485 wiring WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 79 Use the Soft GRAF Studio software to open the Demo05 sof as below Refer to Section 3 2 for the steps Set up the Soft GRAF Studio download IP and download the project Refer to Section 3 7 1 for the steps of 540x460 192 106 1165 areca y 81 en My Sweet Home O Weicorm to the Soft GRAF demo05 Please refer to www icpdas c om gt FAQ gt Software gt IS GRAF gt FAQ 146 The HMI screen on the PAC is as below Demo05 has 10 pages and illustrated as following My Sweet Home 2011 10 18 14 59 37 Tuesday To Page 2 Weicom to the Soft GRAF demons Please to www icpdas com gt FAQ gt Software gt ISa GHAT FAQ 146 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 80 Back to previous page
107. Click the New button to see the setting window a Number If read this integer value the object will display the corresponding picture Max 50 numbers from 0 49 b Picture set a specific picture to display c Add click to add this setting a b c Edit Select the item want to edit then click Edit to open the setting window ee a After editing click Add c to save it 0 Led02 s0 gif d Without selecting any item it will open m ee the first item s window Delete Select the item want to delete then click Delete to delete it Without selecting any item it will delete the first item WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 39 3 3 15 g Trace2 Display a 2 axes x y or 1 axis x or 1 axis y Moving Trace Map STL LL 500 50000 12500 25000 Please drag the object into the editing area and select one of the axis options 1 Only x axis 2 Only y axis 3 x and y axis x Horizontal y Vertical a TraceHew k H n 2 RightLimit fio 8 3 peen LowerLimt 9 m a Umerri 1000 6 YGa Options 1 X Axis Address the Network addr of ISaGRAF 32 bit Integer variable for the X axis 2 Y Axis Address the Network addr of ISaGRAF 32 bit Integer variable for the Y axis 32 bit Long integer and 32 bit REAL variables defined in the ISaGRAF must occupy two network addresses Refer to chapter 4 2 of the User Manual of I
108. Close system Menu Focus Performance Optimization Tab Order 1 Goto Graphics Global Graphics tasks sit V Receive focus on open Hide screen instead of closing it V Share tab order with other screens 0 Keep screen file in memory 4 Select Text icon then clink on the main screen where want to establish a text and type XW107_DI_1 5 Select Text again following the previous text and type then select Text Data Link means 1 digit means 4 digits AH H HH means 6 digits 2 A Project Demo LAPP 5 Click on Text again to add a sT recs E Maniago label and then click on D This Cia Text Data Link L Proen Syrmbois urere 4 Click on Text first to add means the display Text has T iayos a label XW107_DI_1 1 digit H means 4 digits WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 5 6 Double click the object and then type DI in the Tag Expression 59 Replace Hint Text Data Link v Tag Expression DI esie Format Auto v E Input Enabled Back to text Password i Auto Size E Sign Require confirmation tual ke lt Use Default gt Repeat former method to create other objects and click Save icon on the main menu to save this main screen page as MainPage scr Select File gt Save As H
109. Color si Low Lanut Color x i 16 Enable limit detection check to enable the up low limit detection 17 Up limit the upper limit value 18 Low limit the lowest limit value 19 Blink select to or not to blink when the value is inside outside the limit range 20 Up Limit Message When the Enable limit detection is checked the message will show up if the value is larger than the Up Limit 21 Low Limit Message When the Enable limit detection is checked the message will show up if the value is lower than the Low Limit 22 Up limit Color When the Enable limit detection is checked the text color and background color will show up if the value is larger than the Up Limit 23 Low limit Color When the Enable limit detection is checked the text color and background color will show up if the value is lower than the Low Limit WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 24 20 21 22 23 3 3 4 g M_val Display a Message Value studio PAC Description Show Message Show Message Displayed figure y M val context ment o E ee 6 2 Font aze 3 Resul n a a 4 a 3 5 Leng enon mi Options 1 Network Address Set the ISaGRAF Modbus Network Address for the variable Value range 1 1024 2 Font size set the font style and size of the text useless in other font setting 3 Fore color set the fore color of the o
110. DATA_fFHan2 9986 4ADR After executing the program the return values for parameters lanl amp lan2 status 1 ok 0 broken line WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 33
111. F EXAMPLE Global intezersfreals File Edit Tools Options Help B Ag stances Defined worda omment Fie Edit Options Help Map Hexadecimal p l os Please set No as Decimal Segment ig Ste tris 5 oooi oa In this example o0002 Please assign No 1 to DI 1 No 11 to DO_1 No 21toAO_ 1 No 31 to Internal Click address first and then double click the valiable name __Booleany ntegersiReals Timers Messages DG z Please save amp compile the ISaGRAF example project amp then download to the PAC If you are not familiar with ISaGRAF please refer to Section 5 1 to 5 3 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 2 Step 2 Create an InduSoft project 1 Select File gt New from the InduSoft Web Studio main menu 2 Click on Project tab in the New window Then type in the name for the new user s project in the Project name and select Windows Embedded Lite in the Project type Press OK i o om i RA Recent Projects b ED l 1 C Users PCDemo PCDemo app New b Project name Location C WUsers StephenWDocumentsWindusoft Web Studio v7 1 Projects Configuration file Ci WUsers Stephen WDocuments WinduSoft Web Studio v7 1 ProjectsWDe Target platform AID Product type Windows Embedded Professional Windows Embedded Lite Plus Windows Local Interfac
112. F3 34E Fd Gel FS Fe He Fr JH FS Il Fa Fi C3 1 pos 1 2 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 12 Double click on it select Timer and then double click on variable name T1 C function C function block Move your cursor to the coil Double click on it select Boolean and then double click on variable name OUTO1 m ISaGRAF EXAMPLEI LD1 Quick LD Program File Edit Tools Options Help FO 4Ei FS 46k Fa GH F5 H Fe TH F7 3H F8 Yl Fo to 1 BLINK RUN lntegerHeal Timer Message Prograrm C function io K Input Tin the STO board Ke Inout 2 in the 4 10 board OUTO OUTde2 k te Tools Options Help Ga os we xo deo aaa S WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 13 5 1 8 Connecting the I O We have defined variables name of OUTO1 OUTO2 as output attribution while K1 amp K2 as input attribution in Section 5 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 click on the slot O Please make sure your XW107 I O board is plug in slot O of the WP 5xx7 amp then check on the Equipments amp double click on the XW107 8 DI amp 8 DO I8aGRAF EXAMPLE
113. FALSE then Read file error or file not exist for ii 0 to SIZE1 1 do F VAL1 ii 0 0 setall F_VAL1 s value as 0 0 end_for Data_Ok1 FALSE set data is not Ok Msg1 File File namel1 not exist or data error or File is open now else Read data Ok Data_Ok1 TRUE set data is Ok Msg1 Get Retained data from file Ok end_if Update Old_F_VAL1 for ii O to SIZE1 1 do Old_F_VAL1 ii F_VAL1 ii end_for Get user data from F_VAL1 when controller is just powered up TMP G_DATA end_if At run time Set user data to F_VAL1 TMP S_DATA WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 6 At run time test any value of F_VAL1 is modified for ii O to SIZE1 1 do if Old_F_VAL1 ii lt gt F_VAL1 ii then if any value is modified Flag to_save TRUE now save command is given Old_F_VAL1 ii F_VAL1 ii Update Old_F_VAL1 if it is modified end_if end_for if save command is given it means value is modified if Flag to save then if save file failed keep this save command if TMP FALSE then Msg1 Can not save data to file May be file is open now by WinPAC s screen Save Ok cancel this save command else Flag_to_save FALSE Set as No save at the beginning TMP save_fi save data to file end_if
114. Feb 2013 by ICP DAS 12 2 3 There is one advantage of retaining value in the Micro _SD memory The data file can be edited in a PC in advance Then using the ftp utility to download it to the PAC The file path name of this example is Micro_SD data56 txt Then set the value of boolean variable RE_LOAD to TRUE all related variables will update to the new value saGRAF WDEHMO 56 Programs l ioj x Fie Make Project Tool Debug Optons Help Dl mpa Dat SMe mk Agas Sgin Ti EG E rite retained data to file FE G data Get user data from F_VAL1 5 data Set user datato F_VALI Functions save Filo Structured Text The following ST programs are all declared as ISaGRAF functions They are read_f1 save_f1 G_data and S_data They all return a Boolean value Please refer to below figure to declare function s return value type more description is in the Chapter 15 of the ISaGRAF User s manual ISaGRAF WDEMO_56 Programs File Make Project Tools Debug Options Help D BSW DEt Sxl mk aes Begin ST1 Functions read fl Read retained data from file ite retained data to file FS fo data GetNeer data from F Alir SaGRAF WDEMO 56 SA k_ Fi ST program File Edit Tools Options Help This function lue F YALI O 19 to fil return save flf as TRUE Ok FALSE Error xi Cancel i save Ji WinPAC 5xx7 User Manual Ver
115. Frojec Smart Device oe Office R My Templates E a jSearch Online Templates Reporting wer JA project for Smart Device applications Choose target platform Framework version and template in the next dialog be Cancel Select the Device Application and Windows CE and NET Compact Framework Version 2 0 then click on OK Add New Smart Device Project project Target platform Windows CE NET Compact Framework version WET Compact Fra work Version 4 0 Templates i iL J i Eva F An a ay m a Ng a a Deseription Device Class Librar Console Control Library Empty Project Application j Application y PrE project for creating a NET Compact Framework 2 0 forms application for Windows CE Flathorm Download additonal emulator images and smart device SOEs Cancel WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 2 7 2 Add Project Reference for an Application The QuickerNet library contains all modules functions Before you use the Quicker keyword in the program you must add the QuickerNet dll into the reference list of your application 1 Right click on the Project name on the right hand side then select Add Reference Rebuild Deploy Clean Add Add Reference Add Web Feference 2 Select the mscorlib in the list box and click the button OK the component mscorlib must appe
116. G 3G or wireless transmission type If enable the 2G 3G type to upload data to a ftp server please refer to http www icpdas com faq isagraf htm gt FAQ 143 to set up the hardware amp software for the 2G 3G wireless transmission 12 FTP Server IP the IP of the FTP Server Ex 192 168 11 1 13 Port NO the communication port of the FTP Server normally is 21 14 User name amp Password the user name amp password to login the FTP Server If not check the User name user can login by anonymous and do not need the User Name amp Password 15 FTP Directory to upload the file to the directory of the FTP Server Default is the root directory ex to specify the folder dir2 key in dir2 16 Hour to Send the specified upload time every day There are 3 time zones to set up The file will be sent at the O5th minute of that time zone for instant if the specified time is 00 00 the file will be upload to the ftp server at 00 05 X Hour1 upload the data of the previous day and 00 00 Hour1 of today Hour2 or Hour3 upload today s data since 00 00 to Hour2 or Hour3 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 58 Setting 1 Setting 2 Setting 3 eK Setting 5 17 18 FIP server IP 192 168 11 1 A Username er FT Dineo on veachi 19 20 21 17 Enable Ftp 2 check to enable the 2nd FTP Logger file will be send to the 2nd PC FT
117. HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 5 Forecolor set the fore color of the object text 6 Backcolor set the back color of the object 7 Align left center and right align for the text 8 Left Text the text displayed on the left side of the object value 9 Right Text the text displayed on the right side of the object value 10 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Value 2 I like it too 5 6 7 8 9 10 Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 26 2 H Text Forecolor Bees Seletr 11 12 13 11 New create a new text 12 Edit edit the text 13 Delete delete the selected text Setting description New Click the New button to see the following setting window WH Texthewltem a d b e c f a Number If read this integer value the object will display the setting text Max 50 numbers from 0 49 b ForeColor the fore color of the text c BackColor the background color of the text d Blink check to blink e Text the text to display f Add click to ad
118. IPT gt start1 is the entry point of the menu htm lt head gt lt body onload start1 gt form_logout is for the logout button 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 body gt lt html gt Note If you want to know more about the multi page application there are two demos in the WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 wp_webhmi_demo wphmi_05 amp wphmi_05a The wphmi_05 place its page menu on the left while wophmi_05a on the top WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 5 6 4 Main htm 6 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 a Hello message when successfully login nothing else Please apply your charset here For example English UTF 8 Simplified Chinese gb2312 lt html gt lt head gt lt title gt Title1 lt title gt lt meta http equiv Content Type content text html charset UTF 8 gt Traditional Chinese big5 or other language lt SCRIPT LANGUAGE JavaScript src msg wincon js gt lt SCRIPT gt This line is necessary for menu htm main htm amp other multi pages lt SCRIPT LANGUAGE JavaScript gt show_scroll_word 200 Hello gt Welcome to the We
119. Micro_SD ISaGRAF isaWP5xx7 exe then click on Setting File Help Configuration System Setting Ethernet Setting Network Setting System Information Auto Execution Multi seria Program 2 8s o o CCCs At most 10 programs can be d Browse specitedto Program 7 execute automatically at ProgramB system startup Programo E Run Save and Reboot to store the setting in step A thru D and then it will auto reboot the WinPAC once UGE Help Configuration Save FT r Ltt i Auto Execution seriz SS tting Network Setting System Information Multi seri Reboot Without Save ji EN l mi icra _SDOSaGR ARSA PDs exe Restore Default Settings 3 After the WinPAC reboot successfully please stop the ISaGRAF driver again The original WP 5xx1 5xx9 doesn t have the ISaGRAF driver running only the WP 5xx7 5xx6 have it Note If the ISaGRAF driver is still running the files copied are failed even your eyes tell you it is successful WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 14 WinPAG 5ex7 oxx6 SaGRAF Driver Ed Setting Web About isa PDE Configuration Slave Number fi Modbus ATU Slave Pork hone Baud Rate fis200 LA amp 1 Project Current Application examplei ISA11 1036 15412 940 Elapsed Time o 2 00 28 Then unzip the downloaded file for example wp 5xx7 1 01 zip and copy all files in the sub directory with a version number for
120. Modbus network addr 11 2 Boolean Input Input 2in the XW107 Modbus network addr 12 Time Period of blinking initial value set as TH8s T1 Timer Modbus network addr 21 Ladder Logic Program Outline LD1 5 1 1 Open ISaGRAF Project Management Click on the Windows Start button then click on Programs gt ISaGRAF 3 4 or ISaGRAF 3 5 and then click on Projects as shown below Fa OpenOffice org 2 0 x qm 1 756X Driver Installer Program T Microsft Office P ICPDAS fan Network Associates fa ISaGRAF35 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 2 5 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 4 SaGRAF Project Management By Fe Sania tE u creation fe simpleld A Simple LD Program mE test test Default climawin apl Sample clisawiniemp DemoPgm cclisawinidemopgm CASAWIN Fath cchisawin T est Location 5 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 A SaGRAF Project Management File Edit Project Tools Options Help A2 em Mme t 2 Go Bey r reate new project x Create new project Name Jexamplel
121. N minutes Then send this record file by email Q Why does the l 7017 or I 87017 s Current Input reading value become double or incorrect WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 13 N N N ep ep U1 W W e English ISaGRAF Ver 3 FAQ 74 Q How to use ISaGRAF new Retain Variable What is its advantage 75 Q Why my ISaGRAF project can not connect Modbus Slave device correctly Q Application sample Record Voltage Current input by UPAC 7186EG every second for N 1 to 10 minutes Then send this record file by email Q Application Record 10 Ch temperature value into a file in uyPAC 7186EG every minute When 24 hour recording is finished send this record file by email every day 81 Q How to measure 150VDC in ISaGRAF controllers plus the l 87017W A5 I O card 82 Q An easy way to program the fast FRnet remote I O modules Q How to set l 8x37 l 8x37 80 I 7188EG and uPAC 7186EG s TCP recycling time Q Application A Cost Effective and Hot Swap Redundancy System by uPAC 7186EG or l 8437 80 plus RU 87P4 8 l 7530 to link many CAN or CANopen devices and sensors i ErrOO Err02 Err03 Err90 or E 0001 after booting the PAC Q Function Modifications The W 8347 8747 uPAC 7186EG l 8x37 80 I 8xx7 and l 7188EG XG with S256 512 and X607 608 no longer support old retain method please change to use the better new retain method to retain variables 089 Q Why my uPAC 7186EG unable to renew the drive
122. NC 0 250 Vac 87064W 8 ch Relay Output Module 5 A 47 63 Hz OY 250 Vac 5 A OY 30 Voc WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 I 87065W 8 ch AC SSR Output Module AC 1 0 Arms 24 265 Vims l 87066W 8 ch DC SSR Output Module DC 1 0 Arms 3 30 Voc 4 ch Form A Relay Output and 4 ch Form C Relay Output Module Form A 8 A 250 Vac 8 A 28 Voc Form C 5 A NO 3 A NC 277 Vac 5 A NO 3 A NC 30 Vac I 87069W 8 ch PhotoMOS Relay Output Module Max AC DC 0 13 A 350 V l 87K Counter Frequency Modules l 87068W l 87082W 2 ch Counter Frequency Module Isolated or Non isolated Inputs Il 87K PWMS Modules I 87088W 8 ch PWM outputs software support 1 Hz 100 kHz non continuous duty 0 1 99 9 l 87K GPS Modules 87211W Time Synchronization and GPS module for getting UTC local time and local Longitude Latitude Remote I O Modules Units 7000 Series modules 8K 87K Expansion Unit l 7000 www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt DCON Protocol RS 485 Remote I O Modules gt l 7000 Modules M 7000 Modbus RTU and DCON Protocol tM 7000 DCON Modbus RTU Modbus ASCII Protocol RS 485 Remote I O Expansion Unit www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt RS 485 Remote I O Modules gt M 7000 Modules www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt RS 485
123. NetWork Addresses To_ Page set NetWork address as 8191 Hexadecimal 1FFF Current_Page set NetWork address as 8190 Hexadecimal 1FFE To Page internal integer FFF Current_Page internal integer 1 FFE 3 Then add the following ST code so that the F6 key can switch the Soft GRAF HMI screen back to show on the fore ground if it is hidden by some other windows i e the windows explorer Note the variable Current_Page can be changed to other integer value to switch the HMI page to other page number such as To Page 2 F1_btn EEP_B_R 16 A00F1 F2_btn EEP_B_R 16 A00F2 F3_btn EEP_B_R 16 A00F3 l F4_btn EEP_B_R 16 A00F4 i F5_btn EEP_B_R 16 A00F5 F6_btn EEP_B_R 16 A00F6 if F6_btn TRUE then F6 button is pressed To_Page Current_Page l Switch Soft GRAF Page to the current page This will make the Soft GRAF to show on the Top end_if 1 l WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 69 3 6 5 Check Upgrade the Soft GRAF Driver Version Check the current Soft GRAF driver version Click the left top corner of Page 1 This is Page 1 Welcome to the Soft GRAF Demo 01 Please visit www icodas com gt FAQ gt Software gt ISaGRAF gt FAQ 131 Goto Page 2 Upgrade the Soft GRAF driver 1 Stop the running ISaGRAF driver WinPAC 5ex7 oxx6 SaGRAF Driver z nang elaro isavVyPSux Confi
124. OTCPOOZ2 MOTCPOO3 MOTCPO04 DRV Name Description Internal Station E E E _ enm ow O o o a erobleReadwhenidle 1 OOOO l oa tnablewrteontaechnee SSS 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 In the Startup screen edit box fill in MainPage scr then click OK to close this window Project i p as F e SAoce ch Taeget System Information Options aa ences E Mal FTP Sevke Configure is Anezi Web pan REE Uie gt Options Titlebar Active area indication Show Object Edge Change Mouse Cursor Communication Minimize Box Maximize Box Preferences B i Clos e Box start Maximized M Virtual Keyboard v Menu sei n Resize Border Default Keypad a Status Line Show Hint i Enable MIN MAX fields Show when quality is not GOOD Built in Dialogs 100 Hide Taskbar Mouse Cursor Disable Palm Rejection rl Execute only topmost object rammands L Enable ToolTips Fd Enable focus on buttons commands and texts nhierts _ Auto Screen Scaling Use popup input for text objects OK ye Cancel WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 9 Web Thin Clients Select Project gt Settings to open Proje
125. P Server 18 FTP Server IP the IP address of the FTP server Ex 192 168 11 1 19 Port NO the port number to connect the FTP server normally is 21 20 User name amp Password the user name amp password to log in the FTP Server 21 FTP Directory the directory of the server that the file to be upload to Default is the root directory WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 59 Setting lt ul Setting 2 Setting Gil Settine 4 Setting 5 Prosress Address oO 28 22 23 Year Address oo 24 Month Address o 25 Day Address o 26 J Command Address o 27 Result Address o 22 Enable Manual FTP setting check to enable the manual FTP function and to set up the related Network Addresses in this page Refer to the Section 3 7 5 or FAQ 158 http www icpdas com fag isagraf htm gt 158 for detail information 23 Year Address assign the Network Address of the variable for year It can set the file s year in the manual FTP function 24 Month Address assign the Network Address of the variable for month It can set the file s month in the manual FTP function 25 Day Address assign the Network Address of the variable for day It can set the file s month day in the manual FTP function 26 Command Address assign the Network Address of the variable to send the FTP upload command It can enable the manual FTP function 27 Result Address assign the Network Address
126. Please refer to Section 1 to get more information on the products page Note To avoid the hardware conflicts DO NOT install both the USB and RS 232 drivers in the same PAC For using the USB touch monitor it requires an external USB Hub and mouse to set the calibration After completing the setting you can use the touch feature without USB Hub 1 Please connect the USB Hub to the WP 5xx7 and then connect a USB monitor and mouse to the USB Hub Make sure the position of rotary switch is O Normal Mode then power on the WP 5xx7 Rotary Switch 0 USB Hub WP 5xx7 TPM 4100 2 In this case we use TPM 4100 touch monitor Please double click on penmount_usb_ touch _v20100526 cab in the WP 5xx7 s System_Disk external_device_driver to install it The last v20100526 may be a different name depends on its modification date Note Users Must choose the correct driver Moreover the egalax and penmount versions can t be installed in the same PAC Address System Disk External device driver Ley eqalax serial touch v20100729 cab ePegalax_usb_touch_v20100507 cab LF elo_serial_touch_v20100507 cab ePelo_usb_touch_v 20100506 cab fe penmoaunt serial touch v20100824fomeo00r cab 7 penmount_serial_touch_v20100824 cab AF penmount_usb_touch_v20 100526 cab far PMO000_Serial_ TOUCH_V 20100614 CAB LK If you can t find out the driver under t
127. Q Soft GRAF Create A Colorful HMI in The XP 8xx7 CE6 and WP 5xx7 and VP 2xW7 PAC paper version 1 3 Q Motion Control Using 8094F 8092F 8094 Q How to send and receive UDP TCP data Q How to reset the ISaGRAF driver or reset the whole controller by software Q How to program ISaGRAF PAC to support SQL Client to write data to or read data from Microsoft SQL server Q HART Solution ISaGRAF PAC plus I 87H17W Q How to connect to remote server and send network package via GPRS with UPAC 5000 series controller Q How to program an XP 8xx7 CE6 redundant system with I 87K8 expansion base or Modbus I O or other I O Q How to install use ISaGRAF 3 55 Demo Version and its limitations Q How to communicate between InduSoft local HMI and ISaGRAF PACs via Modbus TCP protocol Q iP 8xx7 WPAC 7186EG I 8xx7 I 8xx7 80 provide the Flash memory write protect feature Q How to protect your ISaGRAF program from used by the unauthorized people Q How to Make ISaGRAF WinCE PAC to Connect to the Internet and Send Data by GPRS Dial up Q A new function block Mbus12w to write max 12 words to Modbus salve devices Q Soft GRAF Studio Create a Colorful HMI in the XP 8xx7 CE6 amp WP 5xx7 amp VP 2xW 7 PAC Q How to use the VPD 130 to read the UPAC 7186EG s system date and time via RS 485 Q How to make the ISaGRAF WinCE PAC play a sound Q ISaGRAF Tutorial Video Q How to use FTP Client to upload l
128. Remote I O Modules gt tM Series Module RU 87P1 2 4 8 www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt Hot Swap Auto Config Remote I O Expansion Unit gt RS 485 Bus 1 87K1 4 5 8 9 www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt Remote I O Expansion Unit gt RS 485 Bus Ethernet I O Modules ET 7000 www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt Web based Ethernet I O gt ET 7000 PET 7000 www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt PoE Web based Ethernet I O gt PET 7000 tPET tET 7000 www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt Modbus TCP based PoE Ethernet I O gt PETL 7000 amp tPET tET Ethernet I O Expansion Unit l 8KE4 8 MTCP www icpdas com tw gt Product gt Solutions gt Remote I O Modules Units gt Modbus TCP based Ethernet I O gt I 8KE4 8 MTCP WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 ____ Performance Comparison Table of ISaGRAF PACs Please click on the link ISaGRAF Comparison Table or follow the below steps wuew depdas gom Fa 4 x SY Sooek G IR Y S ICP DAS T A Elmer HA HE search Search by M gt Subscribe Industrial SEEP Psp ce met Swatch gt HHPX Emera Realanenag Samten Programmable utomation ntrolier PAC ae Re
129. SaGRAF PAC 3 Action Address the Network addr of ISaGRAF 16 bit Integer variable 0 no drawing type 0 stop 1 drawing both of trace curve and the current point type 1 drawing both 2 drawing only the current point Not within 1 8191 the same as type 2 drawing only the current point WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 40 4 Clear Address a ISaGRAF Boolean variable Its network address can be 1 8191 If the Boolean is True the trace curve is cleared once and then Soft GRAF will change the Boolean to False automatically In ISaGRAF software user can manually set the Boolean to True to clear the trace curve If its network address is not within 1 8191 the clearing function will not enable 5 Size set the size of the object W for Width H for height 6 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 7 Left Limit set the left limit of the X axis in the trace map 8 Right Limit set the right limit of the X axis in the trace map 9 Lower Limit set the bottom limit of the Y axis in the trace map 10 Upper Limit set the upper limit of the Y axis in the trace map i 161 5 a7 n a8 14 as 11 show scale check box to show the border of the axis and its scale 12 X Division If show scale is checked it means displaying the current position value at the bottom and divide th
130. Show as picture O Show az value kevi Boolean Fale aff Ask before operation Boolean True _ Identify Password Title of Dialog O Using bool address to hide Next create a g ToPage object Drag amp drop a g ToPage into the editing area On Off Login ISaGRAF Demo1 i 2s Logout pit AA MSG T To rA ii Project WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 16 Mouse right clicks on the object and select Setting or just mouse double click on the object Then set Size W as 100 Size H as 25 Font size as 9 Bold Fore Color as the below picture To Which Page as 2 and Title as Goto Page 2 Goto ae Fa ToPage Setting a oo ree D m age a he Show es itu a Using bool address to hide i Mouse right clicks Demo1 sof in the Project structure tree Then select New Page to create the second page Page 2 The Page Setting can be left blank just click Create Project FazedSethng Desorption Back Color Click Page 2 to switch to the page 2 Drag amp drop a g ToPage into the page 2 for return the page 1 Dermol aof Page Login Logout 45 6 B MSG To
131. Status 1 for True iStatus O for False Return Value None Example Get the variable status of Network Address 1 Dim iStatus As Byte UserShare UserGetCoil Convert ToUInt16 1 iStatus Demo Program WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 vb net_2008 demo wp_vb01 7 4 2 Analog R W Functions m UserSetReg_short m UserSetReg_long m UserSetReg_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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 8 Syntax UserShare UserSetReg_ Short ByVal UserAddress As System UInt16 gt ByRef iStatus As Integer As Byte UserShare UserSetReg_Long ByVal iUserAddress As System UInt16 gt ByRef iStatus As Integer As Byte UserShare UserSetReg_ Float ByVal iUserAddress As System UInt16 gt 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 UserShare UserSetReg_long Convert ToUInt16 1 Convert Tolnt32 1234567 Set a short value 1234 to the variable of Modbus Network Address 3 UserShare UserSetReg_short Convert ToUInt16 3 Convert Tolnt16 1234 Set a float value 2 174 to the variable of Modbus Network Address 4
132. TML to create this screen that can be visualized in a remote station using a regular web browser Note For the Output object as 87024W_AO_1 and XW107_DO_1 the Input Enabled of the Text Data Link should be checked as below ad Replace Hint Text Data Link v Tag Expression AO iissa Format Auto IV Unput Enabled Back to text Minimum Yalue Maximum Value Check on it means user may Disable input its value at run time Password Auto Size Security 0 E Sign Require confirmation tual ki lt Use Default gt The main screen is created as below Project Explorer ux ie MainPage scr gt sA Project Demo_01 APP ag MainPagese XW107_DL1 L Screen Group amp Thin Clients k Project Symbols XW107_DO 1 i Graph Script pei Miya 87024W_ AO 1 Internal WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 6 Create Modbus TCP workspace 1 Click Comm tab in the Project Explorer 2 Click the right mouse button on the folder Drivers and select Add Remove drivers 3 Inthe Communication Drivers window click MOTCP driver then click Select and click OK to close this window Project Explorer a X a diiad Demo_01 APP 2 Right click Drivers and select Add Remove drivers Drivers E OPC DAW Add Remove drivers L OPC UA i TCP IP 1 Select Comm tab 3 Select the MOTCP
133. TMP MSGARY_W 6 end_if WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 89 If the alarm is triggered via DO or DI signal please refer to the following example to avoid multiple triggering MS GARY N MSGAR Y N If need to delay the trigger use functions TON TOF and R_TRIG F_TRIG The below ISaGRAF syntax shows how to delay 3 seconds then trigger the alarm 1 When DI DO become TRUE and stay at TRUE over 3 seconds then trigger the alarm message MSGARY VV If the alarm is triggered via Al signal user must declare 2 variables for comparing to avoid multiple triggering EX First declare VAL1 and Old_VAL1 in the ISaGRAF In the example the alarm will be triggered when VAL1 is larger than 1000 At last please use function 1 to set Old_VAL1 old value become VAL1 to avoid multiple triggering MSGARY Vi WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 90 How to export the Alarm History Click the Export in the Alarm main window Alarm History 01 01 2000 Saturday port kw few seo 0008 20004601 H01 H 00 00 00 DI 388 ON gt OFF 3 sec 40007 20004601 A01A 00 00 00 DI 342 OFF gt ON 3 sec 0006 20004601 H01 H 00 00 00 DI 2 WERON gt OFF t0005 20004601 H01 H 00 00 00 Val 1 1000 0004 2000401 H01 H 00 00 00 DI 1 EOFF ON 0003 20004601 H01 H 00 00 00 Alert without pop up 40002 200046201 H01 H 00 00 00 Alert without pop up 00
134. The faq158_demo zip includes a utility FTP_Loader exe It can run in a PC Windows Its purpose is to command the g_Logger1 to send the data file of a specified date to the PC TP Server To use this function first add six integer variables with six continuous network address numbers in the ISaGRAF program similar as the following picture The following picture shows their network number are from 21 to 26 Hex is 15 16 to 1A SaG RAF FAQ158 Global inte gersireals m Oo x File Edit Tools Options Help Ja OMS eka Xs Booleans Integers Reals Timers Messages FB instances Defined words Mame Comment minute 1 second i wl Value of Curve 1 set addr 1 Wer Value of Curve 2 set addr 3 ft Value of Curve 3 set addr 5 i CHT for simulating Sin and Cos curve cyclel for simulating Sin and Cos curve el for simulating Sin and Cos curve it ftp year addr 24 ftp_ month i addr 22 fip day i i addr 23 ftp command i Set 1 to let Soft GRAF to send a file then auto reset at ftp result i i T busy 21 succeed 101 no file 102 ftp fail 103 ftp disak ftp progress i 0 100 meane progressis O 100 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 99 Then do the following settings in the g_ Logger1 I ij x Setting 1 Setting 2 Setting 3 Setting NR Manual FTP setting Progress Address 26 Year Addvess ki Month z Day Address 23 Command
135. Uhteger analog addition C function blocks J J Conversion functions s P i ae To May 1995 CJ International ary f r aru f rread toat value fram array read float value 32 bit f am f wowe float value bo array am n orread long value from array am on weiwrite long value to array any ow rread short value from array ary Ww rite short value to array BLD VY Convert BCD to decimal value binZeng 2 s Complement to engin format bit wd transfer 16 bit to 1 word chsample read coman r write byte to COM port camar write byte to COM port camay nwowrte integers to COM port camay Wwaycwrit skort int to COM port comclearopen COM port comeclose close COM port comopen open CUM port a Target W 8037 833 call NUR Integer whit ADR Integer return WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 2 On line Help of ICP DAS Add on I O Boards amp I O Complex Equipments ISaGRAF WDEMO_03 Programs E Oo x File Make Project Took Debug Options Help S NEM Zxr wk aes Begin HH get time SYSDAT_R SYSMA VY SYSTIM_R SYSTIME WY cal time calculate time_yv FH TMT Control output om SaGRAF WDEMO_03 1 0 connection E ioj x Fie Edit Toole Options Help Begin contral Ladder Dia a ES re k tf 4 a ii a as S m 1 80 ru h g On line Help of ISaGRAF Languages JA SaG RAF Project Management E E Ioj x F
136. WInNPAC Utility 2 0 1 5 will not fill the full screen and user can do The HMI objects below are supported by Soft GRAF driver since Ver 1 20 Value g Label Display a Label g B Val Display a Text to show a Boolean value 3 g WD Val Display a 16 bit occupy 1 Network addr number or g N Val 32 bit occupy 2 Network addr numbers integer value g F Val Display a 32 bit Float value occupy 2 Network addr numbers g M Val Display a Message value 6 g N Text Display a text to show an Integer value A Display an alarm list to show the triggered alarm messages and provide FTP arm upload function Button Create a button to input a Boolean value 5 g WD_inp Create a button to input a 16 bit occupy 1 Network addr number or g N inp 32 bit occupy 2 Network addr numbers integer value 3 Create a button to input a 32 bit Float value g F_ inp occupy 2 Network addr numbers i g Loggerl Create a Data Logger button with FTP upload function Graph g B Led Display a LED to show a Boolean value Display a picture JPG PNG GIF BMP to show a Boolean value Display a picture JPG PNG GIF BMP to show an Integer value Display a 2 axes x y or 1 axis x Horizontal or 1 axis y Vertical moving trace map Draw a Rectangle 6 g Bar Display one value as a bar meter Create a real time trend to display max 3 curves and may also enable the 7 g Trend historical trend function to record them
137. WinPAC 5xx6 WP 5xx6 is the abbreviation of the WP 5146 WP 5146 OD A 1 Applying Correct Power Supply Please apply a regular power supply between 10V to 30V gt 25W or higher is better amp N For WP 5147 OD Only Mouse or Microphone Keyboard amp Earphone gt Monitor Vs cnn as Power Supply 10 30 Voc Options Power supply http www icpdas com products Accessories power supply power list htm DP 660 24V 2 5A 5V 0 5A power supply DIN Rail mounting DP 665 24V 2 5A 5V 0 5A power supply DP 1200 24V 5A power supply Industrial Ethernet switch htto www icodas com products Switch switch list htm NS 205 10 100M 5 ports NS 208 10 100M 8 ports WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 1 A 2 Modify the NET ID amp Modbus RTU Port Setting User may set WP 5xx7 s Net ID Slave Number to a No from 1 to 255 The default Modbus RTU slave port is None when shipped out User may set it to others depends on its application please also refer to Appendix G amp Appendix E for more Modbus RTU ports Then please reset the WinPAC 5xx7 once after the modification to make the new setting work e W WINPAC jsa NPIN Ed F E Y j Ei TaskMgr fii Y Device rs Wi hmi J Setting Gontguration Setting WinPAG 5xx7 oxx6 SaGRAF Driver R Slave Number fi Modbus ATU Slave Pork hone Baud Rat
138. WinPAC 5xx7 User Manual The WinPAC 5xx7 WP 5xx7 is the abbreviation of the WP 5147 WP 5147 OD The WinPAC 5xx6 WP 5xx6 is the abbreviation of the WP 5146 WP 5146 OD Important Notice 1 Please store your application programs and data files in the Micro_SD Don t store them in the System_disk That is because the System_Disk is using Nor Flash memory Its size is small and major purpose is for storing OS some basic utilities and DLL The Nor Flash memory is not good for frequently updating files If update files frequently in the System_Disk for example update a file every 1 to 5 seconds then it will be about ten thousand more updates in one day the data or files in the System_disk may crush or lost for some days or months later 2 Please always set a fixed IP address to the WinPAC 5xx7 No DHCP 3 Please always set WP 5xx7 s LAN2 as disabled if not using it refer to Appendix D 4 Recommend to use the Industrial Ethernet Switch NS 205 NS 208 or Real time Redundant Ring Switch RS 405 RS 408 for WP 5xx7 5xx6 5 For supporting retain variables you must purchase an XW 608 and plug it into the WP 5xx7 5xx6 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
139. _ alarm 2012 O07 17 txt XP 8xx7 CE6 8xx7 Atom CE6 The g Alarm record file is in the directory System_Disk2 Soft GRAF g Alarm Ex 2012 07 g_alarm_2012 07 _17 txt The g Alarm record file is in the directory Email_ ETH g_ Alarm Ex g_ alarm _2012 O07 _17 txt WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 51 Eprcnaee sree vies race crerenaeramy Setting 1 Setting 2 Setting wh Setting 4 Setting 5 an 30 as ro en ions 28 7 User name How i200 w Password 29 FTP Directory ae 24 Enable FTP If check Enable FTP the PAC will upload the Alarm data file to a FTP Server via FTP at a specified time 25 Transmission Type select Ethernet 2G 3G or wireless transmission type If enable the 2G 3G type to upload data to a FTP Server please refer to http www icpdas com faq isagraf htm gt FAQ 143 to set up the hardware amp software for the 2G 3G wireless transmission 26 FTP Server IP the IP of the FTP Server Ex 192 168 11 1 27 Port NO the communication port of the FTP Server normally is 21 28 User Name amp Password the user name amp password to login the FTP Server If not check the User name user can login by anonymous and do not need the User Name amp Password 29 FTP Directory to upload the file to the directory of the FTP Server Default is the root directory ex to specify the folder dir2 key in dir2
140. _WinConS000 eb_HMIWemolexample 1 ined nine fm E fF HAE WAO HAD 70 6 6L RD OAD EAD ERE mes SBA U G HAASE 1A S Vl 4 BBS 9 b poke He Times New Roman 3 dip B Z U Z z main him x H H BH S As Bee Ae gt 5oKbps Seng 0 01 538x191 eet Bit WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 26 Please follow the similar steps to insert one another Layer5 and one Layer6 with a K2 symbol inside it and also a Layer7 with an OK symbol inside it as below We will use K1 to display the state of the first input of the XW107 board and K2 for its second input F Microsoft FrontPage D Chmn_DiUser_Manval_WinCon8000 eb_HMIdemo exennple mein hin ioj xi BAE HRE RGD GRA fos IRD Fdw 6 ERD ERE ees A AH ARAB IL Q G ASE Eee A 9 9 b prg g ai b R Microsoft FrontPage D Chun_Dillser_Manual_ inConB000 Weh_HMIemoleseanplet miei Joj x WAE RHE RGD IBAD A0 IRD BiA BRAID EE RaO AH DO S Aam aA F MA7 a FF fr Times New Roman 3 fl2 pt B ee Z Follow the similar steps as main him f sbodys ediv gt adiv Layer6 former to insert Layer6 amp Layer7 inside the Layer5 A Layer5 D Click here to insert Layer5 I layer pF SG Kbps SSR O01 HP 3B x 191 GRE BET Please follow the similar steps to insert
141. aGRAF path WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 6 7 4 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 two groups as depicted as below 1 Digital R W Functions 2 Analog R W Functions 7 4 1 Digital R W Functions m UserSetCoil Description This function is to set the value to a Boolean variable by Modbus network address Syntax 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 Return Value None Example Set the output variable of Modbus Network Address 1 to True UserShare UserSetCoil Convert ToUInt16 1 1 Demo Program WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 vb net_2008 demo wp_vb01 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 7 m UserGetCoil Description This function is to get the value from a boolean variable by Modbus network address Syntax UserShare UserGetCoil iUserAddress As System UInt16 ByRef iStatus As byte Parameter iUserAddress Specify the Modbus Network Address of Variable 1 to 8191 iStatus Get the variable status i
142. able only one g_Logger1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 97 Enable the FTP Client to Send Data File of the g Logger1 to the FTP Server To send daily data file of the g Logger1 to the PC FTP Server automatically do the following settings Be aware of the setting of FTP Directory use the symbol DONOT use the symbol For example the Machine2 or are correct However Machine2 and are incorrect User may check the Enable Ftp2 to send data file to the second FTP Server Note the Enable Ftp2 doesn t work if the first Enable Ftp is not checked s Logger l x Setting 1 Setting 2 Setting K Setting 4 m tbe tE PIP Directory fiachine2 T one Ethemet Hour to upload ie eee 192 16 1 170 Hourl 01 00 TR Fot HO 21 Hours none M Username chon Howe Hone Faseword B Note 1 The data file of the g_Logger1 is sent at about 05 minute of the selected hour i e if setting the Hour1 as 08 00 the data file is sent at about 08 05 2 If sending file to FTP Server fails the g_Logger1 will re try once at about 4 hours later It will continuously re try once every 4 hours later until it succeeds or expire 7 days 3 The FTP Server IP means the IP address of the PC which will receive the data file If the PC is not in the same IP domain as the PAC set a proper Default Gateway setting for the L
143. 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 ISaGRAF Ver 3 4x or Ver 3 5x IEC 61131 3 standard LD ST FBD SFC IL amp FC or Non ISaGRAF Microsoft EVC 4 0 or VS NET 2008 2005 2003 VB net C net Reference Guide IS GRAF User s Manual English Manual WP 5xx7 CD napdos isagraf wp 5xx7 english_manu user_manual_i_8xx7 pdf amp user_manual_i_8xx7_appendix pdf WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 ISaGRAF 4 Bs FA F Chinese Manual WP 5xx7 CD napdos isagraf wp 5xx7 chinese_manu chinese _user_manual_i_8xx7 pdf amp chinese_user_manual_i_8xx7_appendix pdf More from the Internet htto www icodas com products PAC i 8000 isagraf htm Technical Service Please contact local agent or email problem report to service icpdas com FAQ http www icodas com faq isagraf htm Written by Chun Tsai Edited by Janice Hong Copyright Jun 2012 by ICP DAS CO LTD All Rights Reserved WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 Table of Contents WinPAG Sxx7 User Maal ecs
144. address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 31 3 3 8 g Login Create a Login button This object creates a Login button When users press it a keyboard will display and request the user to key in a password There are maximum 12 characters in a password only number O to 9 This g_Login object can only put on the Page No 1 and only one g_Login allowed When user presses the g_ Login button the Soft GRAF driver in the PAC will read a password file to check if this is a valid user who has a permission level 1 10 and the larger number has the higher authority Refer to Section 3 4 for the permission setting Login 1 2 3 4 5 6 7 8 Options 1 Font size set the font style and size of the text useless in other font setting 2 Fore Color set the fore color of the object text 3 Size set the size of the object W for width H for height 4 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 5 Title the text displayed on the button 6 Switch page the nu
145. am click on Edit from the main menu bar and then click on Insert Rung Insert Rung means to insert a basic LD rung just above the current position 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 ar SaGRAF EXAMPLEI LD1 Quick LO ar SaGRAF EXAMPLEI LDI Qi File oui Tools Options Help File Edit Tools Options Help Dal xaar ws x F241 Cut FO 4E F3 JHE Fa Gel FS H Fe Ti F i Copy be Paste Paste special Delete Contact on the left a e met ambal text WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 10 ai SaGRAF EXAMPLEIL LDI Quick LD Program File Edit Tools Optons Help Aa XA BS xpd PY Aaah ea Fo JE FS Fd GH Fo CH Fe Hi FP ie Fe I Fa tS e 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 a2 ISaGRAF EXAMPLEI LD1 Quick LD Program Fie Edit Tools Optons Help Ba xD ws 2 F2 4HE F3 JHE Fa GH FS 4H F Ed Pt Qas JH Fe Iyt Fa Fa C3 Click on the F6 Block on the left icon and you will create a block on the left of the coil mr SaGRAF EXAMPLEI LDI Quick LD Program Fie Edit Took Options Help Aa Ba ges keds PH aae g Fo 4 F3 JHE Fd GH FS H F HE F7 JH F8 EB Fo tae 4 Block on the left
146. and Y axis 9 Text Align left center and right align for the text WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 22 z WD Yal x Common Setting aoe ao Pee Hpo Draam HA 3 E aa an C as 10 Conversion check if convert the value the original value and value after of the g_F_val can input the floating value The original value of the g WD_Val and g_N_Val should be an integer value 11 Original value the value range read originally Ex 0 32767 0 65535 Value after the value range after conversion Ex if the Original value is O 32767 and the Value after is O 1000 that means to convert the value from range of 0 32767 to range of O 1000 such as 16384 is converted to be 500 12 Dot Define the number of digits displayed after the for the number after conversion or not to use the conversion Ex Set Dot as 3 the original value 32767 will be displayed as 32 767 13 Fixed digit amount Display the setting digit number only for g WD_Valandg N Val Ex Set it as 3 if the value is 6 displayed as 006 if the value is 62 displayed as 062 14 Left Text the text displayed on the value s left side 15 Right Text the text displayed on the value s right side WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 23 16 17 18 19 g WD Yal Ed Cd em ejtow Linit fowt _ Fore Back Up Lint
147. ar in the Selected Components area Add Reference HET Projects Browse Recent CustomMarshaler NET tab 0 2 0 0 0 Ci Program Files Microsoft MET Microsoft VisnalBasic 8 0 0 0 20 50747 CAProgram Files Microsoft NET Wheracoft WindowsCE Forms 2 0 0 0 2 00 0 C Program Files Microsoft NET WindowsMobile 2 0 0 0 2 0 0 0 C Program Files Microsoft ME T S mscorlih 20 0 0 LUU C Program Files Microsoft ME T s J l 0 0 0 CiProgram Files Microsoft NE TS mscorlib dll is here 0 00 Ci Program Files Microsoft NET yetem Data eqlClient 3 0 36000 we D oTr Cs Program Files Microsoft SOL m System Data Sqlterverte 3 0 0 0 ye D oO Ci Program Files Microsoft SOL System Drawing 2 0 0 0 2 0 0 0 C Program Files Microsoft WET System Messaging 2 0 00 2 0 0 0 Cs Program Files Microsoft WET System Met KDA 20 0 2 0 0 0 Cs Program Files Microsoft NETE System Web Services 2 0 0 0 2 0 0 0 Cs Program Files Microsoft NET System Windows For ms 2 0 00 2 0 0 0 Ci Program Files Microsoft NET System Windows Forms Dat 2 0 0 0 2 0 0 0 Ci Program Files Microsoft NETS g retam Yon aAA DAA ne ones Biles hil pean te ME 7 4 b Cancel _ WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 3 3 Click the Browse button Select the QuickerNet dll from WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 vb net_2008_demo wp_vb01 vb01 subfolder or from your own location
148. are the Boolean variables that will be used in our example program 3 Double click on the colored area below the Boolean tab and a Boolean Variable window will open ISaGRAF EXAMPLE Global boolean File Edit Tools Option Help 2 ex d X FALLI Lomment For this example program 4 Enter in the name of the variable to be used in the project e g K1 5 Add the description for the variable in Comment field e g Input 1 in the XW107 board 6 Select the properties of the variable in Attributes field e g Input 7 Click Store to save it Now the variable has been declared Boolean ariable x Hame Network Address Comment Input 7 in the w107 board Attribubes Values Output Next Shore Cancel Constant get to true at init Retain Previous 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 Please follow the above same step to declare one another Boolean variable K2 Then you will have as below SaGRAF EXAMPLE Global booleans File Edit Tools Optons Help Booleans integersiReg timers Messages FB instances Defined words Name Attrib Addr Comment input j 0000 input 1 inthe XvWi07 board input OU Input
149. arie mm sofgr_0d i AH RE Generate a pulse M1 and get Time mm sofgr 09 TE I l Import IL program Archive Projects x Workbench Archive E sa PDE Bela Wa WinPAG 5xx7 5 x6 SaGRAF Driver Close Setting Web Configuration Help Slave Number f Modbus RTU Slawe Port hone Baud Rate jig2o0 N 1 iw Compress Archive location Project D SOFTS ENE Current Application demod4 I5411 1420 15412 880 Elapsed Time 00 02 11 Use Soft GRAF Studio software to open demo04 sof It shows as below Refer to Section 3 2 for the steps Fie Popi Balp x 5 y Page Soft GRAF Demod4 Please visit www icpdas com Tine 0 f gt Faq gt ISaGRAF gt FAQ146 Stop ma Swor g WD val 4 ong i Jie Set vat SINE Lama Ons OFF ON 2 4 ser gt OFF UN Tex of Val serva al lon WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 76 Set up the download IP and then download the project SoOtt GRAF Studio Demol4 sof Sethe File Project Help The HMI screen of PAC is as the following picture Demo04 contains three HMI pages Pagel displays all objects and Page2 amp Page3 display the security function and the using ways Pagel Pagel Soft GRAF Demo04 Please visit Time 11 46 www icpdas com gt Faq gt ISaGRAF gt FAQ146 a 5 S 1 2 3 4 Description
150. ature from the Start menu and set the COM Port number currently in use e g COM3 then follow the step 3 to run WinPAC Utility gt Save and Reboot to reboot the WP 5xx7 gt Communication meen Baal Calibration Set GOM Port PenMount PMSer FNS BE Command Prompt DrawDemo Ge Favorites Z isqhw35 E5 RightButton 3 Documents DA Regview E setcom Lar Settings PA TaskMgr C Uninstall x Run A3 Windows Explorer 2 Set COM Pos A WINPAC Utility COM Pork 5 Run the Calibration feature and then follow the calibration command to touch the given point on the monitor by your finger After doing this follow the step 3 to run WinPAC Utility gt Save and Reboot to save the calibration setting ee easel Calibration FSET BE Command Prompt DrawDermo Ve Favorites A isqhw35 ES RightButton O Documents 40 pegview E setcom yr Settings 2 TaskMgr C Uninstall O Run 7 Windows Explorer 2 Set COM Pos A WINPAC Utility If you don t see this screen please check 1 The cable on touch monitor is connected well 2 The SetCOM setting Step 4 is correct Reboot the WP 5xx7 and do the step 5 again nt Calibratie ih Driver 2 13 Fooware 6000 6 0 0 touch the red point WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 25 I 3 The Steps for Using the USB Touch Monitor on the WinPAC In this section we will use the ICP DAS TPM 4100 Panel Mount RS 232 USB touch monitor
151. b HMI Sample Calling show_scroll_world will display a moving word at the function refresh_data 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 the requested data from the controller It is called in the period about 1 25 lt head gt to 5 seconds depends on the communication quality lt body onLoad init gt init is the entry pint of the main htm amp other multi pages lt font color blue size 4 gt tyle position absolute width 353px height 24px z index 1 left 73px top 12px id layer1 gt Hello lt font gt A layout object is starting with lt div amp ending at lt div gt tags lt body gt Here only show a message Hello lt html gt WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 6 You may replace the main htm in the WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 wp_webhmi_demo sample to the above main htm amp download it to the controller refer to Section 5 4 4 You will see the below window when you login successfully Welcome Microsoft Intemet Explorer CER SED MRO SHREW IEAM BaD E t A gt 0il Que Giese Gee Jp au HFS A moving word is display here This is because the action of calling show_scroll_world 0 AHE y User may try to plug out the Ethernet cable of
152. bal Variables window 2 Click on Timer tab and then double click on T1 to change the timer value to T 4000ms 3 Then click on Write and to see the change of blinking rate m SaGRAF EXAMPLEI LDI Quick LD Program File Edit Options Heln File Edit Tools Option Help variable T1 Enter new value q tH4000me yo O 0015 interna t s write Start Stop Cancel Version for ICP DAS ri1 reo00 Views S Stop Cancel Now we are going to simulate the K1 amp K2 input just click on K1 and K2 with the left mouse button to test it Finally close the Debugger window to exit the simulator examplel ol x File Tools Options Help l 0 1 o ISaGRAF EXAMPLE Debugger Fie Contol Toole Optons Help i EP E Ae Click here to exit the simulator Version for ICP DAS r1 e reoo0 iView Wincon series controllers only wy TOF OUTO OUTOZ WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 18 5 3 Download amp Debug the Example Project We have two ways to download the project to the WinPAC 5xx7 One is using Ethernet cable the other one is using RS 232 cable Here will show you the RS 232 way Please refer to Section 4 2 3 if you would like to download the project via Ethernet Wiring the Hardware To begin this process please install the hardware as below The RS 232 cable wiring should be as below figure Please make sure
153. bject text 4 Back color set the back color of the object 5 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False 6 Size set the size of the object W for Width H for height 7 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 8 Text Align left center and right align for the text 9 Language encoding UTF 8 English big5 Traditional Chinese gb2312 Simplified Chinese Other user inputs other language encoding WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 25 3 3 5 g N Text Display a Different Text by the Value of an 16 bit Integer Variable Studia PAC Description Value 0 Value 1 Displayed figure OK Enjoy it OKay Have fun s N Text Tiii comman setting il Setting a ies a BackColor Se m o Center w Y a a ee T Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 2 Font size set the font style and size of the text useless in other font setting 3 Size set the size of the object W for Width H for height 4 Location The X Y starting position of the
154. ble Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 37 3 3 14 g N_ pic Display a Picture to Show a 16 bit Integer Value The picture format can be JPG PNG GIF or BMP Recommemad not to use the BMP format because it consumes larger memory size Studia PAC Description Value 0 Value 1 Value 2 Displayed figure oome e en a a 1 NetWork Address 2 il Size Who E 3 Location x 24 4 Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 2 Size set the size of the object W for Width H for height 3 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 4 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 38 5 6 7 5 New open a setting window to add a new picture 6 Edit edit a picture setting 7 Delete delete a picture Setting description New
155. blue size 4 gt style position absolute width 353px height 24px z index 1 left 73px top 12px id layer1 gt This is a Web HMI sample page E div gt lt font 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 lt div gt lt div style position absolute width 58px height 46px z index 2 left 1px top 38px id layer4 gt lt img name B11 border 0 src img big_ Tcircle_red0O 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 lt 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 layer7 gt lt font id font_B12 color blue size 3 gt lt b id B12 gt OK lt b gt lt font gt lt div gt Please modify OK lt div gt to become PABEDAN lt font id font_B12 color blue size 3 gt lt b id B12 gt OK lt b gt lt font gt lt div gt WinPAC
156. c object Wet Work Addres o E Using bool address to hide Location X221 286 True Fik Fals Fil 3 Select a background picture for the False File and then click Ok If the picture is covering other objects please select it and click the Sent to Back until all other objects showing up WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 66 PuaRVIA OC HF E coat NetWork Addres o _ Using bool addr to hide eee Location x a E D WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 67 3 6 4 Switch the Soft GRAF HMI Page by ISaGRAF Program User can declare the below two ISaGRAF integer variables to switch the page of the Soft GRAF HMI and to read the current page number Note Only the Soft GRAF driver version 1 06 and later version supports this function The integer variable which with the network address number 8191 Hex is 1FFF is for switching the Soft GRAF page Please must declare it as internal and assign an initial value 65535 For example see the To_ Page in the below table If setting it as 1 the Soft GRAF HMI will switch to the Page 1 and then this To_page will be reset as 65535 by HMI automatically If setting it as 2 the Soft GRAF HMI will switch to the Page 2 and then the Soft GRAF HMI will reset To_Page as 65535 automatically If setting it as a non existing page number the Soft GRAF HMI will not switch t
157. ch LAN 0 auto switch the LAN Get the Modbus TCP handler Get the connection state with the device Connect_OK1 1 connection is ok 2 not connected WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 8 INIT1 ST Program For operating correction this ST program must run first then can execute Mbus block This ST only run once in the 1 scan cycle Set all NET ID that Device1 will use in the demo Set ID 1 and ID 2 devices for this demo if Not initialized then initialized true Light controllers Two LC 103 Get the device handler from the mbus_tcp handler plus the device s Slave ID Device1_ID1 Device1 1 Device1_ ID2 Devicel 2 end_if DevRead LD Program Use C function Block Mbus_R1 to read the DO state of Slave device ID 1 per second Read the status of Ic 103 MBUS R1 Devi_ID1s T Q gt _S Device1_ID1 1_Hemp_state1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 9 Use C function block WD_Bit to divide the return state into each DO state temp_state1 Devi ID1 DO1s Dev1 ID1 DO s Devi ID1_DO3 3s Use C function Block Mbus_R1 to read the DO state of Slave device ID 2 per second MBUS_R1 Devi_ID _s 2 14PERIOD_ N5_ N6_ N7_ N amp _ N9_ WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 10 Use C function block WD_Bit to divide the re
158. crosoft com zh tw download details aspx id 22 The execution program is included in the downloaded FAQ 146 zip file After unzip the file please copy the folder Soft GRAF Studio into D The Soft GRAF Studio folder must include the main program file 6 demo programs and 4 More HMI pictures are provided in these directories picture folders as below picture Soft GRAF Studio Sof LER LoginDemo aaa oir ESR naina pia _ demoli pia E demol2 pia Eo PLA tee PLA te 22 JKE B 18 KB 7 EB demo03 pia N gre 4 pia gt re es pdt PIA iS oe Te obe Acrobat Dow cument 6 EB Ji KB man 2 340 JS EB TT JUD po ae Se exe oftGRAF Studi mre ICF DA K a PAC Driver The following ISaGRAF driver versions support Soft GRAF Studio ver 1 07A PAC Model ISaGRAF Driver Version XP 8xx7 CE6 Ver 1 34 or later XP 8xx7 Atom CE6 Ver 1 01 or later WP 8xx7 Ver 1 54 or later WP 5147 Ver 1 03 or later VP 25W7 23W7 Ver 1 46 or later WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 2 If your PAC s ISaGRAF driver version is later than the version listed above it supports the Soft GRAF Studio However if its version is older please visit the following web site to download the latest ISaGRAF driver into your PAC http www icpdas com products PAC i 8000 isagraf link htm After downloading update the driver into the correct model of PAC Please click on End Driver button in the ISaGRAF d
159. ct Reterence for amAppliCatlon uniia iectecepente a tae iene eens 7 3 73 COMPING an Applicator PROP aiae a dueeracttpsialavsiaaatigsheds dae eeatieaietaiwess 7 6 7 4 0 Fela a BD IS Laan teem a eee ont PE CO eee TRE Oa eee en RE CO aA 7 7 PAA Di ital R W Func iocar a aws Sica aaa eae awa a 7 7 TAD Analog RIN FUNCTIONS seit cect aceens cae aa e teak tach cern ca eaten 7 8 Chapter 8 EVC Program Running in WinPAC Access to ISAGRAF Variables ssscsssscsscssesees 8 1 Chapter9 InduSoft Project Access to IS GRAF Variables scscsscscsccccscsceccccccsceccccccscececcecscececs 9 1 Chapter 10 Example Program amp FAQ sccccscscscsccscsceccccscscnccccscscsccccccscscescecscscescccscscescescscesescess 10 1 A 9 Fis ees GY ol ag 1 gt Dennen rt RnR ne ee ee nn ne ey ee ee o T eee 10 1 10 2 Installing the ISAGRAF Programming Examples ccsccccssecccessccccesececeececeeseeeeeecessnsceseuaess 10 4 103 Frequenti y Asked QUCSTIONS cinean Was coatseebesadtcsaseenataecas Aaa 10 11 Chapter 11 C net 2008 Program Running in WP 5xx7 Access to ISaGRAF Variables s000 11 1 wL Create a NEW Project sca rcccstacs ane a T aneuve ee ovmanesay sea ecoscucantonescateesamenc 11 1 11 2 Add Project Reference for an Application cccccsscccsssecccesecccessccecenecesseeceseusceeseaecessuecesseness 11 3 11 3 Compiling an Application Progra cccccsssescsssccccssscnsusssccsesccccnssencusscscacssencns
160. ct Settings window In the Data Server IP Address type in the correct IP address of your PAC and click OK 5 ty eae fe F InduSoft Web Studii Data Server P Address Send Period ms 10 0 0 80 1000 Disable Remote Client Commands Auto Screen Scaling Enable ToolTips Enable File Compression Log Virtual Keyboard Enable Default Keypad FileName ihe E Built in Dialogs Scale Enable Min Max fields WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 10 Download and Run the Project Select Home gt Connect to open Remote Management window In the Network IP of Target Station type in the correct IP address of your PAC and click Connect Is vin Target Station Network IP 10 0 0 80 O Serial Port JAWM3 Advanced Platform Disconnect Status Please type in the IP address install aystern files Only newer files of your PAC Site Event qj Transl The Install system files button can update WinPAC s InduSoft firmware to your PC s current version Please make sure all file attribution are not read only in the WinPAC s System_Disk InduSoft path If connection is fine click on the tab of Project then click Download When download finished click RUN to start the project Project Path Embedded Lice Target W Only newer files l Keep user f
161. current Boolean image In this case 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 and 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 lt img name B2 src img big_Tcircle_redO jpg gt lt div gt WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 15 lt div style position absolute left 85px top 124px width 42px height 27px gt lt input type button value ON style cursor hand onClick ON_ form _B2 gt form_B2 B2 gt A button to call ON _ 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 lt form name form_B2 method post action main dll gt lt input name BEGIN type hidden value gt lt input name B2 type hidden value 1 gt lt input name END type hidden value gt lt form gt lt div gt Name of lt input gt inside the form Here is B2 Because it is inside form_B2 then must use the name of form_B2 B2 to identify it lt div style position absolute left 85px top 166px width 47px height 31px gt lt inpu
162. d gt lt title gt Title1 lt title gt lt meta http equiv Content Type content text html charset big5 gt lt SCRIPT LANGUAGE JavaScript src msg wincon js gt lt SCRIPT gt lt SCRIPT LANGUAGE JavaScript gt function start1 A_11 function refresh_data if run_at_pc 1 return if simulate at the PC gt just return lt SCRIPT gt lt head gt lt 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 lt br gt cursor hand will display the mouse arrow as a hand when entering the button area lt Goto main htm gt lt A style cursor hand onClick goto_R_page main htm gt 581 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 goto_R_page kitchen htm gt Kitchen lt A gt lt br gt lt br gt lt br gt Switch page to kitchen htm WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 19 6 6 Web Security There are some ways user can get access to the WinPAC 5xx7 via Ethernet port 1 Using Modbus TCP protocol at port No 502 ISaGRAF amp other HMI do this 2 Using ftp for example key in ftp 10 0 0 103 on the Internet Explorer 3 Us
163. d this setting Edit Select the item want to edit then click Edit to open the setting window After editing click Add to save it as shown above Without selecting any item it will open the first item s window Delete Select the item want to delete then click Delete to delete it Without selecting any item it will delete the first item WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 27 3 3 6 g B_Inp Button Components Input a Boolean Value to the Corresponding ISaGRAF Variable via a Pop up Keyboard Description Show as string Show as value Show as picture Displayed figure eins Font 31 Time False Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 2 Font size set the font style and size of the text useless in other font setting 3 Input T F Color The color of True displays the fore color of the value when ISaGRAF read it True The color of False displays the fore color of the value when ISaGRAF read it False 4 Size set the size of the object W for Width H for height 5 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 28 z KB Inp Ed 6 Tee eee 10 n E a O Show as val er 12 8 iin pa 13 Boolean True
164. das com products Industrial pds tgw 700 htm M LC 103 Product website www icodas com tw product solutions remote io rs 485 lighting control lc 103 html http M DL 100 Product website htto www icodas com tw product solutions remote io rs 485 dl series dl 100t485 html M R 210 Product website http m2m icodas com IR 210 html M PM 213x Series Product website htto www icodas com tw product solutions intelligence power meter om series om 213x html 13 3 How to test the Demo Example faqi159 1 13 3 1 Hardware Preparation The Hardware for this demo 1 ISaGRAF PAC CE based x1 i e WP 5147 2 2 tGW 715 or tGW 725 x1 3 3 LC 103 x2 Note The driver version of the IsSaGRAF PAC must support to send Modbus TCP commands of different NET ID to the same Modbus TCP Slave device Refer to section 13 1 If not please download the latest driver version Pre setting for the Hardware 1 The ISaGRAF PAC Set IP as 192 168 1 232 2 The tGW 725 Set IP as 192 168 1 233 port as Port1 and Baud rate as 9600 For configuring the tGW 700 please refer to 13 2 tGW 700 Series Modules 3 One LC 103 Set Rotary Switch as 1 Modus device NET ID as 1 4 The other LC 103 Set Rotary Switch as 2 Modus device NET ID as 2 5 Cable Wiring Wire the Port1 of tGW 725 to the RS 485 of two LC 103 modules WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 4 Hardware Wiring Pictur
165. demo Display 10 temperature values and 8 D values and control 8 D O Data amount less than 255 A Soft GRAF demo Read process parameters from a file or 04 store them Data format is Float data only handle one file 06 sofgr sofgr sofgr Data amount less than 255 ofgr A Soft GRAF demo Read process parameters from a file or S store them Data format is Float data handle several files Data amount less than 255 A Soft GRAF demo Read process parameters from a file or sofgr_07 store them Data format is Integer data handle several files Data amount 1000 can be more WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 4 A Soft GRAF demo Read process parameters from a file or sofgr_05 store them Data format is Integer data only handle one file Data amount less than 255 A Soft GRAF demo Read process parameters from a file or store them Data format is Float data handle several files Data amount 1000 can be more A simple Web HMI example slot 0 XW107 VB net 2008 demo 01 for WP 5xx7 DIO demo wp_vb01 slot 0 XW107 Please refer to Chapter 7 Virtual I O board slot 1 87024W slot 2 8017HW VB net 2008 demo 02 for WP 5xx7 Analog I O wp_vb02 i Please refer to Chapter 7 VB net 2008 demo 03 for WP 5xx7 wp_vb03 Read Write long integer float amp Timer Please refer to Chapter 7 WinPAC demo_01 R W float value from file FAQ 060 ee WinPAC demo_02 R W long integer
166. design time However it is better to do it one time by yourself to get more understanding WinPAC 5xx7 CD napdos isagraf wp 5xx7 wp_webhmi_demo example1 5 4 1 Step 1 Copy the Sample Web HMI pages This is a sample Web HMI pages in the WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 wp_webhmi_demo sample Please copy this sample folder to your drive and rename it for example example1 The basic Web HMI files include 2 folders and 3 DLL files and 4 htm files as below img default image files jog 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 java script 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 WinPAC 5xx7 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
167. djust button on the monitor f File_Help Configuration Step 2 If the auto adjust cannot solve the problems nanas System Settings JEthernet Settings Nel you can change the display frequency on the Y WinPAC Step 3 Execute the WinPAC_ utility on the desktop to a WinPAC enter the System Settings page Docurr CP_ Industrial Control Products pps Data Acquisition System Step 4 Change to the other frequency and click Setting button OK WinPAC Utility 2 0 2 7 File Help Configuration System Settings Ethernet Sattings Network Sattings System Information Auto Exe Welcome to use WinPAC Utility Display Resolution soo 600 This tool will help you to set WinPAC 8000 Display Resolution e00 600 v lcome to use WinPAC Utility tool will help you to set WinPAC 8000 WinPAC T A industrial Control Products gps Data Acquisition System Battery1 OK Ramer Step 5 Click File gt Save and reboot to save and reboot the WinPAC Save and Reboot Reboot Without Say Step 6 If the new frequency still has problems Go back to the step 3 to try other frequencies until the Display normal WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 30 Appendix J Why My PC Running ISaGRAF Cannot Connect the ISaGRAF PAC Correctly The document can also be download at www icpdas c
168. dle the blinking action var B12_blink 0 init as 0 not bli var blink_step 0 function blink_obj if blink_step 1 blink_step 0 nk 1 to blink 0 no blink if B12_blink 1 i i B12 innerText Error font_B12 color red bm e e e e e e e e e e e o o e e e e e if B12_blink 1 i B12 innerText font_B12 color red Blink step 1 To display Error in red color Blink step 2 111 To display nothing in red color setTimeout blink_obj gt blink period function refresh_data WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 11 if boolean_val 12 0 The action of the Text object B12 is defined here 3 If boolean_val 12 0 no blink B12 innerText Ok If boolean_val 12 1 blink font_B12 color blue B12_blink 0 3 else i a eee lt body onLoad init gt The layout or location of the Text object B12 is defined here by the lt div and lt div gt tags lt div style position absolute width 214px height 53px z index 2 left 102px top 79px gt lt font id font_B12 color blue size 3 gt SE The lt font gt amp lt font gt tags can be used for controlling lt b id B12 gt OK lt b gt o the font s color and font s size lt font gt a uyn
169. e ISaGRAF Ethernet Modbus TCP to WinCE PAC Switch RTU ASCII Gateway TT porti Ethernet a gt 9600 8 n J RS 485 Bam A rog 7d aod Se tGW 725 or TA aud WP 5147 tGW 715 LC 103 LC 103 LAN 1 Static IP 192 168 1 232 Static IP 192 168 1 233 NetiD 1 Net ID 2 13 3 2 Operating the Demo faqi59_1 Download faq159 1 pia Please download the faqi159_demo zip that includes this PDF paper and the demo program faqi59 1 pia from http www icodas com faq isagraf htm gt 159 Restore faqi59 1 pia to PC ISaGRAF Follow the steps in the below picture to restore the demo program into your PC ISaGRAF Libraries wh ha bl I h eo Import IL program Archive Projects Workbench Archive example Backup Restore Close Help Reference Author Date of creation 201171177 Yersion number 1 ISaGRAF 3 55 Description WH_Pro Compress Archive location CASAMWINIDEMC Browse WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 5 Compile Click the menu bar Make gt Make application to re compile this IsSaGRAF demo project Note If user is not familiar with the ISaGRAF recommend to study the Section 1 1 and 1 2 and Section 2 1 of the ISaGRAF User s manual The PDF file names of the manual are user_manual_i_8xx7 pdf and user _manual_i_8xx7_appendix pdf You may find them in the CD ROM of the PAC product box or the
170. e The picture can be gif which fits the Soft GRAF dynamic image format Please get the demo pictures from the Soft GRAF Studio gif directory of the demo file faqi46 chinese _demo zip WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 13 More HMI pictures are provided in Soft GRAF Studio button Soft GRAF Studio Led and Soft GRAF Studio more_pic directories Refer to Section 3 5 for more information about the Soft GRAF dynamic image format eis ins Select Fan03 m 041 gif file and click Wet Work Addres ooo Using bool address to hide Open O Location X isa Trus Fik Bi D sit a O8 em RAU a Fale Fin ay tS RAEN iy AR j REU 2 E SO AE Fan03 s 040 gif FanO3 s 041 gif RRIDSE gzu ja RARA T Fan04 m 060 gif _ Fanll4 m 061 gif Fan03 m 041 gif v All Image Formats bmp ipe eif png Set False File as Fan03 m 040 gif Then set Network Address as 11 and click ok to exit F Using bool address to hide Net Work Address ee Location xX 127 C IEL Oem om D mom PHAR CS B Ena Pe EZN SSBB BEL Has D Fan03 m 040 gif Fan03 m 041 gif FanQ3 s 040 gif Br Seting E SSH Net Work Addres 11 a a Fantl3 s 041 2if Fanfl4 m 060 gif Fan04 m 061 gif Size W H a fie LTS
171. e QuickerNet library contains all modules functions Before you use the Quicker keyword in the program you must add the QuickerNet dll into the reference list of your application 1 Right click on the Project name on the right hand side then select Add Reference Solutic ai tplorer Lig we i x an bad t Build Right Click Febuild ii Deploy Clean Add Add Reference Add Web Feference 2 Select the mscorlib in the list box and click the button OK the component mscorlib must appear in the Selected Components area Add Reference NET Projects Browse Recent Path Cation Mnhr 2 0 0 0 C Program Files Microsoft NET Microsoft VisualBasic 8 0 0 0 cn Cs Program Files Microsoft NET Microsoft WindowsCE Forms 2 0 0 0 2 0 0 0 C Program Files Microsoft NET ae indowsMobile 2 0 0 0 2 0 0 0 CAProgram Files Microsoft NET S corlib 200 0 40 00 CiProgram FilesWicrosoft WE T s 2 0 0 0 2 0 0 0 CAProgram Files Microsoft NET S Senter 2 0 0 0 2 0 0 0 C Program Files Microsoft NETS System Data Sq we S0727 CProgram Files Microsoft SOL System Data Sq Mscorlib dll is here We OSOFS CAFrosram Files Microsoft SOL System Drawing TIT 2 0 0 0 CsProgram Files Microsoft NET System Messaging 2 0 0 0 2 0 0 0 C Program Files Microsoft NET System Met KOA 2 0 0 0 2 0 0 0 C Program Files Microsoft NET System Web Services 2 0 0 0 2 0 0 0 CsProgram Files Microsoft
172. e Submit value Enter style cursor hand onClick return validate this form gt lt form gt You may modify Enter to your own word lt div gt For example aa This may require user to modify the related charset at the beginning lt body gt 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 lt html gt 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 3 6 3 Menu htm Note If you want to know more about the multi page application there are two demos in the WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 wp_webhmi_demo wphmi_05 amp wphmi_05a The wphmi_05 place its page menu on the left while wphmi_05a on the top The 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 E Welcome Microsoft Intemet Explorer j x ARE RHE WROD BAREA IRAM HAH et H 9 QO Que Gene gre 2 40 0049 67 tt DY E pio 0 0 103vlogin dl PRE WA Norton AntiVims E This is a Web HMI sample page K2 Err
173. e Boolean variable LED_01 into the Dictionary of the ISaGRAF project and set its address as 11 key in the Hex number B File Make Project Tools Debug Options Help D MSA Oem Mic mH WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 8 Boolean Yariable x Mame LED Ot Comment Attributes Internal Input Cancel Output Nest C Constant set to true at init Retain Took bw a OOe xHd Xe Booleens Intezeraiselt Timers Messages FB instances Detned words PLED OL eternal pow pewar eni After programming the ISaGRAF SoftLogic You must compile and download the ISaGRAF project into your PAC Refer to chapter 2 of the ISaGRAF User s manual for the steps then after edit the HMI project Run Soft GRAF Studio to edit the HMI First create a project sof as below 1 Click File gt New of menu bar or click Create New File tool icon Soft GRAF HMI Editor Soft GRAF HMI Editor File Project Help Set bh 4G es Create New File 2 Give a project name and file location Hew File Setting Project Name PAC amp VGA resolution Location Refer to Ch3 6 8 to reset CDocument and Settngswe rMy Documents ial Studio th luti if t e resolution IT you wan FAC Select APAC ka Project name Project file location to change the PAC or eee a resolution after this step WinPAC 5xx7 User Manual
174. e Mada Ho lntoriacs Windows Embedded Standard Windows Lite Interface Plus 4 Lite for Windows Embedded 150 tags 3 The Project Wizard window will appear Select Empty Application on the Template 320 x 240 on the Resolution and None on the Shared Tags 4 Then the new project will show on the Project Explorer window as the figure a Project Wizara Template Empty Application d Screen Group p i Thin Clients E Project Symbols 2 Graphics Script Shared Tags Name lt None gt Configure WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 3 Define Application Tags Select Insert gt Tag on the main menu bar Se ewe fe 3 Home View v wj Translation Screen i _ e may Procedures File Class Global Tag Create a new tag in the Project Tags database d Screen Group p L Thin Clients Jl Project Symbols Graphics Script Sa Symbols The New Tag window will show as below Name DI x Array 0 Description XW107 DI Channel 1 This demo uses a DI DO module XW107 a virtual AO board I 87024W and one internal variable defined as follow Please create these tags one by one E Project Tags x Description annel 1 I po Boolean XW107 DO Channel 1 2 3 Le AO o integer 87024W AO Channel 1 Server 4 L Internal 0
175. e UserGetCoil ushort iUserAddress out byte iStatus Parameter iUserAddress Specify the Modbus Network Address of Variable 1 to 8191 iStatus Get the variable status iStatus 1 for True iStatus O for False Return Value None Example Get the variable status of Network Address 1 byte iStatus UserShare UserGetCoil Convert ToUInt16 1 out iStatus Demo Program WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 CSharp net_2008 demo wp_CSharp01 11 4 2 Analog R W Functions m UserSetReg_ short m UserSetReg long m UserSetReg_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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 8 Syntax UserShare UserSetReg_Short ushort iUserAddress out int iStatus UserShare UserSetReg_Long ushort iUserAddress out int iStatus UserShare UserSetReg_Float ushort iUserAddress out float iStatus 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 int temp1 1234567 UserShare UserSetReg_long Convert ToUInt16 1 out temp Set a short value 1234 to the variable of Modbus Network Address 3 int temp2 1234 UserShare UserSetReg_short Convert ToUInt16 3 out
176. e X axis by this integer value 13 Y Division If show scale is checked it means displaying the current position value at the bottom and divide the Y axis by this integer value 14 Font Set the font style and size of the text useless in other font setting The maximum size for the scale and value of the X Y axis coordinates is 10 and the minimum is 6 for this object 15 Back Color the backcolor of the trace map 16 Trace Color the color of the trace curve 17 Board Color the color of mesh and border 18 Point Color the color of the current point WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 41 3 3 16 g Bar Display a Bar meter Picture to Show a 32 bit Signed Integer 16 bit Signed Integer or 32 bit Float Value 1 2 7 3 8 4 9 ao 5 1 6 a 2 Options 1 Bar Type Select select the direction of the bar such as left right up and down 2 Network Address set the ISaGRAF Modbus Network Address for the variable 32 bit Long integer and 32 bit REAL variables defined in the ISaGRAF must occupy two network addresses Refer to chapter 4 2 of the User Manual of ISaGRAF PAC 3 Size set the size of the object W for Width H for height 4 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 5 Fore Color set the fore color of the Bar met
177. e file in the System_Disk or Micro_SD memory take lots of CPU time please do not read write it frequently If user read write file in every PLC scan cycle the PLC scan time will become very large and the PAC will perform badly If user need fast retain refer to http www icodas com fag isagraf htm gt FAQ 074 for the New retain variables The example programs wodmo56 pia wodmo56a pia wodmo56b pia wodmo56c pia wodmo56d pia and wpdmo56e pia all use the array variables You need to setup your PC ISaGRAF before you can use them First close all of the ISaGRAF windows Then open the isa ini file in the directory where the ISaGRAF is installed it is C ISAWIN EXE normally Then add two rows on the top of the isa ini file as the following and save this file For more information about the array variables please refer to www icodas com faq isagraf htm gt FAQ 039 DEBUG arrays 1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 1 If functions of Msg _F Msg _N ARY_F_R AFY_F_W are not found in your PC ISaGRAF download the ICP DAS utilities for ISaGRAF at http www icodas com products PAC i 8000 isagraf htm Then run setup exe to restore them to your ISaGRAF workbench The installation takes about 10 minutes This paper only describes about the wpdmo56 program The wpdmo56 reads 1 to 255 REAL values from Micro_SD data56 txt to related ISaGRAF variabl
178. e fis200 M 5 1 Project Current Application example ISA11 1036 15412 940 Elapsed Time 0 2 00 28 Configuration Setting Slave li Modbus ATU Slave Port come p Baud Rate 19200 Wt m G 1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 2 A 3 Setting the IP Address for the WP 5xx7 Please run Start gt Settings gt Network and Dial up Connections on the WinPAC Then click on LAN1 and LAN2 Set your WinPAC s IP address amp its Subnet Mask Please always set as Fixed IP for ISaGRAF application No DHCP 1 LAMI TANI Fast Ethernet Adapter Settings P nag An IP address can be Obtain an IP address via DHCP automatically assigned to this P Ree ere computer If your network specify an IP address does not automatically assign 192 168 1 182 IP addresses ask your network IP Address ies ee mele administrator for an address Subnet Mask 555 255 255 0 and then type it in the space provided Default Gateway f 192 168 1 1 If the WP 5xx7 isn t connected to the Internet do not need to set Gateway just remain blank Please run Start gt Programs gt WinPAC Utility click on Save and Reboot to store the setting WINPAC Utility 2 0 2 6 E m x Si Help Configuration Save and Reboot Network Setting System Information Auto Execution Multi serial Reboot Without Sa Welcome to use WinPAC Utilit
179. e refer to Appendix A 2 to setup COM3 as Modbus RTU slave port Downloading the Example Project Before you can download the project to the controller you must first verify 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 SaGRAF EXAMPLE1 Programs Jof x File Make Project Tools Debug Optons Help Begin LD1 Ladder Diagram Version for ICP DAS 188 eo0d0 Miew incon series controllers only If the development PC and the WinPAC 5xx7 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 ISaGRAF EXAMPLE Debugger File Control Tools Options Y The ISaGRAF project name on your PC gt HM bb aT wodmolO6 active gt lt AA ms Current running project name within the controller Version for ICP DAS 718 eo00 View Wincon series controllers only 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 c
180. e the screen saver please set both User Idle and System Idle to Never and then remember to run WinPAC Utility gt File gt Save re Settings E Control Panel Certificates Date Time Power Properties Battery Schemes r Status a PE Power Power Scheme Connection AC Power s F Switch state to User Idle after 1 minute ka Switch state to System Idle ity After 1 minute WInPAG Utility 2 0 2 6 Switch state to Suspend 360 Help Configuration Never ka Save l Save and Reboot died fazka Reboot Without Save Restore Default Settings Exit Winta Cosggg Iiral Comirol Products Onlin Acmesibon Syster WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 32 Appendix L How to Detect the Status of Ethernet Port User can use the R_MB_ADR function in the ISaGRAF to detect the Status of Ethernet ports Use R_MB_ADR function to Detect the Status of Ethernet ports Use the Function R_MB_ADR and assign its parameter ADR as 9987 and 9986 to read the status of the Ethernet ports Show as the figure below ADR number 9987 the status of LAN1 ADR number 9986 the status of LAN2 Name Type Att ADR Description get LAN1 state 1 ok 0 broken line R_MB_ADR en eno a 1 1 TYPE_ DATA_ an1 9987 get LAN2 state 1 ok 0 broken line R_MB_ADR en eno Dd 1TYPE_
181. e4 htm in the wphmi_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 wphmi_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 6 4 Security Settings a F Peneter SETTING Web about ACCOUNT Modbus List IP Setting Cptions el Account Security ei web HMI Pirity Low Dideble FTP Serveice EE Level Disable Telnet Serveice Password ae To set up advanced security click o Note If Enable Account Security is not checked Settings any user can easily get access to your WinPAC through the Internet Explorer Priority Hig User Mame Levels Password ie WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 18 6 5 2 Switch One Page to One Another Page Please take a look at the menu htm of the wphmi_05 demo as below The goto_R_page function can be used for switching to other page lt top _or_left 0 gt scrolling O gt width 110 gt resize 1 gt lt html gt lt hea
182. ea Name of the image object lt img style cursor hand name B2 onclick ON_OFF form_B2 form_B2 B2 boolean_val 2 src img cmd0 jpg gt The onclick will call ON_OFF when the mouse click on it The first parameter is the name of the form Here is form_B2 The second parameter is the lt input gt name inside the form Here is form_B2 B2 The last is the current Boolean value Here is boolean_vall 2 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 14 lt form name form_B2 method post action main dll gt lt input name BEGIN type hidden gt lt input name B2 type hidden value 0 gt lt input name END N type hidden gt lt form gt lt div gt Name of lt input gt inside the form Here is B2 e Because it is inside form_B2 then we must use lt body gt the name of form_B2 B2 to identify it K i t by buttons A POST EY H Demo example wphmi_02 and wphmi_05 function ON_ form_obj gt obj ON_ function is used for posting boolean value as True to the controller flag confirm turn ON if flag obj value 1 if GetUserlD form_obj true form_obj submit function OFF_ torm_obj gt obj OFF_ function is used for posting boolean value as Fasle to the controller flag confirm turn OFF if flag obj value 0 if GetUserlD form_obj true form_obj submit Display the
183. ea ead 2 4 2 1 3 Important Notice for Windows 2000 USEFSS ccccccssecccesececeesececeneceeeeececseneceeesecessuncessenees 2 4 2 1 4 Important Notice for Windows Vista or Windows 7 32 bit USEPS cceccccceseseseeeseeeeeees 2 6 2 1 5 Important Notice for Windows 7 64 bit USELS 00 cece ccceccceseecceesecseeeecseeeseeeeeeeceeeueceeseness 2 8 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 2 1 6 Important Setting for Using Variable Arrays cccccssecccssececcsseeeceseceeeececeeseeeseaecessuecessuaees 2 8 2 2 Step 2 Installing the ICP DAS Utilities for ISaGRAF seseessensssensseensseesssersssereseersseeessrreserreseeses 2 9 Chapter 3 Working Soft GRAF HMI with ISaGRAF SoftLogic ccccscsscscsccccccsceccccecscsceccecscecees 3 1 3 1 Soft GRAF Studio Version and MstallatiONisisrsiiinieiiisiieceianiniin aA AA 3 1 3 2 Edit the HMI by the Soft GRAF Studio Software sssseusssenssserssrersseessrrrsserreseersseeessereserreseeess 3 5 S224 Edta Mpe Sont GRAF HM ueria T eat haanetenaceeuaetaee ete 3 7 3 3 FMI ODJECES DESCHDUION iossinsdn ce ock tavdcagsesincbendteuecoddecc ies tncdiagee eebanate acest nies eeGiaee keane 3 19 gt iro id Label Dis playa Lape eee ee ee eee ee 3 19 3 3 2 g B Val Display a Text to SHOW a Boolean Value ccccccssecccessceceesceceeeceeaeecessescesauaess 3 20 3 3 3 g WD val g N val g F_val Display a 16 bit 32 bit Integer or 32 bit Float Value 3
184. ebug Options Help Tools Options Help io state IO board status in shot 0 F Ok kep 4 button on panel of Gx 3 m oWwosled 3 LEDs Pra onar mPa F 109 phot Mos Relay for 7188EG sG Cancel amp J 14 DI for 7188EG AEG Note 13 DO for 7 188E G4 Library Ue r AD for 7 188EG sG 518 RS232 amp BDO for PEE GARG s 2 asis encorder card s03 3 asis encorder card vala Simulate analog inputs tang Simulate analog outputs bis Simulate boolean inputs sbo Simulate boolean outputs smiS Simulate message inputs mos Simulate message outputs T Important Notice Slot 0 is reserved for I O expansion board XW board inside the WP 5xx7 User can use slot 1 or after to set others I O board Boards C Equipments 3 Please refer to Section 5 2 5 3 to compile the program and then download to the WP 5xx7 After downloading open the I O Connection window and change the status of I O False gt True then view the change of LED light on the front pannel of the WP 5xx7 aw lsaGRAF TEST 190 connecthon File Tools Help Em FALSE ER show3led n G FALSE YN variable Z0x2 1 FALSE 4 Ind Lock Unlock IE WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 11 Appendix B Upgrade WinPAC s ISaGRAF Driver to Newer Version Note If you have purchased WP 5xx7 the ISaGRAF Driver is already installed with lic
185. eccccscsceseccecscssees 19 Appendix G Setup More Modbus RTU Salve Ports scscscsccscscecsccscsccccccscsccccccscsceccccscncsseccecscecess 20 Appendix H Compiling Error Result in Different IS GRAF Version ccscsecscsccsceccscsccscsccccnceccnceees 22 Appendix Using RS 232 Serial USB Touch MOnitor ccsccsscscssccsscseccssscesccecccsscescsescusssesesescessees 23 I 1 The Driver and Notice for installing the Touch Monitor essssssssssseseessseesssrrsssrrsseereseerssereseereses 23 I 2 The Steps for Using the RS 232 Touch Monitor on the WinPAC ssscccssseeeeeseceeeeeeeeeeeeeees 24 1 3 The Steps for Using the USB Touch Monitor on the WINPAC cccccsssccceeseeceeseceeeeeeseeeeeees 26 1 4 Unmnstalthe TOUCH MONIO DVE seissronre renar T T E 28 I 5 Adjust the WinPAC Display FreQuency scccccssscssssscccessccnensseccseccscueceseusseceussseneueseneusseseensss 30 Appendix J Why My PC Running ISaGRAF Cannot Connect the ISaGRAF PAC Correctly 006 31 Appendix K Enable the Screen Saver Of WiINPAC ccscscsssscscsccccccscsccccccscsccccccscsceccccscscescscecscssees 32 Appendix L How to Detect the Status of Ethernet Port cccscscsscsceccccscsceccccscsceccccscscescccecscecees 33 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 Reference Guide ISaGRAF User s Manual English Manual WinPAC 5xx7 CD napdos isagraf wp 5xx7 english_manu user_manual_
186. ects Workbench creation dema_0 demol demol Restore demol demols24 demoall4 demols demol demosimo Archive W Compress Archive location DAFAQ146715FAQT 4672S 0FT G71 Browse SaGRAF DEMOO6 Programs File Make Project Tools Debug Optone Help BP HSM Dam Ss Mil mk zee Begin PAC WinPAG oe7 5 x0 ISaGRAF Driver Ssi Configuration Slave Number fi Modbus ATU Slawe Port hone Baud Rate jozo m81 Project Current Application demo0 15411 1680 5412 1020 Elapsed Time WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 84 Use Soft GRAF Studio software to open demo06 sof It shows as below Refer to Section 3 2 for the steps Set up the download IP and then download the project Refer to Section 3 7 2 for the download steps fa Sofi GRAF Stadio Demoll6 sof 800x000 192 168 1 165 Trend Curve Cureve Cureve3 Total hydrocarbon mA Humidity Temperature Degree C 0 2 vem 0 a 400 500 E00 The HMI screen on the PAC is as below There is one page for the Demo06 the trend map on the upper side the 3 gauges on the lower side Click the History can show the history record of the trend curve Trend Curve Curevel CUre v e Cureyes HAV AN TAL PANY AR AAA PAN FA PAAU AIKANA A AA A ANA TAA LANA AN PAAA APA AV ve LAL h i K h A Total hydrocarbon mA Humidity 9 Temperature Degree C
187. egrees 18 Max Angle Set the angle for the max value 45 175 degrees The angle for the direction of 9 o clock is O degree the angle for the direction of 3 o clock is 180 degree 19 Conversion check if convert the value Original value the value range read originally Ex 0 32767 0 65535 Value after the value range after conversion Ex if the Original value is O 32767 and the Value after is O 1 000 that means to convert the value from range of 0 32767 to range of O 1 000 such as 16384 is converted to be 500 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 49 3 3 20 g Alarm Display an Alarm List to Show the Triggered Alarm Messages and Provide FTP Upload Function Alarm History M Ak Mi M For demo example and steps about how the ISaGRAF program to trigger an Alarm message please refer to Ch 3 7 4 One PAC can enable one g_Alarm object only Alarm amount 0 Ack 0 Mo Ack 0 ae ae petting 2 Setting 3 Settme 4 Setting 5 nd wW H a m e Bare L uo 4 Fore Color L l Alarm amount Text Alarm amount 11 5 Back Color Wo Ack 12 o m FETS Peta as 7 _ Confirmation when click ack button Alarm alive 1 B 14 Options 1 Bool NetWork Address set the NetWork Address for ISaGRAF Boolean variable When use MSGARY_W 9 msg1 to trigger the Alarm the Boolean variable will be set to True until user clicks the Ack or Close of the Ale
188. el 1 in the right window then click on Connect twice to connect K1 amp K2 Finally click on Close to complete the setting WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 14 at SaGRAF EXAMPLE I O connection File Edit Tools Optons Help amp PBron tlre S o mo xwiO aul ret 5107A lt EAC DOG i 3 i Channel Free av LsaGRAF EXAMPLE I O connection File Edit Tools Options Help B eBSem tllhK o oo owl OF BE I D ne K1 input 1 inthe W107 board DOG nme al K2 C Input 2 inthe W107 board Es By the same way please connect OUT0O1 OUTPUTO2 to output channel 1 to 2 Then we have below window Click on Save and then exit ae SaGRAF EZAMPLE 140 connection File Edit Tools Options Help BlpBeam ELIFAS Fi el i 87055 E mj ref 870556 T BIS ne ol OUTOI A Dos ne ol OUTO ES i p L6 i H p Isr Version for ICP DAS Pl areodd VMiewMWincon series controllers only Important Notice 1 I O Slots O is reserved for XW board that will be used in the WP 5xx7 You can use slot No 1 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 attribute variables wi
189. elp gt Dociment or in a project right click on the HMI editing area then select Help WP 8x47 640 480 800 600 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 6 In the Soft GRAF Studio editing screen the axis origin is at the top left of the axis position as follows 0 0 X 1 The horizontal axis of the monitor is called X axis while the vertical axis is called Y axis The original position of X Y is 0 O which resides at the most top left position on the monitor The value of X coordinate is increasing from left to right direction The value of Y coordinate is increasing from top to bottom direction The unit of the X Y coordinate is Pixel For example the default resolution setting of the WP 8847 is 800 x 600 so its X coordinate ranges from 0 to 799 while ranges from 0 to 599 for Y coordinate The default resolution setting of the VP 25W7 is 640 x 480 so its X coordinate ranges from 0 to 639 while ranges from 0 to 479 for Y coordinate 3 2 1 Edit a Simple Soft GRAF HMI The following picture is the VGA Screen view when running demo Demo01 Pagel Before editing an HMI page ISaGRAF must have the following setting or the completed HMI screen will not function properly in the ISaGRAF PAC WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 7 If you are not familiar with ISaGRAF programming please refer to the Ch1 1 Ch1 2 and Ch2 of ISaGRAF Us
190. end curve 0 0 diagram by M S Excel 59 Q Some skill to operate RS 232 422 485 serial COM Port by COM functions Q How to read write file data in WinCon Q How to connect RS 485 Remote l 7000 and I 87K I O modules in l 8xx7 l 7188EG XG and WinCon 8xx7 PAC How to program RS 485 remote l 7017RC I 87017RC and Il 7018Z 62 Q How to setup a redundant system with Ethernet I O Q Why my RS 485 remote l 7000 and I 87K Output module s host watchdog function doesn t work to reset its output channels to safe output value while the RS 485 communication cable is broken Q ICP DAS release Stable and Cost effective Data Acquisition Auto Report System VC 65 6 0 VB 6 0 and ISaGRAF demo program are available Q How to process the Integer or Real value coming from the RS 232 RS 485 device Like the device of Bar Code reader or RS 232 weight meter 67 Q How to send email with one attached file by WinCon 8xx7 or iPAC 8447 8847 or UPAC 7186EG Q Why the W 8xx7 or I 8xx7 or I 7188EG XG always reset How to fix it Q Why my PC can not run ftp to connect W 8347 or W 8747 70 Q How to do Time Synchronization and record state of many ISaGRAF PACs Q Application Record 10 Ch temperature value into a file in W 8xx7 every minute When 24 hour recording is finished send this record file by email every day m e Q Application sample Record Voltage Current input by W 8xx7 every 20 ms for 1 to 10
191. ense when shipping out You don t need to install it However if you want to upgrade to newer version you may upgrade it by yourself The WinPAC ISaGRAF driver can be obtained in the WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 driver lt version Number gt EX version 1 01 is located at napdos isagraf wp 5xx7 driver 1 01 Or download it from http www icodas com products PAC i 8000 isagraf htm gt Driver 1 If your WinPAC is WP 5xx7 WP 5xx6 please stop WinPAC ISaGRAF Driver first Click on End Driver button to stop it However if it is WP 5xx1 5xx9 WinPAC without ISaGRAF license please goto step 2 WinPAG oe7 5 ex6 SaGR AF Driver Ed Setting web About isavWPSxx Configuration Slave Number fi Modbus ATU Slawe Port hone Baud Rate fis2o0 M amp 1 Project Current Application examplei ISA11 1036 15412 940 Elapsed Time o 2 00 28 2 Set up WinPAC s IP Mask FTP directory amp Auto execute A Please create a folder ISaGRAF inside Micro_SD folder in your WinPAC controller Then it will be Micro_SD ISaGRAF B Please run Start Setting Network and Dial up Connections on the WinPAC Programs o gt Favorites d A Documents E Settings BF Control Panel a Network and Dial up Connections ist wi Taskbar and Start Menu KR WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 12 Then click on LAN1 and
192. er 6 Back Color set the back color of the Bar meter 7 Scale Color set the color of the scale 8 Data Type select the value type long 32 bit sign intger word 16 bit signed integer or real 32 bit float 9 Bipolar Check to display the bar as two direction The Bar s base position is at the middle value of the Bar Range for example if the Bar Range is 1000 1000 the Bar s base position is at value 0 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 42 10 Data Type select the data value type Can be long 32 bit sign intger word 16 bit signed integer or real 32 bit float 11 Show Value check to show the current value 12 Show Scale check to show the scale 17 m Oo ee i 18 9 14 Low lamm 20 as ay 16 22 13 Conversion The unit conversion function Check to convert the value according to the range of Bar Range Ex Bar Range 0 0 1000 0 means the minimun value is 0 0 the maximum is 1000 0 if checked Conversion and set to 0 32767 it will tranfer O 32767 to 0 0 1000 0 14 Bar Range the maximum and minimum limit of the Bar range 15 Dot define the digital number after the dot can be 0 6 16 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Us
193. er s Manual The manual website is as below http www icpdas com products PAC i 8000 getting started manual htm Open your project or create a new one ex demo01 and click on the I O Connection tool icon of the ISaGRAF project window lL SoD ee File Make Project Tools Debug Option Help A S OS mS wk Set soft_grf to the Slot and the slot number must after 0 in order not to conflict with the real I O modules using in the slot number O of the PAC If using ISaGRAF PAC WP 5xx7 Select board fequipment x okdpr l 7000 10s on Com or COM 4 loke Link 6KE4 MTCP or SEE8 M TCP key init Set keypad features led init Set LED features Cancel mbus Modbus ATU master mbus ase Modbus ASCI master Mote mbus_tep Modbus TCP IP master FAQ 11 mmicon Connect MMICON by Coma or Con modem ps Set Password of Com Modem rdn Redundant System For Wincor Library Mr new New Redundant System W Budr ru slay 2nd 5th Modbus ATU slave port Wisse ry salve 6 Sth Modbus ATU slave port D s256 512 Batten backup SRAM for l Bww7 Equipments sms Short Message Service 7 Then create a new Ladder program in the project Hew Program File Make Project Tools Debug Optons Help SP HS Wem a e m Create new program Mame test Comment for fagl 46 Language Quick LD Ladder Diagram Style Begin Main program LiL A BS Oe tm S wk HEF eee for faq 46 Add on
194. ere by the lt b tag and id L21 and lt b gt tag the initial value of this L11 is xxx lt body gt 6 4 2 4 Displaying Dynamic String Data If user want to display the dynamic string value max length is 255 the below code can be used function refresh_data The action of the Text object S31 is defined here The layout or location of the Text object S31 is 31 innerText string val 31 lt body onLoad init gt defined here by the lt div and lt div gt tags lt div style position absolute width 214px height 53px z index 2 left 102px top 79px gt lt b id S31 gt empty lt b gt lt div gt 7 The declaration of Text object S31 is defined here by the lt b tag and lt body gt id S31 and lt b gt tag the initial value of this S31 is empty WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 10 6 4 2 5 Trigger A Boolean Object To Blink Demo example wphmi_02 and wphmi Some application may need a message _05 Section 4 1 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 t var blink_period 500 o attract viewer s attention The blinking period unit is ms setTimeout blink_obj blink_period Setup a timer to han
195. eri desineret esa e E EEr ENa E EE E ENE N aa EEEO 1 PVT OGE AINE INOU CO ania a o E A 1 tegal GUia bility eraann a EEEE E E E E E T E ATN T 1 Trademark Ge CODY MBE NOTIC C srki npea 1 Development Sonwa Ecs chess aes cate end ocean actos een Ca ce ata a sa pation aes ae en eae eee ee 1 RELSE NCE GUIE r nent eee tnt tet Hert av RS Pe Eo ene a eee eae 1 TSM eb le SOV CO eset ie assoc haa T OEO carte taco se eestor eon seen O EN 2 Table of Contents soarici nr e E E A 3 Reference GUIDE sicssscexsscseccarueseceaeaentecandenw tem oscsweeandenwvesoawnbesaudenn ees oncnneensdenwsen nawsbeeaudenn EEEE 8 I O Modules Selection Guide for WP 5xx7 Series ccccccceccsccececceccececceccececceccececceccececceccececceccececcecs 9 Performance Comparison Table of ISAGRAF PACS ccecsccscscsccccccsceccccccscsccccccscsccccecscscescccscscesescess 13 Specifications WP 5147 WP 5147 0D sssessossossossssossossososeossossossssossossosessossossossosossossossosossossossos 14 Chapter1 Typical AP PliCatiOn cesena a a aaa 1 1 1 1 Soft GRAF HMI Application Colorful HMI eseesssesseessreeserresseresrerssreosseresseessrerssreesseresseresreerseeens 1 1 1 2 eLogeer HMILApDICIU O aenar e EE A 1 2 1 3 Modbus Slave RTC Pesce aiateces tied a a a a a a Guncoed te deatontaneeonenes 1 2 1 4 Modbus Master TCP IP arrana De N E 1 3 1 5 Modbus Master RTU ASCII RS 232 485 422 ccccccccccccccccccccceeeeeeeeeeeeesesseeeeeeeeceseseeeeeeeeeaaaeas 1 3 1 6 Comm
196. es when the PAC is powered up If this data56 txt doesn t exist all these 1 to 255 variable value will be inited as 0 0 At run time if any value of these variables is modified all the 1 to 255 variables will be written automatically in the data56 txt If the file doesn t exist this program will create it Restore the wpdmo56 example project SaGRAF Project Management O x File Edit Project Tools Optons Help T Archive mm wpdmo fb Libraries common data YES own phone mm wpdmoT9 toponi p O TY gt M e Pee E a e Reference tt Workbench Archive Author E Backup Date of creation 2007 1 24 Yersion number 1 lSaGt Description Restore Close Help d li odmor 5a W Compress Archive location DATEMP Browse Project Architecture wpdmo56 pia There are five ST programs in this wpdmo56 project Four of them are ISaGRAF user defined functions reaf_f1 save_f1 G_ data and S_ data Important Note A 1 User may modify the constant value of SIZE1 in the ISaGRAF dictionary window to a value between 1 and 255 according his own application 2 Please also modify the Dim value of the F_VAL1 and Old_F_VAL1 variable array in the ISaGRAF dictionary window to the same value as the SIZE1 And also modify the G_data and S data program WinPAC 5xx7 User Manual Ver 1 02
197. esize 5 Next set up the title of g Label object for the text displayed on the object Double click on the Title text box and key in Soft GRAF Demo 01 then click Accept button to close the window and click ok to end the setup NetWork Address Sine W H Font 326 Location Fore Color ae cay Hest NetWork Address Font size Fore Color Back Color We C Using bool addres to hide E Next create a g B_ Led object 1 Drag amp drop a g B Led object to the editing area 2 Mouse right key click on the object and select setting or just mouse double click on the object 3 To configure the following setting such as Network address 11 Size W 40 Size H 40 Font 10 Bold Shape Circle WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 12 ISaGRAF Demot Mouse righ click the object Net Work Address Mesage when fals Set to show different message when False and True Tie Fale Message when Tine Input TF color C LCL O Location E e j O Using bool addres to hide eA Drag amp drop a g_B_Pic object to the editing area Right key click and select the setting or just mouse double click on the object Value Button FA T IE RE 043 e EE A ISaGRAF Demo1 Set up the picture of True File for situation Tru
198. example all files in the sub directory 1 01 into the path Micro_SD ISaGRAF of the WP 5xx7 via FTP or USB disk And then re cycle your WinPAC s power Note Files shown in the below figure may be different depending on its driver version F File Edit View Go My Device i j E Address Micro _SOISaGRAF l CJ dial_utility exe Ea isaPoxx7 exe aPLC_MODE WP Sxx exe Frs _wpohmi exe C Sott GRAF exe SOL_Clent_PAC exe dbnetlib dll a dial_up dl dialup net ls isa_el cil a login cl mai cl mscorlib ll Quicker dll QuickerNet all SharedMemory cll System Data Sglclient dl System Data SqlServerce dl whmi_flter dl BH isa PS ink You may use PC s ftp utility to download these files Please open Internet browser and then type in ftp lt IP address gt for ex Ftp 192 168 1 178 browse it to the Micro_SD ISaGRAF Then copy all of them amp past it Then remember to re cycle your WinPAC s power again After it re boot again it will have the new ISaGRAF driver running You can check if the version is correct WinPAG oe7 5 x0 SaGR AF Driver Ed isa W PIE wWinPAC ISa0RAF Driver Copyright 2008 by ICP DAS All rights are reserved Pro This product is licensed Driver Revision isaw PS7 exe For WP SoxFfSex6 ver 1 01 Feb 20 2012 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 15 Appendix C Dimension Unit mm Top View Left Side View Front View Right S
199. f wp 8xx7 driver wp 8x47 1 39 sofgrafy XP 8xx7 CD napdos isagraf xp 8xx7 ce6 driver 1 21 sofgrafy VP 2xW7 CD napdos isagraf vp 25w7 23w7 driver 1 31 sofgrafy or www icpdas com gt FAQ gt Software gt ISaGRAF gt FAQ 146 in the downloaded ZIP file WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 63 3 6 Other Features Introduction The Soft GRAF Studio provides the Clipboard and the function of arranging the object layer order 3 6 1 Copy the HMI Object via the Clipboard The clipboard provides three stardard commands Cut Copy amp Paste 1 Using the hot key Ctrl X Cut the object Ctrl C Copy the object Ctrl V Paste and replace the object after the Cut or Copy Operation Example Press Ctrl V to Mouse left click on the paste the object object then press keyboard Ctrl X or Ctrl C 2 Using the tool icon Use the clipboard icons in the toolbox Operation Example Mouse click on the object then click on the icon Cut or Copy and then on the icon Paste File Project Help 3 Using the mouse right key Mouse right key click on the object then select the Cut or Copy from the popup menu Then mouse right key click on the blank editing area and select the Paste Cut or Copy the object WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 64 3 6 2 Paste the Text into HMI Object via the Clipboard After copying the text mouse
200. file by the Excel it may show as the following figure gq Logerl Demo NOY 13 2012 Tuesday Date Time Curve Curve Curves NWOV TS 201T2 17 15 06 6 54 yee NOV 13 2012 17 19 10 10 1 8 264 NOV 13 2012 TAa 15 O 49 3 NOV 13 2012 17 13 20 20 1 3 62 3 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 96 g Loggeri Settings If don t want the File Title set it as blank then the first row will become Column Title pample rate 12 Regul aripile ra 5 cF Font 326 File format csv iene Fore Color o LogzerPileSethng File title z Logerl Demo Time format Show Date Hour Min Sec Tite of he Icoin Date format DEC 31 20 12 LoggerFileSethng File zettine 1 File setting A O coumis Data aagge Vebe Tyne ot __ New _ covet E Yo e bo I ma Cove rot Pct ee Flot Delete These 3 address are the address of the ISaGRAF variables V1 V2 and TNE Tye 4 wT et q Logerl Demo Date Time Cuvel Curve Curves MOW 1 4 2012 145421 Note The sample rate setting of the g_Logger1 affects the retaining days of data files The retaining time is 10 days if sampling rate setting is 1 or 2 or 3 seconds The retaining time is 30 days if sampling rate setting is 5 to 30 seconds The retaining time is 3 months if sampling rate is 1 minute or more than 1 minute The other note is one PAC can en
201. from file FAQ 060 To output at a time interval SYSDAT_R SYSDAT_W SYSTIM_R SYSTIM_W ST QLD WinPAC demo_04 User defined Modbus protocol No using Mbus To do something at some sec later when an event happens slot 0 XW107 FAQ 017 Using Message Array MsgAry_r MsgAry_w A Convert float value to string using real_str amp rea_str2 PID control refer to WinPAC 5xx7 CD napdos isgraf wp 5xx7 english_manu PID_AL htm S Store amp backup boolean amp long integer value To From files Store amp backup boolean amp long integer value To From EEPROM Dir is Micro_SD save 3 values to 3 files per 10 E minutes change file name per month Retain variable by Retain_b Retain_N Retain_f and Retain t FAQ 074 Dir is Micro_SD save 3 values to 1 file every minute change file name every day Send UDP String to PC when alarm happens using variable array Time _Gap is 1 sec slot0O XW107 Chapter 19 2 of the ISaGRAF User s Manual WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 5 E Z O O O O O O O O o o O O O O O D h fon fon fon fon fon fon fon ala fon oO fon o o 3 ere 3 3 3 3 3 3 3 3 3 3 3 3 3 3 5 B O O O O O O O O O O O O O O m D 00 Co m e m e m e m O O O O O O O O O E O SS m O WO 00 N O un SS U9 N rS Send UDP String to PC 3 sec later Time_Gap is 250ms slot0 XW107 Chapter 19 2 of the ISaGRAF User s
202. ggering k1 MSGARY N In this example the type of msg1 is Message K1 is internal Boolean Please set K1 to False in the 2nd L 2 line R to avoid multiple triggering HMI Screen Side When k1 TRUE the alarm message in the main Alarm window is as below ate eR Ege 2012 07 BOSH Thursday 7 5 2012 Fie oo Joi HEH E it O001 20124607 FO59 00 54 57 K1 is triggered DOOL 201207 F058 005457 K1 is triggered SERRA 1 TREE O WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 87 2 In the function MSGARY_W set parameter ADDR_ as 8 and assign the alarm description to parameter Msg When the Alarm is triggered it only records message in the g Alarm list the ALERT window will not pop up EX When K2 is triggered the g Alarm will display the content of the msg2 variable only After the K2 is triggered remember to reset the K2 to False to avoid multiple triggering MS GAR Y In this example the type of msg2 is Message K2 is internal Boolean Please set K2 to False in the 2nd C line R to avoid multiple triggering HMI Screen Side When k2 TRUE the alarm message in the main Alarm window is as below skip perch gl 2 20124607 HOSH Thursday 17 5 2012 HERE Iolo EH eS es 0002 2012 07 KOSH 01 54 38 Alert without pop up 0001 Wr 07 Aos 00 54 57 K1 is triggered SERRE 2 REE O
203. gt Software gt ISaGRAF Ver 3 English 110 Wireless Solution ISaGRAF PAC Plus ZigBee RS 232 485 Converter to Connect 7000 1I 87K I O Modules and Modbus Device PC PC HMI PC HMI G ZB 2551P ZB 2550P Stave Ethernet Modbus TCP IP Host 1 7000 ir l 87K4 8 I 87K EEP ISaGRAF PAC s High Profile 1 0 WP 5xx7 A xp ID 1 2 3 NET ID 4 5 6 7 RS 232 485 a RS 232 VP 25W7 RS 485 C CC uPAC 7186EG I ace 700 M j rn T SS yn 3 aN ZB 2000P Series I O ee ee NET ID 8 NET ID 9 ty zB 2551P ff o Host Ys Slave ess ese DORPEN ENEE i Orm CC 28 2551P BE Slave ld i Modbus RTU ASCII RS 232 485 Device M 7000 I O Other Modbus Device 1 _ 1 87K4 8 1 87K E700 High Profile I O Ces pnd NET ID 1 2 3 NET ID 4 5 6 ARRIT Pee NET ID 10 11 12 NET ID 13 14 15 16 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 9 1 17 Database Application Supports SQL Client functions to write data to or read data from Microsoft SQL Servers 2000 SP3 2005 2008 One PAC can connect max 4 Servers The PAC supports Multi Language depends on the model number include Traditional Chinese Taiwan Simplified Chinese English French German Italian Portuguese Russian Spanish and others Integrating Machine Business Automation Application More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 135 ICP DAS WinCE PAC
204. guration Slave Number fi Modbus RTU Slawe Port hone Baud Rate 19200 if 3 1 Project Current Application ita T5411 976 5412 924 Elapsed Time 0 0 56 12 2 Download FAQ 146 http www icpdas com faq isagraf htm gt 146 and copy the file Soft GRAF exe in the faq146_demo_chinese zip to the directory of Micro _SD ISaGRAF in the PAC via ftp or USB disk method replace the old file Soft GRAF exe WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 70 3 6 6 To Display the Soft GRAF HMI with Real Full Screen When complete all design and testing of the control logic and Soft GRAF HMI user may do the following setting to display the Soft GRAF HMI with real full screen This prevents anyone to mis operate the PAC s OS Taskbar and Start Menu OK G Control Panel Network and Dial up Connections G _ Taskbar and Start Menu WinPAC Utility 2 0 2 6 H a5 Help Configuration a WINPAC Lt ga l Save and Reboot Reboot Without Save Restore Default Settings Exit How to stop the real full screen When the PAC is setting as Toolbar Auto hide the Soft GRAF HMI will occupy the full screen Then it is not possible to do any operation for the PAC s OS There is two possible ways to solve this problem 1 Recommend using this way PC running ISaGRAF to connect to the PAC and then click Stop application SaGRAF SOFGR O02 Debugger F
205. h row has 10 integer value FAQ 060 Retain 17 Real 2 Boo 10 Integer in 2 file Each row has 10 value Retain more than 255 Real 255 Boo 255 Integer in 2 file up to 1024 O Q Q Q Q 3 3 gt 3 3 O O O O O Wn lun lun U1 UI P W N ut O Q 3 O un on i8xx7 WP8xx7 AutoReport data to PC via UDP Controller 10 0 0 103 PC 10 0 0 91 Send email via Ethernet port To one receiver without attached file FAQ 067 71 72 76 77 For WP 8xx7 XP 8xx7 CE6 VP 2xW7 WP 5xx7 iP 8xx7 only Send email to one receiver with one attached file FAQ 067 71 72 76 77 WP 5xx7 COM3 connects l 7530 CANopen ID 1 device 8DI 8DO 4A0 8Al FAQ 086 Similiar as wdmo_71A but connecting two l 7530 One is at XW506 Oo Oo Oo Oo Oo Oo O Oo Oo Oo O on on on Q on Q Q Q Q Q Q 3 3 3 3 3 3 3 3 3 3 3 O O O O O O O O O O O NJ NJ UI Sg Un Un U1 U m e m ep OY OY OD 0 O OD OY OY on fab W N e O o lat WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS y P N COMS one is at COM6 WP 5xx7 COM4 7530 CAN device to get string with float or integer data inside Similiar as wdmo_71c but connecting two l 7530 One is at XW506 COMS one is at COM6 WP 5xx7 COMS l 7530 CANopen device COM6 l XW506 l 7530 CAN device New WP 5xx7 redundant system with RU 87P4 I 87K I O Without Touch HMI FAQ 093 Same as wpdm
206. he System_Disk external_ device_driver please visit ftp ftp icodas com pub cd winpac napdos wp 8x4x ce50 system_disk to download them and then use FTP to copy the external_ device driver folder into the WP 5xx7 s System_Disk 3 After installing the driver please run WinPAC Utility gt Save and Reboot to save and reload WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 26 WinPAG Utility 2 0 2 6 z Note a Help Configuration If you ever remove the driver a EN ae Lti under the Safe Mode Rotary Save and Reboot Reboot Without Save Restore Default Settings Exit Switch 1 please set the all settings again 4 Run the Calibration feature from the Start menu and then follow the calibration command to touch the given point on the monitor by your finger gt Communication Seer Baal Calibration FEEN E Command Prompt DrawDemo Ve Favorites 2 isqhwa5 E5 RightButton Documents 60 Regview O Uninstall LF Settings 3 TaskMor CP Run A3 Windows Explorer vist A WINPAC Utility FenMount Calibratie e Driver 2 7 Fmware 6000 6 0 0 Please touch the red point 5 After completing the calibration you can start to try the touch function Now you can unplug the USB Hub and then connect the USB monitor directly to the WP 5xx7 then touch the monitor to run WinPAC Utility gt Save and Reboot refer to step 3 to save the calibration setting WinPAC 5
207. he page The integer variable which with the network address number 8190 hex is 1FFE is for reading the current Soft GRAF HMI page number The value can be 1 2 3 etc oe ws NetWork a Name Type Attribution Description Addr 8191 Must set an initial value 65535 To Page Integer Internal oo Hex 1FFF For switching HMI page 8190 Current_Page Integer Internal For reading the current page number Hex 1FFE Inte zer Real Yariable X Mame Ta Fage Network Addresa 1FFF Comment set initial value to 65535 Network addr ts 5191 Hex 1FFF Unit dit Conversion none Attributes Format Integer standard i Real Store Internal Cancel C Output IC Constant Ment Initial value io Previous Retain Ex Dim oOo Extended WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 68 The VP 25W7 23W7 supports to switch the Soft GRAF HMI screen from the background back to show on the fore ground by pressing some Function keys F1 to F6 on the VP 2xW7 Note This function is supported since the VP 2xW7 ISaGRAF driver version 1 21 Follow the steps as below 1 In the ISaGRAF project declare the F1_btn F6_btn to be the Boolean Internal variables used to read the F1 F6 states of the VP 2xW 7 F1 btn F2 bin F3_btn F btn F5 btn F6 btn 2 Declare two Integer Internal variables and assign them the following
208. i_8xx7 pdf amp user_manual_i_8xx7_Appendix pdf http www icpdas com products PAC i 8000 getting started manual htm ISaGRAF p FA fit Chinese Manual WinPAC 5xx7 CD napdos isagraf wp 5xx7 chinese_manu chinese_user_manual_i_8xx7 pdf amp chinese_user_manual_i_ 8xx7_Appendix pdf http www icodas com products PAC i 8000 getting started manual htm Industrial Ethernet Switch NS 205 NS 208 RS 405 RS 408 http www icodas com products Switch switch list Atm NS 205 RS 408 Power Supply http www icodas com products Accessories power supply power list htm DP 660 24V 2 5A 5V 0 5 A power supply DIN Rail mounting DP 665 24V 2 5A 5V 0 5 A power supply DP 1200 24V 5A power supply DP 1200 DP 660 DP 665 Frequently Asked Question www icpdas com gt FAQ gt Software gt ISaGRAF for Frequently Asked Questions http www icpdas com fag isagraf htm WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 8 I O Modules Selection Guide for WP 5xx7 Series WP 5xx7 supports one optional XW board open the cover to plug it into the PAC and RS 485 remote I O modules Please refer to the list in the next page or follow the below steps to get the newest list vww icpdasgom v BR s x Moor SMICP DASA gt Subscribe re Industrial YEP Fiber Switch Ethernet Svatch gt PX Emema Real tmenng Sateh Programmable utomation ntroiler PAC ae Remote I O
209. iar with it Set the web options First run the isaWinPAC and check on Enable Web HMI in the Web tab and then click on Settings Please check on Enable Account Security and then click on Edit to set username password Then remember to click on OK Note If Enable Account Security is not checked any user can easily get access to your WinPAC 5xx7 through the Internet Explorer Security Settings Modbus List IP Setting Account Security Priority Lowy User Name Level Password Gas J Priority Middle User Name Level2 Password pew Priority High User Mame Levels Password Es Ed isaVWPSux Account Options A web HMI d Disable FTP Serveice Disable Telnet Serveice To set up advanced security click on Se Settings And then please copy all files in this example1 to the controller lt your hard drive gt example1 to the WinPAC 5xx7 s Micro_SD Temp HTTP WebHMI WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 36 Since the Web Pages are modified or new copied please run rs_wphmi exe to reset the Web server The rs_wphmi exe must be run every time when user has modified any file in the WP 5xx7 s Micro_SD Temp HTTP WebHMII E My Device erg y WIMP AC sa WPD Show Time Please run Internet Explorer Rev 6 0 or higher key in the IP address of your WP 5xx7 For
210. ide View NI aN WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 16 Appendix D How to Enable Disable WP 5xx7 s LAN2 Important Notice 1 Recommend to use the Industrial Ethernet Switch NS 205 NS 208 or Real time Redundant Ring Switch RS 405 RS 408 for WP 5xx7 5xx6 Please always set a fixed IP to LAN1 and LAN2 if it is enabled for ISaGRAF applications The default setting of LAN2 of WP 5xx7 is disabled User must enable it before using LAN2 port ISaGRAF must use WP 5xx7 s LAN2 when using Ebus section 7 5 of the ISaGRAF User s Manual and New Redundant system please refer to www icpdas com gt FAQ gt Software gt ISaGRAF gt 093 ISaGRAF may use LAN2 when using Delivering message via UDP or TCP section 19 2 and 19 3 of the ISaGRAF User s Manual Please open Start gt Settings and then click on Network and Dual up Connections to set as LAN2 as Enable or Disable File Edit View Advanced aa Make New Connection a Programs o gt Favorites d Documents E Settings a Control Panel 3 Network and Dial up Connections H Taskbar and Start Menu A Set as Default Then run Start gt Programs gt WinPAC Utility click Save and Reboot to save the setting WinPAG Utility 2 0 2 6 36 Help Configuration tting Netw Save and Reboot Reboot Without Save Restore Default Settings Exit Winkel Cosuag ucts Upin Acowesil
211. ie Edit Project Toole Options Help Ey Gl Cy Gel Mm a Tser s gvide m creation Language reference fi wdemo O1 Wincon demo m wdemo 02 Wincon demo wdemo 03 About PEET _ oO x ale wdemo O3 To output at amerre EEFE REE EM SAAT mE FIEC HS HE REECE ISaGRAF Project created by Upload QOOSN 2716 14 34 05 Language reference Project architecture Common objects SFC language FC language FED language LD language oT language x IL language Standard operators function blocks and functions WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 3 10 2 Installing the ISaGRAF Programming Examples The ISaGRAF Programming Examples http www icodas com products PAC i 8000 isagraf demo list hAtm WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 demo ISaGRAF User s Manual http www icpdas com products PAC i 8000 getting started manual htm English napdos isagraf wp 5xx7 english_manu User_Manual_ _ 8xx7 pdf User_Manual_ _ 8xx7_Appendix pdf WP 5xx7 Demo Example Files http www icodas com products PAC i 8000 isagraf demo list htm ftp ftp icodas com pub cd winpac 8xx7 napdos isagraf WP 5xx7 demo ISaGRAF FAQ www icodas com gt FAQ gt Software gt ISaGRAF V 3 English http www icpdas com faq isagraf htm Example Lists 01 A simple Soft GRAF HMI demo sofgr_01 sofgr_08 FAQ 131 sofgr_02 A Soft GRAF demo which use 18 HMI objects 03 A Soft GRAF
212. ile Contol Toole Options Help yrs ph bl be S RUN allowed 0 current 3 maximum 120 overlow 0 Stop application plication stopped 2 Not recommend using this way Power OFF the PAC and turn the PAC s Rotary switch to 1 Safe mode Power it up with Safe Mode WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 71 3 6 7 File Management for User Edited Pictures Picture files in the PAC All user used pictures in the project will be stored in the following directories XP 8xx7 CE6 XP 8xx7 Atom CE6 System_Disk ISaGRAF sofgrafy user WP 8xx7 VP 2xW7 WP 5147 Micro_SD Soft GRAF user If there are too many pictures and you want to manage them you can delete all the pictures files under these directories But do not delete the folder user and download pictures again via Soft GRAF Studio j Micro_SD Soft GRAPwser fo 9 07 JD9 14 1KB JPEG Image 03 jog 13KB JPEG Image a air 021 gif g9 75KBE GIF Image a air 1 jpg O 29EB JPEG Image 4 14KB JPEG Image JPEG Image Addres For saving the download time Soft GRAF checks the file name and size when download the project to the PAC to decide overwrite that file or not If the file size is the same it will not download that file So when the picture of HMI screen is not update please delete the non updated files in the above directory of the PAC and then download the project again via Soft GRAF Studio Picture files in
213. iles I WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 11 Configuration Web directory of WinPAC Run WinPAC Utility and switch to Network Setting tab then change Web directory to System_Disk InduSoft Demo_01 Web Click Setting and File gt Save and Reboot to finish this configuration F My Device WinPAG Utility 20 2 6 TaY a Help Configuration td Saye NINPA ting Networkgetin WINPAC Save and Reboot tting g System Information Auto Execution Reboot Without Me aaa es assword File Serve Settings a Restore Default Settings assword ad file server and enables clients to store and 7 z5 amm mares Use of the Internet for communication between client devices and other shared equipment A swe isa PS7 Change HTTP document root directory windows yew apu to Sistem DisraSeRIDero OTWeb ee rs wphmi Visualize your project in a remote station Run Internet Explorer and type for ex http 10 0 0 80 MainPage html Use WinPAC s IP A http 10 0 0 80 MainPage html Microsoft Internet Explore a K BEO RHE HAO BHOREA IAD RAH 3e Otr O HAG Axe km O 2a FHE D B http 10 0 0 80 MeinPage html vger se XW107_DI_1 XW107_D0_1 1 87024W_AO_1 Interanl 0 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 12 Chapter10 Example Program amp FAQ The WinPAC 5xx7 WP 5xx7 is the abbreviation of the WP 5147 WP 5147 OD The
214. imer_val 21 ms WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 34 Now we have finished all the code Please save it RRT E TaD E ND EER aT XI alm aA FaF dreama D C Jeru 106 Lo mits To refresh displayed data this function is called by IE about every 1 5 3 Mie function refresh dataj 1108 lil ll 11s Bl sre ee B2 3 C 115 116 Bll are ing big Tcircle red boolean val ll Jpg 117 115 if boolean val le 0 119 120 Ble innerText UE ileal font Ble color blue 122 El blink 0 fing circle blue boolean val l jpg al fing cmd boolean val 2 jpag lI a aloe id GF DANSERE aaa 4 BIS BAE O E E You may click on Preview to simulate its run time behavior E Microsoft FrontPage DWChomn_DWeer_Mannal_Winlons000 Web AMT Wemovesaniple ran Ain lol BRE ARPE WATO HAD BaS IR Fd END WEE me JAD D S Hyaa Fanaa M l a fF A BP u EEEn main him x This is a Web HMI sample page Kl K2 i OUTOI OUTO2 Tl xxx ms e OFF XXX Enter Edl GES OAR Best Hello Welcome to the Web HMI Sample br x354 FRB BET z WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 35 5 4 4 Step 4 Download Web HMI Pages to the Controller The steps are similar as listed in Section 4 2 3 If you haven t practiced Setting Up A Web HMI Demo listed in the Chapter 4 it s better to do it once to get famil
215. ing bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False 17 Using Alarm Check to enable Alarm function 18 Up Alarm value set the Up limit of the Alarm 19 Up Alarm Color set the color if the value arger than the Up Alarm value 20 Low Alarm set the Low limit of the Alarm 21 Low Alarm Color set the color if the value smaller than the Low Alarm value 22 Alarm Blink Set the alarm blinking options when the value is larger smaller than the Up Alarm or Low Alarm value There are 4 options a No Blink no blink b Up Alarm blink if larger than the Up Alarm value c Low Alarm blink if smaller than the Low Alarm value d All Blink blink both when larger and smaller WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 43 3 3 17 g Rect Draw a Rectangle 1 Sze Wo His 2 o H Reman a Options 1 Size set the size of the object W for Width H for height 2 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 3 Edge Width set the border line s width 1 10 4 Rect Color set the border color of the rectangle WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 44 3 3 18 g Trend Create a real time trend to display max 3 curves and may also enable the historical trend function to record them
216. ing telnet for example key in telnet 10 0 0 103 in the command window 4 Using the Web server The Web HMI does For safety recommend to disable item 2 and 3 at run time WinPAG 5 7 5 x0 ISaGRAF Driver td Web saw POET Setting About Options Ena te wen HMI To set up advanced security click on Settings Settings And about item 4 please set proper username amp password for the Web HMI Ed iS q1 i PSr vetting Options N nable Web HMI Disable FTP Serveice a Disable Telnet Serveice To set up advanced security Settings Prisrity Lowy Level1 Es User Name Password Priority Middle User Name Setting user name Level2 amp password here eee Password About item 1 user may set up to 8 IP address for ISaGRAF or other HMI to get access to the WP 5xx7 via the Modbus TCP IP protocol as below WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 20 On the IO connection window of ISaGRAF please connect vip and entering the IP which can get access to the WP 5xx7 via Modbus TCP IP protocol If vip is not connected any remote IP can get access to your WP 5xx7 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 ten che Setup 1 to 4 TCPVIP Client tep para TCP communication parameter udp ip Setup a UDPVIP socket Cancel EDI amp 7DO0 for
217. inthe 44 O0F board OUTO output o000 OUTO WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 6 Declare the Timer Variables 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 SaGRAF EXAMPLE Global timers File Edit Tools Options Help a JaW 4 Bet EE J itegers Heg easages FB instances Defined words hi Addr Comment wi 5 Timer Yariable Hame i yo Network Address fs Initial value Cava FT Ce n Retan ISaGRAF EXAMPLE Global timers File Edit Tools Options n mM el eK e Booleans Integers Reals Timers a FE instances Defined words Mame Attrib Addr Comment inter nal oond Ti 20000 internal t 82 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 7 5 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 recognizes Modbus No from 1 to 1024 However other SCADA software may R W the Modbus No from 1 to 8191 in the WinPAC 5xx7 Variables without assigning Modbus No will not be available by
218. ion DNFAQT46 TFA T46 TSS0FT A71 Browse PAC XP 8xzx CE6 SaGRAF Driver Setting Web About Configuration Slave Number i Modbus RTU Slave Port comz Baud Rate rs200 N 1 Project Current Application demonra 15411 3156 15412 3992 Elapsed Time o 0 00 29 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 86 Note When using the ISaGRAF code MSGARY_W 9 msg MSGARY_W 8 msg MSGARY_W 7 msg and MSGARY_W 6 msg to send one Alarm message to the Soft GRAF the alarm message cannot include the CR character Carriage Return Enter ASCII code 13 and LF character Line Feed change line ASCII code 10 These two special characters will automatically be replaced by a Space character ASCII code 32 How to trigger the alarm message g Alarm object must use the MSGARY_W function in the ISaGRAF project to trigger and record alarm message The setup method is described by the following ISaGRAF project Demo07 g Alarm using the following methods to trigger the alarm message 1 In the function MSGARY_W set parameter ADDR_ as 9 and assign the alarm description to parameter Msg When the Alarm is triggered it will pop up an ALERT message window and record this message in the g Alarm list EX When K1 is triggered the g Alarm will pop up a message window and display the content of the msg1 variable Then remember to reset the K1 to False to avoid multiple tri
219. is the Net ID of the PAC Header is for reading Boolean data is for writing Boolean data is for reading short integer data 16 bit integer Word 32768 to 32767 is for writing short integer data 16 bit integer Word 32768 to 32767 DW 0 is for reading amp writing long integer 32 bit integer Double Word FP 0 is for reading amp writing floating point data 32 bit REAL For more details please refer form as below Data Sample Valid Range of Initial Comments Type Syntax Addresses per Worksheet Varies according to the Coil Status Read and write events using Modbus equipment instructions 01 05 and 15 Varies according to the Input Status Read events using Modbus instructions equipment 02 Varies according to the Holding Register Read and write events using equipment Modbus instructions 03 06 16 Floating point value Holding Register Read and Varies according to the l write float point values using two consecutive equipment 3X 3X4 Varies according to the Input Register Read events using Modbus instruction equipment 04 Holding Registers 1 l l 32 bit Integer value Holding Register Read and Varies according to the l ai l l DW DW 2 i write 32 bit integer values using two consecutive equipment l Holding Registers WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 9 8 Please add the following 4 Modbus TCP workspace MOTCPOO1 M
220. ish_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 32767 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 13 6 4 3 1 Post Boolean Value to the Controller A To post by the image Demo example wphmi_02 and wphmi_05 function ON_OFF form_obj obj current_boo_value if current_boo_value 0 flag confirm turn ON ON_OFF function is used for posting Boolean value to the controller by refer to the current Boolean value if flag obj value 1 else flag confirm turn OFF if flag obj value 0 if flag if GetUserID form_obj true form_obj submit I Display the current boolean image In this example function refresh_data 0 display img cmd0 jpg 1 img cmd1 jpg B2 src img cmd boolean_val 2 jpg The layout or location of the image object B2 is lt body onLoad init gt defined here by the lt div and 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 ar
221. it is blank Then key in a password and click Create 4 Change Delete password Select the Level that wants to change The password column will show the current password Key in the new password and click Create to replace the password If user wants to delete the password please click Delete Buttor Taput 5 In the HMI editing area drag the g_Login object into the Page 1 _B Inp z WD Inp z F Inp m Lat zi j z z MN Inp g Login a T e Logout z ToPage WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 61 6 Right key click on Login button select Setting and then enter the page number that want to switch to for the Login button Enter page number 2 for this demo Font size d Regular Title Login Fore Color L bewitch page Location mo f Wait Time mm 7 Switch to Page 2 and drag the g_ Logout object into the editing area Now this page is protected by the password security Button Input f LogmDemo sof x B Inp z WD Inp x F Inp e MN Inp g Login g Logout o T e a ToPage 8 Download the project to the PAC Click the Login button and enter password can login the HMI project Click Logout button can exit the HMI project WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 62 3 5 How does the Soft GRAF Driver Distinguish the Picture Animate or Not Note Only the objects g B_ Pic and g N_Piccan use
222. ith network address 1 word_val 20000 temp_val long amp word_val UserSetReg 1 temp_ val 0 set float_val to ISaGRAF variable with network address 2 float_val 1 2345 temp_val long amp float_val UserSetReg 2 temp_ val 1 set long_val to ISaGRAF variable with network address 4 long val 12345678 temp_val long amp long_val UserSetReg 4 temp_ val 2 Get boolean value unsigned char UserGetCoil unsigned short iUserAddress unsigned char iStatus iUserAddress 1to 8191 Variable s network address in ISaGRAF project iStatus 0 boolean is False 1 boolean is True For example 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 1to 8191 Variable s network address in ISaGRAF project iStatus A pointer to a long type which stores the data returned iDType O type is word 1 data type is float 2 data type is long use long for Timer value in ISaGRAF unit ms WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 8 2 For example 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 gt 0 amp amp ret_val lt 32767 word_val ret_val else
223. l Ethernet Switch NS 205 NS 208 or Real time Redundant Ring Switch RS 405 RS 408 for WP 5xx7 5xx6 If user would like to program WinPAC 5xx7 by using both ISaGRAF amp EVC or VS net it is also possible Please refer to Chapter 7 Chapter 8 and Chapter 11 5 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 WinPAC 5xx7 controller with one XW107 I O board in its slot 0 to make it work If you haven t installed ISaGRAF amp ICP DAS Utilities for IsaGRAF please go back to read Chapter 2 This example contains one Ladder program This demo program resides at the WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 demo example1 pia a SaGRAF Project Management File Edit Project Tools Options Help PS Peg Eg tI lS 2 m0 creation lel ample 1 TE Samy ar Group Name Test Reference Project Name example a Author bo Date of creation Version number MR eee oreo ofis Description gt File Make Project Tools Debug Options Help A HSe eo s velo 2ee Program Name LD LD1 Begin LD1 Ladder Diagram WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 1 Variables declaration OUTO1 Boolean Output Output 1 in the XW107 Modbus network addr 1 OUTO2 Boolean Output Output 2 in the XW107 Modbus network addr 2 kt Boolean Input Input 1 in the XW107
224. l Set initial value as TRUE Year1 Integer Internal PAC s year i e 2012 Month1 Integer Internal PAC s month i e 11 November Day1 Integer Internal PAC s month day i e 15 can be 1 to 31 Week1 Integer Internal PAC s week day i e 2 Tuesday Hour1 Integer Internal PAC s hour i e 15 Minute1 Integer Internal PAC s minute i e 46 Second1 Integer Internal PAC s second i e 18 V1 Real Internal The first data set NetWork addr as 1 V2 Real Internal The second data set NetWork addr as 3 V3 Real Internal The third data set NetWork addr as 5 CNT1 Integer Internal To simulate Sin and Cos curve value Cycle1 Integer Internal To simulate Sin and Cos curve value e1 Real Internal To simulate Sin and Cos curve value LD1 Program To get the current date and time of the PAC oYSDAT_R EP oto Tht WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 94 STi Program v1 REAL second1 if INIT then INIT False CNT1 0 T1 THOS Intervall T 250ms cycle1 480 e1 REAL 2 0 3 1415926 REAL cycle1 tStart T1 T1_ Next T1 Interval1 end_if if T1 gt T1_NEXT then if T1 gt T 6h then T1 THOS end_if T1 Next T1 Interval1 CNT1 CNT1 1 if CNT1 gt cycle1 then CNT1 0 end _if v2 50 0 sin REAL CNT1 e1 50 0 v3 50 0 cos REAL CNT1 e1 50 0 end_if L eee ee ee X ee ee ee ee ee ee ee eB ee eB ee ee ee eB ee ee ee ee ee ee e
225. later version after you have installed the ISaGRAF Then please reset your PC 2 Torun ISaGRAF Ver 3 5x please always plug the USB protection key into the PC s USB port WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 3 2 1 2 Important Notice for Windows NT Users If your computer is using the Windows NT operating system you will need to add one line to the isa ini 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 Isa C ISAWIN IsaExe C ISAWIN EXE Group Samples IsaApl c isawin smp IsaTmp C ISAWIN TMP 2 1 3 Important Notice for Windows 2000 Users 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 ISaGRAF WHMI_OSP Programs EE _ o File Make Project Tools Debug Options Help S ee Oe m e Mie mh Aas Begin ST1 For String amp Integer amp Float BRE For system time amp DIO Sequential P sftcl mode i ta 3 Begin LD1 Ladder Diagram This
226. ll 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 15 5 2 Compiling amp Simulating the Example Project For ANY AND EVERY ISaGRAF program to work properly with any of the ISaGRAF PACs ISaGRAF PAC iPAC WinPAC ViewPAC 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 SaG RAF EXAMPLE Programs lolx F sog Project Toole Debug Options Help Make application Mie mH zp Begin Verity Touch Application mn time Options Compiler options Vers Resounces incon series controllers only 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 x Targets 5 SIMULATE Workbench Sintulator HOCUS SCO S SOU So COSC STOO STOO STOO EELT gt 5406M TIC code for Intel LLS6M C source code 3 04 i Use embedded SFC engine Make sure to check these items Optimizer i Run two optimizer passes Evaluate constant expressions Defau
227. lt Suppress unused labels Optimize variable copying Optimize expressions Suppress unused code Optimize arithmetic operations OK Optimize boolean operations Build binary decision diagrams BOD s Cancel Compiling error result in different ISaGRAF Version please refer to Appendix H of this manual 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 you have successfully created our example program WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 16 TSaGRAF EXAMPLE Programs Jof x File Make sn Tools Debug Options Help z io om 34 4 Code Generator x Make application code No eror detected Do you want to exit the Code Generator now 7 Continue Begin LD1 Ladder Diagram Version for ICP DAS Fide reo0d TViewsVincon seres controllers If 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 click on the Simulate icon to simulate the project ISaGRAF EZAMPLE1 Programs ojx Fie Make Project Tool Debug Optone Help M E 2S A ed
228. lt div style position absolute width 67px height 33px z index 3 left 106px top 44px id layer17 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 32 Now please go to the head area In the head area please modify the sample code to be as below variable to record object s blink state 0 not blink 1 blink For example jp ores KKK K K K K KKK var B12_blink 0 init as O not blink 2K AK OK K OK K OK OK OK K OK OK OK OK OK K K K K K K K K K K K K K KKK function to blink object var blink_step 0 The Error symbol will blink when the function blink_obj K2 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 If B12_blink 1 B12 innerText Error KLK K 2K OK OK OK OK K K K K K K K K K font_B12 color red KK K K K K K OK K OK K K K K K K K K K FAK OK K K K K KOK K K K else blink_step 1 un display your object here blink B12 For example R K KK OK KKK KK KK if B12_blink 1 B12 innerText fo
229. mber of page want to switch to when login successfully 7 Deny message the message want to display when the login fail 8 Wait time The period of time to auto Logout The unit is second The value can be 0 and 10 3600 0 means do not enable the auto logout Need to press the g Logout button to logout Ex set the wait time as 60 Soft GRAF will auto logout and switch to the first page if user has not any operation over 60 seconds after login the HMII WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 32 3 3 9 g Logout Create a Logout Button This object can create a Logout button When user presses the button it pops up a confirmation dialog If user answers Yes the Soft GRAF HMI will log out and switch to the first Page Page 1 Refer to Section 3 4 for the permission setting Logout Logout 1 2 3 4 5 Options 1 Font size set the font style and size of the text useless in other font setting 2 Fore Color set the fore color of the object text 3 Size set the size of the object W for width H for height 4 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 5 Title the text displayed on the button WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 33 3 3 10 g ToPage Create a Switch Page Button Description Show as text Show as picture Displayed figure e
230. mote I O Modules Units Supporting 8000 T O macules VXC Card ViewPAC O M2M Solution O XPAC O PoE Solution PPDS 700 Series Sealto Eihernet Programmable Device Server ver Sa fa intelligent Serial Ethernet Gateway PDS Power over Ethernet Flexible COM Ports Built in Watchdogs and DI DO Virtual COM technology SoftLogic PAC Ordering Aomain A AD Selection Guide 72 Related Products a Short Reon service Data Sheet ISaGRAF PACs ters OO EO ViewPAC WP 8x37 8x47 l VP 25W7 23W7 HMI amp SCADA Demo Fides VD D117 Software PC HMI jP Sx47 I 8xx amp I 8x37 80 Comparison Tad All eee oem 2 Modbus RU 87Pn I 87Kn een 1 7000 Remote vO amp 87K Remote lO 3 Comparison Table Stop WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 Specifications WP 5147 WP 5147 OD Hardware Specification os English German French Spanish Russian Italian Korean Simplified Chinese Multilanguage Support Traditional Chinese Development Software ISaGRAF Ver 3 IEC 61131 3 standard Languages LD ST FBD SFC IL amp FC guag Support Soft GRAF HMI XP 8xx7 CE6 WP 8xx7 VP 2xW7 and WP 5xx7 PAC Max Code Size 1 MB Scan Tine 3 15 ms for normal program 15 50 ms for complex or large program Non lSaGRAF Options MS eVC 4 0 or VS NET 2005 2008 VB NET C NET CPU Module e3 z 4 q O Y LL lt oc v
231. n be different Datal6 16 User data be retained total is SIZE1 name can be different Data r bS47 9 User data be retained total it SLZE1 name can be different send of list You may modify any value of user data Data1 to Data17 Then the new value will be saved into the file Micro_SD data56 txt Then you can open this file on the PAC s monitor screen by double click on the file name You will see the related value is modified Please do not always keep this file open Close it later or the new modified data will not be saved That is because the file is open write operation is not allowed 2 Recycle the power of the PAC You will see the value keep at its last modified value when the PAC is boot up well 3 Edit a data56 txt file on a PC as below by the NotePad utility total 17 data 1 1 22 3 3 44 55 666 7 77 8 88 9 99 10 01 0 01 0 02 0 03 0 04 0 05 0 06 0 07 Then download this data56 txt file to PAC s Micro_SD path by the ftp utility Then set RE LOAD to become TRUE on ISaGRAF Spy list window You will see the related variable value is updated WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 11 Chapter 13 Using the tGW 700 Series Modbus TCP to RTU ASCII gateway with the ISaGRAF PAC 13 1 Application Introduction Users sometimes have to choose lower speed transmission lower baud rate for long distance communication via Modbus RTU ASCII over RS 485
232. n install the driver again After installed the Touch HMI driver if the monitor cannot display well such as too large too small moire please refer to Appendix 5 to adjust the WinPAC display frequency This Appendix uses the TPM 4100 Touch Monitor as the examples 10 4 800 x 600 Industrial resistive touch panel monitor with RS 232 or USB interface Website htto www icodas com tw product solutions hmi touch monitor touch monitor tom 4100 html WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 23 I 2 The Steps for Using the RS 232 Touch Monitor on the WinPAC 1 Please connect the touch monitor and its RS 232 signal to the WinPAC s COM3 and connecting one USB mouse to your WinPAC for configuring the touch driver Then make sure the rotary switch is in the 0 position Normal Mode then power on your WP 5xx7 For example if the Touch monitor is TPM 4100 10 4 Industrial Panel Mount Monitor aluminum front bezel RS 232 USB Interface refer to the website htto www icodas com tw product solutions hmi touch monitor touch monitor tom 4100 html Rotary Switch 0 Connecting one USB mouse WP 5xx7 TPM 4100 COM RS 232 RS 232 Female D Sub TxD RxD RxD TxD GND GND Please visit the website http www icodas com products Accessories cable cable selection htm to choose the appropriate cable 2 In this case we use TPM 4100 touch monitor Please double click
233. name backed up file you want to restore from the Archive field 2 Click on the Restore button The ISaGRAF project will now be restored to the sub directory you designated ap Archive Projects Workbench Archive creation example example Fa Restore 1 Select the file name you want to restore A Click Browse to change the folder E gt pectoral to E Help start the process W Compress Archive location S WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 4 4 2 3 1 Steps to Download an ISaGRAF Project to the Controller Double click on the wphmi_05 to get into the project Then click on Link setup z ISaGRAF Project Management File Edit Project Tools Options Help BE teM We t 2 B Samples m wphmi 01 WinPAC Web HMI example 1 Display controller s date amp time No VO b i ISaGRAF WPHMI 05 Programs m wphmi_02 7 wphmi_ 03 Bil Make Project Tools Debug Options Help Reference gt woah 0 BOD DEn Sxe mH a Author Begim A alarmMsg modify alarm message For String amp integer amp Float A LD1 For system time amp DIO Sequential Sfcl mode 1 to3 child blink child2 Right to Left child3 Left to Right Date of creation 20 Version number 1 Description Click on Setup first and then entering the IP address of your controller The port number should be 502 PC PLC link parameters x Tate Slave Nu
234. nber ox Communication port ETHERNET xl Cancel ETHERNET link see The Workbench uses the WINSOCK DLL library for TCP IP communications Ensure that this file is a installed on the hard As figure below to download wphmi_05 project to the WinPAC 5xx7 click on Debug If communication has been established click on stop to stop the old project running in the WP 5xx7 Then click on Download to download it to the controller WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 5 ISaGRAF WPHMI 05 Proj rams ofx If the project is not compiled click File Make Project Tools DebugwyQptions Help on Make application code button D BBO betl skr mkl Abs u Begin alarmMsg modify alarm message first then click on the Debug doa owe cote LD1 For system time amp DIO Sfcl mode 1to3 child1 blink child2 Right to Left child3 Left to Right Sequential J o SaGRAF WPHHMI 05 Debugger ox File Contol Tools Options Help bis bo Oo Ae Stop the running project ISaGRAF WPHMI_05 Debugger lim FY File Control Tools Options Help Sa o nnlo ae Noa joation runnin ds Download J 00 View Wincon series controll SA86M TIC code for Intel Application symbols Download WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 6 4 2 4 Step 4
235. ne another layer inside it as below Please enter K1 into the new created Layer R Microsoft FrontPage DC hon DOr Manual Winlons000 Web AMT Wemotexemple mami Ain O x BAD FREE AO GAD sO LE OR BAD TERR Re SD D F Ham AFR a7 CANADA fe ff Times New Rit DEW D B UJEZI C E ESE main him eeni FB Seep TH As ohn sbody ediv gt J Svat FT Eze mo BRT MAD G0 TAD ERW TUD sige Se HAH ve fe Tenet New Roman wre B U EBEBeRBwHW AA FR layere FPE TY Insert a layer into the Layer2 Now we have Layer3 inside the Layer2 DREJES Gs Ae c Gia pess aw ee a _ fi BA Bib wee OB kesx ST ME Ber Follow the same former steps to insert one another Layer to be in just below the Layer3 as below p Ix HO EEO HED WD EAO TAR ETTR AHO RED AH STARE FE B D F H KFR B Fld tag G Hr Times New Rall B Z U EBBS SSB main him 4 E Hiro mai ERO EE RRO AO Eo TAD SHS A HEH ERE eC HAH D F HAAMATA BRS pR fF Times New Roman aj i270 Bm zs uUlE boa Er gt main eee Hl 1 Click inside the Layer Iena Web El sania page 2 Inset the Layer4 into Layer2 a under the Layer3 GRH aH mis an a EFA 6 bps RAR O01 PP 538x191 Ma BET y WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 25 Inside the Layer4 we are
236. nstall the ISaGRAF Ver 3 on Windows Vista or Windows 7 Q A M S VC 6 0 Demo Program To Connect One WP 5xx7 by Modbus TCP Protocol Q How to implement the communication redundancy between the central control station and the local stations Q How to calculate the moving average value of a variable by c functions Aver_N or Aver_F Q How to install or remove the ISaGRAF development platform properly Q How To Solve The USB Freeze Problem Of The W 8x4x How To Update The W 8x4x s OS Image Q How to move the InduSoft picture faster in the W 8xx6 WP 5xx6 VP 25W6 XP 8xx6 CE6 Q A Web HMI Example for ISaGRAF Professional XPAC XP 8xx7 CE6 PRO by FrontPage Q XP 8xx7 CE6 And iDCS 8000 Or ET 7000 Or Modbus TCP Slave device Redundant System Q How to use the WP 8847 to connect ET 7018Z and ET 7044D and develop the HMI program by InduSoft VS2008 C and VB NET Q How to use The ISaGRAF PAC plus i 87113DW the master card of the Carlson Strain Gauage Inputs Q How To Connect The ICP DAS Power Meter PM 2133 and PM 2134 By The ISaGRAF WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 15 130 UJ 132 133 134 me UJ vI 136 137 138 139 140 mS D meS 142 m e ek UJ 144 146 149 150 151 152 me N me UI UJ 154 m e UI vI English ISaGRAF Ver 3 FAQ PAC Q How to automatically synchronize the time of WP 8x47 VP 23W7 over a network
237. nt_B12 color red 2K K 2K OK OK K K K K K K K K K KK K K K K K K K K K K K K K K K KaR K K K K K K K K K K K K setTimeout blink_obj blink _period WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 33 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 gt to check value of L21 amp then post val to controller For example 2K OK 2K OK KOK KOK OK OK OK OK OK OK OK OK OK KOK KOK KOK KOK KK KK KK KK KK KK KKK KKK KKK KKK KKK KK KKK KKK KK function Check_L21 var val form_L21 L21 value if val gt 12000 val lt 4000 alert T1 s value should be in the range of 4000 to 12000 return Check form_L21 post value to the controller ia nl va hk gt i See hl ll hn A a 9 em O fa a an a a a a Yl hh nf lh i ll aN a a a A a al ll ht il PETER EER e eee eee eee eT ee 8 Oe ee Nn oe ce eee And also inside the refresh_data function please insert below code To refresh displayed data gt this function is called by IE about every 1 5 sec later function refresh_data 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 B12_blink 0 else B12_blink 1 T1 innerText t
238. o for turn all lamp on and trun all lamp off mA DevYrrite Write the state of DOs Begin LogCtri Structured Text Version for ICP DAS 7183 3000 iView Wincon senes controllers onty ISaGRAF Variables Name Tve aime Description Used to run the first scan cycle Set initial value to False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 7 I O Connection a SaGRAF FAQ159_ 1 1 0 connection File Edit Tools Options Help B gt SBeamn TLIRE 2 us ref 168 cae Device IP 192 168 1 233 sme Device NET ID 0 sos Timeout 2000 coe Min _Yait_ Time 40 san Port_No 502 cae Which LAN 0 ano Reserved 0 soa Reserved 0 imo Reserved 0 mm mbus tcp Devicel The handler of Modbus TCP connection B To_IP ru Connect_OK1 C The state of Modbus TCP connection 11 3 TA 12 f a TA Version for ICP DAS r1 8a e000 View WVincon series controllers only eleleleleleEle Mbus_tcp Parameter Description Enter the tGW 725 IP address Device_IP Ex 192 168 1 233 Assign 0 if want to send Modbus TCP commands of different NET ID to the Device NET ID 7 same Modbus TCP Slave device Unit ms 0 001 second range 500 15 000 o Unit ms 0 001 second the waiting time before send the next Modbus TCP Min_Wait_Time 7 E commend Range 10 60 000 Enter 502 if use Port1 of the tGW 725 Port No Enter 503 if use Port2 1 or 2 the LAN number used Whi
239. o72a but setup COM1 as Modbus RTU slave port to connect one RS 232 Touch HMI FAQ 093 New WP 5xx7 redundant system with I 8KE8 MTCP I O Without Touch HMI New WP 5xx7 redundant system without I 7000 or I 87K I O or I 8KE8 MTCP I O Without Touch HMI get average value of one REAL value FAQ 099 get average value of one Integer value FAQ 099 Connect the I 87088W I 7088 addr 1 baud 115200 via I 87088W l 7088 WP 5xx7 s COM2 RS485 SMS WP 5xx7 COM3 GTM 201 RS232 GTM 201 RS232 sending Receiving UDP bytes by using eth_udp and eth_send and eth_recv sending Receiving TCP bytes by using eth_tcp and eth_send and eth_recv WP 5xx7 COM2 Mbus Master M 7011 ID 1 baud 9600 to get AI DI FAQ 118 WinPAC Web HMI example 1 Display controller s date amp time wphmi_01 No I O board wphmi_02 WinPAC Web HMI example 2 DI amp DO demo slot 0 XW107 slot 0 XW107 WinPAC Web HMI example 3 R W Long float amp Timer value No I O board l WinPAC Web HMI example 4 R W controller s String No I O board l WinPAC Web HMI example 5 Multi Page demo slot 0 slot 0 XW107 j XW107 Menu is on the Left l WinPAC Web HMI example 5A Multi Page demo slot0 slot 0 XW107 XW107 Menu is on the Top WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 8 wpdmo78 M 7011 Z Oo Oo Oo Oo Oo rome Oo Oo Oo Oo Oo Oo Oo gt O Q Q Q ala O O Q O O Q O 3 3 3 3 3 3 3 3 3 3 3
240. of the variable to read the result of the FTP function 0 no upload action 1 FTP is uploading file 21 upload succeed 101 upload fail that date file doesn t exist 102 fail to upload to the FTP Server 103 the Soft GRAF doesn t enable FTP 28 Progress Address assign the Network Address of the variable to read the FTP upload status It can get the progress status in the manual FTP function WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 60 3 4 Howto Set Up the Access Permission of HMI The Soft GRAF provides an HMI password security The HMI password security is accomplished by the menu of Project gt password and two HMI objects g_ Login and g_ logout refer to the demo LogicDemo The Setting Steps IP Setting 1 Open a project of the Sort GRAF Studio and click the Ee Project Setting Project gt Password PYOJ Download 2 Set the password and level FEasWorddDlr Level a Password b m 23456 123456 Level 3 NULL Level 4 NULL a Level S Level 5 NULL The security levels can be 1 10 The larger Level 6 NULL number has the higher authority Click the Level F NULL button P to see the password settings for Level 8 NULL all levels NULL means that level does not set Level 9 NULL password b Password the password of the selected level Fass Worn Diz 3 Create a new password First select a Level If this level has no password yet
241. oftware WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 7 2 1 5 Important Notice for Windows 7 64 bit Users If your operating system is Windows 7 64 bit Professional Enterprise or Ultimate the ISaGRAF must be installed under the XP Mode Please do the following steps to install Virtual PC and XP Mode Installing the Virtual PC and XP Mode 1 Download Windows Virtual PC and Windows XP Mode installers from the Windows Virtual PC Web site http go microsoft com fwlink LinkID 160479 Double click on WindowsXPMode_nn NN exe where nn NN is the locale e g en US and follow the instructions in the wizard to install Windows XP Mode Double click on Windows6 1 KB958559 x64 msu to install Windows Virtual PC Reboot your computer After rebooting click on Star gt All Programs gt Windows Virtual PC and then click Windows XP Mode Follow the instructions in the wizard to complete Windows XP Mode Setup and Configuration Record the password that is provided during the Setup because it is required to log on to your virtual machine Now go back to Section 2 1 to install the ISaGRAF 2 1 6 Important Setting for Using Variable Arrays Important setting for using variable arrays Please add two lines on the top of the c isawin exe isa ini file to enable the usage of variable arrays DEBUG Arrays 1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 8 2 2 Step 2 Installing the ICP DAS
242. og I O demo with virtual I O board I 87024W and I 8017HW wp_CSharp03 Read Write ISaGRAF internal integers timers and real variables No I O The related ISaGRAF demo project name are wp_vb01 pia wp_vb02 pia and wp_vb03 pia in the same directory 11 1 Create a New Project 1 Inthe first users need to open Microsoft Visual Studio NET 2008 software And then in the menu of File please run the New Project amp Start Page Microsoft Visual Studio Edit View Tools Test Window Help New Project New Web Site N ShifttAlttN Pagel New File Open Project Ctrl o M icrosoft lt Visual Studia 2002 2 Check the Smart Device on the left then selecting the NET frame work 2 0 and Smart Device Project Then entering a proper project name and the last click on OK WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 1 3 Th 2 pia af TCADocuments and Setings Ad ministrator My Studio 2008 Projects a 4 i Ee ne LEE omer Select the Device Application and Windows CE and NET Compact Framework Version 2 0 then click on OK Add New Smart Device Preyect project 2 x Windows CE O 00000 SY WET Compact Framework Version 2 0 ka ia aaa al a Class Library Console Control Library Empty Froject Application WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 2 11 2 Add Project Reference for an Application Th
243. og files to remote FTP Server on PC Q How to control the IR module IR 210 IR 712 with the ISaGRAF PACs Q How to use the ISaGRAF PAC to communicate with a far away Modbus TCP Server or a FTP Server by the 3G or 2G wireless GPRS Q How to use the FRnet Al AO module with the ISaGRAF PAC Q How to save the value of ISaGRAF variables to the Micro _SD memory in the WP 5xx7 WP 8xx7 and VP 25W7 PAC WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 16 Chapter 11 C net 2008 Program Running in WP 5xx7 Access to ISaGRAF Variables Important Notice Please store your application programs and data files in the Micro_SD Don t store them in the System_disk That is because the System_Disk is using Nor Flash memory Its size is small and major purpose is for storing OS some basic utilities and DLL The Nor Flash memory is not good for frequently updating files If update files frequently in the System_Disk for example update a file every 1 to 5 seconds then it will be about ten thousand more updates in one day the data or files in the System_disk may crush or lost for some days or months later This chapter lists the procedure for creating the first demo program by Visual Studio NET 2008 development tool There is some sample programs in the WinPAC 5xx7 CD ROM WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 CSharp net_2008_demo wp_CSharp01 Digital I O demo with one XW107 in slot 0 of the WP 5xx7 wp_CSharp02 Anal
244. om gt FAQ gt Software gt ISaGRAF gt 104 Sometimes when using the PC ISaGRAF debugger to connect to the ISaGRAF controller will pop up a window like Can not link or Can not download or Can not find BMP or so on To solve this problem please do below steps 1 First close all ISaGRAF windows Then press and hold on Ctrl plus Alt key and then press Delete key to open the Task Manager 2 Stop the process which is with empty memory Then run PC ISaGRAF again to connect to the controller O Windows TIFEAS Close All ISaGRAF windows and then press ERO PEO HAW KAW ERRA BHAE ie e IERA WITpryse exe NETWORK SER conime exe Administrator USNSVC EXE SYSTEM WOWEXEC EXE Adminstrator ntyvdim exe Admunuistrator Ctrl Alt Del to open the task manager Then stop the process which is with empty memory and then run ISaGRAF to connect controller again 4 At wuauclt exe Administrator 00 752 K WSWW1 EXe Administrator 00 29 416 K svchost exe SYSTEM no 1 688 K taskmer exe Administrator 00 5 120 K explorer exe Administrator 00 2 956 K MINMSET EXE Administrator 00 26 956 K mspaimt exe Admumistrator 00 12 256 K smeartMON exe Administrator 00 400 K wdfmer exe LOCAL SERVICE no 216K naPrd M er exe SYSTEM 00 1 024 K seTskMor exe SYSTEM no 400 K Meshield exe SYSTEM 00 16 912 K FrameworkService SYSTEM 00 6 104 K snard svi exe LOC ATL SER ICE nn 2
245. ommunications DO NOT match that of the WP 5xx7 controller system You may have to either change the serial port communication settings for the development PC which may require changing a BIOS setting or change the Serial Link Parameters in the ISaGRAF program WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 20 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 ISaGRAF EXAMPLE1 Debugger ox Fie Contol Toole Optons Help bie bh ob Ae ao h Ta mie top application Version for ICP DAS H 188000 iew Wincon series controle Starting the Downloading Process Click on the Download icon from the ISaGRAF Debugger window Then select ISA86M TIC Code for Intel and then click on Download button as shown below ISaGRAF EXAMPLE1 Debugger File Control Tools Optons Help ni gt no o ae Download palikit 4 l application stopped n z Download x ISA66M TIC code for Intel If ISA86M TIC code fort Intel is not found here that means the compiler option ISA86M TIC code for Intel is Application symbols not checked Please refer to section 5 2 to check it amp re compile the project again Download Cancel a The example project
246. on system WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 17 Appendix E Using Expansion RS 232 485 422 Reserved WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 18 Appendix F Slow Down ISaGRAF Driver s Speed You may wonder why The faster speed is not good The reason to slow down the speed of ISaGRAF driver is when you running some other HMI program For example InduSoft or VB net program with ISaGRAF at the same time Because the CPU is the only one CPU all programs running in WinPAC must share execution time of the same CPU If you feel the HMI program behavior is not so smooth or slow you may use ISaGRAF function PLC_Mode to slow down the speed of the ISaGRAF driver PLC_Mode plc_mode Description MODE E Function Change the ISaGRAF driver speed Argument MODE_ integer Can be 0 1 2 or 3 0 Fast Mode Default setting the minimum PLC scan time is about 2 3 ms 1 Slow Mode the minimum PLC scan time is about 6 7 ms 2 Slower Mode the minimum PLC scan time is about 9 11 ms 3 or other value Slowest Mode the min PLC scan time is about 19 21 ms Return Q_ boolean always return True Note 1 The system s default setting is Fast Mode 2 User may call PLC_mode in the first PLC scan to change the PLC speed 3 The reason to slow down the PLC speed is to improve the speed performance of other HMI program running with ISaGRAF driver at the same time for e
247. on window 2 boards in the ISaGRAF I O connection window Q Want to email my ISaGRAF program to someone How can archive one ISaGRAF project to a single file Q How can I implement motion control in 8417 8817 8437 8837 gt Q My HMI software wants to access to float values and long word values inside the 8417 8817 8437 8837 7188EG amp 7188XG How Q PWM Can generate D O square pulse up to 500Hz with I 8417 8817 8437 8837 7188EG amp 7188XG controllers How Q Can use 8K Parallel D I board to get counter Input up to 500Hz How Q How to output something at a time interval For ex Turn ON at 09 00 18 00 on m e UI Monday to Saturday while 13 00 20 00 on Sunday Q How to determine a D I if it has bouncing problem Q How to trigger something at some seconds later when one event happens Q Does the ISaGRAF 256 software have I O Tag limitation Why not using ISaGRAF L Large version m e me Q Why my l 8417 8817 8437 8837 or l 7188EG XG stop running Q How to search a variable name in an ISaGRAF project Q When closing my ISaGRAF window it holds for long time Why Q How to use Proface HMI Touch panel to link to 7188EG XG I 8xx7 and WinCon 8x37 Q How to reduce ISaGRAF code size How to directly Read Write ISaGRAF variables by using Network address WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 11 English ISaGRAF Ver 3 FAQ Q How to scale Analog Inp
248. or OUTOL OUTO T1 5000 ms OFF fren Enter On the left The width amp scrolling can be modified ey Welcome Microsoft Intemet Explorer _ O x RAD PE WROD eae ICAHD HH StH 0AA Que Ganet Gee 32 40 8495 6 iE Eii Uteteieke OLT BSS fal el Logout Width K2 Kl On the top E i f wipe mS The width amp scrolling can be modified OUTOL OUTO2 T1 3000 ms O HOFF feex Enter Hello Welcome to the Web HMI Sample O SREASRS j WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 4 Below is the basic code for the menu htm lt top _or_left 1 gt scrolling O gt width 60 gt resize 1 gt The first row is not a comment it defines the Page Menu behavior top_or_left 1 Top O Left scrolling 1 Yes 0 No width width of the Menu Frame 0 999 unit is pixel lt html gt resize 1 Yes 0 No lt head gt lt title gt Title1 lt title gt lt meta http equiv Content Type content text html charset UTF 8 gt lt SCRIPT LANGUAGE JavaScript src msg wincon js gt lt SCRIPT gt lt SCRIPT LANGUAGE JavaScript gt function start1 This row is necessary for Please apply your charset here menu htm main htm amp For example A_11 other multi pages English UTF 8 Simplified Chinese gb2312 function refresh_data Traditional Chinese big5 or other language if run_at_pc 1 return lt SCR
249. ort user can easily edit its HMI screen by Soft GRAF Studio and design the control logic by ISaGRAF software There are three types of HMI Objects in the Soft GRAF Studio Value Button Graph User can create the HMI object directly by mouse dragging and dropping the Object into the editing screen and set the properties by mouse keyboard to display the different effect Running HMI and Control Logic in the Same PAC ISaGRAF Soft GRAF Studio i HMI l 5 i E __ TPM 4100 e XP 8xx7 CE6 WP 5147 WP 8xx7 VP 2xW7 I O Control 3 1 Soft GRAF Studio Version and Installation Install the Soft GRAF Studio The Soft GRAF Studio is version 1 07A now Please get the document faq146 and demo programs from the following folder of CD ROM in your PAC package CD ROM napdos soft graf WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 1 Or download it from the following website www icpdas com gt FAQ gt Software gt ISaGRAF gt 146 http www icodas com fag isagraf htm gt 146 Other related information ISaGRAF User s Manual htto www icodas com products PAC i 8000 getting started manual htm Soft GRAF Studio the software to edit the Soft GRAF HMI can run in the PC with the WinXP WinVista Win7 or compatible Operating System and the Net Framework V 3 5 or later version if your PC doesn t install it or installs the old version please download it at the Microsoft website http www mi
250. ose 16 Search Text the text Search in your local language Ex for English Search 17 Keyword Text the text Keyword in your local language Ex for English Keyword 18 Clear Text the text Clear in your local language Ex for English Clear 19 Encoding Set the text encoding for the Alarm message in the ISaGRAF program UTF 8 English big5 Traditional Chinese gb2312 Simplified Chinese other enter your own encoding of other languages 20 Date format set the date format of the alarm record 21 Alarm Beep set the PAC beep times when alarm event is triggered Only the VP 25W7 23W7 support this function 22 Stop Beep Text the text prompted to stop the beep Ex Stop Beep 23 Export Warning Message the warning message on the window when export the record Ex Are you sure to export the alarm history to the USB pen driver Overwrite the existing files X For how the ISaGRAF program triggers an Alarm and its demo refer to Ch 3 7 4 X Allow max 3000 alarm messages each day and does not record the overflowed messages lt lt If want to delete g Alarm records for testing purpose users must stop the ISaGRAF driver first delete below g Alarm record file and then reboot the PAC WP 5147 WP 8xx7 VP 2xW7 The g Alarm record file is in the directory Micro_SD Soft GRAF g_ Alarm Ex 2012 07 g_alarm_2012 07 _17 txt The g Alarm record file is in the directory Email_ ETH g_ Alarm Ex g
251. owing values only Unit second 1 2 3 4 5 6 10 12 15 20 30 60 180 300 900 8 X span time the length of time displayed on x axis of the trend Unit minute The limitation Sample Time 60 lt X span time lt Sample Time 1000 Ex If sample Time 1 second the min X span time can be 60 seconds 1 minute the max X span time can be 1000 seconds about 16 minutes If the Sample time is 1 second then the x Span time can be set between 60 and 1000 seconds 9 Data Type set the value type of the ISaGRAF variable for the curve long 32 bit sign intger word 16 bit signed integer or real 32 bit float 10 Enable historical trend enable to record the trend history and the retain time The limitation of the retain time Ex sample time 1 sec it can retain max 3 months Ex sample time 2 secs it can retain max 6 months Ex sample time 3 secs it can retain max 9 months Ex sample time gt 4 secs it can retain max 12 months Enabling the historical function of g Trend will consume a lot of Micro SD memory capacity or the Compact Flash memory capacity of XP 8xx7 CE6 Please set the retain time smaller to reduce the memory consumption if it is not really necessary The memory consumption is approximately estimated as belows Set Sample Time 1 second if enable 1 curve it consume about 0 48 MB for retaining 1 day about 15 MB for 1 month and about max 45 MB for 3
252. p www icodas com products PAC common file application notes htm 1 1 Soft GRAF HMI Application Colorful HMI Soft GRAF Studio gt Simplify HMI screen editing Mouse drag and drop gt HMI without writing programming language Support various and colorful HMI objects gt Page Max 200 password security gt Numeric Input input security display gt Text Dynamic static text display gt Picture Animated static picture display gt Moving Trace 1 axis or 2 axis gt Bar meter gt Button displayed as picture gt Button displayed as text gt Built in various objects gt Real time Trend gt Historical Trend gt Gauge Meter gt Alarm Lists Multi language English Traditional Chinese Simplify Chinese Russian etc HMI behave smoothly More at Ch 3 and FAQ www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 146 Running HMI and Control Logic in the Same PAC ISaGRAF Soft GRAF Studio SoftLogic HMI nie MAR se ee fF Ff oR ie WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 1 1 2 eLogger HMI Application ICP DAS eLogger is an easy and useful HMI development tool which helps user to create user friendly pictures and control items Recommend to use Soft GRAF HMI the performance is better More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 11 ee ois eee oe wT Kaa LABE Oa Ae kya 1 Ef Page 1 Simulate witho
253. p gt amp nbsp lt div gt Style cursor hand name B2 onclick ON_OFF form_B2 form_B2 B2 boolean_val 2 Please insert lt form name form_B2 method post action main dll gt lt input name BEGIN type hidden gt lt input name B2 type hidden value 0 gt lt input name END type hidden gt lt form gt WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 31 T1 Area Layer14 to Layer17 lt 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 Please modify T1 xxx ms lt div gt as T1 lt b id T1 gt xxx ms lt b gt lt div gt 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 name form_L21 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 lt form gt amp nbsp lt div gt p Please insert below code inside Layer16 lt form name form_L21 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 lt form gt
254. plicit On Each variable must be declared yell A Imports Quicker Eagrorml vb y PF Open N Double click esublic Class Forml Open With Dim is_try_ok s yte sas Catch state 11 T 1 11 l Uk Us error View Designer Then you can design all required objects and actions inside your VB Forms WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 7 5 7 3 Compiling an Application Program When you have finished writing a program you can build an application by the following steps 1 Remember to save at any time for safety B project Microsoft Visual Studio File Edit View Project Build Debug D a a a aie 2 Then compile Build the project The result is listed in the Error List windows at the bottom i i BindingSource eration a Build succeeded 3 You can find the execution file in lt Your VB net Project folder gt bin Release lt project_name gt exe Please copy this execution file to the WinPAC 5xx7 s Micro_SD ISaGRAF path to run it Note User may copy the VB net execution file to other path to run it but there should contain at least three DLL files with it or it cannot run correctly For instance the project1 exe can run in the Micro_SD path if there is three plus one file in it The project1 exe QuickerNet dll Quicker dll and Mscorlib dll The three dll files can be copied from the WinPAC 5xx7 s Micro_SD IS
255. r E Each row should have 10 REAL values except the last row Last num1 mecer imera How many data in the last row p This value is automatically calculated by SIZE1 RE LOAD Set as True to read File once init as TRUE Data_Ok1 TRUE means File Ok If program want to save data it will set this value to Flag to save Bool Internal TRUE Len is 64 nit as Micro_SD data56 tx F VAL1 0 16 REAL faker pape array Dim should be init as the same value SIZE1 Old F VALI Old value of cava 7 REAL Internal Variable array Dim should be init as the same value a as SIZE1 The User Data variable Here we have 17 variables in Data1 Data5 the demo program and REAL Internal User can declare them to different variable name If Data06 Data17 name is modified the G_data and the S_data program should be modified also WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 12 5 ST program ST1 Ft M y if RE_LOAD then if RE_LOAD is TRUE get retained data from file RE_LOAD FALSE Set RE_LOAD as FALSE caculate number of rows and data number of the last row num_row1 SIZE1 10 last_num1 SIZE1 10 num_rowl1 if last_num1 lt gt 0O then num_row1 num_row1 1 _ if last_row has data num_row1 must plus 1 else last_num1 10 end_if Get retained value from file when controller is powered up TMP read_F1 if TMP
256. r 1 02 Feb 2013 by ICP DAS 2 2 2 1 1 The Hardware Protection Device Dongle amp USB Key Pro 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 ISaGRAF 32 E amp ISaGRAF 32 C DO NOT need dongle or USB Key Pro A SaGRAF Project Management File Edit Project Tools Options Midi Beltet A ae User s evide fi blinkseq same impleme Language reference m bottlef Flow Chart 5 Library demo demo with Guy About iL SaGRAF Workbench Version 3 55 Copyright 71990 2007 ICS Triples SaGRaF Ine Configuration 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 IO variables 32 the driver may not be installed well Please do the following steps Dongle Protection Please execute the ISaGRAF CD_ROM and then reset the PC again SaGRAF 80 Sentinel5382 setup exe Other ISaGRAF version Sentinel setup exe USB Key Pro Protection 1 To make your PC recognize the ISaGRAF USB protection key please un plug the USB protection key from your USB port first then run Sentinel SSD5411 32bit exe in the ISaGRAF 3 55 CD ROM or
257. r Manual Ver 1 02 Feb 2013 by ICP DAS Ap 20 How to Setup Please connect Rtu_slav in the ISaGRAF IO connection window Re compile the project and download to the WP 5xx7 via Ethernet or first Modbus RTU port if it is enabled IS8aGRAF Ti Programs File Make sh Tools Debug Optons Help EL au ISaGRAF T1 140 connechon File Edit Toole Options Help n mbus_asc Modbus ASCII master Ok mmicon Connect MMICON by Com or Cor me Ea S m Tt F A i modem_ps Set Password of Com Modem_ Cancel us Atu Slave Port 5 us Baud Porte 19200 immo reserved 0 cot Atu_ Slave Ports 0 ot Baud Ports 19200 mun reserved 0 mj Rtu_Slave_Portd 0 ous Baud Port4 19200 No neff muj reserved 0 cot Atul Slave Ports 0 p sw Baud Portd 19200 RTU_Slave_Port2 5 defines the COM Port TT number to enable Value can be O 1 to 8 Value mmo reserved D of O means not enable it Ud d 0 mau re Baud rate setting can be 600 1200 2400 4800 9600 19200 38400 57600 115200 udp ip Set up a UDPVIP socket vip Permissive IP via Modbus TCP IP H1OF BDI amp FDO for the 7188G EG Library 116 40 amp BDO for the 18eeG EG 119 7DI amp FDO for the 1 88 iG EG EE s203 240 GOO 201 for 71884G EG j HU 1DA 140 6D0 401 for r1884G EG Equipments a04 104 340 400 401 for r1884G EG i 0S 104 74D 200 201 for r188 G EG Am rtu slav Es
258. r and ISaGRAF application Q How to use I 7017Z module in ISaGRAF PAC 091 Q How to use ISaGRAF PAC plus I 87089 the VW sensor Master card to measure the Vibration Wire frequency to calculate the stress of constructions 092 JQ Setting UPAC 7186EG s and l 7188EG XG s COM3 or COM2 as Modbus RTU Slave port 093 JQ New Hot Swap and Redundant solution for the WinCon 8347 8747 094 Q How to update the WinCon 8347 8747 s OS version 4 03 Q Release two C Function Blocks to read max 24 Words or 384 Bits from Modbus RTU ASCII devices 8747 by an USB pen drive without Mouse and VGA 098 Q Application Link Serial COM Port to the Modbus RTU device by COM functions 100 0 0 UJ N 84 0 0 Q How to get an average value of a Real or Integer variable which is samlped every fixed interval or sampled in every PLC scan Q How to use l 8084W 4 8 Ch Counter or 8 Ch frequency Q How to read max 120 Words or max 60 Long Integers or max 60 Real value from 101 Modbus RTU ASCII devices by using MBUS_XR or MBUS_ XR1 function block for WP 5xx7 8xx6 and VP 25W7 23W7 25W6 23W6 and Wincon 8xx7 8xx6 only 102 Q Why PC can not connect the WP 5xx7 or VP 25W7 23W7 s FTP Server 103 Q Using RS 232 Or USB Touch Monitor With WinPAC WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 10 14 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
259. r font setting 3 Fore color the fore color of the label 4 Back color the background color of the label 5 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False 6 Size set the size of the label W for Width H for height 7 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 8 Text Align left center and right align for the text 9 Title set the text on the label Double click the Textbox to enter the long text WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 19 3 3 2 g B Val Display a Text to Show a Boolean Value Description Value True Value False Displayed figure orsina Stop aid a el 6 2 Font size 3 ae ee L False True i Paste 8 4 a 5 Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 2 Font size set the font style and size of the text useless in other font setting 3 Using bool address to hide Use a Boolean Address to switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide
260. remot L L L L L _ The 4 ch boolean inputs indicate the related port is well enabled or not True Enable Ok False disabled WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 21 Appendix H Compiling Error Result in Different ISaGRAF Version In the recent years since 2003 all the IsSaGRAF example programs provided in the ICP DAS CD ROM amp Web site are written in ISaGRAF workbench version of 3 46 If your ISaGRAF workbench is version of 3 51 or newer version it may generate error when you re compile these example programs To erase this kind of error in different ISaGRAF workbench version please run Make Touch once And then re compile this example project The Make Touch command will reset all files that have been successfully compiled to become Not compiled yet saGRAF DEMO 04 Programs File Make Project Tools Debug Optons Help Hake application Mie Oe Zee O x Regi evity Application nm z Options Compiler options Resources Then the next Make Make application command will re compile all of them _ TSaGRAF DEMO 04 Programs 2 ol x File Make Project Tools Debug Options Help Make application Y oie om H a Beqir Verity Touch Application mn time Options Compiler options Resources WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 22
261. ress 7 UserShare UserGetReg_float Convert ToUInt16 7 out float_val Get long value of the variable of Modbus Network Address 9 UserShare UserGetReg_long Convert ToUInt16 9 out long val Get short value of the variable of Modbus Network Address 11 UserShare UserGetReg_short Convert ToUInt16 11 out short_val Demo Program WinPAC 5xx7 CD ROM 1 napdos isagraf wp 5xx7 CSharp net_2008_demo wp_CSharp02 for R W analog I O 2 napdos isagraf wp 5xx7 CSharp net_2008 demo wp_CSharp03 for R W internal Boolean long integer Timer and Real floating point values Note The long integer amp timer amp real variable s Network Address No must occupy 2 No in the ISaGRAF project Refer to section 4 2 of User s Manual of IsSaGRAF Embedded Controllers or in the CD ROM napdos isagraf wp 5xx7 english_manu User_Manual_ _8xx7 pdf WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 10 Chapter 12 To Save the Value of ISaGRAF Variables to the Micro_SD Memory User can download this paper and its example programs wodmo56 pia wodmo56a pia pdmo56b pia wpdmoS56c pia wodmo56d pia wodmo56e pia from the following web http www icodas com fag isagraf htm gt FAQ 155 wpdmo56 Save 17 REAL variables in Micro_SD data56 txt max 255 REALs wpdmo56a Save 17 REAL and 2 BOOL variables in Micro_SD data56 txt max 255 wpdmo56b Save 25 integer variables in Micro_SD
262. river window of the PAC s VGA screen to stop the ISaGRAF driver first and then unzip the downloaded file and copy all files and the sub directory in the related version number directory into the following path in your PAC via FTP or USB disk ISaGRAF PACs Driver Directory XP 8xx7 CE6 8xx7 Atom CE6 System_Disk ISaGRAF WP 8xx7 VP 25W7 23W7 WP 5147 Micro_SD ISaGRAF For instance to update the ISaGRAF driver of WP 5xx7 to Version 1 01 please click on the End Driver button in PAC s ISaGRAF driver window then unzip the downloaded file wp 5xx7 1 01 zip and copy all files and a sub directory sofgrafy in the 1 01 directory into the Micro_SD ISaGRAF path of the WP 5xx7 Then reboot the WP 5xx7 Now the PAC driver has updated Refer to Appendix B WinPAG oee7 5ex6 SaGR AF Driver Setting Web About Configuration Slave Number fi Modbus ATU Slawe Port hone Baud Rate jozo m81 Project Current Application demons 15 411 1660 15412 1020 Elapsed Time lo 0 00 27 aol Set PAC s Taskbar as Always on top at design time When a user has downloaded an ISaGRAF program with Soft GRAF HMI enabled the HMI screen will occupy the full screen Then it is not easy to do other Windows CE operations for example modify IP address copy files view files Recommend to set the Taskbar as Always on top at design time then the designer can operate some other Windows CE operation normall
263. roject WinPAG 5e7 5 x0 SaGR AF Driver td isa YY PIHE Configuration Slave Number fi Modbus RTU Slave Port hone Baud Rate 19200 N 3 1 Project Current Application fts 15411 976 I5412 924 Elapsed Time 0 0 56 12 Delete WinPAC 5xx7 s ISaGRAF program if some software damage happens causing the WinCE software hanging 4 Please turn the rotary switch to postion 1 Safe mode on the front panel of the WinPAC 5xx7 Then reset the WinPAC 5xx7 once 5 Then the WinPAC 5xx7 will boot up as safe mode There will be one pop up window asking reboot right now please answer No Then get into the My Device on the WinCE desktop Please goto the Micro_SD ISaGRAF directory Then delete the ISA11 The ISA11 is the ISaGRAF current running application If you find no ISA11 in the Micro_SD ISaGRAF directory please goto Explorer gt View gt Options to modify the setting 6 Turn the rotary switch to position O normal and then reboot WinPAC 5xx7 Then when ISaGRAF is connected it will display No Application WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 7 A 8 Linking l 7000 and I 87K Modules for Remote I O The WP 5xx7 controller system can use one of its COM2 RS 485 to link to ICP DAS s I 7000 and I 87K series of remote I O modules This configuration can be very useful in applications that require distributed remote I O throughout the sys
264. rsion 4 0 Windows Vista or Windows 7 refer to FAQ 117 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 1 Steps to Installing the ISaGRAF Workbench AN If your PC OS is Windows Vista or Windows 7 32 bit refer to Section 2 1 4 If your PC OS is Windows 7 64 bit please refer to Section 2 1 5 1 Insert the ISaGRAF Workbench CD into your CD ROM drive and the install bat will auto run 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 Ifthe install bat file is not found on your ISaGRAF CD then double click on the ISaGRAF exe file to start the installation process 2 When running the install bat it will show the screen as below Please select the language version Recommend to use the English version as we use in this manual ISaGRAF 3 55 x Language 30 Ai Inatall Select the language SaGRaAF Workbench Recommend to use English because 16 aGRA amp F Documentation this manual uses English version Acrobat Reader 4 0 c 1990 2007 ICS Triples IS aGAAF ISaGRAF ts a trademark of ICS TRIPLES lSaGRAk 3 After installing please click on the Windows Start button gt All Programs gt ISaGRAF 3 x gt Projects to start the ISaGRAF software 34 Projects he WinPAC 5xx7 User Manual Ve
265. rt window that will reset it to False If set Address 0 means to disable the Boolean variable 2 Size set the size of the object W for Width H for height 3 Location the X Y starting position of the HMI object Refer to the Ch3 2 for its definition of the X axis and Y axis 4 Fore Color set the color of the text and the scale 5 Back Color set the color of the background 6 Title the text displayed on the title of the Alarm window 7 Confirmation when click ack button click to pop up a confiremation box or not 8 Ack Text the text ACK in your local language Ex for English ACK 9 Alert the text Alert in your local language Ex for English Alert 10 Export Text the text Export in your local language Ex for English Export 11 Alarm amount Text the text Alarm amount in your local language Ex for English Alarm amount 12 NoAck Text the text No Ack in your local language Ex for English No Ack 13 Ack More Text the text Ack more in your local language Ex for English Ack more 14 Alarm live set the Alarm record retention period period 1 12 months WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 50 naaa Setting 1 Seting AySetting 3 Setting 4 Setting 5 as aa a bear Vane ome as Annn boote ta i I 9 19 Encoding 20 Date format 31122012 ka 15 Close Text the text Close in your local language Ex for English Cl
266. s No 11 to a Real type variable or Timer or integer will have 32 bit value larger than 32767 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 8 6 4 2 1 Displaying Dynamic Boolean Data Demo example whmi_02 and whmi_05 Section 4 1 The action of the image object B1 is defined here function refresh_data Bi src img circle_blue boolean_val 1 jpg if boolean_val 1 1 it display image B1 as img circle_blue1 jpg if boolean_val 1 0 it display image B1 as img circle_blueO jpg lt body onLoad init gt The layout or location of the image object B1 is defined here by the lt div and lt div gt tags lt div style position absolute width 214px height 53px z index 2 left 102px top 79px gt lt img name B1 src img circle_blueO jpg gt lt div gt The declaration of image B1 is defined here by the img tag amp lt body gt name B1 src src defines the initial value of B1 6 4 2 2 Displaying Dynamic Float amp Word amp Timer Data Demo example wphmi_01 wohmi_03 and wphmi_05 section 4 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 F
267. s include 2 folders and 3 DLL files and 4 htm files as below img default image files jog 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 must not modify it The index htm re directs to the login htm file in 1 to 2 seconds when someone visits the WinPAC 5xx7 via the Internet Explorer yy tl User may modify the login htm menu htm and main htm to fit the requirement WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 1 6 2 Login htm Login htm is the first welcome page when a user visiting in It can be modified Below is the basic code for the login htm lt html gt This line is only for the Login htm please do not lt head gt 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
268. switch hiding object or not Boolean value True hide object False display object Ex There is one ISaGRAF variable Hide with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False 11 Language encoding UTF 8 English big5 Traditional Chinese gb2312 Simplified Chinese Other user inputs other language encoding 12 Level Set the permission level used when the HMI has the permission setting refer to the Section 3 4 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 35 3 3 12 g B_Led Can Display a LED Picture to Show a Boolean Value 1 Net Work Address Mesage when fale Off 5 E when Time On 6 a 7 a jH EE Tan e a Hee ra jE o Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 2 Input T F Color The color of True displays the fore color of the value when ISaGRAF read it True The color of False displays the fore color of the value when ISaGRAF read it False 3 Size set the size of the object W for Width H for height 4 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 5 Message when False set the text showed on the object when read a False value 6 Message when True set the text showed on the object when read a True value 7 shape set the Led
269. t FAQ 159 Download the ISaGRAF Drivers http www icodas com products PAC i 8000 isagraf link hAtm Download the ISaGRAF Product Data Sheet http www icpdas com products PAC i 8000 data 20sheet data 20sheet htm WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 1 13 2 tGW 700 Series Modules 13 2 1 Introduction of tGW 700 The tGW 700 is a Modbus TCP to Modbus RTU or Modbus ASCIl gateway that enables a Modbus TCP host i e the WP 5147 to communicate with serial Modbus RTU ASCII devices through an Ethernet network and eliminates the cable length limitation of legacy serial communication devices 13 2 2 Installation amp Configuration Connecting the power and Host PC 1 Make sure Init Run switch is on Run position 2 Connect both the tGW 700 and PC to the same sub network or the same Ethernet Switch and power on the tGW 700 5 k Hub Switch NS 205 fF 412 48Voc Hi tt E fel Installing the eSearch exe to your PC 1 Download the eSearch Utility eseach exe at http ftp icodas com pub cd tinymodules napdos software esearch 2 Run esearch exe WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 2 Setting the network 1 Click the Search Servers button to search for your tGW 700 2 Double click the name of your tGW 700 to open the configuration window i a a xa eSearch Utility v1 0 6 Oct 15 2012 Eto x File Server Tools Name _Alias IP Address S
270. t t Fe FE FR 32 CPU FA 19 MEM FA 177888E 12785264K P One Quick Way to Avoid the hold Problem on Windows 2000 You may create a shortcut for the ISaGRAF project manager And then check on run in separate memory space option in the shortcut property Projects Properties l EIES General Shortcut Security re Projects Ed T arget type Application Target location EXE Target UC ISAVINSESESMYSPMIEDT EXE I Run in separate memory space Start in CMSAWIN Sexe Shortcut key None Run Normal windovy Comment Find T arget Change Icon Run as different user WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 2 5 2 1 4 Important Notice for Windows Vista or Windows 7 32 bit Users Before installing the ISaGRAF if your operating system is Windows Vista or Windows 7 32 bit please change the User Account Control settings to avoid some of the setup restrictions How to disable UAC User Account Control The UAC User Account Control setting requires administrator level permission 1 From the Start menu choose Control Panel gt User Accounts and Family Safety gt User Accounts then click Change User Account Control settings or Turn User Account Control on or off e H User Accounts and Family Safety gt User Accounts v s E Search Control Panel Control Pane Home Make changes to your user account
271. t type button value OFF style cursor hand onClick OFF_ form_B2 gt form_B2 B2 gt lt div gt 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 6 4 3 2 Post Word Long Float Timer and 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 Demo example form_obj submit 3 wphmi_03 wphmi_04 return true wphmi_05 wohmi_06 else and wphmi_07 return false WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 16 function refresh_data L15 innerText get_long_val 15 F17 innerText float_val 17 Display dynamic value here If data is word please use word _vall If data is timer please use timer_vall If data is string please use string vall lt body onLoad init gt lt div style position absolute width 195px height 25px z index 2 left 45px top 52px gt L15 lt b id L15 gt xxxx lt b gt lt div gt The layout or location of the text object L15 amp F17 are defined here by the lt div lt div gt lt div style position absolute width 196px height 29px z index 3 left 45px top 82px gt F17 lt b id F
272. te format 31 12 2012 y a File title the first row displayed in the Logger file b Time format the time format to display in the Logger file c Title of 1st column the title text of the 1 column in the Logger file d Date format the date format of the Logger file WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 56 File setting 1 Fi a Column title Data Address Value Type e yf f g h e New to create a new data to record in order The Options Column title the title name of the data Data Address the Network Address record by the data Value Type the data type to read There are word long and float 3 types Dot display the decimal point Give a dot to the read value eg if set Dot as 3 the read value 32767 will be displayed as 32 767 f Insert to insert a new data to record between two data g Edit edit one current data h Delete delete one current data WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 57 Setting 1 Setting 2 Setting 3ySetting 4 Setting 5 10 Enable Fip 16 11 12 FTP Server IP eerver IP 199 169 1180 13 Port NO 14 lt v User name Lo 15 FTP Directory Vo ie Wnachine2 10 Enable Ftp check box to enable the FTP function The PAC will send the logger file record by g Logger to a FTP Server via FTP in the specified time 11 Transmission Type select Ethernet 2
273. tem You can link up to 255 I 7000 or I 87K series remote modules to one WP 5xx7 controller system It is better not to link up to 40 pcs of I 7000 or I 87K You must remember to set each l 7000 and I 87K remote module must have a unique address and be set to the same baud rate as the WP 5xx7 controller system For more information regarding setting up and programming an l 7000 I 87K remote module please refer to chapter 6 Linking To l 7000 and I 87K Modules of the User s Manual Of ISaGRAF PAC COM2 RS 485 l 7000 I O Modules I O Expansion Unit D DATA DATA DATA D DATA DATA DATA WP 5xx7 I 7000 I O hf 1 87K 1 0 we Wit 1 tt 2 ftri 3 4 5 6 Without using COM2 you can also use COM3 RS 232 to connect and it requires a RS 232 to RS 485 Converter e g 7520R and then link to l 7000 I O modules WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 8 A 9 Linking to an HMI Interface Device One of the COM2 or COM3 or max four of the COM1 5 6 7 8 please refer to Appendix G amp E ports of the WP 5xx7 5xx6 controller system can be used to interface with additional Human Machine Interface HMI devices such as touch displays Please refer to Section A 2 first for setting Modbus RTU port at one of COM2 or COMS3 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 and Touch 510
274. tencassssveessencuens 11 6 tiA Quicker NET DEl inosine a ated asaet abtinvauaicnne soe ation ane Susans abc awicaretee A 11 7 TILAT Dietak R W FU CUO S aian T E 11 7 LAZ Analog R W FUNCUONS meirin acta E crest vss dns E alge E ENEA E ORO TE 11 8 Chapter 12 To Save the Value of ISaGRAF Variables to the Micro_SD Memory scsscsscsseseees 12 1 Chapter 13 Using the tGW 700 Series Modbus TCP to RTU ASCII gateway with the ISaGRAF PAC 13 1 P31 Applicaton IANtToductiONesni tactinsenine task a a ea ornate at 13 1 13 2 MGW 700 SORES Modules asni siting a O TE ATN 13 2 1324 nroductionortOW 7 OO tao sid cae ds cece aa acladdos wiincacns didead de seddedv es 13 2 13 22 Installation amp CONMBUrATION essri a a tei 13 2 2 gt MoreRalatedilnhTOrmatO Necesen aen E aaa as AEN T teenth 13 4 13 3 How to test the Demo Example faq159_1 eoesesessseesessrerssrerrsssrrressreressrrressrrressreresrerresses 13 4 331 HardWare Prepara Onine oann a E boenuateceveancauSaeuuacheasqueeteaeete 13 4 133 2 Operating the Demo fag159 1 iunresionainpei naa A N a O N 13 5 1333 D scription of the Demo fagl Thernssissrdi saana iE E NE a 13 7 Appendix A Hardware System amp Setting sessesessesessesesescecescecesoesescecessecessecesssoesssoecsscesessecesoscesescecee 1 AA Appiying Correct Power SUDDIV resraniusceinien e e a 1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 A 2 Modify the NET ID amp Modbus RTU Port Setting
275. the Modbus RTU Slave Port is set as COM3 or it can only be download via Ethernet refer to Appendix A 2 PC 9 Pin D sub WP 5xx7 COM3 RS 232 2 RxD TxD 3 TD RxD 5 GND GND This section lists how to download the ISaGRAF program via RS 232 cable However user may also use Ethernet cable to download program to the WinPAC 5xx7 please refer to Section 4 2 3 1 Setup Link Parameters Click on the Link Setup icon in the ISaGRAF Programs window please set the proper value like the following window ISaGRAF EZAMPLE1 Programs Jof x File Make Project Tools Debug Opton Help a Hem Doe riak sae Begin as setup WP 5xx7 s Net ID PC PLC link parameters Default 1 Cancel Setup Begin LD1 Ladder Diagram Version for ICP DAS FMeseooo VewAVincon Target Slave Number Communication port Click on it to setup the serial communication parameters Baudrate 9700 Parity Format ee Default is 19200 N 8 1 No flow control Flow control WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 19 The RS 232 communication parameters for the target WP 5xx7 controller MUST be set to the same serial communication parameters for the development PC For WP 5xx7 controllers serial port communications the default parameters for COM3 RS 232 port are Baudrate 19200 Parity none Format 8 bits 1 stop Flow control none Pleas
276. the 1684G EG 4018 6D0 for the 1684G EG TDI amp FOO for the 168 G EG 24D BDO 201 for 168 G EG 104 740 600 401 for 71888G EG 10A 340 400 40 for 168 G EG Library 104 74D 200 20 tor 71884G EG 440 600 for 168 G EG Saeck 10A 34D 400 401 for 168 G EG z TDA amp 640 for 7188sG EG Equipments Note 71046 AD for 718884G EG K a J 401 amp 400 forthe 7188sG EG a ISaGRAF WFPHHI 05 TAO connection File Edit Tools Optons Help a PBrm tlie amp o m swil E munn DI n oo IP_ 1 10 0 0 2 t DOG Nul IP 2 10 0 0 5 Mm vip cauaa IP B iP oun IP_ 4 soma IP_5 NifA soe IP 6 NifA sous IP NifA mn P_ amp N A i Haz Please re compile your ISaGRAF project and download it to the controller if you have modified the IO connection WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 21 Chapter 7 VB net 2008 Program Running In WinPAC 5xx7 Access to ISaGRAF Variables Important Notice Please store your application programs and data files in the Micro_SD Don t store them in the System_disk That is because the System_Disk is using Nor Flash memory Its size is small and major purpose is for storing OS some basic utilities and DLL The Nor Flash memory is not good for frequently updating files If update files frequently in the System_Disk for example update a file every 1 to 5 seconds then it will be about ten thousand more updates in one day the data or files in the
277. the PC Soft GRAF Studio Normally the Soft GRAF Studio will copy all user edited picture files to the D Soft GRAF Studio lt project name gt pic directory when using them If user wants to modify the picture file please close the Soft GRAF Studio first then edit the picture file in the D Soft GRAF Studio lt project name gt pic directory WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 72 3 6 8 Change the Project Resolution User can change the programmed project resolution according the using PAC by the menu function Project gt Project Setting Project Project Setting i a Resolution Select 1024 768 wa hata There are four resolution selections now Please choose the resolution that suitable for your PAC The PAC Resolution WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 73 3 6 9 Select Multi objects to Move Copy and Delete The functions in this section have supported since Soft GRAF Studio Version 1 03 1 Select multiple HMI objects There are two ways to select a Using mouse dragging The mouse left key click on the blank space and drag out a selection box to include all objects you want to select as below b Using mouse and keyboard After select one object press the Ctrl key of the keyboard and then mouse left key click on the second or more objects to select all HMIs you want to select as below 2 Multi object clipboard functions
278. the WinPAC or of your PC You will see it show Communication is temporary break now in about 10 seconds When you plug the cable back the communication will be recovered in about 10 to 45 seconds Ay Welcome Microsoft lntemet Explorer CE EE WAO BABE Tem HAH o S t F 9 QO2 d Qee artir Gee G 2 S3R B 849 FAHD ja http 10 0 0 103login dll eE iE gt Nonon AntiVir El Logout Hella Communication iz temporary break now OARE ee If the communication broken 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 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 6 7 6 4 2 More About the refresh_data Function and Dynamic Data Note The code variable name and function name is case sensitive For example refresh_data is correct however Refresh_data is not correct The refresh_data 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 the
279. there is three plus one file in it The project1 exe QuickerNet dll Quicker dll and Mscorlib dll The three dll files can be copied from the WinPAC 5xx7 s Micro_SD ISaGRAF path WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 6 11 4 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 two groups as depicted as below 1 Digital R W Functions 2 Analog R W Functions 11 4 1 Digital R W Functions m UserSetCoil Description This function is to set the value to a Boolean variable by Modbus network address Syntax UserShare UserSetCoil ushort iUserAddress byte iStatus Parameter iUserAddress Specify the Modbus Network Address of Variable 1 to 8191 iStatus Set the status For instance iStatus 1 for True iStatus O for False Return Value None Example Set the output variable of Modbus Network Address 1 to True UserShare UserSetCoil Convert ToUInt16 1 1 Demo Program WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 CSharp net_2008 demo wp_CSharp01 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 11 7 m UserGetCoil Description This function is to get the value from a boolean variable by Modbus network address Syntax UserShar
280. time variable state SaGRAF EXAMPLE1 Debug programs Jof x File Project Tools Options Help File Edit Toole Options Help DOG Addr Value interna 005 t 238312ms _ N a Addr input 0008 loooc 0001 0002 K1 Input 1 in the L87055W board 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 SaGRAF EXAMPLE Programs Jof x File Make Project Tools Debug Optons Help Sasa Fem Yelm aes Begin Se SaGRAF EXAMPLEI LD1 Quick LD Program File Edit Options Help t FEFE t4 4 Begin LD1 Ladder Diagram Version for ICP DAS H71 1 BLINK OUTO1 RUN t 8s CYCLE Version for ICP DAS Pi1 e reoo0 Views Wincon series controllers only WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 5 22 5 4 Design the Web Page After finishing the ISaGRAF project amp download it to the WinPAC 5xx7 we are going to design the Web Page for this ISaGRAF project If you haven t practiced Setting Up A Web HMI Demo listed in the Chapter 4 it s better to do it once to get familiar with it We will use Microsoft Office FrontPage 2003 or advanced 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 WP 5xx7 CD ROM at
281. to convert the value from range of 0 32767 to range of O 1000 such as 16384 is converted to be 500 14 15 14 Unit input the unit for y axis value in the trend such as mA degrees C 15 Title the title of the trend map WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 47 3 3 19 g Gauge Display a Long Short Integer or a Real Value as an Angular Gauge Angier Meter Angular Mater Angular Meter in Ey NetWork Address ooo Pointer Color 6 3 sections 7 1 8 Location F Y 3 ae si Mid Value 1 9 4 Jam Cele 7 Mid Value 2 10 5 ace Max Value 100 11 2 Options 1 Network Address set the ISaGRAF Modbus Network Address for the variable 2 Size set the size of the object W for Width H for height 3 Location The X Y starting position of the HMI object Refer to the Ch3 2 for its definition of the X axis and Y axis 4 Fore Color set the color of the scale and the text 5 Back Color set the color of the background 6 Pointer Color set the pointer color of the gauge 7 Sections select the sections and colors to show the gauge Max 3 sections to show 3 colors 8 Min Value set the min value of the gauge range Note Max Value Min Value must be divisible by 10 Ex If Max Value 100 Min Value 0 it is ok If Max Value 95 Min_Value 0 it is not ok because 95 0 is not divisible by 10 9 Mid Val
282. to false C Devi_ID2 DO1 s lamp4 H Ei 3 Devi_ID 2 DO1 3s Devi_ID 2_ DO1 oe N Devi_ID2_DO1i true If the state of external variable lamp4 changed change the state of internal variable Dev1_ID2_DO1 lamp4 Dev1_ID2_D01 lamp4 Devi ID2 DO1 A A S a If the state of internal variable Dev1_ID2_DO1 changed judge DO state to send commend or not 9 Devi_ID2_ DO1 SetDev1ID2_DO1 Dev1_ID2_DO1 sin false C Devi_ID2 DO1 setDeviID2_ DO1 H Devi _ WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 13 LogCtrl ST Program Turn on all lamps if ALL_POWER_ON then ALL_POWER_ON false lamp1 true lamp4 true Turn off all lamps if ALL_POWER_OFF then ALL_POWER_OFF false lamp1 false lamp4 false end _if i WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 14 DevWrite LD Program If SetDev1ID1_DO1 is true write the state of Dev1_ID1_ DO1 MBUS BW Device1_ID1 1 setDevilb1_D01 Devi_ID1_DO1 setDeviID1_D01 setDeviID1_DO1 If SetDev1ID2_DO1 is true write the state of Dev1_ID2_ DO1 to DO ia MBUS BW Device1_ID2 1 setDeviID2_DO1 Devi_ID2_D0 setDeviID2_DO1 setDevilID2_DO1 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 15 Appendix A Hardware System amp Setting The WinPAC 5xx7 WP 5xx7 is the abbreviation of the WP 5147 WP 5147 OD The
283. turn state into each DO state one WD_BIT en ENO tt temp_state VAL _ Bi_ FWDevi_ID2 DO1 5 B2 Dev1_ID2 DO s B3_ Dev1_ID2_DO3_s B4_ B5_ B6_ B _ BS_ B9_ WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 11 lamp1Pro LD Program If DO at rising eage set external variable lamp1 and internal variable Dev1_1D1_DO1 to true C Devi_IDi_DO1 os lamp1 Dev1_ID1_DO1s Dev1_ID1_DO1 If DO at falling eage set external variable lamp1 and internal variable Dev1_1D1_DO1 to false Devi_IDi_DO13s lamp1 h mae Devi_ID1_D0O1_s Dev1_ID1_DO1 i If the state of external variable lamp1 changed change the state of internal variable Dev1_ID1_ DO1 ae lampi Devi_ID1_DO1 yess lampi Devi_ID1_DO1 PJ g P_ If the state of internal variable Dev1_ID1_ DO1 changed judge DO state to send commend or not Devi _ID1_DO1 SetDev1ID1_DO1 Devi 1D1 D01 si false Dev1_ID1_DO1 SetDev1ID1_DO1 a A Dev1_ID1_DO1 si true WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 12 lamp4Pro LD Program If DO at rising eage set external variable lamp4 and internal variable Dev1_I1D2_DO1 to true Dev1_ID2_DO1_s lamp4 7 Dev1_ID2_DO1_s Dev1_ID2_D01 Devi_ID2_DO1 false If DO at falling eage set external variable lamp4 and internal variable Dev1_1D2_DO1
284. ub net Mask Gateway MAC Address tGV 725 Tiny 192 168 1 233 255 255 255 0 192 168 1 1 00 0d e0 80 0c 40 PETL 7060 EtherlO 192 168 1 253 255 255 255 0 192 168 1 1 00 0d e0 64 22 39 ET 7050 N A 192 168 1 216 255 255 255 0 192 168 1 1 00 0d e0 64 01 50 ET 7026 NIA 192 168 1 205 255 255 255 0 192 168 1 1 00 0d e0 64 0f 98 4 oh Search Servers Status aw i j Configuration UDP Web ee f 3 Contact your Network Administrator to obtain the correct network configuration information i e IP Mask Gateway for your tGW 700 4 Enter the network settings and then click OK the tGW 700 will use the new settings after reboot Configure Server UDF Server Name GY 25 DHCP 0 OFF 7 Alias Tiny 7 Chars IP Address 192 168 1 233 MAC 00 0d 0 80 0c 40 sub net Mask 255 255 255 0 Yarning Contact your Network Administrator to get Gateway 92 166 1 1 correct configuration before any changing Cancel Testing the tGW 700 1 Wiring to the Modbus RTU device i e LC 103 DL 100TM485 PM 2133 IR 210 with your tGW 700 As below RS 485 tGw 700 Modbus Device DATA1 DATA2 2 Use the Modbus Utility to test the tGW 700 If the return data is correct then the installation has succeeded WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 13 3 13 2 3 More Related Information M tGW 700 Series Product website htto www ico
285. ue 1 set the middle value of the gauge range when sections is 2 or 3 10 Mid Value 2 set the middle value of the gauge range when sections is 3 11 Max Value set the max value of the gauge range Note Max Value Min Value must be divisible by 10 Ex If Max Value 100 Min Value 0 it is ok If Max Value 95 Min_Value 0 it is not ok because 95 0 is not divisible by 10 12 Section Color set the color for the gauge WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 48 13 _ Conversion 14 19 as Tater 16 a7 as 13 Data Type select the value type of the ISaGRAF variable long 32 bit signed intger word 16 bit signed integer or real 32 bit float 14 Title the title of the object 15 Unit Text the text to show the value unit such as mA degrees C 16 Dot enable to display decimal number to take the decimal point for the Integer or Real value after conversion Data Type Integer long or word if disable conversion the Dot is O always and can not be changed The value will not show decimal point Data Type Integer long or word if enable conversion and Dot 2 the converted value will display 2 decimal numbers ex 1 23 345 67 Data Type Real if enable or disable conversion and Dot 1 the converted value will display 1 decimal number ex 48 5 223 6 17 Min Angle Set the angle for the min value 5 135 d
286. unicate With Other TCP IP Server or UDP Client Server Devices cceececseeceeeeceeneee 1 4 1 7 Multiple Web HMI Monitor amp Control Everywhere ccccccsssccccssecceesececeesceeeeeceseueceseeaees 1 4 1 8 Remote l OAPpCa UO Menen E A AE A AOO T 1 5 1 9 Send Email with One Attached File essesesssseesssresreessreeserresseresrerssreosseresseresserssrresseresseresreesserens 1 5 KTO Dat mp a V2 0 21 e EDU S aaa a A 1 6 LIE NIP COMMUNICATION Secu e A S E A A OA 1 6 L2 Data Recorder amp Data LOEGE Pirus a AER 1 6 LIS SMS SHOR Message SENICE neire e E E 1 7 1 14 Integrate with CAN CANopen Devices amp SCNSOMS ssssessssseececcccccccceseeeseseeeeeessseeeeeeeecesseeess 1 7 1 15 ISaGRAF PAC Connects the Smart Power Metel ccsccccssecccessccceseceeeecesseeceeseneceeeaeceseeeeeees 1 8 AG AeBee Wireless SOMUUIO Maines cbiec ices cacao seed csactt a teed Seannet abdecsanl eared aeeviees semen 1 9 1 17 Database AD DiiCatlOM ecnin a a eee 1 10 LAS 26 20 Wireless AD OlCal OM srren e eRT E teterdetoncce E EOE ERETON 1 11 Chapter 2 Software Installation esesesssssssssssssssssssesssssssssssesssssssssesesesssssesesesesesesesssssesssesssesese 2 1 2 1 Step 1 Installing the ISAGRAF SOW aVe riton ade ince aia aie cos 2 1 2 1 1 The Hardware Protection Device Dongle amp USB Ke y Pro ccccccccsssecceeeeseceeeeeseceeeeeseess 2 3 2 1 2 Important Notice tor Windows NT Users 422 08 eck oon
287. updates in one day the data or files in the System_disk may crush or lost for some days or months later User can write his EVC 4 0 application to access to the ISaGRAF variables running at the same WinPAC 5xx7 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 WinPAC 5xx7 CD ROM napdos isagraf wp 5xx7 evc _lib The DLL at run time is the Quicker dll which is in WinPAC 5xx7 s Micro_SD ISaGRAF Please copy the excution file after successfully compilation to the WinPAC s Micro_SD ISaGRAF and then run it Set boolean value unsigned char UserSetCoil unsigned short iUserAddress unsigned char iStatus iUserAddress 1to 8191 Variable s network address in ISaGRAF project iStatus 0 set boolean to False 1 set boolean to True For example UserSetCoil 100 1 set boolean at network addr 100 as True Set word or float or long value iUserAddress 1to 8191 Variable s network address in ISaGRAF project iStatus A pointer to a long type which stores the data to set iDType O type is word 1 data type is float 2 data type is long use long for Timer value in ISaGRAF unit ms WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 8 1 For example float float_val long word_val long val long temp_val set word_val 32768 to 32767 to ISaGRAF variable w
288. ut PAC e ebug Control Monitor On Line HMI To olkit en Open SoftLogic Languages LD ST lt oe e Easy amp Usefu ISaGRAF 4 eLogger 4 Software Development Too RS HMI Development Too WP 8xx7 WP 5xx7 XP 8xx7 7 CE6 VP 25W7 23W7 N 1 3 Modbus Slave RTU TCP Modbus RTU RS 232 485 422 max 5 ports Modbus TCP IP max 32 connections HMI HMI SCADA RS 232 RS 485 Ethernet Ethernet RS 232 RS 232 422 485 Expansion as XW board Xw506 507 509 511 511i 514 Touch 500 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 2 1 4 Modbus Master TCP IP Each WP 5xx7 supports to link to max 100 Modbus TCP IP slave devices Support various Standard Modbus TCP IP Slave devices More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 113 Modbus TCP IP Master Application XP 8xx7 CE6 Modbus TCP IP Slave ay PLC Modbus TCP IP Slave os ISaGRAF PAC Meter LtPAC 7186 P EG 1 7188EG iP 8x47 VP 2xW7 WP 8x47 WP Sxx7 XP 8xx7 CE6 op anections WP 8xx7 VP 2xW7 TCP IP Slave WP 5xx7 Modbus TCP IP Master Protocol iDCS 8000 ET 7000 I O Redundant I O 1 5 Modbus Master RTU ASCII RS 232 485 422 Support up to 10 ports COM1 COM3 amp COMS5 COM12 if XW 5xx board in Slot0O Can link to Modbus PLC or M 7000 I O or Modbus devices Power meter temperature controller inverter etc WinPAC 5x
289. ut and Output of 4 to 20 mA to my engineering format How to scale Analog Input and Output of O to 10 V to my engineering format Q How to detect controller Fault Q New ISaGRAF retained variable is better than old one Q How to link to Modbus ASCII Slave device Q How to use multi port Modbus Master in the WinCon 8037 8337 8737 amp WinCon 8036 8336 8736 Q How to send receive message from ISaGRAF PAC to remote PCs or Controllers via Ethernet UDP communication Q Setting special range parameter of temperature input board to get clear Degree 24 25 26 27 28 9 2 O Celsius or Degree Fahrenheit input value For ex 1535 means 15 35 degree Q Setting a special ADR_ parameter of remote l 7000 amp l 87K temperature input UJ m e U9 WW N module to get clear Degree Celsius or Degree Fahrenheit input value For ex 8754 means 87 54 degree Q How to access to ISaGRAF variables as array A demo program of sending string to COM2 or COM3 when alarm 1 to 8 happens W 8036 8336 8736 amp W 8046 8346 8746 39 Q ISaGRAF version 3 4 amp 3 5 now supporting Variable Array Q Setting l 8437 1 8837 1 8437 80 1 8837 80 s COM3 as Modbus RTU Slave port Q How to connect PC HMI to a Redundancy system with a single IP address Q How to use WinCon connecting to Ethernet I O The I O scan rate is about 30 to 40 msec for 3000 to 6000 I O channels 33 34 35 36 37
290. via the Ebus communication mechanism When PC is talking with controllers via Ethernet the controllers can also talk to each other via the same Ethernet it makes the configuration more flexible and faster Note The WP 5xx7 XP 8xx7 CE6 WP 8xx7 and VP 2xW7 don t support Fbus WP 5xx7 uPAC 7186EG WP 8x47 1 11 VIP Communication Security Set VIP Very Important IP No for Modbus TCP IP security ee ISeORAP TESTI LAO comnecthon Bie Eda ook Optom Hely a PBYMRS th FX g 6 laj zaj iet 19 a 1 y mi IP_1 10 0 0 808 3 mmi IP_2 10 0 0 25 ma IP_3 10 0 0 49 Co t pushdkey n we IP_4 10 0 0 72 11 vip mai IP_5 10 0 0 66 B gt Ip n ne IP_6 N A A m IP_7 NJA smi IP_8 NJA m JOJA xj 1 12 Data Recorder amp Data Logger No A 2 Ethernet PC can load the data file stored in the WP 5xx7 s Flash Disk or microSD card by ftp or by Web HMI WP 5xx7 RS 232 WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 6 1 13 SMS Short Message Service Short message can be sent in multiple language format like Chinese English others More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 111 Report Request GTM 201 RS232 Control WP 5xx7 GSM GPRS Modem 1 14 Integrate with CAN CANopen Devices amp Sensors WP 5xx7 supports max 10 I 7530 RS 232 to CAN Converter More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English
291. with Network address as 10 Set the option Using bool address to hide to 10 It will hide the object if Hide is True and show the object if Hide is False 4 Fore color the fore color of the object True display this fore color when the ISaGRAF value is True False display this fore color when the ISaGRAF value is False 5 Back color the background color of the object True display this back color when the ISaGRAF value is True False display this back color when the ISaGRAF value is False 6 Size set the size of the object W for Width H for height 7 Location The X Y starting position of the HMI object Refer to the Section 3 2 for its definition of the X axis and Y axis 8 Text Align left center and right align for the text WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 20 9 Left Text set up the text displayed on the left side of the object value Ex If set the Left Text as Status the object will show Status True when the ISaGRAF Boolean value is True 10 Blink Set the object text to blink No Blink text not to blink Blink when true blink when the value is true Blink when false blink when the value is False All Blink blink when the value is True or False 11 12 set the message to display when the value is True False WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 21 3 3 3 g WD _val g N _val g F_val Display a 1
292. word_val ret_val OxFFFFOOOO get float of ISaGRAF variable with network 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 The long integer amp timer amp real variable s Network Address No must occupy 2 No in the ISaGRAF project Refer to section 4 2 of User s Manual of IsSaGRAF Embedded Controllers or in the CD ROM napdos isagraf wp 5xx7 english_manu User_Manual_ _8xx7 pdf WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 8 3 Chapter9 InduSoft Project Access to ISaGRAF Variables Note If the HMI program behavior is not so smooth or slow please refer to Appendix F The WinPAC 5xx7 or WP 5xx7 is the abbreviation of the WinPAC 5147 WP 5147 OD The WinPAC 5xx6 or WP 5xx6 is the abbreviation of the WinPAC 5146 WP 5146 OD Important Notice 1 Please always set a fixed IP address to the WinPAC 5xx7 5xx6 No DHCP 2 Recommend to use the Industrial Ethernet Switch NS 205 NS 208 or Real time Redundant Ring Switch RS 405 RS 408 for WP 5xx7 5xx6 3 WinPAC 5xx6 supports InduSoft and ISaGRAF 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 This demo uses a DI DO module XW107 in slot 0 of WP 5xx6 PAC and a virtual AO board I 87024W in slot 2 and
293. x7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 3 1 6 Communicate With Other TCP IP Server or UDP Client Server Devices WP 5xx7 WP 5xx6 NS 205 _ PC pid TCP IP Server A or ge UDP Server Client TCP IP Client or UDP Client Server Devices 1 7 Multiple Web HMI Monitor amp Control Everywhere PC Running the Internet Explorer Ethernet WP 5xx7 T a PC running Internet Explorer Modem Pat hard 1 87K4 8 87K 1 87K4 8 I 87K odules High Profile I O Modules High Profile I O Modules WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 4 1 8 Remote I O Application Y 1 7000 Y 1 87K4 8 1 87K High Profile 1 O Remote 1 0 Nearly 100 choices of Remote 1 O modules 1 7000 amp I 87K RS 485 v Can be one of COM2 or COM3 Port If using COM3 it required an external I 7020R RS 232 to RS 485 Converter lt WP 5xx7 1 9 Send Email with One Attached File More at www icpdas com gt FAQ gt Software gt ISaGRAF Ver 3 English 067 E f Gateway sA in ISP Company a ry rh l on o r internet i WP Sxx7 Internet t NS 205 Ethernet RS 485 Y 1 87K4 8 Y 1 7000 l 87K4 8 I 87K Remote I O High Profile I O WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 1 5 1 10 Data Exchange Ebus Ebus Ethernet Network Each ISaGRAF PAC can use its Ethernet port to talk to each other
294. xample running InduSoft with ISaGRAF in the same WinPAC Example TMP is declared as Boolean internal variable INIT is declared as Boolean internal variable and init at TRUE if INIT then INIT False Only do it once in the 1st PLC scan TMP PLC_mode 2 Set PLC speed to 2 slower mode end if WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 19 Appendix G Setup More Modbus RTU Salve Ports The WinPAC 5xx7 5xx6 can setup up to five Modbus RTU slave ports in one of the COM2 or COM3 and in four of the COM1 COM5 to COM are the expansion multi serial ports in slot O to 3 refer to the Appendix E 1 The first Modbus RTU slave port can be one of the COM2 or COM3 which can be set on the WinPAC s monitor by mouse refer to the Appendix A 2 2 User may enable 2nd 3rd 4th or 5th Modbus RTU slave port in COM1 COM5 to COM8 No support other COM port number 3 Before using this function please make sure the above ports do exist and well configured refer to the Appendix E 4 Via 2nd 3rd 4th or 5th Modbus RTU slave port user may use ISaGRAF to Debug Set_val to the controller however user cannot Stop Download Update the ISaGRAF program 5 To Debug Set_val Stop Download Update the ISaGRAF program please use Ethernet port or the first Modbus RTU slave port COM2 or COM3 if enabled The second slave port of COM1 COMS5 to COM8 are not for ISaGRAF to Stop Download Debug WinPAC 5xx7 Use
295. xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 4 3 6 7 File Management for User Edited Picture ccccssecccessecccesececesceceescecseecesenecessuscesaeaess 3 72 36 8 Change tne Project RESOIMILION sarsccstiene A cea sepucdid n a a a a anes eed eal eae 3 73 3 6 9 Select Multi objects to Move Copy and Delete ccccssccccssecccesecccesecceeseceeeecessesceseuaees 3 74 3 6 10 View the Fashion Mode or Old Style Mode cccssscccessecccesececeececaesceceeeceseecessscessuaess 3 75 3 7 The Description of Some Soft GRAF Studio Demo Proje cts cccccesececeseeeceeseeeeeeeceeeeeeeeeees 3 76 3 7 1 Demo04 Display the Objects and the HMI ACCESS ccccccssecccesececeesceceeseceeeuecessnsceseuaess 3 76 3 7 2 Demo05 My Sweet Home Demo Description cccccsccssccesecesccesccasecseeessceseceseceseeeseees 3 79 3 7 3 Demo06 Display the Trend Curve and the Angular Gauge ccccsssccccsseceeeseceeeeeeeeeeeees 3 84 3 7 4 Demo07 Using Alarm Message and Alarm R COIdS ccccsseccessscecescccseseceeeecessusceseuaess 3 86 3 1 0 IDEMOUS HOW LO USE 2 LOS CEL csiacsiciccisasiuccentian cic scaseaetcancagunn E E E NA 3 93 Chapter 4 Setting Up a Web HMI Demo cscscsccscsceccccscsceccccscsceccecscncescccecsceseececscesescecscesees 4 1 4 1 WepDemo Listerine Gianna rant eet nel een a a ecw ea ae ew ees 4 1 4 2 Steps to Set Up a Web HMI DEMO tnonisrontas mna eaaa a a 4 2 AZA Step d Setup
296. xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 27 1 4 Uninstall the Touch Monitor Driver Note After doing this procedure the factory settings of ISaGRAF Driver such as auto exec setting IP setting LAN1 LAN2 and so on will be removed Please refer to Appendix A Appendix A 3 to set it back Sometimes users would like to uninstall the current driver due to install the wrong driver or need to replace different monitor Please follow the steps to complete the procedure Important Notice Before uninstall the driver please unplug the cable between the touch monitor and PAC Users must remove the driver under the Safe Mode Rotary Switch 1 to ensure a complete uninstall and to avoid driver conflicts In the Safe Mode it will back to the factory settings Please record all the settings of WinPAC_Utility 1 Run WinPAC_Utility and record all the settings in each setting tab WinPAG Utility 2 0 2 6 Fie Help Configuration System Setting Ethernet Setting Network Setting System Information Auto Execution Muitserial_ lt gt LANI Lane MAC Address 1 UU UU ES O1 CD 44 LAN LIP Address Setting Use DHCP to get IP address Assign IP address IP Address 197 168 1 182 Mask 755 255 255 0 Gateway 0 0 0 0 2 At the top of the WP 5xx7 please set the rotary switch to 1 position and then reboot WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 28 3 In the
297. y Restore Default Settings f This tool will help you to set WinPAC 8000 exit Display Resolution S00 600 w Wir al Cong og di Inisial Geeta Products Data Arpmasilion Bysen Setting Task Bar Setting auto Hide Always On Top Empty Desktop Configure the synchronization with a time server _ Enable Autorun in plugging USB Disk Enable Autorun in plugging Micro SD WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS Ap 3 A 4 Connecting Your PC to the WP 5xx7 Ethernet Port Before you can download an ISaGRAF application to the WP 5xx7 controller using the Ethernet port you must first setup the Ethernet port to properly communicate with the PC On the WP 5xx7 Set IP Mask and Gateway address Please refer to former section A 3 Setting the IP Address for the WP 5xx7 On your PC First open an ISaGRAF project and select a program you wish to communicate between your PC and the WP 5xx7 controller system Next select the Link Setup button on the project screen as shown below ISaGRAF TEST Programs oe Oh xf File Make Project Tools Debug Options Help A HSM Dat Xr Oe AB Begin Simple Test Program 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 N Target Slave Number po Communication port ETHERNET x a
298. y When the development is finished remember to refer to Section 3 6 6 to set it back to full screen hide the Taskbar to prevent other operators to shut down the PAC or doing something wrong in the PAC WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 3 Taskbar and Start Menu OK Ma a aa E te ee ee eee ee Seeme t eTe e ee tee ee tmnt me s Taskbar and Start Menu Settings x Control Panel y Network and Dial up Connections E Bn ae a Cay td fv y Documents RELEE epre Save Restore Default Settings Exit td q Taskbar with right mouse button Ud Regie Next restore the file sofgrafy uia that downloaded unzipped from the FAQ 146 of faq146_chinese_demo zip into the c functions of the PC ISaGRAF as below imi vil ISaGRAF Libraries io File Edit Tools Options Help ag ISaGRAF Project Management Fie Edit Projest Tools Options Help 88 08 _ Arhive sofgr 01 WO canfigurations Import IL lO complex equipments Reference Author het 1 XP 8xx7 CE6 Date of creation 20107876 D CHUN_D SOFGRAFYS And also restore soft grf xia into the IO complex equipments of the PC ISaGRAF WinPAC 5xx7 User Manual Ver 1 02 Feb 2013 by ICP DAS 3 4 Check Always on top and Show Clock then click File gt Save and Reboot to save the settings Then the Soft GRAF HMI
299. y are assigned a unique Modbus Network Address No refer to Section 5 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 lt 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 get_long_val function For example get_long val 11 get_long val 13 get_long val 15 get_long val long integer value in the ISaGRAF 2147483648 to 2147483647 Note The long integer timer and 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 wp 5xx7 english_manu User_Manual_ _ 8xx7 pdf That means if you assign a Network Addres

Download Pdf Manuals

image

Related Search

Related Contents

Connecting Software CB Mobile CRM – iPad User Manual  BEDIENUNGSANLEITUNG SCOOTER,  Samsung 720TD Kullanıcı Klavuzu  DC 1800/2800 H - Dustcontrol UK  Instrucciones de uso  HP LaserJet Pro 100 Color M175 Quick Reference Guide  Karma Italiana CP 8763 mobile phone cable  

Copyright © All rights reserved.
Failed to retrieve file