background image

 

ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017    by ICP DAS

 

4-2 

4.1  Writing A Simple ISaGRAF Program 

 
We are going to use ISaGRAF Workbench to write a simple ISaGRAF example program, then download it 
to the VP-25W7 controller (with one 

I-87055W

 I/O board in its slot 0) to make it work. If you  haven’t 

installed “ISaGRAF” & “ICP DAS Utilities for ISaGRAF”, please go back to rea

chapter 2

. 

 
 
This example contains one Ladder program.   

(This demo program resides at the ISaGRAF WinCE ViewPAC CD-ROM: 
\napdos\isagraf\vp-25w7-23w7\demo\    “example1.pia” ) 

 

 
 

Variables declaration: 

 

Name 

Type 

Attribute 

Description 

OUT01 

Boolean 

Output 

Output 1 in the I-87055W, Modbus network addr = 1 

OUT02 

Boolean 

Output 

Output 2 in the I-87055W, Modbus network addr = 2 

K1 

Boolean 

Input 

Input 1 in the I-87055W, Modbus network addr = 11 

K2 

Boolean 

Input 

Input 2 in the I-87055W, Modbus network addr = 12 

T1 

Timer 

Internal 

Time Period of blinking, initial value set as T#8s 
Modbus network addr = 21 

 
 

Ladder Logic Program Outline: 

 
 

 

 

Project name – “example1” 

Name of your project group   

Ladder program name – “LD1” 

Summary of Contents for ISaGRAF VP-23W7

Page 1: ...Version V 1 6 ViewPAC Models VP 25W7 VP 23W7 VP 4137 VP 25W6 VP 23W6 VP 4136 The ISaGRAF WinCE ViewPAC in this manual include abbreviation VP 2xW7 4xx7 VP 25W7 VP 23W7 VP 4137 Support ISaGRAF logic running in the PAC VP 25W6 VP 23W6 VP 4136 Support InduSoft ISaGRAF logic running in the same PAC ...

Page 2: ...nsequence of this product ICP DAS CO LTD reserves the right to change this manual at any time without notice ICP DAS CO LTD constantly strives to provide our customers with the most reliable and accurate information possible regarding our products However ICP DAS CO LTD assumes no responsibility for its use or for any infringements of patents or other rights of third parties resulting from its use...

Page 3: ...er 1 7 1 12 Remote I O Application 1 7 1 13 SMS Short Message Service 1 8 1 14 As a Modbus Gateway for the Remote I O Modules 1 8 1 15 Motion Control 1 9 1 16 Stress Monitoring Application of Constructions 1 9 1 17 Fast FRnet Remote I O 1 10 1 18 Integrate with CAN CANopen Devices Sensors 1 10 1 19 VIP Communication Security 1 11 1 20 ISaGRAF PAC Connects the Smart Power Meter 1 11 1 21 ZigBee Wir...

Page 4: ...Project Variables 4 5 4 1 5 Assign Modbus Network Address No to Variables 4 8 4 1 6 Create The LD LD1 Program 4 10 4 1 7 Edit The LD1 Program 4 11 4 1 8 Connecting The I O 4 14 4 2 Compiling Simulating The Example Project 4 16 4 3 Download Debug The Example Project 4 20 4 4 Design The Web Page 4 24 4 4 1 Step 1 Copy The Sample Web HMI pages 4 24 4 4 2 Step 2 Building The Main htm 4 25 4 4 3 Step 3...

Page 5: ... 1 A 1 Applying Correct Power Supply 1 A 2 Modify The NET ID Modbus RTU Port Setting 3 A 3 Setting The IP Address For The ViewPAC 4 A 4 Connecting Your PC To The ViewPAC Ethernet Port 5 A 5 Pin Assignment of COM2 COM3 and Multi Clients 6 A 6 Connecting PC To VP 2xW7 s COM2 or COM3 7 A 7 Deleting the ISaGRAF Project From The ViewPAC 8 A 8 Linking I 7000 and I 87K Modules For Remote I O 9 A 9 Linkin...

Page 6: ...ppendix pdf Web www icpdas com Product Solutions Soft PLC ISaGRAF Soft GRAF HMI ISaGRAF Manual Industrial Ethernet Switch NS 205 208 or RS 405 408 Ring Switch www icpdas com Product Solutions Industrial Ethernet Switch Fber Switch Unmanaged Ethernet Switches Power Supply www icpdas com Product Solutions Accessories Power Supply DP 660 24 V 2 5 A 5 V 0 5 A power supply DIN Rail mounting DP 665 24 V...

Page 7: ...ewPAC ISaGRAF WinCE ViewPAC support only the I 8K I 87K High Profile I O modules and RS 485 FRnet remote I O modules listed in the ISaGRAF Data Sheet Please refer to the list in the next page or follow the below steps to get the newest list 1 www icpdas com 2 Click here to go to the ISaGRAF page 3 Data Sheet ...

Page 8: ...Digital Logic Input Module 8 ch Open Collector Digital Output Module I 8056W 16 ch Non isolated Open Collector Output Module I 8057W 16 ch Isolated Open Collector Output Module I 8058W 8 ch Differential Isolated Digital Input Module Max AC DC Input 250V I 8060W 6 ch Relay Output Module AC 0 6 A 125 V 0 3 A 250 V DC 2 A 30 V I 8063W 4 ch Differential Isolated digital input 4 ch Relay output module ...

Page 9: ...W 8 ch Universal Analog Input Module RoHS With a CN 1824 Daughter Board I 87019RW 8 ch Diff 16 bit 8 Hz Total Universal Analog Input Module with 240 Vrms Over Voltage Protection Open Wire Detection V mA Thermocouple Range of 20 20 mA need to set Jumper on board I 87019ZW 10 ch Universal Analog Input Module Gray Cover RoHS Includes the I 87019ZW Module and a DB 1820 Daughter Board I 87024CW 4 ch 12...

Page 10: ...I 87K PWMS Modules I 87088W 8 ch PWM outputs software support 1 Hz 100 kHz non continuous duty 0 1 99 9 I 87K GPS Modules I 87211W Time Synchronization and GPS module for getting UTC local time and local Longitude Latitude RS 485 Remote I O Modules I 7000 DCON Protocol www icpdas com product solutions remote i o modules units I 7000 M 7000 M 7000 Modbus RTU and DCON Protocol www icpdas com product...

Page 11: ...50 ms or more for complex or large program Non ISaGRAF Options MS eVC 4 0 or VS NET 2005 2008 VB NET C NET Web Service Web HMI PC running Internet Explorer can monitor control PAC via Internet modem Security Support three level username and password protection high middle low CPU Module CPU PXA270 520 MHz SDRAM 128 MB Flash 96 MB 128 MB Expansion Flash Memory microSD socket with one microSD card s...

Page 12: ...ion 7 2 W 8 5 W Protocols Note that certain protocols require optional devices NET ID 1 255 user assigned by software Modbus TCP IP Master Link to a max of 100 devices that support the Standard Modbus TCP IP Slave protocol FAQ 113 Modbus RTU ASCII Master A max of 10 ports COM2 3 and COM5 14 To connect to other Modbus Slave devices Support Multi port Modbus RTU Slave A max of 5 ports one of COM2 3 ...

Page 13: ...ts the TCP Client protocol allowing messages to be sent received to from a PC HMI or other device that supports the TCP server protocol For example data can be automatically reported to the InduSoft s RXTX driver or to connect a location camera GPRS SMS Enable the I 8212W 2G 3G card allowing short messages to be sent received to from or to access a dial up connection to link to the Internet and us...

