Home
1 NAPOPC DA Server - Kohlenberg Software GmbH
Contents
1. 24 42 qXddip A New lae Por Controllet ioter da rere reo a TE Eee ERE E Ru e Ehud 26 Ln Scale SEIE S oae echte a a a f tea DU aust bodies Dra 28 les xddine Mulu Tags tor Modbus DeyilCe s o d tn etel qe ten 30 1 9 Expand Shrink DEVICES renee Ea He ane ee cee hse RU e uei te pron end Ie pau LU NEU GE 3l BIO RECINTE MES Tom 3l 1 11 Editing A Device Group Tag Properties cc cccssssssssssseseeeeeeeececeeeeeeeseeaesseseeees 33 1 12 Deleting A Device Group Tat us tette ea EHI eet REED UE 33 S Gemera tS 34 LIA Conteurate Initial Stas sio eel hr d qudsteu td meteo squid iot demets 35 I EE e 35 Llo SADOUED2 22 9 009 a 36 2 GI NICE S UU m 38 5 Connect TO OPC Serv Cf accountant toits icai adi ette sce rtp s eet nd enone 39 sl Optimize Y out Cormprublcallofiss e be ebat sets eite ees ubutesotu sim bal out 39 52 VBS Client Demo Pro rain iuc eus else eet eine means Hips AT eas eee 42 Bet NEUE ME Demo sO TA Mes Roter bn lee ti uiuo Notae bonded acai otto eter 45 24 THACTOLY SOILS Client PRO OTANI usse otn bobo cepe e Mb De pe a anette aera 47 r EVIE RE 49 3 0 NATIONALCINSTRUMEN TS ecos uod uta OD Tue oie thee eater gases 5 2S7 WAZ COIN aeee aa eet Gaeta Sepe bored Su tari Pe fepe idi od ice ceu coUe de LO Me 56 55 Uu d P 62 9 MUSO aa tL E LN 67 IO Piczo e AD REIS UU E IU LLLI 74 2 REME RCC CSS IO eoi a bat tt atts saul aetna Uto Did
2. Band Rate 115200 Data Bis E RIM c Stop Bits te mend Pending Time 1000 ms Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module Address opecifies a Address for this controller The default value is 1 and the valid range is between 1 to 247 Timeout opecifies timeout Response time value for this controller The default value is 200 ms A smaller timeout value may cause communication failure Port You have to set up the value with 502 for communicating with l 7188EG or l 8437 1 8837 IP Address The unige IP address of your Modbus TCP controller Ver 3 09 Date Oct 10 2008 Page 17 NAPOPC DA Server User s Manual Word Swap The Word Swap checkbox switches the interpretation of 4 Byte values Sometimes we need to make the checkbox TRUE in order to achieve the purpose of Lo Hi Hi Lo communication Simulate I O The Simulate I O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the TCP IP port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware Request Tag Number The Requested Tag Number sets tag value numbers that each command will get from device For ISAGrAF it sho
3. Configure Modules or Controllers Use DCON Utility to set modules Refer to CD Napdos 000 manual GetStart PDF manual Use ISaGRAF to configure the I 7188EG XG or I 8xx 7 Install the OPC server Install the NAPOPC on your computer Run the OPC Server Launch the OPC server by executing C ICPDAS NAPOPC NAPOPCSvr exe Search Modules Refer to the 1 3 Search Modules section to search modules in the RS 485 network Add a new controller Refer to the 1 5 Adding A New Device section to add a new modbus RTU or modbus TCP controller Save Configuration Save the configuration by clicking File Save menu item Close OPC server Close OPC Server by clicking File Exit menu item Connect to OPC server Run your client program and connect to our OPC server by linking NAPOPC Svr or NAPOPC Svr 1 Please refer to user s manual of your client software provided by your vendor This forces the system to run the OPC server automatically in background Ver 3 09 Date Oct 10 2008 Page 38 NAPOPC DA Server User s Manual 3 Connect To OPC Server The OPC is defined by the OPC Foundation and any client program supporting OPC can connect to OPC server for example Lab VIEW v5 0 and WIZCON 7 51 Any computer language supporting the COM mechanism can also connect to the OPC server directly through the COM interface The first section shows you how to optimize your communication And the following sections show
4. If the OPC Client and the OPC Server are at the same computer we said this kind of architecture is Local Accessing In other words if the OPC Client should access OPC Server through a network we said this kind of architecture is Remote Accessing The following figure shows the integrated architecture including Local Accessing and Remote Accessing At the real Process Industry the two ways are often used at the same time At the Process Management Layer we often use Local Accessing architecture to monitor and control manufacturing processes At the Business Management Layer we just set up the OPC Client to collect the process information from the Process Management Layer If you just want to construct the Local Accessing architecture you do not need to read this chapter If you want to construct the Remote Accessing architecture you have to know how to set up the DCOM between OPC Client and OPC Server Business Management Layer Es Process Management Layer OPC Client OPC Server OPC Client a ee ey Equipment T Distributed I O DCS amp PLC Figure 4 0 1 Local access and Remote access architecture Ver 3 09 Date Oct 10 2008 Page 94 NAPOPC DA Server User s Manual 4 1 System Requirement To access a remote OPC server over a network it is required to enable the DCOM mechanism on both stations where the client and server are resided It is not possible to launch a secu
5. Ver 3 09 Date Oct 10 2008 Page 58 NAPOPC DA Server User s Manual Step 13 Click on the far right icon the arrow to close the WIZCON Wiscon User name user Step 14 Restart the WIZCON Step 15 Select the Tags item from the left hand window Step 16 Right click the mouse button and select the Add Tag option to add tag s test Micon Applicaton Studio File View Design Network Tools Help jE aa gaa aoa Slr All Containers test B Ls Web Application HTML P Events Summary Profile id Trends Profiles 5 L Files Tea Images 3 Events Summaries Charts History Viewer E Model Recipes fh Layouts Tele s lsg single Tag inl Add View Step 17 Enter a tag name in the Tag Name field Step 18 Select PLC in the Tag Source field Step 19 Select NAPOPC in the Driver field Step 20 Select Always in the Sample field Step 21 Click on the button is set the Address field E Tag Definition NEW Tag General Record DDE m i Tag Name AID Groups Description Tag source PLC i Driver NAPOPC sample Rate Address e C In Monitor D Set Address c Hass se us Value 2 Cancel Apply Help Ver 3 09 Date Oct 10 2008 Page 59 NAPOPC DA Server User s Manual Step 22 Select a tag and click on the OK button Add Item Item Name 7012D_1 Als Choo OK Browse items Filter Cancel E Root O12D_1
6. test1 by using Users and Passwords in the Control Panel and set its Group as Power Users as follow NOTE On the client site remember to create the test1 account which has the same Username and Passwaord with one on the server site Users and Passwords i x Users Advanced _ Use the list below to grant or deny users access Eo your Aet computer and to change passwords and other settings v Users must enter a user name and password to use this computer Users For this computer BET Administrator Administrators i Guest Guests Power Users i Add Remove Properties Password Far testi Ls To change the password For test click Set Password Set Password m __ Step 2 Run the DCOMOCnfg EXE program Step 3 Select the Default Properties tab page Step 4 Use the following settings Field Name Setto Enable Distributed COM on this computer Checked Default Authentication Level Default Impersonation Level Ver 3 09 Date Oct 10 2008 Page 107 NAPOPC DA Server User s Manual Distributed COM Configuration Properties l 2 x Applications Default Properties Default Security Default Protocols ble Distributed COM on this computer Enable COM Internet Services on this computer Default Distributed COM communication properties The Authentication Level specifies security at the packet level Default Authentication Leve
7. 200 slot E i 0 7 for BE Modules Checksum Disable T entroller M 7E Device Controller Setting O Quicker IEC Modbus TOL O Modbus RTU adress Timeout O GRAF IP Addrezs Msg Delay C H 7E Port CI Word Swa COM Fort Setting com 1 Parity oe Baud Rate 115200 Data Bits 7 Stop Bits quest Tag Number Coil Register D Patine tine UU ms Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module Address valid range is between 1 to 247 Timeout Specifies a Address for this controller The default value is 1 and the Specifies timeout Response time value for this controller The default value is 200 ms A smaller timeout value may cause communication failure and a larger timeout value may reduce the performance of the client program Ver 3 09 Date Oct 10 2008 Page 19 NAPOPC DA Server User s Manual Msg Delay opecifies message delay value for this controller The default value is O ms A smaller msg delay value may have a higher system loading but it will have a faster data exchange speed Word Swap The Word Swap checkbox switches the interpretation of 4 Byte values Sometimes we need to make the checkbox TRUE in order to achieve the purpose of Lo Hi Hi Lo communication
8. Cancel Click on the Cancel button to avoid any changes Step 5 Click on the OK button to add this new device Ver 3 09 Date Oct 10 2008 Page 20 NAPOPC DA Server User s Manual 1 5 4 Adding A New Quicker UPC Controller Before adding a new Quicker UPC controller please check RPC Server and Active ScanKernel at Services Setup dialog of Quicker UPC ees Lol xz ee mW B057 1 Channel Locatio mH 8041_2 2 DO Digital Output lf sos3 3 m s7057 4 EGAS A H A 870415 e H 87052 8 a Server 505 Modbus TEP H H sryOisR 7 wd Active Scankernel c r 87054 8 Port number U Slave number 1 Modbus RTU 1 Modbus RTU 2 CoM port Comz v COM port Baudrate 9600 v Baudrate Parity Mone v Parity Data Bits B8 RTU w Data Bits Stop Bits 1 v Stop Bits Step 1 Click on the Add New Device menu item or the icon to add a new module ee Edit View Options Help New Device Chup New Group tb New Tag Ctrl I search Modules Ctrl M Step 2 The Device Properties dialog box pops up Step 3 Click on the Controller radio button Step 4 Click on the Quicker UPC radio button Ver 3 09 Date Oct 10 2008 Page 21 NAPOPC DA Server User s Manual Device Properties EJ Device Hame Devices CQ J 7EA SEA 87E NO Module Module Setting O Hi x sl ee os O WithContoller Contoler ek xl Address 02555 Timeout mec Slot 0 7 for SE Modules
9. Open a NAPOPC Document Click here to browse more files 01 TsaGRAF TEST tb U2 SaRAF TESTI tdb U3 WINCON 8837 tdb 04 NAPOPCI tdh NS NW A P OPC tdh 4 Step 5 Click on the OPC Add ltem menu item to add existing tags Step 6 Browse the tree list Then double click on the tag to add Ver 3 09 Date Oct 10 2008 Page 47 NAPOPC DA Server User s Manual Add Item g Access Path SS Add Item Item Name 1esEG_TCPIC BIL Done Browse items IHS8SEG TCP IG IHS8S8EG RIU 10 218437 TCE zi IO FO50D Dls DOs Data Type Use native type t Bool f Short Filter C Long Double C String Step 7 Click on the Done button to close Step 8 The window shows the values of selected tags FA NAPOPC Svr 1 FactorySoft OFC Client File OFC View Help Ta I 8S8EG TCPIO BII Plesk TCP IO TI I 88EG TCP IOV Plesk TCP IO Vz Plesk TCP IO V5 PilseEG TCP IO 4 Plesk TCP IOVS Ver 3 09 Date Oct 10 2008 mmx OFS 14 25 10 OFS 14 25 10 OFS 14 28 10 OF 14 28 10 OFS 14 25 10 OFS 14 25 10 Uem 14 28 10 OFS 14 28 10 Page 48 NAPOPC DA Server User s Manual 3 9 LabVIEW Step 1 Run the LabVIEW program and select Open gt Example 2 LabVIEW 6568 Fie Edit Tools Help ON NSTRUME p INSTRUMENTS Open an essing virtual msteument Examples fa LabVIEW KI Help T Step 2
10. Tag selected MTCP S054 D0 Do Tag Value False Count 4711 Ver 3 09 Date Oct 10 2008 Page 44 NAPOPC DA Server User s Manual 3 3 Net Client Demo Program We provide another two OPC client demo programs for Visual Basic Net 2003 and Visual CZ Net 2003 It s placed under the following folder ICPDAS NAPOPC Client OPC_NetClientDemo VBOPCClient_ Demo and ICPDAS NAPOPC Client OPC_NetClientDemo VCSOPCClient_ Demo after installation of our NAPOPC server Step 1 Launch the client demo program VBOPCClient Demo exe or VCSOPCCIlient Demo exe The client program set NAPOPC Svr 1 as default OPC Server Step 2 Click on the Connect button YBOPCClieat Demo e Step 3 Select a file which you want to use and click on the OK button Open a NAPOPC Document Click here to browse more files 01 IsaGR AF TEST tdb 02 ISasRAF TESTI tdb U3 WINCON 8837 tdb 04 NAPOPCI tdb NS Ma POPCS tdh 4 The following steps 4 5 are read operation of Modbus TCP controllers Step 4 Select a tag matching on your configuration For example Select the i 8437 controller DO group and DO1 tag in the tree view window Step 5 Click on the Read button to read the MTCP 8054 DO DO value Ver 3 09 Date Oct 10 2008 Page 45 NAPOPC DA Server User s Manual VBOPCCheat Demo Server name NAPOPC Svr 1 e HMICP 81054 DO DOT1 Gli ble Dis Dlg DIS E sa E p Ble Do1 W
11. Checksum contiones MK Device Controller Settmg G Owcke UPC O Modbus TCP O Modbus RTU agaress 1 Timeout 200 QO oGRAF IP Address 192 168 255 1 Msg Delay CQ Port 505 C Tu COM Port Setting CoM Parity Baud Rate i Data Bits stop Bits C Bequest Tag Numbi Coil Register Simulate 110 does not access the RS 485 Modnus device D Peine tire OD ms Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module Timeout opecifies timeout Response time value for this controller The default value is 200 ms A smaller timeout value may cause communication failure and a larger timeout value may reduce the performance of the client program Simulate I O The Simulate I O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the COM port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware Port You have to set up the value with 505 for communicating with Quicker or UPC IP Address The uniqe IP address of your Quicker or UPC controller Ver 3 09 Date Oct 10 2008 Page 22 NAPOPC DA Server User s Manual OK Click on the OK button to add the new controller setting Cancel
12. Click on the Cancel button to avoid any changes Step 5 Click on the OK button to add this new device Step 6 After clicking on the OK button NAPOPC will automatically synchronize and generate the modules of Quiker UPC m r F 7 i ES wt search Expand ehrnk Monitor New Open nave Device Croup Tag ChamelLocation 5 H 8057 1 choo Bit Output a Dos 2 cho Bit Output 5 H 80412 ch Bit Output 2 dr DOs ch Bit Output 3 H snsi 3 z Chi Bit Output 4 ds DI cho5 Bit Output 5 H 87057 4 cho Bit Output 6 a DOs cho Bit Output 7 H 87041_5 chig Bit Output 8 a DOs chig Bit Output g H s7052 6 2 chio Bit Output 10 a gt Di chil Bit Output 11 dr DlCounter Chi Bit Output 12 des LatchLowDIs chi3 Bit Output 13 des LatchHighDIs chi4 Bit Output 14 HH B7DiSR 7 Chl5 Bit Output 15 des Als H 87054 8 des DI dr DOs dr DICounter des LatchLowDIs a gt LatchHighDIs 1 6 Adding A New Group If the device you add is Quicker UPC you do not need to add groups manually NAPOPC will automatically synchronize and generate the modules of Quiker UPC Step 1 Click on the Add New Group menu item or the e icon to add a new group Edit View Options Help Option Help New Device Ctr New Group New Tag Ltt T a Bb search Modules Ctrl M Bit Input Bit Input a Ver 3 09 Date Oct 10 2008 Page 23 NAPOPC DA Serv
13. 3 0 oie ORE eR a Re teli ee 129 M REI W TO Keme T O E 129 6 1 2 Customized Module Device Polling Time eeeeeeeeeeeeeeeee 129 6 3 Miulti Lhread Cormmiubicatloftss ue pev phia deam eM D m t 129 oE NBSECDP OU Sper cet sete bc A E MIA LUI iene 130 6 2 New ieatures of NAPOPC version 2 09 indie aad ae 130 6 2 1 Support Remote Procedure Call with Quicker UPC eeeeeeeesss 130 6 2 20 Switch of Single Thread and Multi Thread eseeeeeeeeeeeesssss 130 FEN RT ER mE 131 Ver 3 09 Date Oct 10 2008 Page 3 NAPOPC DA Server User s Manual 1 NAPOPC DA Server The NAPOPC DA Server uses an Explorer style user interface to display a hierarchical tree of modules and groups with their associated tags A group can be defined as a subdirectory containing one or more tags A module may have many subgroups of tags see page 8 All tags belong to their module when they are scanned for perform I O The OPC stands for OLE for Process Control and the DA stands for Data Access The following two figures show the difference between traditional mechanisms and the OPC mechanism Application X DevceA Access Mechanism A Application Y Device B Access Mechanism B Device C Access Mechanism C For accessing the various devices for any application there are many different mechanisms provided by different vendors Figure 1 0 1 Trad
14. 8000 sub device to plug in This slot field indicates the slot number that the 8000 sub device is using The valid range is from O to 7 This field is disabled for 8000 main device and 7000 series modules Checksum This checksum field must match the hardware setting A mismatch will always cause a communication failure with this module This field is disabled for the 8000 sub devices and it will use the 8000 main device s checksum COM Port Specifies the COM port to be used Please verfiy which COM port number that the RS 232 RS 485 network is using Wrong settings will always Cause communication failure This field is disabled for the 8000 sub devices It will use the 8000 main controller unit COM port setting Baud Rate Specifies the baud rate to be used Verify the module s current baud rate A wrong setting will always cause communication failure for this module This field is disabled for the 8000 sub devices It will use the 8000 main controller unit baud rate Simulate I O The Simulate I O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the COM Ver 3 09 Date Oct 10 2008 Page 15 NAPOPC DA Server User s Manual port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware This field is disabled and not used for the 8000 main controller unit Pending Time Minimum interval time between t
15. COM Port opecifies the COM port to be used Please verfiy which COM port number that the RS 232 RS 485 network is using Wrong settings will always cause communication failure Baud Rate opecifies the baud rate to be used Verify the module s current baud rate A wrong setting will always cause communication error for this controller Simulate I O The Simulate I O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the COM port it is an easy way to work with the server to configure tags or to connect clients without requiring any hardware Pending Time Minimum interval time between two access To activate this function NAPOPC can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC will automatically spread time resource to other modules which are connected with each other Request Tag Number The Requested Tag Number sets tag value numbers that each command will get from device For ISAGrAF it should less than 124 for coil and register For 7188MTCP it should less than 498 for coil and 127 for register The default numbers are both 122 For Modbus standard it can t greater than 2000 for coil and 127 for register ISaGRAF Connect control with run ISaGraf firmware M 7K Connect M7K module OK Click on the OK button to add the new controller setting
16. Ch 5 Bit Input 5 H8 70600 Chif Bit Input 6 The Search Modules function generates Digital Input Digital Output Bit Input or Bit Output tags The Digital Input and Digital Output tags use one communication to read the status of all channels while the Bit Input and Bit Output tags use one communication to read only one channel status The Digital Input and Digital Output tags have better performance than the Bit Input and Bit Output tags Using the Digital Input and Digital Output tags to access modules is highly recommended lcge Ehe Ban Hel a ay E amp 4 t F e E n Teg k d 1 J 5 amp Pa I New Open ave Device Group Tag ener search Expand shr Type Channel Location Bit Input 0 Bit Input Bit Input h Bit Input 3 aT 4 5 h 70600 6 1 4 Monitoring Devices Use the Monitor function to see values of tags by checking the View Monitor menu item Uncheck the item to stop monitoring Step 1 Click the View Monitor menu item or the 5 icon to enable monitor Ver 3 09 Date Oct 10 2008 Page 12 NAPOPC DA Server User s Manual File Add Edit ET Options Help psi E search Expand shii i Toolbar NN Twpe Channel Location amp Choo Bit Input 0 Chol Bit Input Choe Bit Input S Ch Bit Input 3 a LatchLowDIs Chod Bit Input 4 de LatchHighDls amp Chos Bit Input 5 RB T0600 2 choo Bit Input 5 d
17. ES zy RII Model Recipes at single Tag DDE Blocks Application Macros Wilzcon an f Layouts Setup Language bs d Reparts For Help press F1 Ver 3 09 Date Oct 10 2008 Page 56 NAPOPC DA Server User s Manual Step 4 Click on the Add button to add new drivers Communication Drivers Pix EE The following communication drivers are defined in the application Logical Ma Device Mame Farameters Remove Froperties e Step 5 Select the OPC Client item Step 6 Click on the Next gt button Commuucation Driver Setup Wizard Please select the communication driver from the list Omron AnvMNet TP IP Omron BS JES Description OLE for Process Control Client 9p Next gt Cancel Help RT Ver 3 09 Date Oct 10 2008 Page 57 NAPOPC DA Server User s Manual Step 7 Enter the driver name for example NAPOPC Step 8 Select the OPC Server Name as NAPOPC Svr 1 Step 9 Click on the Test Access button to see if the OPC server can be accessed Step 10 Click on the Finish button Cionmnunacation Driver setup Wizard NAPO PC Specify a unique logxal name for the diver Name NAPOPC OPC OPC Client Fead Write Out of Block Step 12 Click on the OK button to close the window Communication L i EIS All changes in communication driver definitions will be applied only after program is reloaded
18. Input and Register Output Data Type Short 16 bits 32768 32767 Long 32 bits 2147483648 2147483647 Float 32 bits float numbers Word 16 bits 0 65535 DWORD 32 bits 0 4294967295 Modbus Address From modbus address number of start tag 1 65535 To modbus address number of end tag 1 65535 Ver 3 09 Date Oct 10 2008 Page 30 NAPOPC DA Server User s Manual Separation Separation numbers between each tag 1 100 OK Click on the OK button to add the new tag setting Cancel Click on the Cancel button to avoid any changes 1 9 Expand Shrink Devices Click on the Edit Expand device Shrink device menu item or the e icon to expand shrink all devices dd Bini View Options Help 1 10 Read Write Tags First you have to use the Monitor function to see values of tags by checking the View Monitor menu item Select a tag and right click the mouse button Then select the Properties option Choose the Read amp Write page to read write the tag Step 1 Click the View Monitor menu item to enable monitor Step 2 Select a tag and right click the mouse button Then select the Properties option Step 3 Choose the Read amp Write page You can see the Tag name and Access right at the first If the access right is Read only the write function is disable Ver 3 09 Date Oct 10 2008 Page 31 NAPOPC DA
19. SCAICFDASW APOPCYWInCon tdb Exit A FA Print Setup Choose and setup printer He ICPDAS NAPOPC DA Server er3 00 New CtlhN T A E Open coho S gu JT cave Ch Tag Mult Sener search Expand nave As Ctd Print 1 OAICPD ASW APOPCAE W tab 2 LNCPDASAN APOPC Chucker td b SUCNCPDASAN APOPCAWmton tb Exit A FA Print Preview Preview current modules list E ICPDAS NAPOPC DA Server er3 00 zc 97024 1 BENT Add sit View Options Hdp o amp AO im FA NP 87017_2 Mew CUN ws uU B Ab pen Chro cJ 7058 3 Save Ctlts i Gen iy DIs Save As Cha DICounter i ds LatchLowDIs Print sety i Latch HighD Is C Print Preview 7033 4 ds Als zB 704ID 5 cCMCPDABANAPOPCAE W tdb Di 2 CAICPDAAW A POPCWQuicker tdb Wi a SUCNCPDASAN APOPL Winton tdb d Latch HighD Is 7024 6 Exit Alt Fa CB de Ao Ver 3 09 Date Oct 10 2008 Page 8 NAPOPC DA Server User s Manual Print Print current modules list gt ICPDAS NAPOPC DA Server Yer 00 File Add Edit View Optons Help New Cth pen Lal nave Cels nave Ls Ctl Print Setup lCAMCPDASAN A POPCANE W tdb CAICPDASAN APOPC Wacker tdb SCAICPDASAN APOPCAWmCon tdb Exit Alt P4 i 1 3 Searching Modules The Search Modules function lets you configure the OPC server automatically It searches the RS 232 and RS 485 network to find modules and then g
20. Step 3 Create the new project InduSoft Web Studio Display File Edit View Insert Project Tools Window Help jus s 7 amp mis s Rc w Bill gt s A aa Je eBid We S m E m gsm m es tl co e me e Workspace Cg Project MyOPCTest APP rg Screens rg Group Screen aj amp Database lp Graphics 2NuU LHEG60 59 8 REF o G3 SE Ee eee a a Ver 3 09 Date Oct 10 2008 Page 68 NAPOPC DA Server User s Manual Step 4 In the Studio Workspace window click the OPC tab right click the OPC folder and click Insert InduSoft Web Studio Display File Edit View Insert Project Tools Window Help ag Hdg e5mex jejlnumxES axal 02 e 6c xele mj ur ok ion oer m es 1L n les S D X d Display Workspace Eig Project MyOPCTest APP fg Drivers d OPC TTT TTTrTTTrTTrT rrr LETETTE TTETTITTETETTTTTETTETTTTTTTTTTTE ETTET TTETTETTEETETTETETTETEETEET gt LEGOA SIN 8 D E 1 3 5 ERE e E nnn TTTrTTrrrrerrerrrrrrrerrrtt TETTETETT ITT LT TTC B Database BP Comm a e yI Name Value alii Continuous i x t s NDBI ADB2 ADB ADBA A 4 5 NLog AXRet 7 s gt ke gd Ere e s ee es ae Step 5 OPC Attributes window pops up OPCCLUDI OFC Description server Identifier Disable Update Rate mz Percent Dead band elatus Remote Server Mame Browse Tahame Item Ver
21. Ul User Interface You can refer to the Ul demo of VB program shown as below Next you need to declare some variables at the General Declarations area of VB code window The most important types of variables are OPCServer OPCGroup and OPCBrowser As the declaration we can use several functions to read write item values through Server and Group variables F3 RAPOPC Test Client maota ag Selected Tag Sample Made Sample Made Sample Made Sample Made Tag Value Head Loop Head Text Counter Write Stop Loop be Declare a new OPC Server object Public Server As OPCServer Declare a new OPC Group object Ver 3 09 Date Oct 10 2008 Page 119 NAPOPC DA Server User s Manual Public Group As OPCGroup Declare a new Browser object Public browser As OPCBrowser Step 3 You can call GetOPCServers to scan the OPC Servers at your PC as the following codes Declare a Variant Variable Dim Servers As Variant Create a new OPC Server object Set Server New OPCServer Call GetOPCServers to scan the OPC Servers on your PC Servers Server GetOPCServers Show the servers on the Combo box Dim lastIndex As Integer lastIndex 0 For I LBound Servers To UBound Servers cbServerList AddItem Servers I If Servers I lastServer Then lastIndex I 1 Next I cbServerList ListIndex lastIndex MousePointer vbDefault Step 4 Next you ll go ahead and add the code rights after you get your connection
22. Value field as below You can also type the value you want to write in the Write Value field and click on the Write button Refer to 4 2 Net Client Demo Program VCSOPCClieat Demo Serer name e roc D ee E MTCP 8054 DO DO1 DH T bi ae Read Value DIS bot Write Value D z DOs D 4 DOS Timestamp 2004 7 8 FF 04 50 47 Quality GOOD Ver 3 09 Date Oct 10 2008 Page 128 NAPOPC DA Server User s Manual 6 NAPOPC Changes List 6 1 New features of NAPOPC version 3 0 The new features of NAPOPC version 3 0 are briefly described in this chapter 6 1 1 New IO Kernel NAPOPC version 3 0 uses new IO kernel IOCtrl DLL and DCON PC DLL to elevate IO communication performance Also the new IO kernel architecture allows customers only to update module ini for getting new module support 6 1 2 Customized Module Device Polling Time NAPOPC version 3 0 allows customers to optimize their communication by setting Pending Time in Device Dialog Customers have chance to spread more time resource to other modules which are connected with each other Please refer to 3 1 Optimize Your Communication in detail 6 1 3 Multi Thread Communication NAPOPC version 3 0 uses multi thread architecture to organize module and device communication Before NAPOPC version 3 0 NAPOPC uses single thread to deal with module and device communication Therefore if NAPOPC connects many modules and devices accessing time
23. folder on the client and server computer lien Site SewerSite Client Site Install NAPOPC Server Platform Windows XP Windows 2000 Configure DCOM Ver 3 09 Date Oct 10 2008 Page 96 NAPOPC DA Server User s Manual 4 2 1 Configuring On the Server Site Windows NT 4 0 Step 1 Run the DCOMOCnfg EXE program Step 2 Select the Default Properties tab page Step 3 Use the following settings Field Name i Setto Enable Distributed COM on this computer Checked Default Authentication Level Default Impersonation Level Distributed COM Configuration Properties Applications Default Properties Default Security Default Distributed COM communication properties The Authentication Level specifies security atthe packet level Detau Authentication Level The Impersonation Level specifies whether applications can determine who is calling them and whether the application can do operations using the client s identity Detault Impersonation Level Provide additional security for reference tracking Ver 3 09 Date Oct 10 2008 Page 97 NAPOPC DA Server User s Manual Step 4 Select the Default Security page Step 5 Click on the Edit Default button to set Distributed COM Configuration Properties Default Access Permissions You may edit who is allowed to access applications that do not provide their own settings Edit Default Default L
24. look for The default setting is 9600 Naturally if multiple baud rates are checked the search will be longer The computer system must close and then reopen the COM ports to communicate with modules when searching for multiple baud rates This also reduces communication performance Thus using the same baud rate and COM port number for every module is highly recommended Select All Sets all of the Baud Rate be checked Please refer to the above Baud Rate Searching section Clear All oets all of the Baud Rate be unchecked nothing to search Please refer to the above Baud Rate Searching section Address Start opecifies the starting address The default value is 1 and the valid range is from 1 to 255 It won t search for an address below these settings Address End Ver 3 09 Date Oct 10 2008 Page 10 NAPOPC DA Server User s Manual opecifies the ending address The default value is 255 and the valid range is from 1 to 255 It won t search for an address greater than these settings Checksum Disabled If this field is checked modules are searched with no checksum If both the Disabled and Enabled fields were unchecked the search would be undefined Checksum Enabled If this field is checked it searches modules with checksum If both the Disabled and Enabled fields were unchecked again the search would be undefined Timeout opecifies the communicate timeout value for each module The default va
25. reduce risk with built in redundancy for servers networks and communications but open data connectivity via OPC client amp server OLE DB ODBC DDE and API as well as over a hundred native drivers CitectSCADA can implement in Windows 98 NT and 2000 Visit http www citect com for more information about CitectSCADA Step 1 Before using the CitectSCADA you need to install and configure the OPC server in the machines you will run it see Chapter 1 Untitled NAPOPC DA Server E x Fie Add Edit view Options m S aD SIR emm Type o ChanneliLocation value Analog Output oO 0 Description cl Ads has 1 Tags A Accessories Frograms J Driver Config Documents DAQPra Startup c Internet Explorer Search Ei Outlook Express 7188e ios HyperSnap De 4 Run Microsoft Web Publishing Microsoft Visual Studio 6 0 Settings d ia CibeckE Runtime Read Me k k k k Shuk Down Ver 3 09 Date Oct 10 2008 Page 74 NAPOPC DA Server User s Manual Step3 Left click the page marked button or select File New Project from the CitectSCADA window menu to build a new project in the CitectSCADA O x Fic View Tools Help QuickStart s Aie nis i s el EE E E ET QuickStart Computer QuickStart Example Setup Step4 Fill a name of new project in the blank and then click OK button to finish this process Name L OFE
26. scaled Maximum value MaxScale Conversion Linear scaled Value Original Value MinRaw IMaxRaw MinRaw IMaxScale MinScale MinScale Square Root Scaled Value sqrt Original Value MinRaw MaxScale MinScale sqrt MaxRaw MinRaw MinScale Deadband In general please keep 0 in this field For more information please refer to the 4 5 1 6 Percent Deadband section in the OPCDA20 Cust PDF manual page 68 OK Click the OK button to save these settings Cancel Click the Cancel button to avoid any changes Ver 3 09 Date Oct 10 2008 Page 29 NAPOPC DA Server User s Manual 1 8 Adding Multi Tags for Modbus Device This function only work when the device s protocol is Modbus Step 1 Click on the Add Multi Tags menu item or the icon to add a new tag Mew Device Cth J New Group tror New Tag Cth T search Modules Ctrl M Reg Output Float Reg Output hort Multi Tags Reg Qutput Float Step 2 The Add Multi Tags Dialog dialog box pops up Step 3 Choose correct Prototype Data Type and key in Modbus address o Add Multi Tags Dialog Prototype O Coil Input Col Output Register Input Register Output Data Type J Short j Long Float DWord separation Cancel Prototype There are four kinds of prototype for modbus tag Coil Input Coil Output Register
27. settings allow DCOM to locate the corect computer Far this application Ifyou make more than one selection then DCOM uses the first applicable one Client applications may override your selections Run application on the computer where the data is located Run application on this computer M Run applicatioN an the following computer 192 168 1 115 A 92 168 1 115 J ted Ae Ver 3 09 Date Oct 10 2008 Page 105 NAPOPC DA Server User s Manual Step 15 Users can also key in the OPC server s computer name in the field NAPOPC DA Server Properties Tx General Location Security The following settings allow DICEN to locate the corect computer Far this application IF vau make more than one selection then OCOM uses the First applicable one Client applications may override pour selections Run application an the computer where the data is located Run application on this computer cs me Step 16 Select the Security page Step 17 Select the Use default access permissions option NAPOPC DA Server Properties Ei E4 General Location Security mERRRRRRERSRRRERRERHARRARARREEREERSRREEEENSERSSERSEESEESERSEREERESERSREAE ee custom access permissions Y ou may edit who can access this application cancel Aow Ver 3 09 Date Oct 10 2008 Page 106 NAPOPC DA Server User s Manual 4 2 3 Configuring On the Server Site Windows 2000 Step 1 Create a new user
28. test 2 Description Locatior C ACitect U ser PLE test Browse Page defaults Template style Standard m Template resolution Default Show template title bar Background colour Cancel Help Ver 3 09 Date Oct 10 2008 Page 75 NAPOPC DA Server User s Manual Step5 Click the Express I O Device Setup icon to set all communication parameters un OPC_test Citect Explorer File View Tools Help Maa PC test Bl iall Al Em Project List Contents of Communications i My Projects 35 3 C Example 35 H3 Je EE Express If TO Servers Boards Ports Moderns TO Devices Graphics Device Setur J Tags l uu Lm Alarms J System ilil IO Cicade Files Remapping CitecEVBA Files ES Step6 Start up the Express Communications Wizard Dialog Express Communications Wizard The Can Do Software This wizard sets up communications Far an IO Device and optimises the runtime performance of the 10 Device Tou can also use this wizard For the configuration of Memory and Disk LO Devices X Back q Next gt X Cancel Help i am Ver 3 09 Date Oct 10 2008 Page 76 NAPOPC DA Server User s Manual Step7 Create a new I O Server and define a name called OPCServer for that one Express Communications Wizard E E X Select the 70 Server you wish to work with au may create a new O Server by entering the desired name or select
29. the communication status has something wrong the shows Bad And the other situation is Uncertain Maybe you do not click the View Monitor menu item to enable monitor etc Write Value Value You can press the Write button to write the value you key in to the tag If the tag data type is Boolean the write value 0 means OFF and the write value not 0 means ON 1 11 Editing A Device Group Tag Properties To edit a existing Device Group Tag just select the Device Group Tag and right click the mouse button Then select the Properties option a I 188EG TCP Choo LatchHigh Eitin fe E ca nt chil LatchHigh Bitln 2 I7198EG_RTU f I7198EG_RTU E Chie LatchHigh Bitin e ei Als Chi LatchHigh BitIn Dos O Delete LsiebHsah Bitin d Counter hos h Bitln e e Cownterstatus c Il c HOG sh Eitin Delete New Group des LatchHighDIs Roun New Tag di LaichLowDis Properties Properties Figure 1 11 1 Figure 1 11 2 Figure 1 11 3 Figure 1 11 1 Select a device and right click the mouse button Then select the Properties option Figure 1 11 2 Select a group and right click the mouse button Then select the Properties option Figure 1 11 3 Select a tag and right click the mouse button Then select the Properties option 1 12 Deleting A Device Group Tag To delete a existing Device Group Tag just select the Device Group Tag and right click the mouse bu
30. to the NAPOPC Server Please refer to following TagReadWrite and DataChangeHandler subroutine of VC demo program Handles of data change callbacks public void DataChangeHandler object sender DataChangeEventArgs e public void TagReadWrite ICPDAS SynclOGroup grp RefreshGroup rgrp ServerTreeBrowser iTree string tagId Step 5 Now you can add codes for the Read button Write button and TreeView AfterSelect function Please refer to the btnRead Click btnWrite Click and tvrags AfterSelect subroutine of VC Net demo program In these three functions the Grp Read the Grp Write and the TagTree TagName are three key methods Read the OPCTag value after the read button press private void btnRead Click object sender System EventArgs e Write the value in the text box after the write button press private void btnWrite Click object sender System EventArgs e The action after selecting the tag private void tvTags AfterSelect object sender System Windows Forms TreeViewEventArgs e Ver 3 09 Date Oct 10 2008 Page 127 NAPOPC DA Server User s Manual Step 6 You can build the project and you will see the Ul as below VCSOPCChenat Demo Serer name lt a D Read Value Write Value Timestamp Ciuality Step 7 After you click on the Connect button you will see the OPC Server tree list You can choose one of them and click on the Read button You will see the tag value at the Read
31. to the NAPOPC Server Please refer to the Fillltems and Branch subroutine of VB demo program Generate the tree of tags Private Sub FillItems Populate the sub branches in the browser tree Public Sub Branch Count As Integer nodel As node Step 5 Now you can add the code for the Read button and Write button Please refer to the btnRead Click and btnWrite Click subroutine of VB demo program In these two functions the an tem Read and the anltem Write are two key methods Read the OPClItem value after the read button press Private Sub btnRead_Click Write the value in the text box after the write button press Private Sub btnWrite Click Step 6 You can build the project and you will see the Ul as below Ver 3 09 Date Oct 10 2008 Page 120 NAPOPC DA Server User s Manual Ej NAPOPC Test Client Jog C CINAPDOPC Svr r Pannen Tag Selected Tag Tag Value Text Counter Step 7 After you click on the Connect button you will see the OPC Server tree list You can choose one of them and click on the Read button You will see the item value at the Tag Value field as below You can also type the value you want to write in the text box and click on the Write button Refer to 4 1 Client Demo Program E E NAPOPC Test Client Max OPC Server IMAPOPC S vr Conriect Disconnect Tag selected 1 188EG_TCP IO Tag Value 388 3 Counter 5 2 Programming with Net 9 2 1 L
32. will increase observably By NAPOPC version 3 0 customers have chances to group modules and devices into several parts and connect via different COM port One COM port works in one thread All TCP communications belong to one thread Here is an example to show the difference of average scan time between NAPOPC version 3 0 and before NAPOPC version 3 0 CPU 2 666 HZ gc RAM 512 MB I 87017 COM 1 f 1 87058 Com Port Setting Baud 9600 Parity None Data bits 8 Stop hits 1 Under the same architecture the average scan time in NAPOPC version 3 0 is 3 5 ms and 539 ms separately Before NAPOPC version 3 0 the average scan time is 1109 ms Ver 3 09 Date Oct 10 2008 Page 129 NAPOPC DA Server User s Manual NAPOPC Version 3 0 Multi thread communication Avg Scan Time Before NAPOPC Version 3 0 single thread communication Avg Scan Time 1109 ms 6 1 4 Miscellaneous e Remove import export CSV file function e Remove debug logging function 6 2 New features of NAPOPC version 3 09 6 2 1 Support Remote Procedure Call with Quicker UPC NAPOPC version 3 09 supports RPC Remote Procedure Call communication with Quicker and UPC ICP DAS Universal Protocol Converter Based on RPC service NAPOPC can synchronize OLE data with Quicker and UPC automatically The behavior of changing data between Quicker UPC and NAPOPC is not polling from NAPOPC but sending from Quicker UPC This mechanism can transfer data effec
33. you how to connect to OPC server by using client program provided by Factory Soft Inc Lab VIEW Server Explorer provided by National Instruments WIZCON iFix InduSoft and CitectSCADA To connect to OPC server by other OPC client please refer to your OPC client user s manual 3 1 Optimize Your Communication IE 187024 CPU 2 66G HZ if RAM 512 MB l 187017 i 187058 Com Port Setting Baud 9600 Parity None COM 2 Data bits 8 Stop bits 1 Figure 3 1 1 Communication architecture of I O modules Figure 3 1 1 is a figure of communication architecture of I O modules NAPOPC server accesses to l 87024 1 87017 1 87058 1 7024 1 7033 1 7041 via serial COM port The assumed situation we only need the interval time of accessing I 87024 and l 7024 is 1 sec The interval time of l 7041 and I 87058 is 3 sec However we want to update l 7033 and l 87017 every 100 ms For this purpose we can achieve it by seven steps as below Step 1 First of all we try to connect all modules on COM1 and to auto search these modules Ver 3 09 Date Oct 10 2008 Page 39 NAPOPC DA Server User s Manual Type Analog Output H 870172 Chil Analog Output a gt Als 2 Ch032 Analog Output Hf svuss 3 Chis Analog Output a DICounter des LatchLowDIs des LatchHighDIs 7033 4 des Als TO4ID 5 des Dis a DICounter des LatchLowDIs des LatchHighDIs R 7024 6 Step 2 Connect OPC client to NAPOPC Server At the status bar of NAPOPC wi
34. 0 write Head Value Write Value Timestamp ZOO FF 07 08 50 Cuality Ver 3 09 Date Oct 10 2008 Page 125 NAPOPC DA Server User s Manual 5 2 4 Building Your VC Net Client Step By Step Step 1 W Install OPC DA Component 2 0 on your PC B Start a new VC Net project with Windows Application Program B In VC Net click Project gt Add References on the VC Net menu bar B Click Browse to select OPCNetWrapper dll as shown below Fuld ern e NET COM Projects Browse Component Name Version Path Accessibility dil 1 0 5400 0 CAMINDOWS Microsoft NET Select adodt F 0 500 0 CAPragram FilestdMicrasnlt HE D 3 CH sPacksgel ib 3 1 5501 CAPre gram FileslCammoan File CrystalDecisions CrystalHepor 9 1 5400 CAPregram FileslCammoan Fibe CrystaslDecisions HepertSoerce 9 1 5000 0 C Pregram FilesliCammsn libe Crystsllecissons Shared 3 7 5000 0 CAPregram Files Cammen File CrystalDeciasons Web 3 1 5000 0 CAPrTegram Files Cammean File CrystalDecissons Windows For 3 1 5000 0 CAPrTegram FilesWommen File CrystslE nterpriseLih 3 1 58n0 8 CAPregram Fila emman File Crysitsallnbsstenel ib 3 1 58n00 8 CAPregram Filea lammen File Ei ili 3 1 5000 CAPrTegram FAilgap amman Filt bar if i CAPrTegram Filg amman Filt T T e MET TTE umrmls aod citm sistrp IE Ok Caner Help Step 2 First you must using directi
35. 008 Page 41 NAPOPC DA Server User s Manual 3 2 VB5 Client Demo Program We provide three OPC client demo programs for Visual Basic 5 0 Visual Basic Net and Visual CZ Net It is placed under the ICPDAS NAPOPC Client folder after installation of our NAPOPC server Note The Net demo programs could compatibility for Visual Studio Net 2003 or later Step 1 Launch the client demo program The client program will search the system registry to find OPC servers The new servers will be added to the list Step 2 Select the NAPOPC Svr 1 OPC Server Step 3 Click on the Connect button Je Factorvsoft Rapid service 1 Factonmoft Mod busshell 1l Fac OCSTE D Sim 32 Matrikon OFC sinter e re intel Counte 0 Wirit Exit Step 4 Select a file which you want to use and click on the OK button Open a NAPOPC Documen Click here to browse more files 01 saGRAF TEST tb U2 SaRAF TESTI tdb 03 WINCON 8837 tdb 04 NAPOPCI tdb NS NW A P OP C tdh 4 The following steps 5 6 are read operation of Modbus TCP controllers Ver 3 09 Date Oct 10 2008 Page 42 NAPOPC DA Server User s Manual Step 5 Select a tag matching on your configuration For example Select the i 8437 controller DO group and DO1 tag in the tree view window Step 6 Click on the Read button to read the MTCP 8054 DO DO1 value mr NAPOPC Test Client oeo OPC Server MAPOPC Svr Dis
36. 1S8EG TOPO I7188EG TCP IO V1 4 15 52 49 863 og I7188EG TCP IO E Er inisBEG TCP lO v2 I7188EG TCP IO V2 4o 15 52 49 853 d I7188EG TCP IO B dr ln18BEG TCP lO v3 IT188EG TCP IO v3 15 52 49 863 cog I7188EG TCP IO T oes ETER L7 15 52 49 863 oo rT 188EG TCP IO V PInisSEG TCP lO V5 I7188EG TCP IO V5 p 52 49 863 og Ic188EG TCP IO V dr IDMIBBEG TCP lO V og Ic188EG TCP IO V og ITiBBEG TCP IO Vt V i l C Program Files Mational Instruments nati codb Ver 3 09 Date Oct 10 2008 Page 55 NAPOPC DA Server User s Manual 3 7 WIZCON Wizcon for Windows and Internet is a powerful HMI SCADA software package that delivers real time and historical information from the plant floor to the boardroom and beyond For more information please visit http www emation com Step 1 Run WIZCON Version 7 51 or newer program The First Web based SCADA System Fil WINDOWS s NICO S Version 7 51 EM er Pet PC E Oo FT Copyright i2 1999 PC Soft International Ltd INTERNATIONAL All riahts reserved Step 2 Create a new project Step 3 Click on the Communication Drivers icon in the right hand window 45 Untitled Wizcon Application Studio Ele View Design Network wvizTools Help ml AA align SLs All Containers Control panel Eh Untitled SERM teh ien aE Files 2 iss E Images e Printer Multiple Tags aii Evans Smp n Drivers S RARE E Charts e 9 History Viewer E ET
37. 3 09 Date Oct 10 2008 Page 69 NAPOPC DA Server User s Manual Step 6 Click on the Server Identifier drop down menu and select the NAPOPC Svr OPCCLOO1 0PC ioj xi Description MESA IFE Eura Read Update Rate ms Remote Server Name Browse The configuration table for OPC has the following entries Description this field is used for documentation only The OPC Client module ignores it Server Identifier this field should contain the name of the server you want to connect If the server is installed in the computer its name can be selected through the list box Disable this field should contain a tag or a constant If its value is different of zero the communication with the OPC server is disabled Update Rate this field indicates how often the server will update this group in milliseconds If it is zero indicates the server should use the fastest practical rate Percent Deadband this field indicates the percent change in an item value that will cause a notification by the server It s only valid for analog items Tag Name these fields should contain the tags linked to the server items Item these fields should contain the name of the server s items Step 7 In the first cell of the Tag Name column type the tag name created in database Step 8 In the first cell of the item you can right click it to get a menu Ver 3 09 Date Oct 10 2008 Page 70 NAPOPC DA Serve
38. 4 e I 18GEG TCP IO T1 rd I 188EG TCP IO V 1 a I 1S8B8EG TCP Io v2 i if I l1S8B8EG TCP IO v3 F I l18SEG TCP IO v4 ET My Network Places Name Device Ttem Item ID BP IT188EG TC ir I7188EG TC OF IT188EG TC GF IT188EG TC d iss Properties oo e i718 Tes d 1188 Delete J188EG TC 188EG TC 718BEG TC 7188EG TC GF IT188EG TC GF I7188EG TC er lT188EG TC Deactivate Group I 18GEG TEP IO I 18GEG TCP Io iEn TCP Io I 1BBEG TCP IO I 18GEG TER IO I 18GEG TER IO I 18GEG TCR IO I 18GEG TCP IO Please TCP Io Tl I 18BEG TCP Io Vv1 I 18B8EG TCP Io wv2 Pisses TCP I0 Y3 I 18GEG TCP IG V4 Ir GGEG TCP IG Irl1GBEG TCP IO Irl BBEG TCP I0 Ir GGEG TCP IG Ir l GGEG TER IO riesen TEP I0 rissen TEP I0 Ir GGEG TERIO Ir GBGEG TCP Io TI Ir 1sBEG TCP Io V1 Ir oGEG TCP Io Vv2 I GGEG TCP Io V3 Ir lsBGEG TCP Io V4 ro oO oO oO oO A A A Timestamp Step 7 To add new items right click on the group name then select Add Edit Items Timestamp Adds a new element C Program Files Mational Instrurmentsnati cedb Step 8 Make sure the Item ID textbox at the bottom has the correct object and item name Then click Add gt gt to add the item to the list on the right In this example we add the I7188EG TCP IO V5 Click OK when you are done Ver 3 09 Date Oct 10 2008 Page 54 NAPOPC DA Server Use
39. 48 008040 8 70 3F f Application Type Lacal Server Authentication Level Local Path Step 5 Select the Location page Step 6 Settings as follows Field Name Po Setto A A Run application on the computer Unchecked where the data is located Run application on this computer Unchecked Run application on the following computer Checked and key in the OPC server s computer name or IP address Step 7 Check the Run application on the following computer option Step 8 Key in the IP address of the OPC server Ver 3 09 Date Oct 10 2008 Page 114 NAPOPC DA Server User s Manual MAPOPC DA Server Properties ieneral Location Security Endpoints Identity E et ue me e me omm MEA GEO ee os Om em B ee ee am coms a The following settings allow DCOM to locate the corect computer Far this application IF you make more than one selection then DEUM uses the first applicable one Client applications may overnde your selections Run application on the computer where the data is located Run application on this computer iw Run application on We following computer 192 168 1 103 9 7 cree Ape Step 9 Users can also key in the OPC server s computer name in the field NAPOPC DA Server Properties General Location Security il Endpoints il Identity The following settings allow DCOM to locate the corre
40. 6 NAPOPC DA Server User s Manual po File Add Edit View Options Help CiN Open CtlO nave Ces nave As Colts Print Setup Print Preview Print 1 CAICPD ASW APOPCAE W tdb 2 CAICPO ASW APOPC Wacker tb 3 CAICPO ASW APOPCAW mon tdb Exit Alta Open Load old NAPOPC project ICPDAS NAPOPC DA Server Yer 00 ES p BEA we search Expand Shrink Monito Type Channel Location Is ICPDAS HAPOPC DA Server Yer 00 File Add Edit View Options Help CEN Save Crs r Save As Cha Print Setup Print Preview Print 1 CACPDASWAPOPCE W tdh 2 CACPDASWAPOPC Ouicker tdb 3 CMCPDASNN APOPCAWinCon tdb Exit Alu FA Save Save current NAPOPC project gt ICPDAS NAPOPC DA Server er3 00 File Add Edit View Options Help New Cth Ipen Cte Cms I ave Ls CHh Print Setup Prnt Preview Print LOAICPDASWAPOPCE W tdb 2 CACPDASAN A POPCNV micker tdb 3 CACPDASAN APOPCAWmCon tdh Exit Alt FA Ver 3 09 Date Oct 10 2008 ag Mult a T n S DB UE E ag Multi Gener Search Expand Shrink C hannel T Fi Y n AME S Hg go WE x search Expand Shrink Page 7 NAPOPC DA Server User s Manual Save as oave NAPOPC project as a new one 5 ICPDAS NAPOPC DA Server Yer3 00 File Add Edit View Options Help New t pen Cleo Dave Colts A Cili 4l Print Setup Print Preview Print LCOAICPDASW APOPCE W td 2 CAICPO ASW APOPCWY mcker tdb
41. 6 Click on the Configure button to configure the I O driver SCADA Conti guration SCADA Support Database Definition Database Name DATABASE Enable Disable KO Driver Definition KO Driver Name oPc OLE for Process Control Client 7 12 Configured I O Drivers Configure E TU Delete SiH Simulation Driver OPC OLE tor Process Control Client 7 12 Backup SEADA SCADA Name Remote machine name or TCF IF Use Remote Server To run the User Interface you must El Hetwork first connect to an I U Driver OLE Automation Server If you want to connect to the server on this machine select Use Local m En If you want to connect to a server on another machine select Use Remote Server and enter the machine name or a TCP IP address of the machine that has the server that you You can uze the tree browser to help select a remote machine name v Show this dialog on st Connect Cancel Ver 3 09 Date Oct 10 2008 Page 63 NAPOPC DA Server User s Manual Step 8 To configure the OPC server i wee SOYHAMICS Untitled ope PowerTool File Edit View Display Made Options Help ec eS ea Hame orcDry OLE for Process Control Client Version 7 12 Humber of Humber of For Help press Fl ae Step 9 Select the NAPOPC Svr and click on the OK button Select an OFC Server Intellution OPCEDA i
42. 8 Als pg Ds Fi 7021 2 ff As TU6OD 3 Dis H DOs Step 23 Click on the OK button to close it d Tag Definition NEW Tag General Record DDE Link Description Tag Source PLC Driver NAPOPC Addres 7012D_1 Als ChO In Monitor p fi S60 U IE ms te Always sample Rate Tag Twpe Analog Format Unsigned 16 Tolerance jo Value 1 Low Limit E Value 2 i jo Bk Cancel Apply Help Step 24 The right hand window shows the tag s that were previously added z ta Micon Application Studio File View Desen Network Tools Help c m aalala alela IF 9 EMI test Addie El Fe Web Application Uneiened 16 MAPOPC 7021 E HTML AAAI PLC Unsigned 16 MAPOPC 70120 Im Event Summary Profile po cu Trends Profiles E all Files onl ag Images be Cy Events summaries Ll Cy Charts Ver 3 09 Date Oct 10 2008 Page 60 NAPOPC DA Server User s Manual Step 25 Click on the Tools Multiple Tags menu item lest Wizc on Application Studio File View Design Network Mema Help ue ua i Multiple Tags Import d Export k MultLanguage Support i A Trends Profiles SE al Files ns Es Images be Cy Events Summaries oS Charts Step 26 Click on the OK button to close the Tag Filter window r Tags Exerciser Program Standard File File Option Help Hame Driver Address Ualue R T
43. Automagically configure and test a server C Program Files National Instruments nati ccdb Step 2 The OPC Wizard Connection dialog box appears Then click on Next gt OPC Wizard Connection fx Press the Next button to connect to the OPC Server Server NAPOPC S yr Machine RABBIT Hun As Lacal Server EXE Cancel Help Step 3 Select a file which you want to use and click on the OK button Step 4 Enter the Group Name and Update Rate The name can be any name you want Click Next gt to continue Ver 3 09 Date Oct 10 2008 Page 52 NAPOPC DA Server User s Manual OPC Wizard Group Creation Press the Nest button to create the OPC Group Group Name wizard Grou Update Rate msec Do Cancel Help Step 5 Select all the items that you want to view from the Available OPC Items list Then click Finish OPC Wizard Item Selection wg Press the Finish button to create the selected OPC Item s Available OPC tems Selected OPC Items Items D evicesltem Items Devices ber F 7016_17 Als Cho0 Idi IriBBEG TCP ID BI1 7016 17 00 n Id Iz18BEG TCP ID BI2 d 7O16 17 DDs CHOD lid Ir188EG TCP ID BI3 eF 7016_17 00s Ch01 i IriBBEG TCP ID BIA e 701617 00 ChO02 d 7188EG_TCP I0 601 7015 17 DOs ChD03 lw 7199EG_TCPIG B02 F 70500 Counter Choo col I7188EG_TCP10 603 70500 Counter Ch01 aia F1SSEG_TCPIO BO4 F 70500 Counter Cho2 dw 7188EG_TCPIO
44. Click on the Search Examples button to get information on using OPC 9 NI Example Finder 050 pum Double click an example to open it i ii S No examples match your search criteria No available description information a Enter keyword s ope Double click keyword s 4 opc All hardware compatible with selected example Double click a device to view M Web information Search for a any of the words m Include ni com examples Hardware No hardware found H M Setup Help Close Step 3 Double click on the Multiple OPC Items Monitor vi item in the middle window of NI Example Finder dialog Ver 3 09 Date Oct 10 2008 Page 49 NAPOPC DA Server User s Manual amp Enter keyword s ope CD Double click keyword s ES Search for any of the words Hn M Include ni com examples Hardware No hardware found NI Example Finder Browse seseh Submit Double click an example to open it 6 Examples match vour search criteria Browse To OPC Item vi Multiple OPC Items Monttor vi NI DAQ OPC Chent vi NI Demo OPC Chlient vi NI FieldPoint OPC Client vi OPC Quality and Timestamp Attributes vi Description This example uses the DataSocket VIs 4 that shipped with versions of LabVIEW prior to version 61 These VIs are provided with LabVIEW 61 for compatibility The DataSocket primitives shipping with LabVIEW 61 are not currently full
45. E Address 0 255 Timeout miec Slot 0 for SE Modules Checkeum 59 7 O Continller M7E Device Controller setting Timeout O GRAF qPAddes 02007777 Msg Dely C M 7E Port i CI Word Swar COM Port Setting LOM f Parity None Baud Rate 115200 DataBits ERT SopBis gt Q E equest ag Maumbh Br Coil 0 Register C emulate biel tines notaccess the ERe5 185 Madnuzdevice Cri tine uo Ver 3 09 Date Oct 10 2008 Page 14 NAPOPC DA Server User s Manual Device Name Names with spaces or punctuation such as cannot be used within a module name The clients use the Device Name and Tags to access its value The Device Name can not be the same as any other module 7K 87K 8K Controller Module ID User can click on the Combo Box to select a Module ID Address opecifies a Module Address for this module The default value is 1 and the valid range is between 1 to 255 This field is disabled for the 8000 sub devices It will use the 8000 main device s address Timeout opecifies timeout Response time value for this module The default value is 200 ms A smaller timeout value may cause communication failure and a greater timeout value may reduce the performance of the client program This field is disabled for the 8000 sub devices and it will use the 8000 main device s timeout value Slot The 8000 main device has 4 or 8 slots for the
46. NAPOPC DA Server User s Manual User s Manual For Windows 95 98 Me NT 2000 XP Supports 7000 8000 87000 series modules and modbus controllers OPC the OPC Logo and OPC Foundation are trademarks of the OPC Foundation www opcfoundation org Microsoft Microsoft NET VisualStudio NET and Microsoft Windows are trademarks of the Microsoft Corporation www microsoft com Ver 3 09 Date Oct 10 2008 Page I NAPOPC DA Server User s Manual Table of Contents JVAPOPC DASE CF ousasedesteesesis hoo qud dete c ueo Re eoUESKE E eoo EUR utum doe equ pede 4 Ll dqnstallne WAP OPC DA Server sedet sebo Un pedetd aov aie aes 5 L PC C 6 t3 MEE ue DIANA SIMI NORRIS UU m 9 kA VIO RIOT OG AC CS eibi quinto iut etie ta todo tom nato RM P tUEobi 12 1 5 Adding Ac NG WDD Gy Ce addeoscdeneuce eS RED d deu utetur fetta ned e qe eeu Rete vba eR ERE 14 1 5 1 Adding A New I 7K I 8K I 87K I O Module eeeeeeeeeeen 14 1 5 2 Adding A New Modbus TCP Controller eeeeeeeeeeeeee rrr 16 1 5 3 Adding A New Modbus RTU Controller eeeeeeeeeeeee 18 L 4 Adding A New Quicket UPC Controllet eee teer des es 21 Le Avda A NEW CHOUD eneee obse dto tati quentia at beides Fact RU M MEE 23 Lee nS TM 24 1 7 1 Adding A New Tag for I 7K I 8K I 87K I O Module
47. Server User s Manual Tag Properties e Setting Read amp Write Read Valos Value OFF Qualite Uncertam Timestamp DAHON 10 01 51 Tagname CH Access right Reala Wnt Write Yahi Tonestamp OB 20004 1001 49 Quality ncertem Y alna y Ok Ced Aw Read Value Value You can press the Read button to read the tag value as you saw on the Tag Window Read Value Quality Three kinds of qualities Good Bad and Uncertain would be shown If the communication status is good the quality shows Good If the communication status has something wrong the quality shows Bad And the other situation is Uncertain Maybe you do not click the View Monitor menu item to enable monitor etc Read Value Timestamp It shows the time when you read the tag Tag name It is the same with the Name at the Settings page You can modify it at the Settings page Access right Two kinds of aceess right Read Only and Read amp Write would be shown The access right depends on what kind of tag property it is Please refer to the 1 7 Adding A New Tag Write Value Timestamp It shows the time when you write the tag Ver 3 09 Date Oct 10 2008 Page 32 NAPOPC DA Server User s Manual Write Value Quality Three kinds of qualities Good Bad and Uncertain would be shown If the communication status is good the quality shows Good If
48. T1 7050D Counter Ch03 dF 7188EG TCP ID S1 He 70500 Counter ChO4 er IniBBEG TCP ID W2 rd td dee v e Iri8BEG TCP ID 3 1 Step 6 Now you should be able to view the OPC connection that you just created Ver 3 09 Date Oct 10 2008 Page 53 NAPOPC DA Server User s Manual 4 Mew Project Server Explorer 2 4 1 File Servers Edit View Options Help Dis 2 2 4 4 pw is My Computer 3E FactorvSoft InPrac 3E FactorySoft Sample FactorySoft Shell FE NAPOPC Sve El C Wizard Gre oup e I 18BEG TCP IO BII e I l 8SEG TCP IO BIZ e I 188EG TCP IO BI3 e I l 8SEG TCP IO BI4 e I 18B8EG TCP IO BO1 ie I l 8SEG TCP IO BO2 e I 18SEG TCP Io Bo3 e I 188EG TCP IO BO4 e Irie TF IOT e I 188EG TCP IO Vv1 d I 18SEG TCP IO Vv2 e I 18B8EG TCP IO Vv3 e I 18SEG TCP IO Vv4 amp My Network Places Ready ERE DeviceiEem Item ID value GF IT185EG TC Br IF1SSEG TC Br IF188EG TC GF ITIS8EG TC OF ITIS8EG TC er IF188EG TC F lT188EG TC GF IT185EG TC BF IT188EG TC Br lT188EG TC GF ITIS8EG TC OF ITIS8EG TC er I7188EG_ TC s C Program Files Mational Instruments nati ccdb Mew Project Server Explorer 2 4 1 File Servers Edit View Options Help My Computer F FactorySoft InProc FactorySoft Sample F FactorySoft Shell H MAPOPC Sur EE Duplicate 17188 Ar 17168 1158 e I 18SEG TEP I0 B03 g I7188EG TCP IO BO
49. age 131
50. al status of NAPOPC server when client softwares connect to it The File Open Dialog option lets user load a file automatically or manually The System Tray option can hide or minimize program of NAPOPC server And Communication Mechanism option lets user define the communication behavior of NAPOPC Generally Multi Thread is the best choice for high performace However for some particular OPC clients which can not work smoothly under Multi Thread communication user can choose Single Thread instead This function Configurate Initial Status can be selected only when Monitor function isn t running Step 1 Click on the Options Configurate Initial Status menu item to open Initial Setting Dialog Search Initial Seline Dialog File Open Dialog f Last One Auto load No Ask f User Select Manually Cancel system Tray C Hide Hide m Background f Minimize Show Icon on vestem Trew Communication Mechanism C Singele Thread fe Mult Ihread 1 15 Help Refer to the user s manual by Checking the Help User s Manual menu item All PDF formatted files are best view using Acrobat Reader 5 or newer You can install it from our CD or download a free copy from Adobe s Web Site Clicking on the Help User s Manual menu item or the icon refer to the users manual Ver 3 09 Date Oct 10 2008 Page 35 NAPOPC DA Server User s Manual User s Manual Other Referenc
51. atian Level Provide additional security for reference tracking Ver 3 09 Date Oct 10 2008 Page 103 NAPOPC DA Server User s Manual Step 6 Select the Default Security page Step 7 Check on the Enable remote connection item Distributed COM Configuration Properties Step 8 Select the Applications page Step 9 Select the NAPOPC DA Server application Step 10 Click on the Properties button to configure the OPC server Bitmap Image BPE AMNHMU LFNCE BAN EnhLoaderProze Class EventSysten ier HTML Application Imaging For Windows 1 0 Internet E xplarerV er 1 0 Microsoft BPC Video Server VBI Turning Microsoft Chat Room Microsoft WBEM LIngecured Apartment MIDI Sequence Ope 5 Private Debug Manager for Java Wave Sound Windows Management Ver 3 09 Date Oct 10 2008 Distributed COM Configuration Properties Page 104 NAPOPC DA Server User s Manual Step 11 Select the Location page Step 12 Settings as follows Field Name Sett Run application on the computer Unchecked where the data is located Run application on this computer Unchecked Run application on the following computer Checked and key in the OPC server s computer name or IP address Step 13 Check the Run application on the following computer option Step 14 Key in the IP address of the OPC server HAPOPC DA Server Properties General Location Security The following
52. aunch Permissions You may editwho is allowed to launch applications that do not provide their own settings Edit Default Detault Configuration Permissions You may edit the list of users that are allowed to modify OLE class configuration information This includes installing new OLE servers and adjusting the configuration of existing OLE servers Edit Default OK Cancel Aans Memtoseting UserName Access Type LLL Default Launch Permissions Administrators Allow Launch Default Launch Permissions Allow Launch d Ver 3 09 Date Oct 10 2008 Page 98 NAPOPC DA Server User s Manual Step 6 Set the Default Access Permission by clicking the first Edit Default button Step 7 Click on the Add button to add users Allow Access Allow Access Allow Access Allow Access Nowee SSO Conco Add Bemave Help Step 8 Set the Default Launch Permission by clicking the second Edit Default button Registry Yalue Permissions BFF Administrators Allow Launch Allow Launch Allow Launch Allow Launch Mowa f Cancel Add Bemove Help Step 9 Set the Default Configuration Permission by clicking the third Edit Default button Registry Key Permissions l d Administrators Full Cantral Read Full Control Full Control Ver 3 09 Date Oct 10 2008 Page 99 NAPOPC DA Server User s Manual Step 10 Select the NAPOPC DA Server applica
53. az Filter Source File Wwizpro C File GL5 Driver Ho Address source 4 PLC Ive Dummy v Compound Type M Analog v Digital v String Hame Driver Address Ualue Rate Sample TYPE AIG H2 7H12D 1 RIs ChB8B 3 1 88 Y A ADB H2 7821 2 Rh s ChBHB 3 1 88 Y Ver 3 09 Date Oct 10 2008 Page 61 NAPOPC DA Server User s Manual 3 8 iFix IFIX is a powerful HMI SCADA system that features full process visualization data collection and management and supervisory control iFIX the HMI SCADA component of the Installation Dynamics family of automation software is a Windows NT based industrial automation solution for monitoring and controlling manufacturing operations For more information please visit http www intellution com Step 1 Run iFix 2 1 and start system configuration Step 2 Click on the Add button to add I O drivers SCADA Conti Zur ation SCADA Suppor Database Definition L Enable Disable Database Name DATABASE VO Driver Definition VO Driver Name SIM Simulation Driver 7 Contigured I0 Drivers IK Simulation Driver Backup saa SUA Wane OK Cancel Help Step 3 Select the OPC OLE for Process Control Client 7 12 driver Step 4 Click on the OK button rivers available Ver 3 09 Date Oct 10 2008 Page 62 NAPOPC DA Server User s Manual Step 5 Select the OPC OLE for Process Control Client 7 12 driver Step
54. connect Tag Selected CMTCP 8054 D0 DG MILP 8054 DI Bn Dios Di4 DOS Dag 1 C Rest D Loop Read ES Counte U Write The following steps 7 9 are write operation of Modbus TCP controllers Step 7 Select a tag matching on your configuration For example Select the i 8437 controller DO group and DO1 tag in the tree view window Step 8 Fill in the Tag Value field with 1 Step 9 Click the Write button to write the MICP 8054 DO DO1 value Bg NAPOPC Test Client 60660 OPC Server MAPOPC Svr Disconnect Tag Selected C MTCP 8054 D0 DOI MTLP 8054 DI B Dis Dia DOS Dog Y lag Value Read Loop Read om OR Ver 3 09 Date Oct 10 2008 Page 43 NAPOPC DA Server User s Manual The following steps 10 12 are read operation which loops unless you stop it Step 10 Click on the Loop Read to continuously read data Step 11 After about 5 seconds or more click on the Stop Loop button to stop reading Step 12 A window pops up to show the performance Close it by clicking the OK button a NAPOPC Test Client 0060 PC Server Disconnect Tag selected MTCP 8054 DO Do False Gene oe Counte 4711 Write Step 13 Click on the Disconnect button to disconnect from the OPC server Step 14 Click on the Exit button to end the client demo program ag NAPOPC Test Client o6080 OPC Server INAPORC Svr l Connect aee
55. ct computer Far this application IF you make more than one selection then DCOM uses the first applicable one Client applications may overde your selections Run application on the computer where the data is located Run application an this computer iw Aun applicatioNan the following computer Browse Ver 3 09 Date Oct 10 2008 Page 115 NAPOPC DA Server User s Manual Step 10 Select the Security page Step 11 Set all items in the Security page to Use Default option NAPOPC DA Server Properties Launch Permissions Use Default Customize Access Permissions t Use Default Customize Configuration Permissions Use Default t Customize Edit Step 12 Select the The interactive user item in the Identity page NAPOPC DA Server Properties This user Ver 3 09 Date Oct 10 2008 Page 116 NAPOPC DA Server User s Manual 5 Writing Client Program with VB 5 1 Programming with VB5 5 1 1 Overview of OPC amp VB Visual Basic language supports COM Component Object Model COM implementation from Visual Basic use what is called an Automation interface The OPC Foundation supplies the source code of Automation Wrapper DLL which lets VB access OPC Servers and their underlying Groups and items That s why we have to install the OPC DAC Data Access Component software see 2 Quick Start After we install the OPC DAC softwar
56. dio button is active Ver 3 09 Date Oct 10 2008 Page 26 NAPOPC DA Server User s Manual Tag Properties 8 Settings Read amp Write Nue Ho Description Device Type o s Tae Ansoginpot l Channel Location Z aput Reger s Data ong 7 pcalmg _ Enable Simulation signal Se 28288 vj Name Any Tag Name may be used but avoid names with spaces or punctuation such as The clients will use the Device Name and Tags to access its value Hence the Tag Name cannot be a duplicate of another tag in the same group Description Specifies the description text for this tag This can be blank Data opecifies the data type of this tag which s location type is Input Register or Output Register NAPOPC Server support five kinds of data type which are Short Long Float Word and DWord Data Type 16 bit signed integer 32768 32767 Long 32 bit signed integer 2147483648 2147483647 Floating point variable 1 7E 308 1 7E 308 16 bit unsigned integer 0 65535 DWord 32 bit unsigned integer 0 4294967295 Ver 3 09 Date Oct 10 2008 Page 27 NAPOPC DA Server User s Manual Location opecifies the tag address It must be the same with the the variable address in the controller Besides you have to choose the location type After you choose the location number there are four location types you can choose They are Input Coil O
57. dubai UE ciae REM 94 Z System Iequiterme iienaa deni ens tic taste alae Seciogtudnc T Padus Mi iUud ens 95 42 OMI US DEOM sixteen uode E ide see soduin t qo bau cem E d dus cu no tee e t do und 96 4 2 Configuring On the Server Site Windows NT 4 0 eeeeeeeeeesesesssse 97 4 2 2 Configuring On the Client Site Windows 98 sss 102 4 2 3 Configuring On the Server Site Windows 2000 eeeeeeeeeeeeesse 107 4 2 4 Configuring On the Client Site Windows XP sss 113 53 Winne Chent Program with V Bust e arsit endo m M EA item edad 117 Sl Programming wit V DO ssor ea vea Mene OE 117 oll OVERVIEW ol ORC AN B aora a Ds scarcer bobo a DH uenac n UL ditPaE 117 5 1 2 Tools You Will Need to Build Your VB Client eeeeeeeeeeeesess 118 5 1 3 Building Your VB Client Step By Step 118 Ver 3 09 Date Oct 10 2008 Page 2 NAPOPC DA Server User s Manual 32 JPropratiiminie WRANG oea n etat eth ata thane tutos ole ias nU LIS Ae Met 121 5 2 1 Limitations about Net client programming esses 121 5 2 2 Tools You Need to Build Your Net Client eese 122 5 2 93 B ilding Your VB Net Client Step By Step n2 Ere aaa 122 5 2 4 Building Your VC Net Client Step By Step eese 126 6 INAPOPRG G Hanes 12150 ence tte ce ome cop etd bum Fei et Deui ted yadda aus Fendi utto Dto 129 Ol JNewdeatures oL NAPOPC Version
58. e ICF DAS Online Mail ICF DAS eH v1 ni About NH APOPSvr Visit our web by checking the Help ICP DAS Online menu item or contact us by checking the Help Mail ICP DAS menu item Click on the Help ICP DAS Online menu item or the 3 icon to browse our web User s Manual Other Reference ICF DAS Online Mail ICF DAS About NAPOPCZwr Click on the Help Mail ICP DAS menu item or the icon to contact us User s Manual Other Reference ICF DAs Online Mail ICP DAS iT About WAPOPC Ss yr 1 i p2 E REN 1 16 About Click on the Help About NAPOPCSvr menu item or the 5 icon to see the About NAPOPC DA Server dialox box It shows the version number Step 1 Click on the Help About NAPOPCSwvr menu item Step 2 The About NAPOPC DA Server window pops up Ver 3 09 Date Oct 10 2008 Page 36 NAPOPC DA Server User s Manual About HAPOPC D Server NAPOPC DA Server Version 3 08 Copyright 2008 All Rights Reserved TEL 666 3 59 73366 FAA 88b 3 59737 33 me ee Ver 3 09 Date Oct 10 2008 Page 37 NAPOPC DA Server User s Manual 2 Quick Start Please follow these steps 1 Wire Modules or Controllers Wire modules in the RS 232 RS 485 network Refer to CD Napdos 000 manual GetStart PDF manual Wire controllers to your PC
59. e we can use Automation Wrapper connects VB to OPC The following figure shows the architecture of object model for the automation wrapper Because the OPC Server Object contains Group Objects and ltems Objects by using Collection OPC Browse Object can access the item data through the pointer of OPC Server Object OPC Server Object OPC Browse Object OPC Group Objects m OPC Items Objects Figure 5 1 1 Object model for the Automation Wrapper The following figure shows the architecture of OPC Server Object through the Automation Wrapper under COM DCOM mechanism The VB program wakes up the remote OPC Server Object through the automation wrapper object by DCOM mechanism Ver 3 09 Date Oct 10 2008 Page 117 NAPOPC DA Server User s Manual Your VB Program OPC Server Object the ni rapper objec included in it OPC Items Obiects m COM DCOM OPC Server Object Your OPC Server cem and its object model OPC Items Obiects Figure 5 1 2 Architecture of OPC Server Object under COM DCOM mechanism 5 1 2 Tools You Will Need to Build Your VB Client If you want to build an OPC client in VB and test it you will need the following tools B Visual Basic 5 or 6 running on Windows 95 98 2000 ME NT XP B An OPC Server At this manual we use ICPDAS NAPOPC Server as the demo You can find it at your CD Napdos Napopcsvr or you can download it from the http www icpdas com download 000 napopcsvr htm B I
60. eft click the Finish button to finish the computer setup LitecE Computer Setup The Can Do Software our computer setup iz complete Press the Finish button to save pour settings and exit or press the Cancel button to quit without saving any changes Step35 Select OPC test project and press F5 to run this project Compare the NAPOPC Server monitor and CitectSCADA runtime window choo an Ver 3 09 Date Oct 10 2008 Page 91 NAPOPC DA Server User s Manual Step36 Key in the value 1 234 to output a voltage via the module 7021 Untitled NAPOPC DA Server m x4 Ge page Step37 Both NAPOPC Server monitor and CitectSCADA runtime window show the analog input of the modules 7012D is 1 231V I Untitled N4POPC DA Server File Add Edit view Options Help Ver 3 09 Date Oct 10 2008 Page 92 NAPOPC DA Server User s Manual Step38 Check if the analog output value of the modules 7021 that showed in the NAPOPC Server monitor is 1 234V Untitled N4POPC DA Server AEn x HER i amp l xi File Add Edit View Options Help ales ee i Scaling Value Analog Gutput 1 233 AO 1 233 Al 1 232 1S O e S Ready AOs has 1 Tags a Ver 3 09 Date Oct 10 2008 Page 93 NAPOPC DA Server User s Manual 4 Remote Accessing OPC Client has two ways to access the OPC Server One is called Local Accessing and the other is called Remote Accessing
61. enerates tags automatically This function generates AI AO DI DO Latched DI and Counter tags Please refer to a MODULES HTM file in ICPDAS NAPOPC folder NOTE For complete module support please update ICPDAS NAPOPC module ini from http www icpdas com products Software NAPOPC napopc htm frequently Step 1 Click on the Add Search Modules menu item or the icon to search for modules PH Eii View Options Help New Device tli New Group otl New Tag Ctl T search Modules Ctrl P Digital Output Step 2 The Search Modules dialog box pops up Ver 3 09 Date Oct 10 2008 Page 9 NAPOPC DA Server User s Manual Search Modules COM C Clear Modules m Baud Fate Searching i 460 n C 115200 57600 38400 12200 9600 4800 C 2400 1200 select All lear All Address 1 te 255 Checksum Timeout mSec Start 0 Disabled 200 End Ex Enabled Status Static COM Port Specifies which COM Port number is search The default value is 1 and the valid range is from 1 to 255 Please verify the COM Port number that the RS 232 or RS 485 network is connected Clear Modules Modules can be added many times If this field is checked it removes all modules from the list window before searching Checking this box prevents adding a duplicate module The default setting is not checked Baud Rate Searching Specifies which Baud Rate will be
62. er User s Manual Step 2 The Group dialog box pops up Group Name A Group Name may have any name but avoid names with spaces or punctuation such as The Group Name must not be used twice A group can be defined as a subdirectory containing one or more tags A device may have many subgroups of tags All tags belong to their module when they are scanned to perform I O 1 7 Adding A New Tag If the device you add is Quicker UPC you do not need to add tags manually NAPOPC will automatically synchronize and generate the modules of Quiker UPC 1 7 1 Adding A New Tag for I 7K I 8K I 87K I O Module Step 1 Click on the Add New Tag menu item or the D icon to add a new tag Edit View Options Help New Device Ctr i New Group Celo New Taz Bit Input Bit Input search Modules Ctrl M Step 2 The Tag Properties dialog box pops up Step 3 Choose the Settings page Because the tag belongs to the module type device the I 7K I 8K I 87K I O Modules radio button is active Ver 3 09 Date Oct 10 2008 Page 24 NAPOPC DA Server User s Manual Tag Properties 0 6 Setting Read amp Write Scaling Enable Simulation signal Sine oe ee oues Name Any Tag Name may be used but avoid names with spaces or punctuation such as The clients will use the Device Name and Tags to access its value Hence the Tag Name cannot be a duplicate of another ta
63. from your existing IO Servers Create anal Server Nam OPCSever C Use an existing I O Server z Back Mext gt Cancel Help Step8 Create a new I O Device under the I O Server that created previously and define a name called OPCDev for that one Express Communications Wizard E X Select the 70 Device you wish to work with au may create a new VO Device by entering the desired name or select from your existing LO Device Create a new 10 Device UPLDey C Edit an existi WO Device lt Back Cancel Help Ver 3 09 Date Oct 10 2008 Page 77 NAPOPC DA Server User s Manual Step9 Select External I O Device to be the type of OPCDev I O Device Express Communications Wizard Select the type of the 1 0 Device External 0 Device C Memon 140 Device WOE C Disk 10 Device VO Device name IO Drev Step10 Set OPC to be the method of communication for OPCDev I O Device Express Communications Wizard F Mitsubishi m Modicon f E Moore Industries National Select the manufacturer madel and method of communication Far the 170 Device Selected driver M anufacturer OPC Foundation Model OPC Servers Communications OPC lt Back Cancel Help Ver 3 09 Date Oct 10 2008 Page 78 NAPOPC DA Server User s Manual Step11 Set Address to be NAPOPC Svr 1 for OPCDev I O Device Express Communications Wizard E
64. g in the same group Description opecifies the description text for this tag This can be blank Type opecifies the command to be used for this tag Different modules support different commands For commands please refer to a MODULES HTM file in ICPDAS NAPOPC folder Channel opecifies the channel number to be used for this tag The Digital Input and Digital Output tags do not use this channel setting because all channels are read with one communication oimulation signal The valid signal is SINE RAMP and RANDOM This field is validated when the module uses simulation I O Please refer to the Adding A New Device section Ver 3 09 Date Oct 10 2008 Page 25 NAPOPC DA Server User s Manual OK Click on the OK button to add the new tag setting Cancel Click on the Cancel button to avoid any changes Scaling Enable Check this check box to enable the Settings button Settings Click on this button to set the scaling feature For more information please refer to the section 1 7 3 Scaling Settings 1 7 2 Adding A New Tag For Controller Step 1 Click on the Add New Tag menu item or the D icon to add a new tag Edit Yiew Options Help New Device Ctr New Group Celo New Taz Bit Input Bit Input search Modules Ctrl M Step 2 The Tag Properties dialog box pops up Step 3 Choose the Settings page Because the tag belongs to the controller type device the Controller ra
65. he NAPOPC DA Server application Step 12 Click the Properies button to configure the OPC server Distributed COM Configuration Properties I a x Applications Default Properties Default Security Default Protocols Applications Microsol WBEM Unsecured Apartment d MAPOPC OA Server Paintbrush Remote Debug Manager for Java Remote Storage Recall Notification Client SENS Logon Events SENS Network Events SENS OnNow Events SENS Subscriber far EventSysten Eventi bjectChange events Sound Recorder Tat wr Voce Dictation Manager Windows Management Instrumentation E coe m Step 13 Check the Run application on this computer option NAPUPC DA Server Properties x General Location Security Identity Endpoints The following settings allow DCOM to locate the corect computer for this application IF you make more than ene selection then DCOM uses the first applicable one Client applications may override your selections Run application an the computer where the data is located gt application on this computer Run application on the following computer Browse cancel Ae Ver 3 09 Date Oct 10 2008 Page 111 NAPOPC DA Server User s Manual Step 14 Set all items in the Security page to Use default option General Location Security Identity Endpoints Use default access permissions C Use custom access permissi
66. he OPC Automation Wrapper You can find it from http www icpdas com download 7000 napopcsvr htm 5 1 3 Building Your VB Client Step By Step At this section we just focus on the key steps of building the VB client If you want to know more information about OPC Automation 2 0 and the VB demo please refer to the opcda20 auto pdf in the C ICPDAS NAPOPC Manual and the VB demo source code in the C ICPDAS NAPOPC Client VB5 Step 1 B Install OPCDAC on your PC B Start a new VB project Ver 3 09 Date Oct 10 2008 Page 118 NAPOPC DA Server User s Manual B in VB click on Project gt References on the VB menu bar B Ihe OPC Automation Wrapper appears on the dialog as OPC Automation 2 0 select it as shown here References Project v bp z Available References OK al Ea Browse m Visual Basic For Applications h Cancel Visual Basic runtime objects and procedures a w Visual Basic objects and procedures Automation Browse vi ERT pepo dre ener deep ares Seat aPar ar AR E kelpe Leet ponent 1 0 Type Library TAS RADIUS cal 1 0 Type Library ABManager 1 0 Type Library Priority aboutlook 1 0 Type Library Jaboutlookex 1 0 Type Library Acrobat Help Acrobat Distiller Active D5 Type Library i ArFive Sekun Cnnrrnl Library OP Automation 2 0 Location CiWIMDCOWSISvsEema3zYoPCDAAUEa dll Language Standard Step 2 First you have to design your
67. imitations about Net client programming 1 OPC DA component 2 0 must be installed In this case OPC DA Component 1 0 can t be used Ver 3 09 Date Oct 10 2008 Page 121 NAPOPC DA Server User s Manual 2 Development was done on a Windows XP SP1 system using Microsoft Development Environment 2003 version 7 1 3091 with Net Framework 1 1 version 1 1 4322 and any new release version of Net will need to modify these codes 3 Testing was done on following operation system any others might not work 9 2 2 Windows 98 second edition 4 10 2222A Windows 2000 professional 5 00 2195 service pack 4 Windows XP professional version 2002 service pack 1 Tools You Need to Build Your Net Client If you want to build an OPC VB Net or VC client and test it you will need following tools 9 2 3 Step 1 Visual Basic Net 2003 or newer version running on Windows 98 2000 XP OPC Automation 2 0 You can find it at your CD Napdos napopcsvr OPCDAC or download it from http www icpdas com download 7000 napopcsvr htm An OPC Server At this manual we use ICPDAS NAPOPC Server as the demo You can find it at your CD Napdos napopcsvr or download it from the http www icpdas com download 000 napopcsvr htm OPC Net wrapper named OPCNetWrapper dll You can find it at your CD Napdos napopcsvr or download it from http www icpdas com download 000 napopcsvr htm Building Your VB Net Client Step By Step Install OPC DA Co
68. ing items tags Step 14 The grid window graphs a line s to show changes of each item tag b Multiple OPC Items Monitor vi 60608 File Edit Operate Tools Browse Window Help paket DOT salect Predetermmed Items List of Items ES Number of items to select 2g Time Out from Server u Error Reading Items Example of how to read multiple OPC items at a time You can either specify which items to read or use the Predetermined List of Items The Predetermined List of Items specifies items from the lt ope Natonal Instruments OFC Demo server which has been installed on your machine a 3 6 NATIONAL INSTRUMENTS National Instruments is a comprehensive industrial automation company by providing the software hardware and technologies necessary to transform personal computers into powerful computer based and networked measurement and automation systems The ServerExplorer is one of their products for connecting to OPC Server For more information please visit http www ni com Ver 3 09 Date Oct 10 2008 Page 51 NAPOPC DA Server User s Manual Step 1 Start ServerExplorer Right click on NAPOPC Svr then select Wizard 4 Mew Project Server Explorer 2 4 1 mima File Servers Edit view Options Help y i i iss gt I Eig My Computer Mame DeviceiItem Item ID Value F FactorvSoft InPrac FactorySoft Sample H FactorySoft Shell Properties Add Edit Groups emis E E 4
69. isition SCADA systems and embedded instrumentation and control applications Web Studio runs in native Windows NT 2000 XP and CE 3 0 environments and conforms to industry standards such as Microsoft DNA OPC DDE ODBC XML SOAP and ActiveX For more information please visit http www indusoft com Step 1 Before using the InduSoft OPC Client module you need to install and configure the OPC server in the machines you will run it ICPDAS NAPOPC DA Server eoe gssg 18456699858 Bee Open Saw Deve Ur Tag 3 Seach Espa Shenk Moris rere Print Wah Mab Abeer IB wrce suni Www Lo i Charoen Valo II E i Z Di cho Bat agat di Do scu Ea Lagat i gt Hb HTCP 0065 E cun Ba ngu amp Di amp cus Ea neut 3 di DO E chu Ba gut 4 HB TED cw Bat Lagat D cii Bat agul t dps Count amp cu Bat lapul dis CounteSiah amp cug Bai ingui 8 H8 7017 S chii Bat lagui j ds Als amp cu Ba lapul L HB TID amp cl Ba Lagat H ss ED amp c Ea Lagat l dis Counter amp chii Bat ingui 13 di LachLewDl de gt Late High oui Hi ans xm HE 9013 5 Als H an 2 E ioune i axe sz i Laune Ready Dis has 14 Tags Ver 3 09 Date Oct 10 2008 Page 67 NAPOPC DA Server User s Manual Step 2 Run the InduSoft Version 4 1 or newer induSorr Tools for Automation Web and Wireless Automation the easy way Copyright 1997 2004 InduSott Ltd This program iz protected by Internations
70. itional mechanisms used to access a device Ver 3 09 Date Oct 10 2008 Page 4 NAPOPC DA Server User s Manual Application X Application Application Z OPC Interface OPC Interface Network Device B Different vendors provide both different devices and the appropriate OPC Server To access each device for any application there is only one common mechanism through the OPC Interface Figure 1 0 2 Using the OPC mechanism to access a device The main program of NAPOPC DA Server is NAPOPCSvr exe It automatically calls the DCON PC DLL lOCtrl DLL and UART DLL functions on demand 1 4 Installing NAPOPC DA Server You can get the software from the CD Napdos Napopcsvr or you can download it from http www icpdas com products software napopc napopc htm Hardware Requirement B A personal computer with at least a Pentium 133 MHz or faster processor B 32 Mbytes ram Preferably 64 Mbytes ram B 10 Mbytes hard disk free space Software Requirement One of the following computer operating systems must be installed on your computer system B Windows 98 B Windows ME 2000 B Windows XP Ver 3 09 Date Oct 10 2008 Page 5 NAPOPC DA Server User s Manual Double click the CD Napdos Napopcsvr napopcdaserver exe and follow the installing wizard to finish the installation After you complete the above steps you can start the NAPOPC Server by clicking the NAPOPC Server as following Tai A
71. l Connect The Impersonation Level specifies whether applications can determine who is calling them and whether the application can do operations using the client s identity Default Impersonation Level Anonymous vi Provide additional security for reference tracking NETTE Step 5 Select the Default Security page Step 6 Click on the Edit Default button to set Distributed COM Configuration Properties x Applications Default Properties Default Security Default Protocols Default Access Permissions Tou mau edit who iz allowed to access applications that do nat provide their own settings Edit Default Default Launch Permissions ou may edit who is allowed to launch applications that do not provide their own settings E dit Default Default Configuration Permissions ou may edit the list of users that are allowed to modify OLE class configuration information This includes installing new OLE servers and adjusting the configuration of existing OLE servers Edit Default OF Cancel Apply Ver 3 09 Date Oct 10 2008 Page 108 APOPC DA Server Us itemtosetting UserName Access Type Allow Access Allow Access Allow Access Allow Access Allow Access be Default Launch Permissions Administrators Allow Launch Allow Launch Allow Launch Allow Launch Allow Launch ee Full Control Full Control Read Step 7 Set the Default Access Per
72. les 7012D The Variable Tag Name is A_in1 the Data type is REAL the I O Device Name is selected to be OPCDev and the Address is 7012D 2 AlIs ChOO See Step 6 EE ariable Tags OPC_test E E 3 ml x OPCDey Address O12D_ 2 Als CHOU Haw ero Scale NENNEN Raw Full Scale NENNEN Eng ero Scale Eng Full Scale Eng Units H Format H Comment D OE O Device Name Replace Delete Help Record 2 Linked Mo L Ver 3 09 Date Oct 10 2008 Page 82 NAPOPC DA Server User s Manual Step19 Create a new page in the Citect Graphics Builder window 2 Citect Graphics Builder Sibjects Text Arrange Tools Window Help m 4ean eae A Save Er Save As Save Al Import Properties Defaults Compile Alt F10 Run Fa Print Ctrl P Prigt Setup Alt F4 Exit Creates a new page template symbol genie or super genie Du E GUIDE GRID Page Cancel Create a new graphics page using a pre defined template Help Template Create your own template to use as a base for similar graphics pages Create a new symbol for objects that you use often Gene Ty Create a new genie tor groups of objects that have common attributes Super Genie qae Create a new super genie that can be accessed at runtime Li Symbol L4 Ver 3 09 Date Oct 10 2008 Page 83 NAPOPC DA Server User s Manual Step21 Select normal tem
73. lue is 500 equal to 0 5 Seconds measured in millisecond s 0 001 second s After a module has been found this timeout value will also be recorded for further use Users can reduce this value to shorten the search time Be careful A shorter search time may cause communication failure Status It shows the searching status includes progress in Address in A Baud Rate in B Checksum in S and Error Code in EC he timeout error code is 15 In most cases it indicates no module has responded to the current command Search After setting the above options click this button to search The window will be closed automatically when completed Stop During the search users can click the button to stop The window will stay on the screen after the search is cancelled Exit Users can click the button to close the window Step 3 After the search the discovered modules will be listed on the Device Window left side Users can also see the tags on the Tag Window right side generated by the Search Modules function automatically Ver 3 09 Date Oct 10 2008 Page 11 NAPOPC DA Server User s Manual File Add Edit View Options Help 7 Device Window gt p New Open Device Group Tag re search Expand shr Mame Twpe Lhannel Location Choo Bit Inp 0 Chol Bit Input 1 Choe Bit Input n Cho Bit Input 3 a gt LatthLowDls amp Ch4 Bit Input 4 a gt LatchHighDls amp
74. mission by clicking the first Edit Default button N er s Manual Step 8 Click on the Add button to add users Registry Value Permissions xl Hegistri Value DieraulbecessPermission Owner Administrator ame GES Administrators Allow Access DER E vernone Allow Access Fx INTERACT IVE Allow Access fie Power Users Allow Access ae SYSTEM Allow Access Type of Access Allow Access Cancel Add Hemove Help Step 9 Set the Default Launch Permission by clicking the second Edit Default button Ver 3 09 Date Oct 10 2008 Page 109 NAPOPC DA Server User s Manual Registry Value Permissions x Registy Yale OetaultLaunchPermizsion Oawner Account Unknown Hame Allow Launch Allow Launch Allow Launch Allow Launch Allow Launch na Administrators ee Everyone fy INTERACTIVE Type of Access Allow Launch Cancel Add Remove Help Step 10 Set the Default Configuration Permission by clicking the third Edit Default button Registry Key Permissions X Hegistry Rey HKEY CLASSES AOOT Owner Administrators Mame Full Control GE Administrators Full Control CREATOR OWNER E E vernone Head Ee Power Users gt Full Control oe Y n Full Control Full Control Type of Access Ful Control Cancel Add Remove Help Ver 3 09 Date Oct 10 2008 Page 110 NAPOPC DA Server User s Manual Step 11 Select t
75. mponent 2 0 on your PC Start a new VB Net project with Windows Application Program In VB Net click Project gt Add References on the VB Net menu bar Click Browse to select OPCNetWrapper dll as shown below Ver 3 09 Date Oct 10 2008 Page 122 NAPOPC DA Server User s Manual MET COM Projects Campaient Name Version Path Tr j Acces lbilit dil 1 0 5400 0 CAMA DOYS Microsoft We TV M Select adod amp F 0 500 0 CAPragram FilestdMicrasnlt HE CH sPacksgel ib 3 1 5501 CAPregram f ilestiCammoan File CrystalDecisions CrystalHepor 9 1 5010 CAPregram FileslCammoan Fibe CrystsilDecissons HepertSoaerce 3 1 5000 0 CAPregram FilesliCammsn libe Crystslliecissons Shared 9 1 5000 0 CAPregram FilesVammsn File CrystalDeciasons Web 3 1 58 ni CAPrTegram FilesVCammsn File CrystalDecissons Windows For 3 1 5000 0 CAPregram Filestommen File CrystslE niterpriseLih 9 1 5000 0 CAPregram Fila emman File Crysitsllnbsstenel ib 9 1 5000 0 CAPrTegram Filesa Cammen File CrysitalEeyCuadel ih 2 1 58nrn CAPTegram Files Clammen File CrystslPtugiskiqel ils 9 1 5000 0 CAPregram Filg amman File selected Componenta r Type Source Remo Or Nevers ipa CI i Likocumeets ae d Srifimgslatrp Lok cene Help Step 2 First you must Import following declarations ICPDAS OPC ICPDAS OPCDA and ICPDAS OPC NET Second you could design your UI User Interface You can refer t
76. ndow to edit Boards parameters Citect Project Editor OPC_test COMPILED DO Server 6 Boards Ports Moderns Tio Devices Remapping Sets up the I O Server boards Ver 3 09 Date Oct 10 2008 Page 80 NAPOPC DA Server User s Manual Step15 Edit Boards parameters The Address scanning period is set to be 250ms and the Special Opt is set to be blank 23 Boards OPC testz Server Mame opcServer z Board Mame BOARD Board Type Address Special Op Comment Replace Delete Help Record 1 Step16 Define two Variable Tags un OPC_test Citect Explorer File View Tools Help OPC_test a 5x Al za Project List Contents of Tags H E Example L OPC test J System Communications Cicade Files F CitecEVBA Files Ver 3 09 Date Oct 10 2008 Page 81 NAPOPC DA Server User s Manual Step17 Define a variable tag for analog output of the modules 7021 The Variable Tag Name is A out1 the Data type is REAL the I O Device Name is selected to be OPCDev and the Address is 7021 1 AOs ChO00O see Step 6 EE ariable Tags OPC_test ER o B x fi OPCDev Faw Full Scale Eng ero Scale Eng Full Scale Eng Units Format Comment Varable T ag Name VO Device Mame Address Haw ero Scale Replace Delete Help Record 1 Linked No Step18 Define another variable tag for analog input of the modu
77. ndow it shows average scan time s sn tme ims when clicking any module We will find the average scan time is 968 ms COM1 COMA Module 167024 187017 87056 17033 F704 1704 BOPCClient_Demo Server name NAPOPC Syr 1 ReadVaue Write Value W 7O41D 2 des Dis ds DICounter des LatchLowDIs des LatchHighDIs des LatchLowDIs des LatchHighDIs Ver 3 09 Date Oct 10 2008 Page 40 NAPOPC DA Server User s Manual Step 4 Connect OPC client to NAPOPC server again We can discover the average scan time separately when clicking each module We will find the average scan time of COMI is 391 ms and of COM2 is 516 ms p COM 1 COM2 l 87024 I 87017 I 87058 l 7033 l 7041 l 7024 Avg Scan Time 39ims Sems Step 5 Now we can set pending time to each module as below l 7033 l 7041 l 7024 PendingTime l 87024 I 87017 l 87058 Pending Time l Controller Setting Port Type O Port Address Address TCPAP Address Timeout O O Msg Delay O L1 COM Port Setting COM 1 Parity Baud Rate 19600 v Data Bits Stop Bits O Coil Register C Simulate I O does not access the RS 485 Modnus device Step 7 Discover the average scan time of COM1 and COM2 We can find it is at our target The average scan time of COM1 is 62 ms The average scan time of COM is 31 ms Ava Scan Time ms 3m Ver 3 09 Date Oct 10 2
78. o the Ul of VB Net program shown as below Third you need to declare some variables at the General Declarations area of VB Net code window The most important types of variables are ICPDAS OPCServer ICPDAS SynclOGroup and ServerTreeBrowser As the declaration we can use several functions to read write tag values through Server and Group variables YBOPCCheat Demo ae Declare a new ICPDAS_OPCServer object Dim Svr As ICPDAS OPCServer Declare two new ICPDAS SynclOGroup objects Dim ReadWriteGroup Grp As ICPDAS SyncIOGroup Declare a new ServerTreeBrowser object Ver 3 09 Date Oct 10 2008 Page 123 NAPOPC DA Server User s Manual Dim TagTree As ServerTreeBrowser Declare two new RefreshGroup objects Dim AsyncRefrGroup rGrp As RefreshGroup Declare a new TagDef object Dim TagData As TagDef Declare a new String variable for OPC Server Prog D Dim ServerName As String Step 3 You can set ServerName as NAPOPC Svr 1 and pass it to ICPDAS OPCServer for connecting Set a ProglD to ServerName ServerName NAPOPC Svr 1 Create a new OPC Server object Svr New ICPDAS OPCServerr Connect to NAPOPC DA Server Svr Connect ServerName Step 4 Now you ll go ahead and add the code rights after you get your connection to the NAPOPC Server Please refer to following TagReadWrite and DataChangeHandler subroutine of VB demo program Handles of data change callbacks Public Sub DataChangeHandler ByVal sender As Object B
79. ons You may edit who can access this application Edit Use default launch permissions C Use custom launch permissions You may edit who can launch this application Edit Use default configuration permissions C Use custom configuration permissions You may edit who can change the configuration information Far this application Edit Step 15 Select the The interactive user item from the Identity page NAPOPC DA Server Properties x General Location Security Identity Endpoints Which user account do you want to use to run this application 3 Interactive user C The launching user C This user User Browse Password Eonhrm Password f The System Account services only Ver 3 09 Date Oct 10 2008 Page 112 NAPOPC DA Server User s Manual 4 2 4 Configuring On the Client Site Windows XP Step 1 Log in with test1 account NOTE On the server site remember to create the test1 account which has the same Username and Passwaord with one on the client site Step 2 Run the DCOMCnfg EXE program Step 3 Select the NAPOPC DA Server and righ click on it You will see Properties and click on it Component Services G File Help E Action View Window LJ Console Root e Component Services H E Computers B mI My Computer COM Applications EL T DCOM Config See AccStore Cla
80. ormat anjen Ae dzi 9129484 E AMIE A Clear Property OF Cancel Apply Help Ver 3 09 Date Oct 10 2008 Page 86 NAPOPC DA Server User s Manual Step26 When finish the all object and attribute setting the page is looked like as one which shows below inl x x ae ret res S m SSS fa Bl S alesul ea r Ld ka e Q K AO THHHE THEE Al THHHE SHH Step27 Select File Save from Citect Graphics Builder window menu to save this page e2 Citect Graphics Builder OPC_test Untitled1 BE P x J File Edi View Objects Text Arrange Tools Window Help o xi New Ctrl N JESE Te P agg tei gr e B Open Chrl 0 Close l Find Save Save Bs Save All Import Properties Defaults AO THHHE THE Compile 4lk F 10 Run F5 Al JARRE SHR Print Ctrl P Print Setup Exit Alt F4 it amp lraleleslels Saves Ihe active page Ver 3 09 Date Oct 10 2008 Page 87 NAPOPC DA Server User s Manual Step28 Fill the name of this page and save it under OPC test project Template Symbol Project Preview 1 E IPC test v Enable Cancel woe m DU TES New Delete Help Step29 Left click the computer marked button to define the role of this computer File View Tools Help m My Projects Example 1 d dES Em OPC fest Alarms Comm
81. pears in the drop down menu of the Object Properties window In the Tag Expression field type the tag name you want to link X u Rephes Hint Text Capion p SSS Alisa Left v Border Col Transparent Fonts BackColor Iv Extem run Ver 3 09 Date Oct 10 2008 Page 72 NAPOPC DA Server User s Manual Step 15 From the Project select status Then select the OPC Client Runtime in Execution Tasks tab Click on the Startup button to setup the Startup as Automatic ef TCP IP Server Viewer Step 16 Run the program InduSoft OPC Client Runtime module automatically or by the menu Project gt Status After running this program a small icon will appear in your system tray To close the InduSoft OPC Client module right click its icon in the system tray and select Exit Step 17 Database Spy allows you to monitor and forces application tags reading and writing to the database You can find it in Tools menu l0 x File Security Window Tools Tag name o1 x Value fi Read Continuous Togele Quit Display2 NUM Z Ver 3 09 Date Oct 10 2008 Page 73 NAPOPC DA Server User s Manual 3 10 Citect SCADA CitectSCADA is a reliable scaleable and high performance SCADA system that includes over 100 drivers and free development software Used in a wide range of industries CitectSCADA enables users to reduce costs by optimizing process operations Furthermore it not only
82. plate to be the background and function of this page Use Template E X Template normal RE abel Lldl4d4 a poptrend v Linked Title bar RS Ec Resolution Default tabzmenu gt Help spcexrschart standardchart amp LIITImary tablmenu Step22 Select Objects Text from Citect Graphics Builder window menu to insert a Text Object on the page FILTCTUIUDETEMEUEIMUEP E mi xl 7 File Edit view Objects Text Arrange Tools Window Help amp x Sw E e amp WHF E n m Rectangle PS Ll Ellipse Polygon Pipe H 7 Button Symbol Sek Trend Cicode Object 2j el le e s Adds test Ver 3 09 Date Oct 10 2008 Page 84 NAPOPC DA Server User s Manual Step23 Key in the words AO in the Text object Then left click to put the Text object on the page and set Appearance parameters of Text object Text Properties E o 2 e x Appearance E Movement vU Scaling lt Fill vU Input 2 Slider 2 Access Font Style E4aua Anal Black Comic Sans M5 Courier Courier New Finedsys Georgia e p m Dem i xi Alignment Effects f Left Strikeout Right Underline 7 C Centre 2 Step24 Select Objects Number from Citect Graphics Builder window menu to insert a Number Object on the page Left Click to put Number object on the page Then set Appea
83. r DI dr DOs dis Counter ds LatchLowDIs de LatchHiehDIs Step 2 Select the DIs group in the Device Window left side to monitor its own Bit Input tags RS 7011 70120 Ch Bit Input 0 x 70320 amp CH BitInput l 7044 Chi Bit Input 2 x T0600 2 ChI BitInput 3 n 70 Ch Bit Input 4 Ko Cho5 BitInput 5 ds Ds 2 Ch 6 BitInput 6 de Counter de LatchLowDIs Step 3 Select the 7050D module on the Device Window to monitor its own Digital Input and Digital Output tags RB 70330 cR 7044 Schoo Counter x T0600 CH Counter l T0500 Ch 2 Counter 2 de DI Ch 3 Counter 3 dr DOs amp Ch Counter 4 FS ChS Counter 5 ds LaichLowDIs amp chl6 Counter 6 de LatchHighDIs Ver 3 09 Date Oct 10 2008 Page 13 NAPOPC DA Server User s Manual 1 5 Adding A New Device 1 5 1 Adding A New I 7K 1 8K 1 87K I O Module Step 1 Click on the Add New Device menu item or the icon to add a new module Edit View Option Help New Device CubD New Group tbe New Tag CT litt View Options Help search Modules Ctrl M m s AM m IIIS g Step 2 The Device Properties dialog box pops up Step 3 Click the I 7K I 8K I 87K I O Modules radio button Step 4 Click the No Controller or With Controller radio button Device Properties Device Name Devices gy rraren Tt Module r Module Setting n ith WoT Contraller BE
84. r User s Manual OPCCLOD1 OPC Description Server Identifier Disable ICP NAPO FPL Svr T Read Update Hate ms Percent Deadband Status ee Remote Server Name TEA lt i OP Browser gh Cut Cre Copy ctrl E EA pa Gtr Insert Line DPCCLOOLOPG ooo c NNNM Bl x Description Server Identifier Disable ICP NAPO PL Svr Read Update Rate ms Percent D eadband Status Remate S erver N ame Browse TagName OPC Browser NAPDPE Svr LOCAL E 1 dei n 3 Cancel 4 5E B T Counter A ie 5 pes DU Read Eg 7021 3 C write mg reb 4 Bath r i FAN A zi zs Step 10 Select an item tag in the tree view Step 11 Click the OK button to add this one Ver 3 09 Date Oct 10 2008 Page 71 NAPOPC DA Server User s Manual OPCCLOO1 OPC EMEN ex Description Server Identifier Disable ICF NAPOPC Sw Read Update Rate ms Percent Deadband Status Remote Server Mame Browse Tag Name Item 1 doy 7012D 2 DOs Choo Always Step 12 Repeat the step between 7 to 11 to add more tags Step 13 Creating a Text String for the Input Output Dynamic Click the Text icon on the Object Editing toolbar Position the crosshairs in the Display2 scr Press the 7 key three times to display HZ in the gray square Step 14 Click the Text Input Output property icon on the Object Editing toolbar Text I O ap
85. r s Manual OPC Group Wizard Group Settings Items Interfaces Item Defnibon Names Device tem z z1BB8EG TCP I7188EG TCP IO BIH Ia I7188EG_TCP 10 8I2 18SEG RTU IrigsEG TCP IO BI3 fUS0D d IriesEG TCP ID BIA TSE I7188EG TCP IO BO1 peda ele d 7198EG_TCP IO BO2 X ao 7188EG_TCP IO B03 i IrigsEG TCP IO BD4 7188EG_TCPIO T1 IngeEG TCP IO M1 i Ir18B8EG TCP IO V2 InsseEG TCP IO V3 i IrigsEG TCP IO V4 Mame Device Item Data Type rP18BEG TCP 10 v5 Defa Item ID Access Paths rase G TCP 10 Vv5 Detauk Advanced Actos Step 9 Now you should be able to read all the items that you added in the main window File Servers Edit view Options nee Dis 2 l s ur Computer Timestamp i F FactorySoft InProc ym TCP IO BI1 I7188EG TCP IO 0 15 52 49 823 o FactorySoft Sample PIF1S8EG_TCP IO BI2 I7188EG TCP IO 15 52 49 823 08E FactorySoft Shell Pi7198EG_TCP IO BIZ I7188EG TCP IO 15 52 49 823 ERE NAPOPC Swr d irisSEG TCP IO BI4 IT188EG TCP IO 15 52 49 823 EE 9 i EE eee PIFISBEG_TCP IO BO1 I7188EG TCP IO 15 52 49 843 6 AE EE Lae PIFISSEG_TCP IO BO2 IT188EG TCP IO 15 52 49 843 d I7188EG TCP IO BI d iTiSSEG TCP IO BO3 I7188EG TCP IO 15 52 49 843 fp ITlBBEG TCP IO B dr iTiSSEG TCP IO BO4 I7188EG TCP IO 15 52 49 843 Mp I7188EG TCP IO B dr iniSSEG TCP IO T1 I7188EG TCP IO T 15 52 49 883 f IT188EG TCP IO B PIv
86. rance attributes and Input attributes for this Number object Text Properties m B e xj v Appearance g Movement zv Scaling Fill z Input a Slider Access i T Type enc ewnpresslan m On off i _ aa m C Multi state m Ce Numeric gt T String E Format C HHH HHH D s Text Properties B xj Appearance 2 Movement d Scaling Fill Input IE Slider Access ev seguence command k Key sequence an _ nut argl 3 C HHHHHENTER Security vw Same area as object W Same privilege as object spueuliuo peodgAs Command area fean areas Privilege level lt None gt Ver 3 09 Date Oct 10 2008 Page 85 NAPOPC DA Server User s Manual Step25 Set another Text object and Number object by the same way and the Appearance attributes of Text and Number object are showed below Text object EE ASS x n o oote Movement vU Scaling Fill vU Input 2 Slider 2 Access Text Properties 4 Font Style Size T m iria Bald fi B d Arial Black Bald Comic Sans MS _ Bold italic Courier Italic anjen Am dsir Strikeout C Right C Centre Underline AMIE Foreground _ Number object Text Properties D E E o m X a Movement 2 Scaling FII 2 Input vU Slider Access Type Mumeric expression m C Qn off Qn 5 a C Multi state ITI 6 ng eric m String F
87. re process on a Windows 95 computer from a client computer All processes in Windows 95 run in the security context of the currently logged on user therefore DCOM on Windows 95 does not support remote activation A server application on a Windows 95 computer will have to be launched manually or by some other mechanism to be accessed by a client application on another computer Consequently the DefaultLaunchPermissions and LaunchPermissions registry values have no affect on Windows 95 Platform Does the platform support the DCOM Windows 95 No Users need to download and install the DCOM95 EXE and DCM95CFG EXE from Microsofts web site to enable the remote access Windows 98 Yes Windows 98 supports the DCOM mechanism t is recommended to upgrade to the newest version of DCOM98 The newest DCOMS6 is also available at Microsoft s web site Windows NT 4 0 Yes Windows NT 4 0 supports the DCOM mechanism It is recommended to upgrade to the newest Service Pack for Windows NT 4 0 Service Pack 3 or newer one Windows 2000 Yes Windows 2000 supports the DCOM mechanism Windows XP Yes Windows XP supports the DCOM mechanism Ver 3 09 Date Oct 10 2008 Page 95 NAPOPC DA Server User s Manual 4 2 Configuring DCOM Before making changes register the server application in the registry of both the client and server computers This may involve either running the server applications setup program or running the server application then
88. rite Value D uz DOs Dua pas Timestamp 2004 7 8 FF 02 15 41 DOE DOF DOS Quality GOOD The following steps 6 8 are write operation of Modbus TCP controllers Step 6 Select a tag matching on your configuration For example Select the i 8437 controller DO group and DO1 tag in the tree view window Step 7 Fill in the Write Value field with 1 Step 8 Click the Write button to write the MICP 8054 DO DO1 value VCSOPCChDeat Demo Server name NAPOPC Svr 1 e MICP 8054 DO DO1 D11 Diz DI3 Dlg DS mee DIS bot Write Yalu Doz DOs Dua pas Timestamp 2004 7 8 FF 02 31 17 DOE DOF E Quality GOOD Step 13 Click on the Disconnect button to disconnect from the OPC server Ver 3 09 Date Oct 10 2008 Page 46 NAPOPC DA Server User s Manual 3 4 FactorySoft s Client Program Step 1 Click on the OPC Connect menu item Step 2 Select the NAPOPC Svr 1 NAPOPC DA Server OPC server Step 3 Click on the OK button Select OPC Server 2 NAPOPC Svr l Cancel SETVEI Node Veerver or server or WWE SEYVET com I Refresh List Available servers f 100 20 FactorwsaftInProc laProc OFC Server Factarvsoft Modbusshelll Factonsoft Modbus shell Factonmott Rapid Service FactorySoft OPC Rapid Sere FactorwsoftSample l Factonmoft Modbus OPC Sample Step 4 Select a file which you want to use and click on the OK button
89. shutting it down on both computers The server application does not need to reside on the client computer If the server uses custom interfaces the marshaling code must be installed on the client and server computers Automation servers that support vtbl binding must install their type libraries on the client and server computers Automation servers that do not support vtbl binding do not need to install their type libraries on the client computer After changing the registry run the client application on the client computer The DCOM looks at the server application registry entries on the client computer and determines the name of the server computer It will then connect to the server computer use the server computer registry to determine the location of the server application and start the server application on that computer You can change the registry with the DCOMCnfg exe tool the OLE Viewer tool or manually For more information on using OLE Viewer or manual changes please refer to the 2158582 HOWTO Configure a Non DCOM Server and Client to Use DCOM article on Microsofts web site For more information on using DCOMOnfg exe to configure the DCOM please refer to Inside Distributed COM written by Guy Eddon and Henry Eddon in 1998 for Microsoft Press This section shows you how to configure the DCOM status with DCOMOCnfg exe graphic driven utility can be found in the Windows NT system32 folder or in the Windows95 98 system
90. ss S Automatic Update 4 Background Intelli A Blocked Drivers A3 COM Event Syst ke iComEwvents Com5 4 ComEvents Com5 S Command line Tric 4 CustReg Class Se Defrag FAT engin p DiaFr an MITES amani i EE E E xl IE MAPOPC D fib netman DCOM Config Microsoft IMAPI gt Microsoft Upload S Microsoft WBEM ib Microsoft WBEM f Microsoft WMI Pr SMMC Application S Mobsync gt MSDAINITIALIZE ery amp er S NetMeeting Gib OpcEnum Ver 3 09 Date Oct 10 2008 Application ID C48F2185 5047 11D3 3144 00104BA11C5E BEB2ADO1 D1A3 11D2 9374 0DCD4F72DAF 7 266C72E7 62E8 11D1 4D89 00C04FDSFDFF 49BD2028 1523 11D1 AD79 0DCD4FD8FDFF 73E709E4 5D93 482E BBBO 99B7938DA9E4 4982791 4 B1 4E 4C90 9BSE ES60B407F889 6295DF2D 35EE 1 1d1 8707 00C04FD93327 2206CDB0 19C1 11D1 89E0 00CO4FD7A829 DCBCADFS DB1b 4764 9320 9a5082af1581 DDOD1BA3 FB51 11d3 8D48 nDapnpeenn agn 274F75ED 20D9 11D1 B1CE L SCESGCD8 5179 1 102 931 0 13486D44 4821 11D2 A494 3 Seago ou D3E34821 9D75 101 a 8C3D DORMI ones Page 113 NAPOPC DA Server User s Manual Step 4 Select the General page and set the Default in the Authentication Level field MAPOPC DA Server Properties General Location Security Endpoints Identity General properties of this DCOM application Application M ame MAPOPC DA Server Application ID 10 D001B 43 FB51 11d3 80
91. tet TITA CEDA 1 CHAP FL Gur ele Selected Server sz HAP OPC DA Server cea Ver 3 09 Date Oct 10 2008 Page 64 NAPOPC DA Server User s Manual Step 10 Add server group and items Fill properties by clicking on the Browse Server button x E MDTHAMICS Untitled ope PowerTool File Edit View Display Mode Options Help BjsjgBiW 9 fm m u et cmm ER OFC E i Serwverl 4 Groupl Item Enable Dezeripti Iteml i Item OFC Item Settings Item Access g Access Path Browse Server J Requested Server B ER ER For Help press Fl Step 11 Select the item which you need Click on the OK button ltem Ils Access Paths HAPOPC Svr s T IBP 1 ATs CHOP El TOISP 1 ALS ItemIl Access OF Cancel Ver 3 09 Date Oct 10 2008 Page 65 NAPOPC DA Server User s Manual Step 12 Enter database manager of iFix 2 1 Step 13 Add relative data units For example Al Driver OPC OLE for Process Control Client 7 12 I O Address Server1 Group1 Item1 Ver 3 09 Date Oct 10 2008 Page 66 NAPOPC DA Server User s Manual 3 9 InduSoft InduSoft Web Studio is a powerful integrated collection of automation tools that includes all the building blocks needed to develop human machine interfaces HMIs supervisory control and data acqu
92. tion Step 11 Click the Properies button to configure the OPC server B itmap Image Image Document e MAPUPC DA Server Sound DLE 2 wW ardF ad Document Step 12 Check the Run application on this computer option NAPO 7 DA 5 erver Properties SERR Ver 3 09 Date Oct 10 2008 Page 100 NAPOPC DA Server User s Manual Step 13 Set all items in the Security page to Use default option HAPOPC DA Server Properties Ed i Use default access permissions Use custom access permissions Y ou may edit who can access this application f Use default launch permissions Use custom launch permissions You may edit who can launch this application Use default configuration permissions Use custom configuration permissions Y ou may edit who can change the configuration information Far this application Cancel ppl Step 14 Select the The interactive user item from the Identity page HAPOPC DA Server Properties Which user account do vou want to use to run this application f The interactive user t The launching user C This user Ver 3 09 Date Oct 10 2008 Page 101 NAPOPC DA Server User s Manual 4 2 2 Configuring On the Client Site Windows 98 Run the DCOMCnfg exe program Users may get the following error message To avoid this message configure the security to User level access control DCOM Configuration x Before you can
93. tively and shorten response time 6 2 2 Switch of Single Thread and Multi Thread NAPOPC version 3 09 supports Communication Mechanism option at Options Configurate Initial Status This option lets user define the communication behavior of NAPOPC Generally Multi Thread is the best choice for high performace However for some particular OPC clients which can not work smoothly under Multi Thread communication user can choose Single Thread instead Ver 3 09 Date Oct 10 2008 Page 130 NAPOPC DA Server User s Manual 7 Reference FAQ txt The frequently asked questions and answers Modules htm A list of modules the NAPOPC DA Server supports A list of module supported commands Descriptions of each command type GetStart PDF This manual can be downloaded from below link http www icpdas com download 7000 manual htm It describes the following topics 1 Connecting modules The 7000 Utility user s manual Introduction to NAP7000P Introduction to NAP7000X Dual Watchdog FAQ for 7000 OPCOvw PDF The OPC overview written by the OPC Foundation OPCCommn PDF The OPC common interface specifications by the OPC Foundation OPCDA20 Cust PDF The OPC DA v2 0 custom interface specifications by the OPC Foundation OPCDA20 Auto PDF The OPC DA v2 0 automation interface specifications by the OPC Foundation O3 C ON OPC Foundation Web Site http www opcfoundation org Ver 3 09 Date Oct 10 2008 P
94. tton Then select the Delete option or the icon Ver 3 09 Date Oct 10 2008 Page 33 NAPOPC DA Server User s Manual Ar r oo nO m Ch a gt DOs cho ds Counter a gt Counter I7188EG_RTU ChI amp Als Als CNM i 18427 TCP MB 18437 TCP chos d DOs ics EST d Counter HUG Com mm PIU o New Group Delete New Tag New Group Properties New Tag i a gt LatthLowDIs Delete Properties Figure 1 12 1 Figure 1 12 2 Figure 1 12 3 Figure 1 12 1 Select a device and right click the mouse button Then select the Delete option Figure 1 12 2 Select a group and right click the mouse button Then select the Delete option Figure 1 12 3 Select a tag and right click the mouse button Then select the Delete option 1 13 Generating Tags This function lets you easily test the OPC server in the simulation mode It is only valid if the selected device of module type has no sub Module Group and Tag Step 1 Select a device of module type you want to generate tags Step 2 Click on the Add Generate Tags menu item or the i icon to generate tags Edi View Options Help New Device Cth New Group Cel t L il New Tag Cal T search Modules Ctr renerate Tags Ctrl li LL Ver 3 09 Date Oct 10 2008 Page 34 NAPOPC DA Server User s Manual 1 14 Configurate Initial Status This function lets you configurate initi
95. uld less than 124 for coil and register For 7188MTCP it should less than 498 for coil and 127 for register The default numbers are both 122 For Modbus standard it can t greater than 2000 for coil and 127 for register Pending Time Minimum interval time between two access To activate this function NAPOPC can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC will automatically spread time resource to other modules which are connected with each other OK Click on the OK button to add the new controller setting Cancel Click on the Cancel button to avoid any changes Step 5 Click on the OK button to add this new device 1 5 3 Adding A New Modbus RTU Controller Step 1 Click on the Add New Device menu item or the icon to add a new module Bur Gev pions HE yi bone Hel New Device Cub mERP New Group Ctrlt ts New Tag tl T z TT ef search Modules Ctrl M i B Ver 3 09 Date Oct 10 2008 Page 18 NAPOPC DA Server User s Manual Step 2 The Device Properties dialog box pops up Step 3 Click on the Controller radio button Step 4 Click on the Modbus RTU radio button Device Properties Tt Device Name Device5 O TEA SE 87E 140 Module Module Setting Cove wl eel Wim Controller Controller i e aE Sz iure ez Timeout mec
96. unica Cicode Files Graphics Tags alarma System Communications Cicode Files CitecEvBA Files Ver 3 09 Date Oct 10 2008 Page 88 NAPOPC DA Server User s Manual Step30 Start up the Citect Computer Setup Wizard Citect Computer Setup Wizard z Er Ioj x The Can Do Software This wizard will assist you in setting up and customizing your computer for use with Citect Select the type of sebbbi nuire Express Setup LISTE E Wp lOl x Network computer Server and Display Client C Display Client C Manager Client Back Next gt Cancel Help Ver 3 09 Date Oct 10 2008 Page 89 NAPOPC DA Server User s Manual Step32 Select the project OPC test to be the project that this computer will run Select the project that this computer wall run Project Hame PC test I O Server Setup B ID x The lO Server is the part af Citect that requests data fram and writes data ta LO Devices A physical connection is required between the computer acting as an I O Server and the O Device it is communicating with Thie computer is an 40 Server Select the lA Server that this computer will be YO Server ame Mane contiqured gt You have na I L Servers configured in your project The lO Server will be disabled lt Back Next gt Cancel Help Ver 3 09 Date Oct 10 2008 Page 90 NAPOPC DA Server User s Manual Step34 L
97. use DCOM your system needs ta be configured far User evel security Use the Network icon in the control panel to configure your system far Userlevel security before running the DCOM configuration utility Step 1 Double click on the Network icon in the control panel Step 2 Configure the user s system with User level access control security in the Access Control page Network xX Configuration Identification Access Control Control access to shared resources using C Share level access control Enables you to supply a password for each shared resource Cs ues access control Enables you to specify users and groups who have access to each shared resource Obtain list of users and groups from JICPDAS COM Cene Ver 3 09 Date Oct 10 2008 Page 102 NAPOPC DA Server User s Manual Step 3 Run the DCOMCnfg exe program in the Windows95 98 system folder Step 4 Select the Default Properties page Step 5 Settings as follows Checked Distributed COM Configuration Properties Applications Default Properties Default Security v Detault Distributed COM communication properties The Authentication Level specifies security atthe packet level Default Authentication Level Qe E The Impersonation Level specifies whether applications can determine who is calling them and whether the application can do operations using the client s identity LisieultImperson
98. utodesk b ICPDAS tIl F9 DCON Utility s E DemoShield gt ER minios Utility ver 3 12 AnyDVD Ge Nig Dr eye ERES kf ir Modbus Utility RSEN f DYD Shrink t NAPOPC 3 Client Ao ir FinePrint gt i VCEP 4 2 0 4 I Fag a Greatest Paper Airplanes k Lag Modules List la HD Tune T MAPOPC Server Tai HTML Help Workshop b p MAPOPC Server Manu E Microsoft Office T Tai ICP DAS ld 3 OPC Spec Ap Microsoft Visual Stud Tai InduSaft Web Studio v6 1 E Readme txt Bl embedded visual C InstallShield E What s new E microsoft visual Sour fan iTunes i 7 Visual SourceSafe 6l T K Lite Codec Pack y ta Microsoft Visual C Tai Microsoft MET Framework SDK v1 1 M OPA Mirrnenft Pievelnner Mebiunrle k 1 2 File All configuration settings can be saved into configuration file by clicking the File Save and File Save As menu item The OPC server will automatically load the last configuration file with every launch JCPDAS NAPOPC DA Server Yer 00 File add Edit View Options Help Mew CubhN ju E U Open Cro F e nave Cales save As tle A Bou ui s Gener search Expand Shrink Print Setup Print Preview Print 1 CAICPD ASW A POPCAE W tdh 2 CAICPDASAN amp POPCNV micker td b 3 CAICPD ASW A amp POPCAWmCon tb Exit A lttF4 New Clean current project and create a new project Ver 3 09 Date Oct 10 2008 Page
99. utput Coil Input Register and Output Register When you monitor controller device see 1 3 Monitoring Device the Channel Location field will show a value according to the location and location type as below Location Type Range Output Coil 000001 065536 Input Coil 100001 165536 Input Register 300001 365536 Output Register 400001 465536 Simulation signal The valid signal is SINE RAMP and RANDOM This field is validated when the module uses simulation I O Please refer to the Adding A New Device section OK Click on the OK button to add the new tag setting Cancel Click on the Cancel button to avoid any changes Scaling Enable Check this check box to enable the Settings button Settings Click on this button to set the scaling feature For more information please refer to the section 1 7 3 Scaling Settings 1 7 3 Scaling Settings In general the Scaling feature is only useful for the floating point data type Ver 3 09 Date Oct 10 2008 Page 28 NAPOPC DA Server User s Manual Tag Process Settings e Scaling Raw Data Unite Min B See Maf Max 1000 Max 10 Conversion 9 Lies qum Root Dewiband 0 S Eo Ema Raw Data Min The original Minimum value MinRaw Max The original Maximum value MaxRaw ocales to Units The unit of the scaled value Just for reference only Min The scaled Minimum value MinScale Max The
100. ve as following declarations CPDAS OPC ICPDAS OPCDA and ICPDAS OPC NET Second you could design your UI User Interface You can refer to the Ul of VCZ Net program shown as below Third you need to declare some variables at the General Declarations area of VC Net code window The most important types of variables are ICPDAS OPCServer ICPDAS SynclOGroup and ServerTreeBrowser As the declaration we can use several functions to read write tag values through Server and Group vara VCBOPCClHeat Demo i Qj Server name NAPOPC Svr 1 Head Value Write Value Timestamp Quality Ver 3 09 Date Oct 10 2008 Page 126 NAPOPC DA Server User s Manual Declare a new ICPDAS OPCServer object ICPDAS OPCServer Svr null Declare two new ICPDAS SynclOGroup objects ICPDAS SyncIOGroup ReadWriteGroup Grp Declare a new ServerTreeBrowser object serverTreeBrowser Tag Tree Declare two new RefreshGroup objects RefreshGroup AsyncRefrGroup rGrp Declare a new TagDef object TagDef TagData Declare a new String variable for OPC Server Prog D string serverName Step 3 You can set ServerName as NAPOPC Svr 1 and pass it to ICPDAS OPCServer for connecting Set a ProglD to ServerName ServerName NAPOPC Svr 1 Create a new OPC Server object Svr new ICPDAS OPCServer Connect to NAPOPC DA Server Svr Connect ServerName Step 4 Now you ll go ahead and add the code rights after you get your connection
101. wo access To activate this function NAPOPC can work under optimized communication performance If this module only needs to be accessed 1 time per 5 seconds You can set pending time as 5000 ms NAPOPC will automatically spread time resource to other modules which are connected with each other OK Click on the OK button to add the new module setting Cancel Click on the Cancel button to avoid any changes Step 4 Click on the OK button to add this new module 1 5 2 Adding A New Modbus TCP Controller Step 1 Click on the Add New Device menu item or the icon to add a new module Edit View Options Help New Device _tl D New Group Minsk New Tag t T litt View Options Help EEEII 21 m TT search Modules Ctrl M i Step 2 The Device Properties dialog box pops up Step 3 Click on the Controller radio button Step 4 Click on the Modbus TCP radio button Ver 3 09 Date Oct 10 2008 Page 16 NAPOPC DA Server User s Manual Device Properties Td Device Name Devices n O TEA SEA 87E 140 Module Module Setting O No Controle x Es s x O With Contoller Controller i a oK ox Address 40 255 Timeout mec Sot QP for 8K Modules Checkeun 5 7 entroller M 7E Device Controller Setting O Qnicke POCO todbus TCP O Modius RTU A ddes E Timeout OQ issGkAF IP Address Msg Delay COM Port Setting a COM fi Puty lo z
102. x X You need to provide an address For your O Device Press the Driver Address Help button Far help an the address of the driver you hawe selected Driver Address Help Enter an address below or accept the default pr i m Address HAPL PL 5 vr 1 Selected driver Manufacturer OPC Foundation Model OPC Servers Communications OPC lt Back Next gt Cancel Help Step12 Do not set any parameter in this step Express Communications Wizard P x Select this option if you want this LO Device to link to an external tag database S tag database Browse Database type Concept Ver 2 7 ASCII file Eonnection string Add prefiz to externally linked tags Tag prelis jv Automatic refresh of tage Back d Next gt D Cancel Help Ver 3 09 Date Oct 10 2008 Page 79 NAPOPC DA Server User s Manual Step13 Click the OK button to finish the setting of communication parameters Express Communications Wizard x The Communications Wizard will make the following changes to the project OPC rest Lj Using new VO Server OPCS ever Creating O Device UPCDe Type Disk LO Device Manufacturer OPC Foundation Model OPC Servers Communications OPC Address HLUIMELDIPCD ev CDK F k Press Finish to save this setup Print z Back Finish D Cancel Help Step14 Open the Citect Project Editor wi
103. y compatible with OPC When using DataSocket to connect to OPC Servers use the older compatibility DataSocket VIs All hardware compatible with selected example Double click a device to view Web information y f Setup Help 3 f Clos ee a Step 4 Click on the Select Items item in the Multiple OPC Items Monitor vi demo d Time Cut from Server a Error Reading Items i Multiple OPC Items Monitor vi Front Panel File Edit Operate Tools Browse Window Help Siml 5 Example of how to read multiple OPC items at a time _ You can either specify which iteme to read or use the Predeternuned List of Items 0660 The Predetermined List of Items specifies items from the ape National Instruments OFC Demo server which has been installed on your machine Thu Step 5 Run this demo Step 6 Click on a machine name in the Network tree view Step 7 Select the NAPOPC Svr OPC server Step 8 Click on the OK button to close it Step 9 Select a file which you want to use and click on the OK button Step 10 Select an item tag in the tree view Ver 3 09 Date Oct 10 2008 Page 50 NAPOPC DA Server User s Manual Step 11 Click on the OK button to add this one Browse host Refresh URL apcz localhosUN APOPC svi TCP 8054 Do Do Step 12 Repeat the steps 6 11 to add more items tags Step 13 Click on the Cancel button to finish add
104. yVal e As DataChangeEventArgs Private Sub TagReadWrite ByVal lgrp As ICPDAS SyncIOGroup ByVal lrgrp As RefreshGroup ByVal 1Tree As ServerTreeBrowser ByVal taglId As String Step 5 Now you can add codes for the Read button Write button and TreeView AfterSelect function Please refer to the btnRead Click btnWrite Click and tvrags AfterSelect subroutine of VB Net demo program In these three functions the Grp Read the Grp Write and the TagTree TagName are three key methods Read the OPCTag value after the read button press Private Sub btnRead_ Click Write the value in the text box after the write button press Private Sub btnWrite Click The action after selecting the tag Private Sub tvTags AfterSelect Step 6 You can build the project and you will see the Ul as below Ver 3 09 Date Oct 10 2008 Page 124 NAPOPC DA Server User s Manual YBOPCCheat Demo o Serer name p e roc TO ee Read Value Write Value Timestamp Cuality Step 7 After you click on the Connect button you will see the OPC Server tree list You can choose one of them and click on the Read button You will see the tag value at the Read Value field as below You can also type the value you want to write in the Write Value and click on the Write button Refer to 4 2 Net Client Demo Program YBOPCClieat Demo o Serer name M lt a ree 8411 1 8054 50 DOs Chl Ap 30545
Download Pdf Manuals
Related Search
Related Contents
MCF5307 ColdFire® Integrated Microprocessor User's Manual Thermo Products CDB1-100 Furnace User Manual Targus Groove Notebook Backpack fdrpas, fdrmove, fdrerase v54l78 取扱説明書 User Manual - Efficient Irrigation Toshiba MD13N3 13 in. TV/DVD Combo INSTALLATION GUIDE intext:Bedienungsanleitung filetype:pdf Copyright © All rights reserved.
Failed to retrieve file