Page 14: ...nter input 100 Hz max Counter value 0 65535 16 bit Optional serial I 87K DI boards I 87040W 87046W 87051W 87052W 87053W 87053W A5 87054W 87055W 87058W 87059W 87063W Remote DI Counter All remote I 7K I 87K DI modules support counters 100 Hz max Value 0 65535 High Speed Counter I 87082W 100 kHz max 32 bit I 8084W 250 kHz max 32 bit Encoder I 8093W 3 axis Encoder Module max 1M Hz for quadrant input m...

Page 15: ...Scaling Limit Blink Color Text Message Value Dynamic Message Multi language Button Value Title Picture Security Confi rm Password Picture Static Dynamic Boolean Picture Login Logout Bar Meter Vertical Horizontal Scale Unipolar Bipolar Trace 1 axis 2 axis Trend Real time Historical Schedule Control Gauge Meter Alarm Lists Data Logger Log data support USB export or FTP upload Built in Various Object...

Page 16: ...cation 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 Please refer to Section 2 5 More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC FAQ 115 ...

Page 17: ...xx7 Atom CE6 WP 8xx7 VP 2xW7 4xx7 series 1 4 New Hot Swap and Redundant System Please plug one I 8135W and enable the 2nd Ethernet port of VP 25W7 23W7 4137 If one Ethernet cable is broken or damaged the other one will still work If one controller is damage the other one will take over the control of the RS 485 I O PC HMI can connect to this redundant system by one or two active IP More at www icp...

Page 18: ...14W 8114iW 8142iW 8144iW in Slot0 2 Can link to Modbus PLC or M 7000 I O or Modbus devices Power meter temperature controller inverter etc 1 6 Modbus Master TCP IP Each ISaGRAF WinCE ViewPAC supports to link to max 100 Modbus TCP IP slave devices Support various Standard Modbus TCP IP Slave devices More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC FAQ 113 ...

Page 19: ... ViewPAC User Manual V 1 6 1 2017 by ICP DAS 1 5 1 7 Modbus Slave RTU TCP Modbus RTU RS 232 485 422 max 5 ports Modbus TCP IP max 32 connections 1 8 Communicate With Other TCP IP Server or UDP Client Server Devices ...

Page 20: ...RAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 1 6 1 9 Multiple Web HMI Monitor Control Everywhere 1 10 Send Email with One Attached File More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC 067 ...

Page 21: ...CE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 1 7 1 11 Data Recorder Data Logger PC can load the data file stored in the VP 2xW7 4xx7 s Flash Disk or micro SD card by FTP or by Web HMI 1 12 Remote I O Application ...

Page 22: ...rs and pure text can be sent received More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC 111 1 14 As a Modbus Gateway for the Remote I O Modules The ISaGRAF PACs with Ethernet port can be a Modbus RTU Serial TCP IP gateway of I 7000 I 87K Series I O modules The ISaGRAF PACs without Ethernet port can be a Modbus RTU Serial gateway of I 7000 I 87K Series I O modules ...

Page 23: ...rol 2 axes X Y plane or 2 axes independent Two I 8091W can control 4 axes X Y plane 2 axes independent or 4 axes independent Encoder Modules I 8084W 4 axis without Z index I 8090W 3 axis 1 16 Stress Monitoring Application of Constructions More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC 091 128 ...

Page 24: ...PLC scan time is about 9 ms then the scan time for all will be 9 ms not 3 ms Support FRnet DI DO AI and AO I O modules More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC 082 154 1 18 Integrate with CAN CANopen Devices Sensors ISaGRAF WinCE ViewPAC supports max 10 I 7530 RS 232 to CAN Converter Support I 8123W CANopen master card too FAQ 145 More at www icpdas com Support FAQ ISaGRAF Soft Lo...

Page 25: ...s 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 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 Support FAQ ISa...

Page 26: ...ireless Solution The ISaGRAF PAC 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 Please refer to www icpdas com Support FAQ ISaGRAF Soft Logic PAC 110 ...

Page 27: ...or GPS 721 ISaGRAF PAC can support one I 87211W slot 0 7 or I 87211W GPS 721 as RS 485 remote GPS I O For doing auto time synchronization and getting local Longitude and Latitude More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC FAQ 107 More GPS receivers at www icpdas com Products Wireless GPS receiver ...

Page 28: ... talk to each other via the same Ethernet It makes the configuration more flexible and faster Note The XP 8xx7 CE6 XP 8xx7 Atom CE6 WP 8xx7 and VP 2xW7 4xx7 don t support Fbus 1 24 Detect Hot Swap I 87K High Profile I O Status In ISaGRAF Workbench you must connect the I O board to the I O connection windows correctly and select the io_state board then you can observe the I O status When you Hot Sw...

Page 29: ...ft 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 Support FAQ ISaGRAF Soft Logic PAC 135 ...

Page 30: ... 4xx7 1 27 ISaGRAF PAC support I 87H17W modules in its main control unit only XP 8xx7 CE6 XP 8xx7 Atom CE6 slot 1 7 WP 8xx7 slot 0 7 VP 2xW7 4xx7 slot 0 2 They don t support I 87H17W modules plugged in the RS 485 remote I O expansion unit I 87H17W provides eight Analog Input channels to measure 4 to 20 mA current input It also can be used as 8 ch HART communication ports More at www icpdas com Sup...

Page 31: ...ViewPAC User Manual V 1 6 1 2017 by ICP DAS 1 17 1 27 2G 3G Wireless Application Support to communicate with remote Server by 2G 3G wireless modem More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC 143 151 153 ...

Page 32: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 1 18 1 28 Measure humidity and temperature values via DL 100TM485 More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC 156 ...

Page 33: ...e PAC Important Notice 1 ISaGRAF WinCE ViewPAC support only High profile I 8K and I 87K I O cards in its slot 0 to 2 Please refer to the accompanying CD ROM napdos isagraf vp 25w7 23w7 english manu Datasheet files 2 Please always set a fixed IP address to the ISaGRAF WinCE ViewPAC No DHCP Please refer to below ISaGRAF WinCE ViewPAC CD ROM for detailed ISaGRAF User s Manual napdos isagraf vp 25w7 2...

Page 34: ... Windows 2000 or Windows XP Windows NT Version 3 51 or Windows NT Version 4 0 Windows XP or Vista or Windows 7 refer to FAQ 117 or 2 1 4 Steps To Install The ISaGRAF Workbench If your PC OS is Windows Vista or Windows 7 32 bit refer to 2 1 4 If your PC OS is Windows 7 64 bit please refer to 2 1 5 1 Insert the ISaGRAF Workbench CD into your CD ROM drive If your computer does not auto start the inst...

Page 35: ...ot 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 dongle driver may not be installed well Please do the following steps Dongle Protection Please execute the ISaGRAF CD_ROM Sentinel5382 setup exe for ISaGRAF 80 or Sentinel setup exe for other ISaGRAF version and then reset the PC again USB Key Pro Protection 1...

Page 36: ...hortcut property 2 1 3 Important Notice for Window NT Users If your computer is using the Windows NT operating system you will need to add one line to the 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 a...

Page 37: ... 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 User Accounts and Family Safety User Accounts then click Change User Account Control settings or Turn User Account Control on or off 2 After clicking it will show up the screen as below Windows Vista Uncheck the opti...

Page 38: ...er Manual V 1 6 1 2017 by ICP DAS 2 6 Windows 7 Move the slider down to Never Notify and then click on OK 3 Reboot your computer to apply the change 4 After rebooting please refer to section 2 1 Installing the ISaGRAF Software ...

Page 39: ...to install Windows Virtual PC 4 Reboot your computer 5 After rebooting click on Star All Programs Windows Virtual PC and then click Windows XP Mode 6 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 7 Now go back to section 2 1 to install the ISaGR...

Page 40: ... ICP DAS Utilities for ISaGRAF If you have not already installed the ISaGRAF Workbench program please refer to 2 1 step 1 before continuing There is a CD ROM supplied with each of the ISaGRAF ViewPAC 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 Note If ICP DAS Utilities for...

Page 41: ... 4 Working eLogger HMI with ISaGRAF SoftLogic 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 Please refer to Section 2 5 eLogger HMI application can work with ISaGRAF softlogic application in the following PACs WP 8147 8447 8847 WP 8137 8437 8837 VP 25W7 23W7 413...

Page 42: ...0 Support Password Security Label Normal Reverse Type Under line Boolean Value Normal Reverse Type Blinking Numeric Value Normal Scaling Limit Blink Color Text Message Value Dynamic Message Multi language Button Value Title Picture Security Confi rm Password Picture Static Dynamic Boolean Picture Login Logout Bar Meter Vertical Horizontal Scale Unipolar Bipolar Trace 1 axis 2 axis Trend Real time ...

Page 43: ... The following ISaGRAF drivers support the Soft GRAF ISaGRAF PAC ISaGRAF Driver Version XP 8xx7 CE6 Ver 1 41 or later XP 8xx7 Atom CE6 Ver 1 02 or later WP 8xx7 Ver 1 61 or later WP 5147 Ver 1 07 or later VP 2xW7 4xx7 Ver 1 53 or later The latest version of ISaGRAF driver http www icpdas com root product solutions softplc_based_on_pac isagraf download isagraf li nk html www icpdas com Product Solu...

Page 44: ......

Page 45: ...nCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 demo Demo list Name Description IO board sample A Web HMI sample No I O board example1 A simple example listed in Chapter 4 slot 0 I 87055W vphmi_01 Display controller s date time No I O board vphmi_02 DI DO demo slot 0 I 87055W vphmi_03 Read Write Long float Timer value No I O board vphmi_04 Read Write controller s String No I O board vphmi_05 Multi ...

Page 46: ...Ethernet cable and then connect them to the ViewPAC Keyboard is using the software keyboard on the bottom right of the ViewPAC screen C Power up the ViewPAC 3 2 2 Step 2 Setting The Web Options A Please refer to the Appendix A 3 to set a fixed IP address to the ViewPAC 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...

Page 47: ... To Backing Up 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 3 2 3 1 Backing Up An ISaGRAF Project Open the ISaGRAF Project Management select Tools from the menu bar click on Archive and then click on Projects An Archive P...

Page 48: ...jects window click on the name of the project you want to restore from the Workbench window then click on the name of the backed up file from the Archive window then click on the Restore button The ISaGRAF project will now be restored to the sub directory you designated 3 2 3 3 Steps To Download a ISaGRAF Project To The Controller Double click on the vphmi_05 to get into the project Then click on ...

Page 49: ...hen entering the IP address of your controller The port number should be 502 To download vphmi_05 project to the VP 25W7 Click on Debug If communication is established click on stop first to stop the old project running in the VP 25W7 Then click on Download to download it to the controller ...

Page 50: ...ne I 87055W in its slot 0 If you don t have the I 87055W 8 IN 8 OUT board you may download vphmi_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 ViewPAC s Micro_SD Temp HTTP WebHMI 3 2 5 Step 5 Show Time Please run Internet Explorer Rev 6 0 or higher key in the IP addr...

Page 51: ... 0 to 2 Please refer to the accompanying CD ROM napdos isagraf vp 25w7 23w7 english manu Datasheet files 2 Please always set a fixed IP address to the ISaGRAF WinCE ViewPAC No DHCP Recommend to use the NS 205 208 or RS 405 408 Industrial Ethernet Switch for them This chapter shows you how to build a simple ISaGRAF project and its Web HMI pages Please refer to CD ROM napdos isagraf vp 25w7 23w7 eng...

Page 52: ...This demo program resides at the ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 demo example1 pia Variables declaration Name Type Attribute Description OUT01 Boolean Output Output 1 in the I 87055W Modbus network addr 1 OUT02 Boolean Output Output 2 in the I 87055W Modbus network addr 2 K1 Boolean Input Input 1 in the I 87055W Modbus network addr 11 K2 Boolean Input Input 2 in the I 8705...

Page 53: ...e Windows Start button then click on Programs then click on ISaGRAF 3 4 or ISaGRAF 3 5 then click on Projects as shown below 4 1 2 Creating An ISaGRAF User s Group Click on the Select Project Group and then click on New Group then type in the name for the new user s group you wish to create and last click on OK ...

Page 54: ...ter in the name for the new project You can then enter additional information for your project by clicking on the Edit and then Set Comment Text menu as illustrated below 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 Double click on the project name to get into the project window ...

Page 55: ...name of the variable to be used in the project For the purpose of this example program the variable Boolean Variable Name is K1 and Input 1 in the I 87055W board is added to the Comment Section The next item that must be declared is what type of Attribute the variable will possess In this example program K1 s attribute will be an Input Then press the Store button to save it The new Boolean variabl...

Page 56: ...d Quick Declaration To begin this process click on the Quick Declaration icon and enter in the output number that you will start within the Numbering from and To field this example uses from 1 to 2 Enter the Symbol name for the output variables being declared and lastly set the attribute to Output When you click on the OK button all two outputs will be immediately added to the Global Boolean windo...

Page 57: ...e 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 ...

Page 58: ...GRAF WinCE ViewPAC Variables without assigning Modbus No will not be available by Web HMI and other SCADA software or HMI devices Please refer to VP 2xW7 4xx7 CD ROM napdos isagraf vp 25w7 23w7 english manu user_manual_i_8xx7 pdf For section 4 1 4 2 for detailed information about assigning Modbus network address Please get into the dictionary then click on Tools Modbus SCADA addressing map Please ...

Page 59: ...e T1 to No 21 Then we have below window Very Important If assign Modbus No to Long integer or Float or Timer variables they should occupy two Modbus No Please refer to VP 2xW7 4xx7 CD ROM napdos isagraf vp 25w7 23w7 english manu user_manual_i_8xx7 pdf Section 4 2 for detailed information The Modbus Addr Numbers displayed here are always in hexadecimal format ...

Page 60: ...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 Now we have one program inside this project Please double click on the LD1 to get into it...

Page 61: ...u bar 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 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 Move the cursor to the first contac...

Page 62: ...e 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 Now move your cursor to the left of the parameter CYCLE of the BLINK block Double click on it select Timer and then double click on variable name T1 Double click on anywhere ins...

Page 63: ...er Manual V 1 6 1 2017 by ICP DAS 4 13 Move your cursor to the coil Double click on it select Boolean and then double click on variable name OUT01 Now we have finished our Ladder code click on Save and then click on X to exit ...

Page 64: ...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 No 1 slot Please make sure your I 87055W I O board is plug in slot 0 of the ViewPAC then check on the Equipments double click on the I_87055 8 CH DI 8 CH DO Then we have If you don t have the I 87055W you may click the Real Virtual board to make it...

Page 65: ...Save and then exit IMPORTANT NOTICE 1 I O Slots 0 through 7 are reserved for REAL I O boards that will be used in the VP 2xW7 4xx7 You can use slot No 8 and above for additional functionality 2 All of the variables with Input and Output attribute MUST be connected through the I O connection as described above for any program to be successfully compiled Only the Input and Output attributed variable...

Page 66: ...ly 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 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 sele...

Page 67: ...ion please refer to appendix H Simulate the Project If the compilation is Ok you may simulate the project on the PC to see how the program works without the controller To do that click on the Simulate icon 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 cre...

Page 68: ...1 6 1 2017 by ICP DAS 4 18 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 OUT01 will blink in the period of 8 seconds Click here to exit ...

Page 69: ...open the ISaGRAF Global Variables window as shown in the first two pictures below Click on Timer tab and then double click on T1 to change the timer value to T 4000ms this means 4000 ms Then click on Write Now we are going to simulate the K1 K2 input Click on K1 using the left button of the mouse To exit simulation please close the debugger window Close debugger will end simulation ...

Page 70: ... is set as COM3 refer to Appendix A 2 or it can only be download via Ethernet 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 VP 2xW7 4xx7 please refer to section 3 2 3 Link Setup Click on the Link Setup icon in the ISaGRAF Programs window When you click on the Link Setup icon the following window will appe...

Page 71: ...ller system the name of the project will be displayed with the word active following it 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 commun...

Page 72: ...ystem A progress bar will appear in the ISaGRAF Debugger window showing the project downloading progress When the example project has successfully completed the downloading process to the ViewPAC controller system the following two windows will appear If ISA86M TIC code fort Intel is not found here that means the compiler option ISA86M TIC code for Intel is not checked Please refer to section 4 2 ...

Page 73: ... I O Connections window which shows each of the inputs and outputs as assigned Click on the I O Connections icon in the ISaGRAF Debugger window to open the I O Connections screen You may switch ON OFF the D I on the front panel of the I 87055W I O board to see what happens about K1 K2 Another VERY helpful window you can open is the Quick LD Program window From this window you can observe the LD pr...

Page 74: ...25w7 23w7 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 Folders 1 img default image files jpg bmp gif 2 msg default message files wincon js xxerror htm DLL Files 1 whmi_filter dll three DLL files 2 login dll 3 main dll HTM Files 1 index htm first default page 2...

Page 75: ...ep 2 Building The Main htm Please run the Microsoft Office FrontPage 2003 or advanced version and open the main htm Please switch the window to design the page Please insert a layout object Layer as below You may switch from these three items ID of this Layer object Layer2 ...

Page 76: ...ter K1 into the new created Layer Follow the same former steps to insert one another Layer to be in just below the Layer3 as below First click inside the Layer2 and then insert one another layer inside it Now we have Layer3 inside the Layer2 First Click inside the Layer2 and then insert the Layer4 inside it Please place Layer4 just below the Layer3 ...

Page 77: ...o insert one image file to it as below The image file name is img big_Tcircle_red0 jpg Please browse to the correct folder in your hard driver Here we use example1 img in this example You will see a window as below Layer2 Layer3 Layer4 Layer1 First Click inside the Layer4 and then insert an image ...

Page 78: ...ill use K1 to display the state of the first input of the I 87055W board and K2 for its second input Please follow the similar steps to insert OUT01 OUT02 as below The OUT01 uses img circle_blue0 jpg as its image source while OUT02 using img cmd0 jpg Layer8 Layer9 Layer10 Layer11 Layer12 Layer13 1 Click here to insert Layer5 2 Follow the similar steps as former to insert Layer6 Layer7 inside the L...

Page 79: ...or controlling and displaying the second output of the I 87055W Now please insert one another Layer14 Inside the Layer14 please insert one Layer15 with a T1 xxx ms symbol And two empty Layers Layer16 Layer17 just below the Layer15 We will use T1 to display the Timer value T1 in the ISaGRAF project Click on Save to save this page Layer14 Layer15 Layer16 Layer17 ...

Page 80: ...ce code A valid HTML document will contain the basic objects as below If you want to know more about the Web HMI s source code please refer to Chapter 5 html title Your Title here title head SCRIPT LANGUAGE JavaScript SCRIPT head body body html The body area describes the behavior of this page JavaScript code is normally placed inside the head area ...

Page 81: ...er5 div style position absolute width 47px height 26px z index 1 left 6px top 4px id layer6 K2 div div style position absolute width 92px height 35px z index 2 left 7px top 38px id layer7 font id font_B12 color blue size 3 b id B12 OK b font div p nbsp div div style position absolute width 82px height 79px z index 4 left 71px top 168px id layer8 div style position absolute width 60px height 31px z...

Page 82: ...e position absolute width 119px height 28px z index 1 left 4px top 7px id layer15 T1 b id T1 xxx ms b div div style position absolute width 98px height 28px z index 2 left 4px top 45px id layer16 form name form_L21 method post action main dll input name BEGIN type hidden input name L21 type text size 8 value xxx input name END type hidden form nbsp div Please insert form name form_B2 method post a...

Page 83: ...sition absolute width 67px height 33px z index 3 left 106px top 44px id layer17 input type button value Enter onclick Check_L21 nbsp div p nbsp div We have finished the code in the body body area Inside the Layser17 please insert input type button value Enter onclick Check_L21 ...

Page 84: ...not blink function to blink object var blink_step 0 function blink_obj if blink_step 1 blink_step 0 display your object here blink B12 For example if B12_blink 1 B12 innerText Error font_B12 color red else blink_step 1 un display your object here blink B12 For example if B12_blink 1 B12 innerText font_B12 color red setTimeout blink_obj blink_period The Error symbol will blink when the K2 True in t...

Page 85: ...00 val 4000 alert T1 s value should be in the range of 4000 to 12000 return Check form_L21 post value to the controller And also inside the refresh_data function please insert below code To refresh displayed data this function is called by IE about every 1 5 sec later 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...

Page 86: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 4 36 Now we have finished all the code Please save it You may click on Preview to simulate its run time behavior ...

Page 87: ...able Account Security and then click on Edit to set username password Then remember to click on OK Note If Enable Account Security is not check any user can easily get access to your ISaGRAF WinCE ViewPAC through the Internet Explorer And then please copy all files in this example1 to the controller your hard drive example1 to the ViewPAC s Micro_SD Temp HTTP WebHMI Since the Web Pages are modifie...

Page 88: ...b page You may enable the below item to display the debug message every time it has error And also check if your ISaGRAF project already download to the controller Section 4 3 or section 3 2 3 And do you assign the correct Modbus Network address to the respective ISaGRAF variables Section 4 1 5 Double click here to display the error message Enable it and then click on OK Current running ISaGRAF pr...

Page 89: ... name is case sensitive For example refresh_data and Refresh_data is different 5 There are more than ten Web HMI examples in the VP 25W7 23W7 CD ROM Please refer to the section 3 1 5 1 Basic Files For The Web HMI The basic Web HMI files include 2 folders and 3 DLL files and 4 htm files as below Folders 1 img default image files jpg bmp gif 2 msg default message files wincon js xxerror htm DLL File...

Page 90: ...ightNow new Date random_val 323456789 rightNow getMinutes 107654321 rightNow getTime 1000 setTimeout get_random_val 197 repeat call check if username and possword are empty function validate fm setKey fm return true Embed key while submitting function setKey fm var rightNow new Date cookieVal random_val rightNow getTime fm key_ value cookieVal script head This row is only for the Login htm please ...

Page 91: ... return validate this form form div body To ensure no cache work head meta http equiv pragma content no cache head html That s all the login htm need You can insert more images or text to it Only remember to keep its basic code get_random_val should be always called at the beginning of the Login htm It is the entry point of the Login htm This code is only for the Login htm please do not apply to o...

Page 92: ...D napdos isagraf vp 25w7 23w7 vp webhmi demo vphmi_05 vphmi_05a The vphmi_05 place its page menu on the left while vphmi_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 On the left The width scrolling can be modified width On the top The width scrolling can be modified width ...

Page 93: ...t onClick return logout this form form body html Note If you want to know more about the multi page application there are two demos in the VP 2xW7 4xx7 CD napdos isagraf vp 25w7 23w7 vp webhmi demo vphmi_05 vphmi_05a The vphmi_05 place its page menu on the left while vphmi_05a on the top The first row is not a comment it defines the Page Menu behavior top_or_left 1 Top 0 Left scrolling 1 Yes 0 No ...

Page 94: ...ain htm in the ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 vp webhmi demo sample to the above main htm download it to the controller refer to section 4 4 4 You will see the below window when you login successfully Please apply your charset here For example English UTF 8 Simplified Chinese gb2312 Traditional Chinese big5 or other language This line is necessary for menu htm main htm ot...

Page 95: ... 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 If the communication broken time exceeds 120 seconds it will show the below message You have to close the Internet Explorer open it again to re login A moving word is display here This is because the action of calling show_scroll_world ...

Page 96: ...riable 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 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 Note The ...

Page 97: ...rText float_val 21 body onLoad init div style position absolute width 214px height 53px z index 2 left 102px top 79px b id F21 xxxx b div body The action of the image object B1 is defined here 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_blue0 jpg The action of the Text object F21 is defined here The declaration of Text object ...

Page 98: ...is 255 the below code can be used function refresh_data S31 innerText string_val 31 body onLoad init div style position absolute width 214px height 53px z index 2 left 102px top 79px b id S31 empty b div body The action of the Text object L11 is defined here The declaration of Text object L11 is defined here by the b tag and id L21 and b tag the initial value of this L11 is xxx The action of the T...

Page 99: ... blink to attract viewer s attention The below code can do this job var blink_period 500 setTimeout blink_obj blink_period var B12_blink 0 init as 0 not blink var blink_step 0 function blink_obj if blink_step 1 blink_step 0 if B12_blink 1 B12 innerText Error font_B12 color red else blink_step 1 if B12_blink 1 B12 innerText font_B12 color red setTimeout blink_obj blink_period The blinking period un...

Page 100: ...d the dot symbol para1 is the float value to be converted for ex 1 234567 para2 is the digit number behind the dot symbol 0 to 6 Ex float_str1 1 234567 3 return 1 234 float_str1 1 234567 2 return 1 23 function refresh_data F21 innerText float_str1 float_val 21 3 Convert float val at Network Address 21 to a string with digit number 3 behind the dot symbol The action of the Text object B12 is define...

Page 101: ...le 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 vp 25w7 23w7 english manu User_Manual_I_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 ass...

Page 102: ...OFF function is used for posting Boolean value to the controller by refer to the current Boolean value Demo example vphmi_02 and vphmi_05 The 1st parameter is the name of the form The 2nd parameter is the input name inside the form The last parameter is the current Boolean value Display the current Boolean image In this example 0 display img cmd0 jpg 1 img cmd1 jpg The layout or location of the im...

Page 103: ...name END type hidden value form div div style position absolute left 85px top 166px width 47px height 31px input type button value OFF style cursor hand onClick OFF_ form_B2 form_B2 B2 div body Demo example vphmi_02 and vphmi_05 Display the current boolean image In this example 0 img big_Tcircle_red0 jpg 1 img big_Tcircle_red1 jpg OFF_ function is used for posting Boolean value as False to the con...

Page 104: ...name BEGIN type hidden value input name L15 type text value Enter long val L15 input name F17 type text value Enter float val F17 input name END type hidden value form div div style position absolute width 74px height 31px left 234px top 150px input type button style cursor hand onClick return Check form1 value Enter div body Demo example vphmi_03 vphmi_04 vphmi_05 vphmi_06 and vphmi_07 Check is u...

Page 105: ...htm in the vphmi_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 vphmi_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 suc...

Page 106: ...T SCRIPT LANGUAGE JavaScript function start1 A_11 function refresh_data if run_at_pc 1 return if simulate at the PC just return SCRIPT head body onload start1 Logout button form name form_logout method post action login dll input style cursor hand name CMD type submit value Logout onClick return logout this form form br br Goto main htm A style cursor hand onClick goto_R_page main htm 第 1 頁 A br b...

Page 107: ...502 ISaGRAF and other HMI can do this 2 Using ftp for example keyin ftp 10 0 0 103 on the Internet Explorer 3 Using telent for example keyin telnet 10 0 0 103 in the command window 4 Using the Web server The Web HMI does For safety recommend to disable item 2 and 3 at run time And about item 4 please set proper username password for the Web HMI Check it to disable Setting user name password here ...

Page 108: ...ion window of ISaGRAF Please connect vip and entering the IP which can get access to the ViewPAC via Modbus TCP IP protocol If vip is not connected any remote IP can get access to your ViewPAC 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 Please re compile your ISaGRAF project and download it to the controlle...

Page 109: ... 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 ISaGRAF WinCE ViewPAC CD ROM ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 vb net 2008 demo wp_vb01 Digital I O demo with one I 87055W in slot 0 of the ViewPA...

Page 110: ... 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 3 Select the Device Application and Windows CE and NET Compact Framework Version 2 0 then click on OK ...

Page 111: ... 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 2 Select the mscorlib in the list box and click the button OK the component mscorlib must appear in the Selected Components area Mscorlib dll is here Click on Browse to search QuickerNet dll ...

Page 112: ...or from your own location 4 When both mscorlib and QuickerNet dll are added please double click on My Project to check if the QuickerNet dll is well added 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 Then you can design all required objects and actions inside your VB Forms Rig...

Page 113: ...ile in Your VB net Project folder bin Release project_name exe Please copy this execution file to the ViewPAC s System_Disk 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 can not run correctly For ex the project1 exe can run in the Micro_SD path if there is three plus one file in it The pro...

Page 114: ...tions 6 4 1 Digital R W Functions 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 ...

Page 115: ...stem UInt16 ByRef iStatus As byte Parameter iUserAddress Specify the Modbus Network Address of Variable 1 to 8191 iStatus Get the variable status iStatus 1 for True iStatus 0 for False Return Value None Example Get the variable status of Network Address 1 Dim iStatus As Byte UserShare UserGetCoil Convert ToUInt16 1 iStatus Demo program ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 vb ne...

Page 116: ...mple Set a long value 1234567 to the variable of Modbus Network Address 1 UserShare UserSetReg_long Convert ToUInt16 1 Convert ToInt32 1234567 Set a short value 1234 to the variable of Modbus Network Address 3 UserShare UserSetReg_short Convert ToUInt16 3 Convert ToInt16 1234 Set a float value 2 174 to the variable of Modbus Network Address 4 UserShare UserSetReg_float Convert ToUInt16 4 Convert T...

Page 117: ...al As Single Dim short_val As Int16 Dim long_val As Int32 Get float value of the variable of Modbus Network 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...

Page 118: ......

Page 119: ... Quicker dll which is in ViewPAC s System_Disk isagraf Please copy the execution file after successfully compilation to the ViewPAC s System_Disk isagraf and then run it Set boolean value unsigned char UserSetCoil unsigned short iUserAddress unsigned char iStatus iUserAddress 1 to 8191 Variable s network address in ISaGRAF project iStatus 0 set boolean to False 1 set boolean to True for ex UserSet...

Page 120: ...ype is word 1 data type is float 2 data type is long use long for Timer value in ISaGRAF unit is ms for ex float float_val long word_val long_val long ret_val get word_val 32768 to 32767 of ISaGRAF variable with network address 10 UserGetReg 10 ret_val 0 if ret_val 0 ret_val 32767 word_val ret_val else word_val ret_val 0xFFFF0000 get float of ISaGRAF variable with network address 11 UserGetReg 11 ...

Page 121: ...thernet Switch for them 2 Please refer to ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 english manu user_manual_i_8xx7 pdf for detailed ISaGRAF English User s Manual A simple example to run InduSoft ISaGRAF logic in the same controller Step 1 Create a new ISaGRAF project This demo uses a DI DO module I 87055W in slot 0 of VP 25W6 PAC and an AO module I 87024W in slot 2 and one internal...

Page 122: ...must be declared with a Modbus Network Address as below Please save compile the ISaGRAF example project then download to the PAC If you are not familiar with ISaGRAF please refer to section 4 1 to 4 3 Please set No as Decimal In this example Please assign No 1 to DI_1 No 11 to DO_1 No 21 to AO_1 No 31 to Internal An empty LD is just fine ...

Page 123: ...ab 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 Product type Press OK 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 1 2 3 4 ...

Page 124: ...CP DAS 8 4 Define application tags Select Insert Tag on the main menu bar The New Tag window will show as below This demo uses a DI DO module I 87055W an AO module I 87024W and one internal variable defined as follow Please create these tags one by one ...

Page 125: ...Picture then press OK to edit screen 4 Select Text icon then clink on the main screen where want to establish a text and type 87055W_DI_1 5 Select Text icon again following the previous text and type then select Text Data Link means 1 digit means 4 digits means 6 digits 2 Click right button in the file folder of Screen 1 Go to Graphics 3 Set up the screen attributes 4 Click on Text to add a label ...

Page 126: ...he main menu to save this main screen page as MainPage scr Select File Save As HTML 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 87055W_DO_1 the Input Enabled of the Text Data Link should be checked as below The main screen is created as below Checking the box means user may input its value at run time ...

Page 127: ...ove drivers 3 In the Communication Drivers window click MOTCP driver then click Select and click OK to close this window Expanding file folder of Drivers and it will show a file folder named MOTCP Click right mouse button and select Insert to add a workspace of Modbus TCP 2 Right click Drivers and select Add Remove drivers 1 Select Comm 3 Select the MOTCP DLL Click on mouse right button on Insert ...

Page 128: ...ries according to the equipment Floating point value Holding Register Read and write float point values using two consecutive Holding Registers DW DW 2 Varies according to the equipment 32 bit Integer value Holding Register Read and write 32 bit integer values using two consecutive Holding Registers What does 127 0 0 1 502 1 mean 127 0 0 1 is the local host IP address It means send data to the sam...

Page 129: ...l Station 127 0 0 1 502 1 Header 1X 0 0X 0 4X 0 3X 0 Tag Name DI DO AO Interior Enable Read when Idle 1 1 Enable Write on Tag Change 1 1 Address 1 11 21 31 When finished all setting press Ctrl F4 to close all inside windows and save all files Project Setting Select Project Settings to open Project Settings window In the Startup screen edit box fill in MainPage scr then click OK to close this windo...

Page 130: ...nCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 8 10 Web Thin Clients Select Project Settings to open Project Settings window In the Data Server IP Address type in the correct IP address of your PAC and click OK ...

Page 131: ...rect IP address of your PAC and click Connect If connection is fine click on the tab of Project then click Download When download finished click RUN to start the project Type in the IP address of PAC The Install system files button can update ViewPAC s Indusoft firmware to your PC s current version Please make sure all file attribution are not read only in the ViewPAC s System_Disk InduSoft path ...

Page 132: ...ctory of ViewPAC Run ViewPAC Utility and change Web directory to System_Disk InduSoft Demo_01 Web Click Setting and Save and Reboot to finish this configuration Visualize your project in a remote station Run Internet Explorer and type for ex http 10 0 0 80 MainPage html use ViewPAC s IP ...

Page 133: ...AF logic running in the PAC VP 25W6 VP 23W6 VP 4136 Support InduSoft ISaGRAF logic running in the same PAC Please refer to VP 2xW7 4xx7 CD napdos isagraf vp 25w7 23w7 english manu user_manual_i_8xx7 pdf user_manual_i_8xx7_appendix pdf for advanced ISaGRAF User s Manual 9 1 Get On Line help If you have question you may email to service icpdas com On line help of ISaGRAF standard functions function ...

Page 134: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 9 2 On line help of ICP DAS add on functions function blocks ...

Page 135: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 9 3 On line help of ICP DAS add on I O boards I O complex equipments On line help of ISaGRAF languages ...

Page 136: ...ct Name Description I O Boards Used Soft GRAF demo01 demo07 Soft GRAF HMI demo01 demo07 sofgr_01 sofgr_08 FAQ 146 example1 A simple Web HMI example slot 0 I 87055W wp_vb01 VB NET 2008 demo 01 for VP 2xW7 DIO demo Please refer to Chapter 6 slot 0 I 87055W wp_vb02 VB NET 2008 demo 02 for VP 2xW7 Analog I O Please refer to Chapter 6 slot 1 I 87024W slot 2 I 8017HW wp_vb03 VB NET 2008 demo 03 for VP 2...

Page 137: ...s 250 ms Chapter 19 2 of the ISaGRAF User s Manual slot0 I 87055W vpdmo_20 receive String coming from remote PC or controller via UDP IP vpdmo_21 using com_MRTU to disable enable Modbus RTU slave port vpdmo_22 PWM I O demo Pulse Width Modulation minimum scale is 2ms for ViewPAC slot 0 I 8055W vpdmo_23 Send Time String to COM3 RS 232 every second by using COMOPEN COMSTR_W FAQ 59 vpdmo_24 Send strin...

Page 138: ...ud 9600 vpdmo_44 VP 25W7 s COM2 connecting 1 M7017RC Current input 20mA 4 20mA Modbus format vpdmo_45 VP 25W7 s COM2 connecting 1 M 7019R set as T C K type input MBRTU format baud 9600 vpdmo_46 VP 25W7 s COM2 connecting 1 M7080 MBRTU format baud 9600 vpdmo_48 VB NET 2005 demo MBTCP_demo FAQ 51 vpdmo_50 Non linear conversion like give P to find V P V relation listed in a file vpdmo_51 Read 10 REAL ...

Page 139: ...file Then send it by email per day FAQ 67 71 72 76 or 77 slot 2 I 87018z vpdmo65b VP 2xW7 Same as wdmo_65a but add time synchronization and state report to PC FAQ 67 71 72 76 or 77 slot 2 I 87018z vpdmo_66 Record 1 to 4 Ch i8017HW voltage per 20ms then send this record file by Email slot 1 I 8024W slot 2 I 8017HW vpdmo71a VP 25W7 COM2 connects I 7530 CANopen ID 1 device 8DI 8DO 4AO 8AI FAQ 86 vpdm...

Page 140: ...iewPAC Web HMI example 5A Multi Page demo slot 0 I 87055W Menu is on the Top slot 0 I 87055W vphmi_06 WiewPAC Web HMI exampl 6 AIO dmo slot 1 I 87024W 2 I 8017HW scaling is in ISaGRAF slot 1 I 87024W slot 2 I 8017HW vphmi_07 WiewPAC Web HMI example 7 AIO demo slot 1 I 87024W 2 I 8017HW scaling is in PC slot 1 I 87024W slot 2 I 8017HW vphmi_08 WiewPAC Web HMI example 8 download controller s file to...

Page 141: ...he ViewPAC controller it is recommended that you create an ISaGRAF Project Group to install the demo program files into To install the demo programs into the project you have created open the ISaGRAF Project Management window to select Tools from the menu bar then select the Archive option and then click on Projects ...

Page 142: ... 25W7 23W7 CD ROM To install all of the Demo files click on the 1st file on the right then press and hold down the Shift key continue to hold down the Shift key and use your mouse to scroll down to last file in the Archive window Click on the last file name from the demo file location and that will select the entire group of demo files Lastly click on the Restore button in the Archive Projects win...

Page 143: ... ISaGRAF project to a single file 11 Q How can I implement motion control in I 8417 8817 8437 8837 12 Q My HMI software wants to access to float values and long word values inside the I 8417 8817 8437 8837 7188EG 7188XG How 13 Q PWM Can I generate D O square pulse up to 500Hz with I 8417 8817 8437 8837 7188EG 7188XG controllers How 14 Q Can I use 8K Parallel D I board to get counter Input up to 50...

Page 144: ...G XG support remotely downloads via Modem Link 38 Q Setting I 7188EG XG s COM3 as Modbus RTU Slave port 39 Q ISaGRAF version 3 4 3 5 now supporting Variable Array 40 Q Setting I 8437 I 8837 I 8437 80 I 8837 80 s COM3 as Modbus RTU Slave port 41 Q How to connect PC HMI to a Redundancy system with a single IP address 42 Q How to use WinCon connecting to Ethernet I O The I O scan rate is about 30 to ...

Page 145: ...output channels to safe output value while the RS 485 communication cable is broken 65 Q ICP DAS release Stable and Cost effective Data Acquisition Auto Report System VC 6 0 VB 6 0 and ISaGRAF demo program are available 66 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 attache...

Page 146: ...347 8747 s OS 095 Q The WinCon 8xx7 supports Max 32 Modbus TCP IP connections since Its Driver version 4 03 096 Q Release two C Function Blocks to read max 24 Words or 384 Bits from Modbus RTU ASCII devices 097 Q How to modify the IP NET ID and Modbus RTU Slave port setting of the W 8347 8747 by an USB pen drive without Mouse and VGA 098 Q Application Link Serial COM Port to the Modbus RTU device ...

Page 147: ...variable by c functions Aver_N or Aver_F 121 Q How to install or remove the ISaGRAF development platform properly 122 Q How To Solve The USB Freeze Problem Of The W 8x4x How To Update The W 8x4x s OS Image 123 Q How to move the InduSoft picture faster in the W 8xx6 WP 8xx6 VP 25W6 XP 8xx6 CE6 124 Q A Web HMI Example for ISaGRAF Professional XPAC XP 8xx7 CE6 PRO by FrontPage 125 Q XP 8xx7 CE6 And i...

Page 148: ...P Client to upload log files to remote FTP Server on PC 152 Q How to control the IR module IR 210 IR 712 with the ISaGRAF PACs 153 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 154 Q How to use the FRnet AI AO module with the ISaGRAF PAC 155 Q How to save the value of ISaGRAF variables to the Micro_SD memory in the WP 5x...

Page 149: ... 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 ISaGRAF WinCE ViewPAC CD ROM ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 CSharp net 2008 demo wp_CSharp01 Digital I O demo with one I 87055W in slot 0 of the ViewPA...

Page 150: ... 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 3 Select the Device Application and Windows CE and NET Compact Framework Version 2 0 then click on OK ...

Page 151: ...e 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 2 Select the mscorlib in the list box and click the button OK the component mscorlib must appear in the Selected Components area Mscorlib dll is here Click on Browse to search QuickerNet dll ...

Page 152: ... net 2008 demo wp_CSharp01 subfolder or from your own location 4 When both mscorlib and QuickerNet dll are added you can see them in the solution explorer as below 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 Then you can design all required objects and actions inside your C Forms ...

Page 153: ...the C 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 ex 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 QuickerNet dll Quicker dll and Mscorlib dll can be copied from the ViewPAC s System_disk ISaGRAF path 10 4 Qui...

Page 154: ...Share UserSetCoil Convert ToUInt16 1 1 Demo program ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 25w7 23w7 CSharp net 2008 demo wp_CSharp01 UserGetCoil Description This function is to get the value from a Boolean variable by Modbus network address Syntax UserShare UserGetCoil ushort iUserAddress out byte iStatus Parameter iUserAddress Specify the Modbus Network Address of Variable 1 to 8191 iSta...

Page 155: ...ddress 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 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 ISaGRAF WinCE ViewPAC CD R...

Page 156: ...he variable of Modbus Network Address 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 ISaGRAF WinCE ViewPAC CD ROM napdos isagraf vp 2...

Page 157: ...ul features in ISaGRAF WinCE based PAC Users can visit the ISaGRAF FAQ to understand these usages 11 1 FAQ 167 Develop Your Own C function and C function Blocks in the ISaGRAF WinCE PAC The FAQ 167 provides demo programs to guide users to develop their own C function and C function Block More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC FAQ 167 ...

Page 158: ...to configure the date events such as normal days weekend special holidays make up workdays and four seasons to meet the complex scheduling control needs One ISaGRAF PAC can control many Schedules for maximum 10 control devices Target Each control device Target can control one Boolean one Integer and one Real variable total 3 variables More at www icpdas com Support FAQ ISaGRAF Soft Logic PAC FAQ 1...

Page 159: ...ms that can send a short message to some operator s mobile phone when some emergency occurs The system can create a new file to save the alarm messages in each day Users can also export thease alarm files to a USB pen drive File format csv or txt Users can enable the function of FTP Client to send the alarm file to the control center FTP Server1 FTP Server2 automatically at a fixed time each day O...

Page 160: ...olean 16 bit signed integer 32 bit signed integer and 32 bit Float The system can create a new file to save the alarm messages in each day Users can also export thease alarm files to a USB pen drive File format csv or txt Users can enable the function of FTP Client to send the alarm file to the control center FTP Server1 FTP Server2 automatically at a fixed time each day Or users can also get the ...

Page 161: ...ser Manual V 1 6 1 2017 by ICP DAS Ap 1 Appendix A Hardware System Setting A 1 Applying Correct Power Supply Please apply a regular power supply between 10V 30V 25W or higher is better to ISaGRAF WinCE ViewPAC VP 2xW7 VP 4137 ...

Page 162: ...lection ht ml 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 http www icpdas com root product solutions industrial_ethernet_switch switch_selection html NS 205 10 100M 5 ports NS 208 10 100M 8 ports RS 405 10 100M 5 ports Ring Switch RS 408 10 100M 8 ports Ring Switch ...

Page 163: ...AF WinCE ViewPAC 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 appendix E for more Modbus RTU ports Then please reset the ViewPAC once after the modification to make the new setting work ...

Page 164: ...n double click on Network and Dial up Connections Then click on LAN1 Set your ViewPAC s IP address and its Subnet Mask Please always set as Fixed IP for ISaGRAF application No DHCP Note Please refer to the Appendix D for enabling the 2nd Ethernet port of VP 2xW7 2xW6 4137 4136 Please run Start Programs ViewPAC Utility click on Save and Reboot to store the setting ...

Page 165: ...t and select a program you wish to communicate between your PC and the ViewPAC controller system Next select the Link Setup button on the project screen as shown below 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 Once you have clicked on the Setup button an Ethernet Link Parameters dialog box will a...

Page 166: ... to COM3 RS 232 or COM2 RS 485 if one of them was set as Modbus RTU slave port refer to Appendix A 2 or link to its COM5 to COM8 refer to the appendix G appendix E Options Industrial Ethernet switch http www icpdas com root product solutions industrial_ethernet_switch switch_selection html NS 205 10 100M 5 ports NS 208 10 100M 8 ports RS 405 10 100M 5 ports Ring Switch RS 408 10 100M 8 ports Ring ...

Page 167: ...RAF WinCE ViewPAC is None User may change it to COM2 RS 485 or COM3 RS 232 or None please refer to A 2 Modify The NET ID Modbus RTU port setting Please refer to appendix G appendix E for more Modbus RTU ports Default communication parameter is 19200 8 N 1 If connecting PC to ViewPAC s COM2 RS 485 an I 7520 RS 232 485 converter is necessary as below ...

Page 168: ... mode on the front panel of the ViewPAC Then reset the ViewPAC once 2 Then the ViewPAC 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 System_Disk isagraf directory Then delete the ISA11 The ISA11 is the ISaGRAF current running application If you find no ISA11 in the System_Disk isag...

Page 169: ...ing an I 7000 I 87K remote module please refer to Chapter 6 Linking To I 7000 and I 87K Modules of the User s Manual Of The ISaGRAF Embedded Controller A 9 Linking To An HMI Interface Device One of the COM2 RS 485 or COM3 RS 232 or max four of the COM5 6 7 8 please refer to appendix G appendix E ports of the ISaGRAF WinCE ViewPAC controller system can be used to interface with additional Human Mac...

Page 170: ... 10 A 10 Linking To Other Modbus Devices ISaGRAF WinCE ViewPAC s COM2 RS 485 or COM3 RS 232 or COM5 to 14 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 ...

Page 171: ...ibration process you must first check with the PCB version as follows The latest version PCB 1 7 or later If your PCB version is 1 7 or later there is a rev number sticker between the I O slots The earlier version PCB 1 5 If your PCB version is 1 5 there is no rev number sticker between the I O slots After checking the PCB version then select the calibration process that corresponds to your PCB ve...

Page 172: ...ts button 3 Tap the touch pen in the exact center of each of the calibration markers 2 Run the Stylus 3 Tap the touch pen in the exact center of each of the calibration markers 4 Touch the panel to finish the calibration program 5 Run the View PAC Utility to save the settings and reboot the View PAC ...

Page 173: ...w7 23w7 driver 1 01 Or download it from www icpdas com Product Solutions Soft PLC ISaGRAF Soft GRAF HMI ISaGRAF ISaGRAF Download List Driver 1 If your ViewPAC is VP 2xW7 4xx7 please stop ViewPAC 2xW7 4xx7 ISaGRAF Driver first Click on End Driver to stop it However if it is VP 2xW1 4xx1 ViewPAC without ISaGRAF license please go to step 2 2 Set up ViewPAC s IP Mask FTP directory Auto execute A Pleas...

Page 174: ...Programs ViewPAC Utility Set FTP directory to the root directory Then check all three ftp options as Enable Remember to click on Setting Then click on Auto Execution to do the next step D Please click on Browse to select or type System_Disk isagraf isaViewPAC exe and click on Setting ...

Page 175: ...e files from PC to WinPAC directory System_Disk isagraf The files listed below are the driver of version 1 01 The files may different in different version isaViewPAC exe rs_wphmi exe mscorlib dll QuickerNet dll Quicker dll login dll main dll whmi_filter dll isaViewPAC lnk and license bin if your ViewPAC is VP 2xW1 4xx1 And then re cycle your PAC s power Please open Internet browser and then type i...

Page 176: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 16 Appendix C Hardware Interface Dimension ...

Page 177: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 17 VP 23W7 23W6 Unit mm ...

Page 178: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 18 VP 25W7 25W6 Unit mm ...

Page 179: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 19 ...

Page 180: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 20 VP 41x7 41x6 Unit mm ...

Page 181: ...mple the ISaGRAF WinCE ViewPAC redundant solution need the 2nd Ethernet port Please refer to www icpdas com Support FAQ ISaGRAF Soft Logic PAC FAQ 093 To setup the second Ethernet port in the I 8135W please follow below steps 1 Power off the ViewPAC then install the I 8135W card to ViewPAC s slot 0 first 2 Power on the ViewPAC then run ViewPAC utility to enable the 8135 as below Please check Use D...

Page 182: ...x7 which is working on its LAN2 2 When program the RDN_new in VP 25W7 23W7 25W6 23W6 4137 4136 it is necessary to install the I 8135W in slot 0 and enable the 2nd Ethernet port to make it work Please refer to www icpdas com Support FAQ ISaGRAF Soft Logic PAC FAQ 093 3 When the 2nd Ethernet port is enabled it default supports the Modbus TCP IP slave protocols The first and the 2nd Ethernet port can...

Page 183: ...RS 422 RS 485 Before user can use them please configure them By the ViewPAC utility first Please plug them in the ViewPAC s slot 0 to 2 and then run ViewPAC utility Multi serial port wizard then click on Slot scan The current found multi serial port cards will be listed on the left The original COM port setting is listed on the right Then click Set to update the original setting to become the curr...

Page 184: ...e refer to the section 8 4 of the ISaGRAF User s Manual for multi ports Modbus Master ISaGRAF WinCE ViewPAC can setup max 10 Modbus RTU ASCII Master ports in COM1 to 14 2 Please refer to the Appendix A 4 of the ISaGRAF User s Manual for COM_OPEN COM_READ functions to read write COM ports 3 Please refer to Appendix G of this manual for setting up more Modbus RTU slave ports Pin assignment Example o...

Page 185: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 25 ...

Page 186: ...nimum PLC scan time is about 2 3 ms 1 Slow Mode the minimum PLC scan time is about 6 to 7 ms 2 Slower Mode the minimum PLC scan time is about 9 to 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...

Page 187: ...red 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 that is COM2 or COM3 if enabled COM5 to COM8 are not for ISaGRAF to Stop Download Debug ...

Page 188: ...nch 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 Then the n...

Page 189: ...n 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 3 If the 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 cannot connect controller 192 168 3 5 255 255 255 0 Ho...

Page 190: ... F2 16 A00F3 F3 16 A00F4 F4 16 A00F5 F5 16 A00F6 F6 16 A0030 0 16 A0031 1 16 A0032 2 16 A0033 3 16 A0034 4 16 A0035 5 16 A0036 6 16 A0037 7 16 A0038 8 16 A0039 9 16 A006E 16 A000D Enter 16 A0008 BackSpace 16 A0010 Shift 16 A0025 Left 16 A0026 Up 16 A0027 Right 16 A0028 Down F1_btn F2_btn F6_btn are declared as Boolean Internal variables The following EEP_B_R returns True if the related button is p...

Page 191: ...dle to the same value or setting the System Idle value larger than the User Idle value and then remember to run ViewPAC Utility File Save and Reboot The ViewPAC 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 ViewPAC will turn on the backlight again To disable the screen saver please set...

Page 192: ... and assign its parameter ADR as 9992 and 9993 to read the batteries status Show as the 1st and 2nd line of the LD program listed as below ADR number 9992 the status of battery number 1 ADR number 9993 the status of battery number 2 Use R_MB_ADR function to Detect the Status of Ethernet port Use the Function R_MB_ADR and assign its parameter ADR as 9987 to read the status of the Ethernet ports Sho...

Reviews: