Home
1 NAPOPC DA Server
Contents
1. Select the role of this computer Star poet of Server and Display Client eee Network computer Server and Display Client Display Client Manager Client Back Next gt Cancel Help Ver 2 22 Date May 09 2006 Page 84 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 will rur Project Hame OPC_test Y Step33 Click the Next button to next step 1 0 Server Setup an i 5 x The lO Server ts the part of Citect that requests data from and writes data to LO Devices A physical connection i required between the computer acting as an I O Server and the O Device it is communicating with D Thie computer is an 40 Server Select the lai Serer that this computer will be YO Sewe Name lt None contiqured gt You have no 0 Servers configured in your project The lO Server will be disabled lt Back Next gt Cancel Help Ver 2 22 Date May 09 2006 Page 85 NAPOPC DA Server User s Manual Step34 Left click the Finish button to finish the computer setup Citect Computer Setup The Can Do Software Your computer setup i complete Press the Finish button to save your settings and exit or press the Cancel button to quit without saving any changes Step35 Select OPC_test project and press F5 to ru
2. eee E Component Name Type C Uorcameali a ok Canerl Help step 2 First you must using directive as following declarations ICPDAS OPC ICPDAS OPCDA and ICPDAS OPC NET Second you could design your UI User Interface You can refer to the UI of VC 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 variables VCSOPCClicat_Demo Server name MAPOPC Syvr 1 Read Value Write Value Timestamp Quality Ver 2 22 Date May 09 2006 Page 121 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 ProgID string ServerName Step 3 You can set ServerName as NAPOPC Svr 1 and pass it to ICPDAS_OPCServer for connecting Set a ProgID to ServerName ServerName NAPOPC Svr 1 Create a new OPC Server object Svr
3. Express Communications Wizard E Ea Select this option if you want this LO Device to link to an external tag database Bere tag database Browse Database type Concept Ver 2 7 ASCII file Connection sting Add prefiz to externally linked tags Tag pretis Automatic refresh of tags Back A Next gt OD Cancel Help Ver 2 22 Date May 09 2006 Page 74 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 best Using new VO Server OPCS ever Creating O Device UPCDe Type Disk LO Device Manufacturer OPC Foundation Model OPC Servers Communications OPC Address AUN OPCDev CDK F F Press Finish to save this setup Print lt Back Finish D Cancel Help Step14 Open the Citect Project Editor window to edit Boards parameters Citect Project Editor OPC_test COMPILED DO Server Boards Forts Modems DO Devices Remapping Sets up the O Server boards Ver 2 22 Date May 09 2006 Page 75 NAPOPC DA Server User s Manual otep15 Edit Boards parameters The Address scanning period is set to be 250ms and the Special Opt is set to be blank E Boards oPC_test2 Server Mame opCServer
4. Both fel FAN A Step 10 Select an item tag in the tree view Step 11 Click the OK button to add this one Ver 2 22 Date May 09 2006 Page 66 NAPOPC DA Server User s Manual OPCCLOO1 0PC Description Server dentitier Disable ICP NAPOPC Sw Read Update Rate rma Percent Deadband Status Remote Server Name Browse Tag Name term 1 doy M0120 2 DOs Choo Always w 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 key three times to display in the gray square Step 14 Click the Text Input Output property icon on the Object Editing toolbar Text I O appears in the drop down menu of the Object Properties window In the Tag Expression field type the tag name you want to link Object Properties Ea J Replace Hint Text kd Capion p SSS Alisa Left e Border Col Transparent Fonts BackColor M Extem oe Ver 2 22 Date May 09 2006 Page 67 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
5. Comer E o LatchHigh Bitin WB I7188EG_RTU I7188EG_RTU LatchHigh Bitir ioe a LatchHigh Bitln DOs Delete Cho Lat hHish Bithn dt Counter a ComterStatus New Group ph Bitln New Tag th Bitln Delete New Group kee d LatchHighDIs New Tag de gt LatchLowDIs Froperties Figure 1 6 3 Properties Figure 1 6 1 Figure 1 6 2 Figure 1 6 1 Select a device and right click the mouse button Then select the Properties option Figure 1 6 2 Select a group and right click the mouse button Then select the Properties option Figure 1 6 3 Select a tag and right click the mouse button Then select the Properties option Ver 2 22 Date May 09 2006 Page 27 NAPOPC DA Server User s Manual 1 11 Deleting A Device Group Tag To delete a existing Device Group Tag just select the Device Group Tag and right click the mouse button Then select the Delete option or the icon a _ chii Chol Cho Counter 17188EG_ETU Cho h Als Als Choe 18437_TCE amp CH5 d DOs a E dt Cownter HUG i CounterStatus Delete New Group Delete New Tag New Group New Tag i j amp LatchLowDIs als Figure 1 7 3 Properties Figure 1 1 Figure 1 7 2 Figure 1 7 1 Select a device and right click the mouse button Then select the Delete option Figure 1 7 2 Select a group and right click the mouse button Then select the Delete o
6. 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 New Device Ctr D J New Group telt ts New Tag Cth T search Modules Cth M Tat Reg Output Float Reg Outputs 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 0 Add Multi Tags Dialog Frototype O Coillnput Col Output Resister Input Register Output Modbus Addres Fom Z Cancel Prototype There are four kinds of prototype for modbus tag Coil Input Coil Output Register 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 Ver 2 22 Date May 09 2006 Page 24 NAPOPC DA Server User s Manual 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 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 8 Expand Shrink Devices Click on the Edit Expand device Shrink device menu item or the m
7. CthG New Tag ChI litt View Options Help search Modules Ctrl M J J z i 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 Name Devirel Wo Controller TE Mith Controller Controller Addres 255 Timeout imece 200 elot 0 7 for sk Modules Checksum O Controller TCPIP Address O Modbus ETU COM Port Setting Band Fate i Data Bits stop Bits O Request Tag Number Coil Register J Simulate 142 foes not access the RS 485 Modnus device Ver 2 22 Date May 09 2006 Page 11 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 Specifies 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 Specifies timeout Response time value for this module The default value is 1000 ms A smaller timeout value may cause communication failure and a greater timeout value may reduce t
8. Uncertain Maybe you do not click the View Monitor menu item to enable monitor etc Read Value Timestamp lt shows the time when you read the tag Tag name lt is the same with the Name at the Settings page You can modify it at the Settings page Access right Ver 2 22 Date May 09 2006 Page 26 NAPOPC DA Server User s Manual 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 6 Adding A New Tag Write Value Timestamp It shows the time when you write the tag 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 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 10 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 ee Ti lsekG TP s Als Bis LatchHigh Bitin
9. Uncheck the item to stop monitoring Step 1 Click the View Monitor menu item or the amp icon to enable monitor Ver 2 22 Date May 09 2006 Page 9 NAPOPC DA Server User s Manual File Add Edit View Options Help z i ngs ES search Expand shii E Type ChamelLocation Choo Bit Input 0 Chol Bit Input l Choe Bit Input S Chis Bit Input 3 a LatthLowDls Chod Bit Input 4 de LatchHighDls amp Chos Bit Input 5 T0600 amp chi Bit Input 6 a gt Dl de DOs de Counter de LatchLowDIs de LatchHighDls Step 2 Select the DIs group in the Device Window left side to monitor its own Bit Input tags Choo 8 BitInput 0 Chol Bit Input i ChI BitInput 2 Cho BitInput 3 C hi4 BitInput 4 2 Cho5 BitInput 5 C hif BitInput 6 de LatchLowDIs step 3 Select the 7050D module on the Device Window to monitor its own Digital Input and Digital Output tags 70330 eo Todd 2 cho0 Comter 0 ee FO6OL Chil Comter l ee T0500 amp Chi Comter 2 de Dls Scho Comnter 3 Cis Chit Counter 4 hi5 Counter 5 d LatchLowDIs amp Chi Comter 6 de LatchHighDIs Ver 2 22 Date May 09 2006 Page 10 NAPOPC DA Server User s Manual 1 4 Adding A New Device 1 4 1 Adding A New I 7K I 8K I 87K I O Module Step 1 Click on the Add New Device menu item or the icon to add a new module Edit View Options Help New Device ChHD New Group
10. 485 network Rc It stands for Receive This field records the string received from the RS 485 network Ver 2 22 Date May 09 2006 Page 30 NAPOPC DA Server User s Manual Note The Debug Logging feature will reduce the OPC Server s performance Thus using this feature for debugging only is highly recommended 1 14 Configuration Initial Status This function lets you configurate initial status of NAPOPC server when client softwares connect to it The File Open Dialog option let users load a file automatically or manually And System Tray option can hide or minimize program of NAPOPC server This function can be selected only when OnMonitor function isn t running Step 1 Click on the Options Configurate Initial Status menu item to open Initial Setting Dialog Options Help Debug Logging Confievrate Initial Status fe Last One Auto load No Ask User Select Manually C Hide Hide in Background f Minimize Show Icon on System Tray 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 user s manual Ver 2 22 Date May 09 2006 Page 31 NAPOPC DA Server User s Manual Other Reference IP DAs Online Mai
11. Bin AR Microsoft eMbedded Visual C 4 0 an Modem_Link lie National Instruments Ei Startup E Uninstall WAP OPC Server o E winrar E what s new amp Internet Explorer ii k mS eo Windows Catalog he MSN Explorer fe Outlook Express tb Windows Update jee Remote Assistance ae Windows Media Player m BL pat ans ap Windows Messenger A a 1 2 Searching Modules ay ms i ve 4 ork ag a ss ai TWE DEEE a LE aE es 27 EES Activate Windows D 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 generates tags automatically This function generates Al AO DI DO Latched DI and Counter tags Please refer to a MODULES HTM file in DAQPro NAPOPC folder Step 1 Click on the Add Search Modules menu item or the icon to search for modules Edit View Options Help New Device Cth New Group telt ts New Tag t T search Modules Cirlt M i E i j am l LLIT is Step 2 The Search Modules dialog box pops up Ver 2 22 Date May 09 2006 Page 6 NAPOPC DA Server User s Manual Seanmkh Modules COM O Clear Modules Baud Rate Searching T 921600 fF 460800 230400 C 115200 O 57600 O 38400 O 19200 9600 C4800 32400 O 1200 Address 1 to 255 p Checksum Timeout msec Start 0 Disabled 500 End 5 Enable status Static co Sp
12. Board Hame BOARD Board Type Address Special Op Comment Replace Delete Help Record 1 Step16 Define two Variable Tags Fes OPC_test Citect Explorer File View Tools Help OPC_test a el Al FS Project List Contents of Tags J System Communications Ver 2 22 Date May 09 2006 Page 76 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 AQs Ch00 see Step 6 2 ariable Tags OPC_test SS o O x OFCDev gt Raw ero Scale Raw Full Scale Eng ero Scale Eng Full Scale Eng Units Format Comment Replace Delete Help Record 1 Linked No Varable Tag Name iO Device Name Address step18 Define another variable tag for analog input of the modules 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 Als Ch00 See Step 6 2 ariable Tags OPC test oe ee 3 z oj x Variable Tag Nag Data Type Zz I O Device Hame Address Raw ero Scale Raw Full Scale 0 Eng ero Scale PO Eng Full Scale Eng Units Format Comment Replace Delete Help 7 Record 2 Linked No Ver 2 22
13. Date May 09 2006 Page 77 NAPOPC DA Server User s Manual step19 Create a new page in the Citect Graphics Builder window 2 Citect Graphics Builder Objects Text Arrange Tools Window Help m 4ean wH E e E Save hr 5 Save DS Save All Import Properties Defaults Compile Alt F10 Run FS Print Ctrl P Prigt Setup Exit Alt F4 Creates a new page template symbol genie or super genie ch me s GUIDE GRID me x Page Cancel Create a new graphics page Using a pre defined template Help Template Create your own template to use as a base for aimilar graphics pages Create a new symbol for objects that you use often Gene Create a new genle for groups of objects that have common attributes Super Genie a Create a new super genie that can be accessed at runtime E Symbol ed Ver 2 22 Date May 09 2006 Page 78 NAPOPC DA Server User s Manual Step21 Select normal template to be the background and function of this page W Linked Title bar Resolution Default Be spcxrschart standardchart ZUMMArY tab menu tabs menu Step22 Select Objects Text from Citect Graphics Builder window menu to insert a Text Object on the page 2 Citect Graphics Builder OPC test Untitled1 ES Joj x M File Edit view Objects Text Arrange Tools Window Help j x ppe E ea ajoj WHF E e M
14. 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 O O gt a OPC Foundation Web Site htto www opcfoundation org Ver 2 22 Date May 09 2006 Page 35 NAPOPC DA Server User s Manual 4 Connecting To The OPC Server The OPC is defined by the OPC Foundation and any client program supporting OPC can connect with the 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 To connect to the OPC server please refer to your client program user s manual The following sections show you how to connect to the OPC server by using client program provided by Factory Soft Inc Lab VIEW Server Explorer provided by National Instruments WIZCON iFix InduSoft and CitectSCADA Ver 2 22 Date May 09 2006 Page 36 NAPOPC DA Server User s Manual 4 1 VB5 Client Demo Program We provide three OPC client demo programs for Visual Basic 5 0 Visual Basic Net and Visual C Net It is placed under the DAQPro NAPOPC Client folder after installation of our NAPOPC server Note The Net demo programs coul
15. FactorySoft Shell FE NAPOPC Sve coh Wizard Gre oup ir T7186EG TEP IO BII ir Irge TCF I0 BIZ ir Irie TCP IO BIS or TVle8s o TCF I0 BI4 Tene Deviceiktem Item ID Value isea TEP IO TrieeEs_ TCP IO iEn TCP I0 IiE TCP I0 Figen TER IO Pisses TER IO igea TCR IO Pien TCP IO GF I7188EG_TC F I7188EG_TC dF IF188EG TC GF ITIS8EG TC OF ITIS8EG TC GF IF188EG TC F I7188EG_TC GF IFiS8EG TC ro oO oO oO oO A A A Timestamp GF I7188EG_TC OF I7188EG_TC GF I7158EG_TC OF ITISSEG TC F IF188EG_ TC Please TCP IC T1 TrileeEs TCP TYleees TCP I0 V2 Pisses TCP I0 YS Please TCP IG V4 id T7lesbs TCP IO BO1 ie T7188EG _TCP IO BO2 ir T7188EG_TCP IO BOS or T7186EG_TCP 10 BO4 ir T7188EG_TCP IO T1 a T7168EG TCP IO 1 o T7188EG_TCP IO v2 ir TW1les s TCP IO YS o T7188EG_TCP 1IO 4 a My Network Places Ready C Program Files Mational Instruments nati ccdb step 7 To add new items right click on the group name then select Add Edit Items 2 New Project Server Explorer 2 4 1 Edit View Options PEE J2l l l a My Computer FactorySoft InProc FactorySoft Sample FactorySoft Shell G J NAPOPC Svr File Servers Help Mame Deviceitem Tem ID Value Timestamp FITIGBEG TC IF1B6EG TCP IO PIFISSEG TC IF186EG_TCP IO FIF188EG TC IF186EG_TCP IO FITISSEG TC IF18SEG TCP I
16. OPC_test Bl iall Al fale Project List Contents of Communications My Projects jagg 2 a Example 15 Je aie e Express If TO Servers Boards Ports Moderns TO Devices Graphics Device Setur J Tags _ m Alarms J System ilil IO F Cicode Files Remapping FF Cikect BA Files aE Step6 Start up the Express Communications Wizard Dialog Express Communications Wizard The Can Do Software This wizard sets up communications for an IO Device and optimises the runtime performance of the 10 Device You can also use this wizard for the configuration of Memory and Disk LO Devices Back qo Next gt Y Cancel Help ee Ver 2 22 Date May 09 2006 Page 71 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 ae l xl Select the 170 Serer you wish to work with You may create a new O Serer by entering the desired name or select from your existing 10 Servers Create anal Server Nam OPCSever f Use an existing 0 Semer lt Back Het 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 ou may create a new VO Device by entering the desired name or select from your existing LO Device Crea
17. OR Cancel Help Step 7 Click on the Connect button I O Driver Server Connection f Use Local Serve Remote machine name or TCP IP C Wee Remote Server To run the User Interface you must first connect to an 1 0 Driver OLE Automation Server If you want to connect to the server on this machine select Use Local ol aes ee If you want to connect to a server on another machine select Use Remote Server and enter the machine name or a TCP IF address of the machine that has the server that you You can use the tree browser to help select a remote machine mame W Show this dialog on st ma ea Ver 2 22 Date May 09 2006 Page 58 NAPOPC DA Server User s Manual Step 8 To configure the OPC server is pee SOYHANICS Untitled ope PowerTool File Edit View Display Mode Options Help oslo e Pm rap uu ge fe mol Hame orcDry OLE for Process Control Client Version 7 12 Humber of Humber of For Help press Fl a ee A Step 9 Select the NAPOPC Svr and click on the OK button Select en OFC Server Intellution OPCEDA itet TITA CEDA 1 CHAPOPC Gur ele Selected Server 5 HAP OPC DA Server mea Ver 2 22 Date May 09 2006 Page 59 NAPOPC DA Server User s Manual Step 10 Add server group and items Fill properties by clicking on the Browse Server button R o C DINAMICS Untitled ope FowerTool File Edit
18. Remove Help Ver 2 22 Date May 09 2006 Page 105 NAPOPC DA Server User s Manual Step 11 Select the 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 dl 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 for EventSysten Eventi bjecttChange events Sound Recorder Tat wr Voce Dictation Manager Windows Management Instrumentation Kl mea w Step 13 Check the Run application on this computer option NAPDPC DA Server Properties P x General Location Security Identity Endpoints The following settings allow DCOM to locate the corect computer for this application IF you make more than one selection then DCOM uses the first applicable one Chent applications may override your selections Aun application on the computer where the data is located gt application on this computer Run application on the following computer Browse cancel Ae Ver 2 22 Date May 09 2006 Page 106 NAPOPC DA Server User s Manual Step 14 Set all items in the Security page to Use default opt
19. Run the DCOMCnifg 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 Detault 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 M Provide additional security for reference tracking Ver 2 22 Date May 09 2006 Page 92 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 fou may edit who is allowed to access applications that do not provide their own settings Edit Default Default Launch Permissions fou may editwho is allowed to launch applications that do not provide their own settings Edit Default Default Configuration Permissions fou may edit the list of users that are allowed to modify OLE class configuration information This includes installing new OL
20. The default value is 1 and the valid range is between 1 to 247 Timeout Specifies timeout Response time value for this controller The default value is 1000 ms A smaller timeout value may cause communication failure and a larger timeout value may reduce the performance of the client program Msg Delay Specifies message delay value for this controller The default value is 0 ms A smaller msg delay value may have a higher system loading but it will have a faster data exchange speed Ver 2 22 Date May 09 2006 Page 16 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 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 Baud Rate Specifies 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 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 Request Tag Number The Requested Tag Number sets tag value numbe
21. View Display Mode Options Help Diol Of r J mw m u et 2 woe Item Ttem2 Enable Desecriptic OFC Item Settings Item J Requested Server Client Settings Disable Outpul Latch Data Access g Access Path Browse Server For Help press Fl a Step 11 Select the item which you need Click on the OK button Browse OFC Server Item TDs ee AeCcess Faths f HAPOPC Svr fe TOIBP_ 1 ATs Choe El TOLGP_1 ALS ItemiI Access OF Cancel Ver 2 22 Date May 09 2006 Page 60 NAPOPC DA Server User s Manual Step 12 Enter database manager of iF ix 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 ltem1 Ver 2 22 Date May 09 2006 Page 61 NAPOPC DA Server User s Manual 4 8 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 acquisition 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 ne
22. Window Help _ x Console Root DaM Config D Component Services _ Application IC Lo lll Seis Microsoft IMAPI C49F2185 5047 11D3 9144 00104B411C5E a a POUT a Se microsoft Upload SE82AD01 D143 11D2 9374 00CO4E72DAF7 9 COM Applications Epee microsoft WBEM 266C72E7 62E9 11D1 AD89 00C04FDSFDFF J AccStore Class Microsoft WBEM 49BD2028 1523 1101 4079 O0C04FO8FOFF 4 Automatic Update ae Microsoft WMI Pr 73E709E4 5D93 4B2E BBBO 99B7938DA9E4 Aa Background Intel MMC Application 49627914 B1AE 4C90 968E E860BA07F889 Sa Blocked Drivers gt mMobsynec 6295DF20 35EE 1 1d1 8707 00C04FD93327 a COM Event Syst SRMSDAINITIALIZE 2206CDB0 19C1 11D1 89E0 00CO4FD7Aa29 Comevents coms DCBCADFS DB1b 4764 9320 9a5082aF 1591 S RECO EE MAPOPC DA Server DD001B43 FB51 11d3 8D48 0geoano7 set Command line Tri netman 27 AF 75ED 2009 11D1 B1CE t oS CustReg Class gt NetMeeting SCESSCD8 5179 1102 9310 ae Defrag FAT engin re s opcEnum ri MoFrean RITES amani E i E E al Ver 2 22 Date May 09 2006 Page 108 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 Hame MAPOPC DA Server Application ID 10 D001 B 43 FB51 11d3 8048 00804
23. and Update Rate The name can be any name you want Click Next gt to continue Ver 2 22 Date May 09 2006 Page 47 NAPOPC DA Server User s Manual OPC Wizard Group Creation Fress the Nest button to create the OPC Group Group Name Update Rate msec 00 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 tem s Available OPC Items Selected OPC Items thems Device ter tems Devices ber F 7016 17 Als Choo 17189EG_TCF 10 BI 7016 17 00 J gF IF1S8EG TCPIO BIZ 701617 D0 C00 i 7188EG_TCP 0 B13 eF 7016_17 00s Ch01 dF 7188EG_TCPIO BI4 F 701617 D0 Ch02 g 17188EG_TCF 10 B01 l 7016_17 D0 Ch03 iF 7199EG_TCPIG B02 F 70500 Counter ChOo col I7188EG_TCP10 603 g 70500 Counter Chil dii 71 98EG TCRIO BO4 F 70500 Counter Cho 7188EG TCPIO T1 7050D Counter Ch03 dF 7188EG_TCPI0 W1 gF 70500 Counter Chid dF i7188EG TCRIOV Gr el MEDEA Pi88EG TCRIOVS lt lt i Step 6 Now you should be able to view the OPC connection that you just created Ver 2 22 Date May 09 2006 Page 48 NAPOPC DA Server User s Manual 4 New Project Server Explorer 2 4 1 File Servers Edit View Options Help Dis 2 2 4 4 pw is My Computer FactorySoft InProc FactorySoft Sample
24. 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 E RAPOPC Test Client maota Tag Selected Tag Sample Node Sample Mode Sample Mode Sample Mode Tag Value Text Counter Declare a new OPC Server object Public Server As OPCServer Declare a new OPC Group object Ver 2 22 Date May 09 2006 Page 114 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 GetOPC Servers 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 1 lastServer Then lastIndex I 1 Next I cbServerList ListIndex lastIndex MousePointer vbDefault step 4 Next youll go ahead and add the code rights after you get your connection to the NAPOPC Server Please refer to the Fillltems and Branch sub
25. on the Next gt button Communucation Driver Setup Wizard Please select the communication driver from the list Omron AnyWet TOPTP Cynon ES TES E oe amni A OPC Client Description OLE for Process Control Client OOOO N lt Back _ Next gt Cancel He RT Ver 2 22 Date May 09 2006 Page 52 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 Lonunmncaton Driver setup Wizard Specify a unique logical name for the diver NAPOPC DPC heen hl HAPOPC dvr The server was launched succesefully Cancel Help Name NAPOPC OPC OPC Client Fead Write Out of Block Step 12 Click on the OK button to close the window Communication L fee All changes in communication driver definitions will be applied only after program is reloaded Ver 2 22 Date May 09 2006 Page 53 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 Studia File View Desn Network T
26. 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 Specifies the communicate timeout value for each module The default value 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 The 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 c
27. 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 6 3 Scaling Settings 1 6 2 Adding A New Tag For Controller Step 1 Click on the Add New Tag menu item or the i icon to add a new tag Edit iew Option Help New Device Cth New Group Citelis New Taz search Modules Ctrl M Bit Input Bit Input 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 radio button is active Ver 2 22 Date May 09 2006 Page 20 NAPOPC DA Server User s Manual Tag Properties 0 Settings Read amp Write Name MEN Dewtiption Device Type 9 Type Araoginpat Channel 2 Location E Output Register v Diets Eas i Scale C Enable eumulsbon aenal o ee cnet ene 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 Specifies the data type of this tag which s location type is Input Re
28. 0 9704 3F Application Type Local Server Authentication Level Local Path Step 5 Select the Location page Step 6 Settings as follows Field Name 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 2 22 Date May 09 2006 Page 109 NAPOPC DA Server User s Manual MAPOPC DA Server Properties General Location Security Endpoints Identity E e eee ee et ue me e me en ee en ee ee ee ee ee The following settings allow DCOM to locate the corect computer for this application If you make more than one selection then DCOM 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 W Run application on We following computer 192 168 1 103 C o cree C aee 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 corect computer for this application IF you make mor
29. 7i88 G_TCPIO WS Defa liam ID Access Pathe I7186 G_TCPI0 V5 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 ee lcs 2 l a hy Computer Timestamp i F FactorySoft InProc ETEEN TEP IO BII IF188EG_TCP IO 0 15 52 49 8523 o FactorySoft Sample PIF1S8EG_TCP IO BI2 IF188EG_TCP IO 15 52 49 8523 oo FactorySoft Shell GF I7186EG_TCP IO BI3 I7188E6_TCP I0 15 52 49 6823 E NAPOPC Svr PIF1SSEG_TCP IO BI4 IF188EG_TCP IO 15 52 49 823 EF Pigs ee eee PIFISBEG_TCP IO BO1 I7188EG_TCP IO 15 52 49 843 6 AE EE Lae PIFISSEG_TCP IO BO2 I7188EG_TCP IO 15 52 49 5843 C I7188EG_TCP 10 81 PIF1S8EG_TCP IO BO3 I7188EG_TCP IO 15 52 49 843 Co 17188EG_TCP IO B1 PIFISSEG_TCP IO BO4 I7188EG_TCP IO 15 52 49 843 Mp TA188EG_TCP 10 Bi PIVIS8EG_TCP IO T1 I7188EG_TCP 10 71 15 52 49 883 p U7188EG_TCP 10 Bt PIv1S8EG TOPO IF188EG_TCP IO V 4 15 52 49 863 og 17188EG_TCP IO Bi PU1S8EG_TCP IO V2 IF188EG_TCP 10 V2 4 15 52 49 8563 og I7188EG_TCP IO Bt PUASSEG_TCP IOWS IFL88EG_TCP 10 V3 15 52 49 5863 i T7188EG_TCP IO T JE ETER n 15 52 49 5863 oo I7168EG_TCP IO AP IFISSEG_TCP IONS IF188EG TCP IO VS 52 49 863 og T7188EG_TCP IOWY og I7188EG_TCRIOW og T7188EG_TCP IO Y og I71B8EG_TCP 10 i i l C Program Files Mational Instruments nati codb Ver 2 22 Date May 09 2006 Page 50 NAPOPC DA S
30. A Server Properties General Location Security The following settings allow DCOM to locate the corect computer for this application Ifyou make more than one selection then DCOM uses the first applicable one Client applications may override pour selections Run application on the computer where the data is located Run application on this computer M Run applicati on the following computer 192 168 1 115 A 92 168 1 115 J tances anh Ver 2 22 Date May 09 2006 Page 100 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 Ka x General Location Security The following settings allow DCOM to locate the corect computer for this application IF you 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 cancel aow Step 16 Select the Security page Step 17 Select the Use default access permissions option HAPOPC DA Server Properties Ei E4 General Location Security unsnnunnnnnnnnnnsnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn na ze custom access permissions You may edit who can access this application Corc Aw Ver 2 22 Date May 09 2006 Page 101 NAPOPC DA Server User s Manual 5 2 3 Configur
31. Args Private Sub TagReadWrite ByVal lgrp As ICPDAS_SyncIOGroup ByVal Irgrp As RefreshGroup ByVal 1Tree As ServerTreeBrowser ByVal tagId 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 tvlags_AfterSelect subroutine of VB Net demo program In these three functions the Gro Read the Gro Write and the TagTree TagName are three key methods Read the OPC Tag 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 0 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 2 22 Date May 09 2006 Page 119 NAPOPC DA Server User s Manual FEOPCCheat_Demo S Serer name ee e ron D 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 VBOPCClieat_ Demo Serer name O m e eon D Chi4 8411_1 8054_50 D0 Ch00 C
32. Date May 09 2006 Page 42 NAPOPC DA Server User s Manual Add Item g Access Path SS Add Item Item Name 1esEG_TCPIC BIL Done Brows items IF158EG_TCP Ta 71S8EG RTU 10 18437_ TCE 10 FO50D Dls DOs Data Type e Use native trpe C Bool f Short Filter C Long C Double C String Step 7 Click on the Done button to close Step 8 The window shows the values of selected tags FA WAPOPC Syvr 1 FactorySoft OPC Client File OFC Wiew Help Ta PileskG TCP IORI Plesk TCP IOI MisekG TCP IOV Plesk TCP IOVS Plesk TCP IOYS PilseEG TCP IO 4 Plesk TCP IOVS Ver 2 22 Date May 09 2006 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 Oe 14 28 10 OFS 14 28 10 Page 43 NAPOPC DA Server User s Manual 4 4 LabVIEW Step 1 Run the LabVIEW program and select Open gt Example iS LabVIEW 6568 Fie Edit Tools Help PE iNsTRUME P7 INSTRUMENTS Open an essing virial mehoment Examples T4 LabVIEW KI Help Step 2 Click on the Search Examples button to get information on using OPC NI Example Finder 059560 Double click an example to open it Description Enter keyword s No examples match your search criteria _ No available description information 4 ope Double click keyword is a opt All hardware compatible wi
33. E servers and adjusting the configuration of existing OLE servers Edit Default OK Cancel Astral iy ltemto setting UserName Access Type Default Launch Permissions Administrators Allow Launch Default Launch Permissions Allow Launch Default Launch Permissions INTERACTIVE Allow Launch Default Launch Permissions SYSTEM Allow Launch rr eee Ver 2 22 Date May 09 2006 Page 93 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 Registry Value Permissions a Administrators Allow Access Everyone Allow Access Allow Access Allow Access Nowa SSC Cancel 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 E Cancel Add _Bemove Help Step 9 Set the Default Configuration Permission by clicking the third Edit Default button Registry Key Permissions ae Administrators Full Control Read Full Control Full Control Ver 2 22 Date May 09 2006 Page 94 NAPOPC DA Server User s Manual Step 10 Select the NAPOPC DA Server application step 11 Click the Properies button to configure the OPC server Distributed COM Configuration Properties B tmap Image Im
34. ICF Das About HAPOFCSYI 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 Maal ICF DAS About WAPOPC Ss yr User s Manual Other Reference ICF DAs Online Mail ICP DAS TI eietipiscon About WAPOPC yr ot eS E Ver 2 22 Date May 09 2006 Page 32 NAPOPC DA Server User s Manual 1 16 About Click on the Help About NAPOPCSvr menu item or the icon to see the About NAPOPC DA Server dialox box It shows the version number step 1 Click on the Help About NAPOPCSvr menu item step 2 The About NAPOPC DA Server window pops up About WAPOPL DA Server NAPOPC DA Server Version 2 20 Update Aug 26 2005 Copyright 2000 All Rights Reserved TEL 666 3 59 73566 Thir ODT Ga Ea aT aa Ver 2 22 Date May 09 2006 Page 33 NAPOPC DA Server User s Manual 2 Quick Start Please follow these steps 1 Wiring Modules or Controllers Wiring modules in the RS 232 RS 485 network Refer to CD Napdos 7000 manual GetStart PDF manual Wiring controllers to your PC Configuring Modules or Controllers Using the DCON Utility to set modules Refer to CD Napdos 7000 manual GetStart PDF manual Using ISaGRAF to configure the I 7188EG XG or I 8xx7 Install
35. 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 2 22 Date May 09 2006 Page 1 NAPOPC DA Server User s Manual Table of Contents L INAP ORG DA SONC eroria cnc ausasdseas A NE se arses emacs 4 Li Tnstllima Me NAPROPC DA SOVE a ied letasenenseielebnacetas ies slabiacseeetes 5 12 Searc mne Modules serce T E datponieduialsteaasad 6 ly Montornna DEVICES eca E mihetadecaueealnoadacian ett ads ea 9 eA Adama Now DEVIO enana E E E Neen i aieasa 11 1 4 1 Adding A New I 7KA 8K 87K VO Module cccseessseecceceeeseeeseeeeeeees 11 1 4 2 Adding A New Modbus TCP Controller cccccccccccssssseeeeceeeeeesaeesseeeeees 13 1 4 3 Adding a New Modbus RTU Controller cccccccccccssssseeeeeceeeeeeaneesseeeeees 15 ho AddmMEA NeW ONU pee a caus tide eoecwetidatenueencun 17 EO AGUM AN WwW Tao mea T T E AAE 18 1 6 1 Adding a New Tag for I 7K I 8K I 87K VO Module ecccccccccssseseeeeeeeees 18 1 6 2 Adding A New Tae For Contromet esinin aAA D 20 LOS SCAMS SCMUMSS oeris5stasssceccerea stay T sheen eka dees 22 1 7 Adding Multi Tags for Modbus device cc cccseeeseccecccceeeeeeseecceeee
36. O or 17185 Properties FIBBEG_TC IF188EG_TCP IO d i7108 Delete 7188EG_TC I7188EG_TEP I0 I7188EG_TEP I0 d 17188 FISGEG_TC IF188EG_TCP IO 17158 FIG8EG_TC 17188 FIS SEG_TC T71lesets TCP IO T1 T7166s 5 TCP 1 or I7188EG TCPR IC BOS GF I71S8EG TC TVl s o TCP IO V2 d I7188EG_TCP 10 BO4 GF IF188EG_TC I7188EG_TCP IOWYS QP 17188EG_TCR IO T1 FIFV1SSEG TC F188EG TCP IG Y4 or Tflesbs TCP IO 1 ig TP less TCPIO 2 ia TY less TCP IO YS or Tf lesEs TCP IO 4 A My Network Places mo oOo Oo Oo 8 A A A Duplicate Deactivate Group Es Adds a new element C Program FilesNational Instrumentsinati ccdb 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 1O V5 Click OK when you are done Ver 2 22 Date May 09 2006 Page 49 NAPOPC DA Server User s Manual OPC Group Wizard Group Settings thems Interfaces tem Dehmiboan Names Device tem I7188EG_TCP 7189EG_TCP 1O BI1 Io I7188EG_TCP 10 8I2 I7185EG_RATU i I7188EG_TCPIO BI3 fUS0D g 7188EG_TCPIO BI4 TSE I7188EG TCPI0 801 peda ele d 7198EG_TCP IO BO2 Sa ao 7188EG_TCP IO B03 7188EG_TCP 10 804 7188EG_TCPIO T1 i718SEG TCPO IF1SSEG_TCPIO V2 I19SEG_TCPIOVS I7185EG_TCPIO V4 Mame Device Item Data Type i
37. QPro NAPOPC Client OPC_NetClientDemo VBOPCClient_ Demo and DAQPro NAPOPC Client OPC_NetClientDemo VCSOPCClient_ Demo after installation of our NAPOPC server Step 1 Launch the client demo program VBOPCClient_Demo exe or VCSOPCClient_Demo exe The client program set NAPOPC Svr 1 as default OPC Server Step 2 Click on the Connect button FEOPCCLest_Demo 6 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 TsaGRAF TEST tdb U2 SaRAF TESTI tb U3 WINTON 8837 tdb 04 NAPOPCI tb NS Ma POPC 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 D0 DO1 value Ver 2 22 Date May 09 2006 Page 40 NAPOPC DA Server User s Manual FEOPCChest_Demo Server name MAPOPC Syvr1 e WTCP_8054 D0 DOI Cli ble Dlg DIS sa E a O Ble bot Write Value Doz DOs Doe 5 pas Timestamp 20047 FF 02 15 41 DOE DOF DOS Quality Goon 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 wind
38. Rectangle jee lt s S Ellipse H T Polygon Pipe Button Symbol Sek Trend Cicode Object 1S Ble o 9 e Odds text re oxo ae 136 15 GUIDE GRID Ver 2 22 Date May 09 2006 Page 79 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 Ee a x Appearance E Movement xn Scaling lt 7 Fill s Input x7 Slider x7 Access Font Style EAB Sy Anal Black Comic Sane M5 Courier Courier New Finedsys Georgia ia a m i i m Alignment Effects f Left Strikeout C Right Underline 7 Centre F 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 Appearance attributes and Input attributes for this Number object Text Properties o R xj v Appearance E Movement z Scaling lt Fill 2 Input a Slider Actress i FE Type SC ENDTE T On ot i _ 7 lt I Multistate i 5 O Ce Numeric gt bd T String i Format C HHH HHH D s r Text Properties i ee i x w Appearance a Movement Scaling 2 Fill Input E Slider Access ey sequence command 2 Key sequence a _ out argl S a C HHHHHENTER Security I Sa
39. 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 7000 DLL and UART DLL functions on demand 1 1 Installing the NAPOPC DA Server You can get the software from the CD Napdos Napopcsvr or you can download it from http www icodas com products softtware napopc napopc htm Hardware Requirement m A personal computer with at least a Pentium 133 MHz or faster processor Mm 32 Mbytes ram Preferably 64 Mbytes ram m 10 Mbytes hard disk free space software Requirement One of the following computer operating systems must be installed on your computer system E Windows 95 E Windows 98 m Windows NT Version 4 0 m Windows ME 2000 Ver 2 22 Date May 09 2006 Page 5 NAPOPC DA Server User s Manual E Windows XP 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 ed E Accessories My Network Places e e Client G FAQ Modules Lisk a I WAPOPC Server A E MAFOFPC Server Manual OPC Spec Readme bt FT DAQPra FactorySoft OPC Pg an Games _ ff ISaGRAF 3 4 Recycle
40. age Document e MAFPFOFPC DA Server Sound OLE2 WardPad Document Step 12 Check the Run application on this computer option NAPO PC DA 5 erver Properes SERR Ver 2 22 Date May 09 2006 Page 95 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 Tou may edit who can access thie application f Use default launch permissions Use custom launch permissions You may edit who can launch this application f Use default configuration permissions E Use custom configuration permissions You may edit who can change the configuration information for 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 CO The launching user C This user Ver 2 22 Date May 09 2006 Page 96 NAPOPC DA Server User s Manual 5 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 use DCOM your system needs ta be configured for Userlevel security Use the Network ic
41. al 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 iga Process Management Layer OPC Client OPC Server C OPC Client a ee ey Equipment TO Distributed I O DCS amp PLC Figure 5 0 1 Local access and Remote access architecture Ver 2 22 Date May 09 2006 Page 89 NAPOPC DA Server User s Manual 5 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 secure 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
42. an also see the tags on the Tag Window right side generated by the Search Modules function automatically Ver 2 22 Date May 09 2006 Page 8 NAPOPC DA Server User s Manual File Add Edit View Options Help i ia x gi e E Sroup Tag search Expand shr Name Type _hannel Location Choo Bit Inp 0 Chol Bit Input 1 Choe Bit Input Z Cho Bit Input 3 a gt LatchLowDls Chid Bit Input 4 a gt LatchHighDls amp Chos Bit Input 5 7060D Choe Bit Inout 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 e mda ail ey Options Help S amp 8 E BE Bi GSale New Open ave is Troup search Expand shr Name Type Channel Location a gt Als 2 choo Bit Input 0 h 7044 2 cho Bit Input i aes D Choe Bit Input 2 d DOs Cho3 Bit Input 3 a gt LatchLo hod x 4 a gt LatchHizne hus 5 70600 cho 6 1 3 Monitoring Devices Use the Monitor function to see values of tags by checking the View Monitor menu item
43. ation Level specifies security at the packet level Default Suthentication Levelt Connect The Impersonation Level specittes whether applications can determine who ts calling them and whether the application can do operations using the client s identity Default Impersonation Level Anonymous Y Provide additional security for reference tracking cave o 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 Defaut Protocols Default Access Permissions You may edit who is allowed to access applications that do not provide their own settings Edit Default Default Launch Permissions You may edit who is allowed to launch applications that do not provide their own settings Edit Default Default 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 Defautt OF Cancel Apply Ver 2 22 Date May 09 2006 Page 103 APOPC DA Server Us itemtosetting UserName Access Type Allow Access Allow Access Allow Access Allow Access Allow Access re ee Default Launch Permissions Administrators Allow Launch Allow Launch Allow Launch Al
44. 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 O x File Security Window Tools Tag name fol x alue fi Read Continuous Togele Quit Display2 NUM j Ver 2 22 Date May 09 2006 Page 68 NAPOPC DA Server User s Manual 49 CitectSCADA 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 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 Awww 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 joj xj Fie Add Edit view Options ae salle 2 28 Lem Type o O ChannelfLocation Value Description Ana
45. ccess its value The Device Name can not be the same as any other module Address Specifies a Address for this controller The default value is 1 and the valid range is between 1 to 247 Timeout Specifies timeout Response time value for this controller The default value is 1000 ms A smaller timeout value may cause communication failure Port Address You have to set up the value with 502 for communicating with l 7188EG or 8437 l 8837 TCP IP Address The unige IP address of your Modbus TCP controller Ver 2 22 Date May 09 2006 Page 14 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 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 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 cant greater than 2000 for coil and 127 for register OK Click on th
46. cts 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 Items 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 OPC Items Objects Figure 6 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 2 22 Date May 09 2006 Page 112 NAPOPC DA Server User s Manual Your VB Program OPC Server Object m the bep ini i rapper objec included in it O E i COM DCOM OPC Server Object Your OPC Server Ma and it s object model Ly OPC Items Objects Figure 6 1 2 Architecture of OPC Server Object under COM DCOM mechanism 6 1 2 Tools You Will Need to Build Your VB Client lf you want to build an OPC client in VB and test It you will need the following tools m Visual Basic 5 or 6 running on Windows 95 98 2000 ME NT XP m 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 Awww icpdas com download 7000 napopcsvr hitm E The OPC Automation Wrapper You can find it f
47. d 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 me NAPOPC Test Client eee OPC Server Factonmott Rapid service 1 Factonmott Mod busshell 1 Factorysottshell 1 OCSTE DA Sim 23 Matrikon OPC Simulation 1 rere O at no Counte 0 Wirit Exit Step 4 Select a file which you want to use and click on the OK button Click here to browse more files TsaGRAF TEST tdb _TsaGR4F TEST tdb WINTON 6837 tdb NAPOPCI tdb Wa POPC tdh The following steps 5 6 are read operation of Modbus TCP controllers Step 5 Select a tag matching on your configuration Ver 2 22 Date May 09 2006 Page 37 NAPOPC DA Server User s Manual 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 D0 DO1 value a NAPOPC Test Client 060o OPC Server MAPOPC Svr 1 Disconnect Tag Selected CMTCP 8054 D0 DO MTCP_s0S4 DI DOZ Do4 DOS a 7 D Loop Read 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 contro
48. e from Citect Graphics Builder window menu to save this page lt 2 Citect Graphics Builder OPC_btest Untitled1 ee _ o x File Edit View Objects Text Arrange Tools Window Help l la x gone o big ajeje wl E e E a Chrl 0 Close l Find Save Save Os Save All Import Properties Defaults AO HRH tA Compile Alt F10 Run F5 Al JARRE SHR Print Ctrl P Print Setup Exit Alt F4 it SlraAlalAletla Saves the active page Ver 2 22 Date May 09 2006 Page 82 NAPOPC DA Server User s Manual Step28 Fill the name of this page and save it under OPC_test project Template Symbol Project Preview ok OPC_test M Enable T Mw o Delete Help Step29 Left click the computer marked button to define the role of this computer Example va OPC test _ Graphics Tags J Alarms Graphics Alarms System Communica Cicode Files J System 2 Communications Citect BA Files Cicode Files o Citect B4 Files J QuickStart Ver 2 22 Date May 09 2006 Page 83 NAPOPC DA Server User s Manual step30 Start up the Citect Computer Setup Wizard Citect Computer Setup Wizard ES e 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 ebuEisigiiEgIrE Express Setup Fim Wp Computer Role Setup eo a Ioj x
49. e 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 4 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 Eui Gev epions Helb vy Opus Hel New Device New Group Cetli New Taz Ctl T E 4 Ts search Modules Ctrl M E 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 Ver 2 22 Date May 09 2006 Page 15 NAPOPC DA Server User s Manual Device Hame Device O 7E1 8E 87E 10 Modules Module Setting Q 7K 87K O Controller on ddes 0 255 Timeout mec slot 0 7 for SE Modules Checksum ontroller setting Port Type Modbus TCP Port Address tices E TCPAP Address Timeout 200 Mee Delay 0 C Word Swap COM Port Setting CoM f Parity Baud Rate 115200 Data Bits stop Bits EED Coil 122 Register 122 C Simulate IO foes not access the RS 485 Modnus device 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 Specifies a Address for this controller
50. e ne icon to expand shrink all devices Expand Device Tm 1 9 Read Write the 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 2 22 Date May 09 2006 Page 25 NAPOPC DA Server User s Manual Tag Properties Settings Read amp Write Read Valos Value OFF Qualite Unter Timestamp 06 3004 10 01 51 Tag name CHO Acces night Read Wintel Write Value Timestamp 08 3004 10 01 49 Quality Onecertan Value 0 Wre OK Cancel 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
51. e 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 W Aun application the following computer Browse Ver 2 22 Date May 09 2006 Page 110 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 C Customize Access Permissions Use Default Customize Configuration Permissions Use Default C Customize Edit Step 12 Select the The interactive user item in the Identity page NAPOPC DA Server Properties C This user Ver 2 22 Date May 09 2006 Page 111 NAPOPC DA Server User s Manual 6 Writing Client Program with VB 6 1 Programming with VB5 6 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 software we can use Automation Wrapper conne
52. ead or v the Fredetermined 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 4 5 NATIONAL INSTRUMENTS 00 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 Awww ni com Ver 2 22 Date May 09 2006 Page 46 NAPOPC DA Server User s Manual Step 1 Start ServerExplorer Right click on NAPOPC Svr then select Wizard 4 New Project Server Explorer 2 4 1 Mima File Servers Edit View Options Help Dijar al aleja fg My Computer 1 F FactorySofk InProc FactorySoft Sample H FactorySoft Shell Properties Add Edit Groups s 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 SWAABEIT Run As Local 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
53. ecifies 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 COM Port 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 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 Ver 2 22 Date May 09 2006 Page 7 NAPOPC DA Server User s Manual Sets all of the Baud Rate be unchecked nothing to search Please refer to the above Baud Rate Searching section Address Start Specifies 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 Specifies the ending address The default value is 255 and the valid range is from 1 to 255 It won
54. ed to install and configure the OPC server in the machines you will run it ICPDAS NAPOPC DA Server 066 Be AH Blu Yew Optom Help PM Sk a S99 Sos Saazch Morice Delete Prvaw Helg Web Mal Aboot J i n a Vale beg a Hi Ey Lea Ba epul if Ba Lapa Wa Ba Lagat 3 Hid Ba Lage 4 i Bat Tape i Ba leeu fi Da maul HE Ba Lagat a wi Br egui a pu BA laguj LO hli Ba Lagat li hl EA Langa I 13 Ba Capa 13 Pend y Dir has 1d Tega Ver 2 22 Date May 09 2006 Page 62 NAPOPC DA Server User s Manual Step 2 Run the InduSoft Version 4 1 or newer nauso Toig for Automation eM Web and Wireless Automation the easy way Copyright 1997 2004 InduSott Ltd This program is protected by International lar Step 3 Create the new project InduSoft Web Studio Display File Edit View Insert Project Tools Window Help ag lGG s eax gt 4lmaime frm w Bill gt s A aa es Lid We S E SaAT Mas Mz stlo e me S ee Workspace Eig Project MyOPC Test APP I Screens 0 Group Screen aj z Database hy Graphics set BM gt LGeetan SF USIR FS a SE Ee eee a a Ver 2 22 Date May 09 2006 Page 63 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 Displayl File Edit View Insert Project Tools Wi
55. eeeaseneeeeeeeeeeaaas 24 LS Expandi Shrink De ViCes assesses cows e diese eae abnnemeeawelues 25 tD REW ate WG Eae Sae E E E E E EA 29 1 10 Editing A Device Group Tag properties sssoeenessssssseoerrssssssssseeerssssssseerresssssses 21 1 11 Deleting A Device Group Tag nseessseeeeesssssssseerssssssseceresssssssecceeesssssseeceresssssssees 28 HI CHC MC HA I DS iain a tees etre a a a eaee 28 es am 11 cagh LosT Sapeemeee meme econ me a nee enee Dit ee titer emer eene ee rer mer hr nme enigee meri aro eR ere mr nnn eter 29 LIH COMI SU ratOn nial StAtUs oes settee tees E O A 31 KIS CEC auceweaste stares ca a na eciee Se wis apes anata eda Se ep E cae Se lneis 31 Elo PARDO aieascesteacsaciaiisevecud ao ascadaiicesaausassvavaaiaavagusauesani ats oseguansstatavigaraeesmiesens ae osaesuaseetagteaee 33 2 QUICK Staller eiia tebicdawiertanatbandaias igen tab alent O 34 I RENCE ceis e E E E a actabaaenedoaaadetenioedaies 35 4 Aconnectine To Phe OPC Serei a a A 36 AA VBS Chent Demo Pro Taea a E yea cantatas 37 Ad SNET Chent Demo Proc am saiicstsarsaksuceteicudstatisaredis E 40 A FactorySofts Chent Prostam isesi E T 42 Ake BaD NTN oeae a E E E E s eeaed ene sceeads 44 AS NATIONAL INSTRU MENT Se penasaran terete cities 46 To WACON eee eee ene Te A ks ene eee ee ae ee 51 Aes i E E E E E E E AE seule AE E A AE E E E A EE 57 ds Andu SOl stxanscts aoanaatuereniedeamsandaie east E E E E 62 AO SCACCIO CAD Aene E Casinaeeeiensaiy d
56. em step 1 Click on the Options Configurate Initial Status menu item to configure file name and folder The default folder and file name is C and OPCDbg log Ver 2 22 Date May 09 2006 Page 29 NAPOPC DA Server User s Manual Initial Setting Dialog File Open Dialog f Last One 4uto load No Ask O User Select Manually ovsem Tray C Hide Hide in Backeround f Minimize Show Icon on System Trayi Debug file folder and name iw CAOPCD be log Default CAOPCD be log Step 2 Click on the Options Debug Logging menu item to generate tags The following strings are portion of the OPCDbg log file 16 28 07 May 30 2000 Rm OPEN COM port 1 baud 19200 EC 00 16 28 07 May 30 2000 EC 00 Sd 036 Rc 007FO05E Rm Digitalln 16 28 07 May 30 2000 EC 00 Sd 036 Rc 007F005E Rm DigitalOutReadBack 16 28 07 May 30 2000 Rm CLOSE COM port 1 baud 19200 16 28 08 May 30 2000 Rm OPEN COM port 1 baud 115200 EC 00 16 28 08 May 30 2000 EC 00 Sd 020 Rc gt 00 002 Rm AnalogI n 16 28 08 May 30 2000 Rm CLOSE COM port 1 baud 115200 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk In this case the 16 28 07 is time and the May 30 2000 is date Rm It stands for Remark This can be descriptions or function name to be called EC It stands for ErrorCode This field reports the returned error code number from function calls Sd It stands for Send This field records the string sent to the RS
57. ent s identity akam personation Level T Provide additional security for reference tracking Ver 2 22 Date May 09 2006 Page 98 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 Distributed COM Configuration Properties Bitmap Image BPCLANNOUNCEMAN EnhLoaderProxy Class EventSysten ier HTML Application Imaging for Windows 1 0 Internet Explorer yer 1 0 Microsoft BPC Video Server VBI Turning Microsoft Chat Room Microsoft WBEM Unsecured Apartment MIDI Sequence d HAPORPC OA Serer Teen OOO Opec ServerList Class Private Debug Manager for Java Wave Sound Windows Management Ver 2 22 Date May 09 2006 Page 99 NAPOPC DA Server User s Manual Step 11 Select the Location page Step 12 Settings as follows Field Name Pr SettO o 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 D
58. erver User s Manual 46 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 Awww emation com Step 1 Run WIZCON Version 7 51 or newer program The First Web based SCADA System FHA WINDOWS ma NILCON tinje Version 7 51 ee See Preis PC 4 o FT Copyright 1999 PC Soft International Ltd INTERNATIONAL All rights reserved Step 2 Create a new project Step 3 Click on the Communication Drivers icon in the right hand window i Untitled Wizcon Application Studio File View Design Network VrizTools Help ml Gali u Sls 2 All Containers Control panel gt Untitled fini 4 B Files A o H E Ea Images aren Group Names Frinter Multiple Tags T mee Sonn n Drivers tore H Charts z Be i History Viewer al 4 me ae zh aT Model Recipes meer single Tag DDE Blocks Application Macros Wilzcon G f Layouts Setup Language pus a Reports For Help press F Ver 2 22 Date May 09 2006 Page 51 NAPOPC DA Server User s Manual Step 4 Click on the Add button to add new drivers Communication Drivers ie The following communication drivers are defined in the application Logical Wa Device Mame Farameters CD Remove Froperties SZ se _ Step 5 Select the OPC Client item Step 6 Click
59. g 1 OPC DA component 2 0 must be installed In this case OPC DA Component 1 0 can t be used Ver 2 22 Date May 09 2006 Page 116 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 6 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 Will 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 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 icodas com download 000 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 Awww icpdas com download 7000 napopcsvr htm OPC Net wrapper named OPCNetWrapper dll You can find it at your CD Napdos napopcsvr or download it from http Awww icpdas com download 7000 napopcsvr htm Building Your VB Net Client Step By Step Install OPC DA Component 2 0 on your PC Start a new VB Net project
60. gister 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 2 147483647 Floating point variable 1 7E 308 1 7E 308 Word 16 bit unsigned integer 0 65535 DWord 32 bit unsigned integer 0 4294967295 Location Ver 2 22 Date May 09 2006 Page 21 NAPOPC DA Server User s Manual Specifies 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 Output 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 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 Setting
61. he 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 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 0 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 O checkbox switches from reading I O from the module to running a simulator Since the simulator does not open the COM Ver 2 22 Date May 09 2006 Page 12 NAPOPC DA Server User s Manual port it is an easy way to work with t
62. he 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 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 4 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 New Group trlt ts New Tag t T search Modules Ctrl M 3 t 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 2 22 Date May 09 2006 Page 13 NAPOPC DA Server User s Manual Device Hame Device O 7E1 8E 87E IO Modules Module Setting O x z ex z O Contoler f Address fo 00 255 Timeout imer 200 Slot O QF for8K Modules Checksum Disable Controller setting Fort Type ties F TCPAP Address 192 168 255 1 Timeout 200 Modbus RTU Msg Dely 0 C Word Swap LOM Port Setting COM Parity Baud Rate Data Bits stop Bit T Req Coil 122 Register 122 C Simulate IO does not access the RS 485 Modnus device 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 a
63. his A 305450 Read Read Value Write Value Timestamp Cuality Ver 2 22 Date May 09 2006 Vwi rite 20047 FF 07 09 50 Page 120 NAPOPC DA Server User s Manual 6 2 4 Building Your VC Net Client Step By Step m Install OPC DA Component 2 0 on your PC E Start anew VC Net project with Windows Application Program mE In VC Net click Project gt Add References on the VC Net menu bar Click Browse to select OPCNetWrapper dll as shown below NET COM Projects D irre Se _ Breen Component Name Version PR ae Acces elb lity dll 1 0 5000 8 CANDY S Microsoft NET Select dodi Fo 7300 8 C4 Pregram FilesiicnssofME CAN sPackegel bh 9 1 5000 0 CAPregram Files Common File CrystelDecistons CrystalAepor 9 1 5000 0 CAPregram Files Commen ibe CrystelDecisions Repetsoarce 9 1 5000 0 CAPregram Files Commen File CryatelDecisdons Shared 9 1 5900 0 LoPregram Files amman File CryatelDecissons Web 9 1 5000 0 C Pregram Files Cammen File CryatelDecisiona Windows For 3 1 5900 0 C Pregram Files Comman Fike Ceyatell mterpriselib 9 1 5000 0 CPregram Files lamman File Cryatallnfettere ib 9 1 5000 0 CA Pregran FiledClammen File CryotelKeyCodeLib 9 1 5000 8 CAPregram Alga amman File CAeregram Aileag amman File Crystal Pugin 9 1 5000 0 Selected EES SODE t HW aothegelwicn
64. ing On the Server Site Windows 2000 Step 1 Create a new user 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 to your Sec computer and to change passwords and other settings M Users must enter a user name and password to use this computer Users For this computer GFF Administrator Administrators i Guest Guests Power Users Se Add Remove Properties Password For testi mf To change the password For test1 click Set Password Set Password coe __ step 2 Run the DCOMCnifg 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 2 22 Date May 09 2006 Page 102 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 Authentic
65. ing the OPCDAC Data Access Component software Installing the OPC server Install the NAPOPC on your computer Running the OPC Server Launch the OPC server by executing the NAPOPCSvr exe which refers to C Napdos Napopcsvr Searching Modules Refer to the 1 2 Search Modules section to search modules in the RS 485 network Adding a new controller Refer to the 1 4 Adding A New Device section to add a new modbus RTU or modbus TCP controller Saving Configuration Save the configuration by clicking the File Save menu item Closing the OPC server Close the OPC Server by clicking the File Exit menu item 10 Connecting to the 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 2 22 Date May 09 2006 Page 34 NAPOPC DA Server User s Manual 3 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 Awww icpdas com download 000 manual htm It describes the following topics 1 Connecting modules The 7000 Utility user s manual Introduction to NAP7000P Introduction to NAP7000X
66. ion General Location Securty Identity Endpoints Use default access permissions Use custom access permissions You may edit who can access this application Edit Use default launch permissions Use custom launch permissions You may edit who can launch this application Edit Use default configuration permissions Use custom configuration permissions You may edit who can change the configuration information for 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 CY Interactive Hzer The launching user This user User Browse Password Eonhrm Password f The System Account senices only Ver 2 22 Date May 09 2006 Page 107 NAPOPC DA Server User s Manual 5 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 re Component Services E Jele D File Action view
67. is 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 ltem 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 2 22 Date May 09 2006 Page 65 NAPOPC DA Server User s Manual OPCCLOO1 0PC Description Server Identifier Disable ICP NAPO PL Svt Read Update Rate ms Percent Deadband Statys ee Remote Server Name TEA lt i OP Browser gh Cut CEE Copy ctrl E EA Fasie Gtr Insert Line DPCCLOOLOPG ooo a ioj x Description Server Identifier Disable ICP NAPO PCS vr Read Update Rate ms Percent Deadbane Status Remote 5 erver N ame Browse Tag ame OPC Browser NAPOPC SYr LOCAL E 1 dot 2 3 Cancel 4 E 6 T Counter spec z ie I pa o hi pO Read Gq 7021 3 o white H 9 O60D_4
68. l Apply Help Step 24 The right hand window shows the tag s that were previously added i ta Micon Application Stadio Fie View Desen Network Tools Help sjal RY AS aalala alela IF 2 All Containers List of Tags le test Addre ma Web Application Unaigned 16 MAPOPC T021 FR HTML AAAI PLC Unsigned 16 NAPOPC 70120 z Event Summary Profile o he A Trends Profiles A all Files onl ag Images Be cy Events summaries Eee Cy Charts Ver 2 22 Date May 09 2006 Page 55 NAPOPC DA Server User s Manual step 25 Click on the Tools Multiple Tags menu item eae ieee Application Studio File View Design Network Mema Help ziu ua aal Multiple Tags mpont d Export d MultLanguage Support a Trends Profiles SE al Files ly Images bese cy Event turmmaries E Charts Step 26 Click on the OK button to close the Tag Filter window rl Tags Exerciser Program Standard File File Option Help Hame Driver Address Value R Tag Filter Source File i Wwizpro C File GL5 Driver Ho Address source f PLC M Dummy W Compound Type M Analog W Digital M Sting Name Driver Address Value Rate Sample TYPE AIG 62 7012D_1 AIsS Ch6 3 1 68 Y ADB 62 7021_2 A0s Ch6 3 1 68 Y Ver 2 22 Date May 09 2006 Page 56 NAPOPC DA Server User s Manual 4 7 Fix iIFIX is a powerful HMI SCADA system that featu
69. lient 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 DCOMCnig exe tool the OLE Viewer tool or manually For more information on using OLE Viewer or manual changes please refer to the Q158582 HOWTO Configure a Non DCOM Server and Client to Use DCOM article on Microsoft s web site For more information on using DCOMCnfg 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 DCOMChnig exe graphic driven utility can be found in the Windows NT system32 folder or in the Windows95 98 system folder on the client and server computer po lien Site Server Site Client Site Install NAPOPC Server Platform Windows XP Windows 2000 Configure DCOM Ver 2 22 Date May 09 2006 Page 91 NAPOPC DA Server User s Manual 5 2 1 Configuring On the Server Site Windows NT 4 0 step 1
70. ller 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 MTCP_8054 D0 DO1 value aS 06e OPC Server MAPOPC Svr 1 Disconnect Tag selected C MTCP_8054 D0 Do MTCP_sto4 Di Dis Did DOS Dog 7 Tag Value Read Loop Read sa 0 C write Ver 2 22 Date May 09 2006 Page 38 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 Je NAFOPC Test Client 6e Disconnect OPC Server Tag selected MTCP_8054 D0 D0 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 or NAPOPC Test Client 060 OPC Server NAPOPC Svr Connect ee Tag selected MTCP_s054 D0 D001 Tag Value False Count 4 11 Ver 2 22 Date May 09 2006 Page 39 NAPOPC DA Server User s Manual 4 2 Net Client Demo Program We provide another two OPC client demo programs for Visual Basic Net 2003 and Visual C Net 2003 It s placed under the following folder DA
71. log Output oO 0 w ADs has 1 Tags F windows Update Accessories Programs F Documents DAQPro Startup a z E Internet Explorer ial Citect Runtime Search Outlook Express Read Me 7188e ree Hypersnap De 4 Rin Microsoft Web Publishing Microsoft Visual Studio 6 0 Settings d FT Y F F F Shuk Down aes Ver 2 22 Date May 09 2006 Page 69 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 BH QuickStart Citect Explorer E g O x File view Tools Help rhe a QuickStart 3 gal 71 4 alel el Hal e Project List Contents of My Projects m My Projects NIPE Example a x 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 test 0 Description Locatior C ACitect U sernsOPC_test Browse Page defaults Template style Standard bi Template resolution Default T Show template title bar Background colour C Cancel Help Ver 2 22 Date May 09 2006 Page 70 NAPOPC DA Server User s Manual Step5 Click the Express I O Device Setup icon to set all communication parameters Fes OPC_test Citect Explorer File View Tools Help Maa
72. low Launch Allow Launch ee ee Full Control Full Control Read Step 7 Set the Default Access Permission 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 Aegisty Value DehaulbaccessPernmicsion ODwner Administrator Hame GES Administrators Allow Access ey E vernone Allow Access 5 INTERACTIVE Allow Access ae Power Users Allow Access glare SYSTEM Allow Access Type of Access Allow Access Cancel Add Remove Help Step 9 Set the Default Launch Permission by clicking the second Edit Default button Ver 2 22 Date May 09 2006 Page 104 NAPOPC DA Server User s Manual Registry Yalue Permissions Registy Value OetaultLaunchPermizsion Oawner Account Unknown Hame Allow Launch Allow Launch Allow Launch Allow Launch Allow Launch inl Admirer ators ae 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 i x Regiztr Kep HEEY CLASSES AOOT Owner Administrators Mame Full Control GE Administrators Full Control CREATOR O WwWNER fa E vernone Read ES Power Users gt Full Control aise ST ha Full Control Full Control Type of Access Ful Control Cancel Add
73. me area as object IY Same privilege as object Eommand area fea areas Privilege level lt None gt SHUBLUWOT PIBOgAaY gt Ver 2 22 Date May 09 2006 Page 80 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 Text Properties ee me xj Aiii Appearance gt Movement 2 Scaling Fill Input a Slider A Access FE Font Style Size T iT Arial Bold fi a a Aral Black Bald Comic Sans MS _ Bold ttatic Courier Italic anjen Aejdang lt Strikeout C Right Centre Underline AMIE gt Foreground _ Number object Text Properties a Movement S Scaling lt Fill x Input x Slider lt ACESS FE Type Numeric expression T C Dno Bi a A C Multi state m L ay m C ny eric Fil T String 4 Format DEEE gt S a a a i T AMIE A Clear Property OF Cancel Apply Help Ver 2 22 Date May 09 2006 Page 81 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 lt Citect San nite ae C_test 0 x payee a ols T cl Se Se EEA W e AO HHE THH Al HHE SHH E ka 2 Q co Step27 Select File Sav
74. 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 It is recommended to upgrade to the newest version of DCOM98 The newest DCOM98 is also available at Microsofts 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 2 22 Date May 09 2006 Page 90 NAPOPC DA Server User s Manual 5 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 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 c
75. n this project Compare the NAPOPC Server monitor and CitectSCADA runtime window I A 4P 2 fe K 3 Ver 2 22 Date May 09 2006 Page 86 NAPOPC DA Server User s Manual Step36 Key in the value 1 234 to output a voltage via the module 7021 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 Fie Add Edit View Options Help Ver 2 22 Date May 09 2006 Page 87 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 MAPOPC DA Server iol x EER 5 x File Add Edit View Options Help eleso 8 mL Scaling Value Analog GQutpuk oO 1 233 AO 1 233 Al 1 232 KAKI CAPACI Ready AOs has 1 Tags a Ver 2 22 Date May 09 2006 Page 88 NAPOPC DA Server User s Manual 5 Remote Accessing OPC Client has two ways to access the OPC Server One is called Local Accessing and the other is called Remote Accessing 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 Loc
76. ndow Help fagiaa seeax o 6lingme Fr axal 02 93 omic xele gpl eam tag HA zS oles S Sonka CE Disnhay l gl Project MyOPC Test APP TT TTTTrTTrTrrTrT rrr TTET TITTETETTTTTETEETTTETTTTTTTE ETTET TTTETITTTTTTTEETETTETETTETETTTET gt LEGOA 05 0 E7 EURE P A we ee ge eee ee eee ee ye ee ee eee eee epee eee eee ee geet eee re eee eee eee pee eee eee eee geese eee eeeene TOerTrTrrrTrrrrrerrrrrrrrrr eee TTT LLL LLL E Database EP Comm P Name Value mali Continuous P a E IINE 1 DB2 DBS DBS Js 3 AN GNoz Rey aa E gt 2 a ae e ee step 5 OPC Attributes window pops up OPCECLOOL OFC Desorption server Identifier Disable Update Rate ras Percent Dead band Status Remote Server Name Browse o Tahame tem a Ver 2 22 Date May 09 2006 Page 64 NAPOPC DA Server User s Manual Step 6 Click on the Server Identifier drop down menu and select the NAPOPC Svr OPCCLOO1 OPL Description ICP T IPE udost Read Update Rate ms Remote Server Mame 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 th
77. 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 Server I reeBrowser As the declaration we can use several functions to read write tag values through Server and Group variables VEOPCClicat_Demo Declare a new ICPDAS_OPCServer object Dim Svr As ICPDAS_OPCServer Declare two new ICPDAS_SynclOGroup objects Dim ReadWriteGroup Grp As ICPDAS_SynclOGroup Declare a new ServerTreeBrowser object Ver 2 22 Date May 09 2006 Page 118 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 ProgID Dim ServerName As String Step 3 You can set ServerName as NAPOPC Svr 1 and pass it to ICPDAS_OPCServer for connecting Set a ProgID 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 ByVal e As DataChangeEvent
78. 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 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 1Tree 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 tvlags_AfterSelect subroutine of VC Net demo program In these three functions the Grp Read the Grp Write and the Taglree TagName are three key methods Read the OPC Tag 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 Tree ViewEventArgs e Ver 2 22 Date May 09 2006 Page 122 NAPOPC DA Server User s Manual Step 6 You can build the project and you will see the UI as below FEEOPCChest Demo Serer name lt a D Read Value Write Value Timestamp Ciuality step 7 After y
79. ois 69 9 Remote ACCESSING S rni e a ished an lusatach a dead waduaranceetee 89 Dele Syse Redute Melie e ended nena vateaeens 90 32 Conen DCON ee or ragteine icnditaiel he ici hahaa 91 5 2 1 Configuring On the Server Site Windows NT 4 0 eseeessssssssseerssssssssseersssssss 92 5 2 2 Configuring On the Client Site Windows 98 esssssssseeesssssssssserrssssssssserressssss 97 5 2 3 Configuring On the Server Site Windows 2000 ccccccccessseseeeeeeeeeeenaeeeeees 102 5 2 4 Configuring On the Client Site Windows XP cecccccccccceeeeeeeseeeeeeeeeeeaeeeeees 108 6 Wome Client Pro crani With Vib sets ctd tive narrerie iene Aula iter tere a 112 OL Rrocrammine with BO wcspoiecinicecis ieee anes asaana route Sieneianiterhanaanet eee Suet 112 OL Overview Or OPC A VBen en a a E 112 6 1 2 Tools You Will Need to Build Your VB Client cc eeeccecceceeeeeeeeeeeees 113 6 1 3 Building Your VB Client Step By Step oo cccccccsssseeeeeeeeeeeeaetseeeeeees 113 O2 POr Wille NC sesioa a a 116 Ver 2 22 Date May 09 2006 Page 2 NAPOPC DA Server User s Manual 6 2 1 6 2 2 6 2 3 6 2 4 Limitations about Net client prograMMINg cccccccsssesesseceecceceaeeeseeeeeeeeees 116 Tools You Will Need to Build Your Net Client ce eeccecccceeeeeseeeseeeeees 117 Building Your VB Net Client Step By Step ou eececscecceeeeeeeeseeeeeeeees 117 Building Your VC Net Client Step By Step eecc
80. on in the control panel to configure your system for 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 X 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 Ce udev 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 2 22 Date May 09 2006 Page 97 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 Field Name Enable Distributed COM on this computer Checked Default Authentication Level Default Impersonation Level Identify Distributed COM Configuration Properties Applications Default Properties Default Security cal Detault Distributed COM communication properties The Authentication Level specifies security atthe packet level Default Authentication Level Cooter z The Impersonation Lewel specifies whether applications can determine who is calling them and whether the application can do operations using the cli
81. onitor i Front Panel 8 File Edit Operate Tools Browse Window Help Siml 5 ag Time Cut from Server a Error Reading Items Example of how to read multiple OFC items at a time You can either specify which iteme to read or use the Predeternuned List of Items The Fredetermined List of Items specifies items from the sapt National Instoment OPCDemo gt server which has been installed on your machine Tou 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 2 22 Date May 09 2006 Page 45 NAPOPC DA Server User s Manual Step 11 Click on the OK button to add this one Browse host Refresh URL opeslocalhost APOPC svi TCP 3054 D0 DO Step 12 Repeat the steps 6 11 to add more items tags step 13 Click on the Cancel button to finish adding items tags step 14 The grid window graphs a line s to show changes of each item tag E Multiple OPC Items Monitor vi File Edit Operate Tools Browse Window Help Seioo melect Predetennimed Items List of Items Number of items to select os Tame Cut from Server oe Error Reading Items Example of how to read multiple OPC items at a time You can either specify which items to r
82. ools Help sE aal Salala aloa Tl All Containers oe Web Application HTML gt Event Sunmmary Profile g Trends Profiles 5 L Files Eh Images Events unmaries Chart History Viewer E Model Recipes ih Layout Podis lsg aingle Tag Pti idd 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 to set the Address field Li Tag Definition NEW Tag General Record DDE ta Description Tag source IPLE Y Driver NAPOPC sampl Rate Address In Monitor r cS set Address e a se ms Value 2 Cancel Apply Help Ver 2 22 Date May 09 2006 Page 54 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 Browse items Filter Cancel E Root 6 7001 fl Als E D Fi 7021_2 ff As 7O60D_3 Dis H DOs Step 23 Click on the OK button to close it E Tag Definition NEW Tag General Record DDE Link o Tag Name Description Tag Source PLC Y Driver NAPOPC sample Rate ddes 701201 AIs Chi Tn Monitor i aed SEC E 5 te Always Format Unsigned 16 Tolerance jo Value 1 Low Limit E Value 2 i jo OF Cance
83. ou 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 field and click on the Write button Refer to 4 2 Net Client Demo Program CSOPCClieat_Demo oO Serer name lt a ee eo MTCP_8054 D0 D01 Di Di DIS ae Read Value big Dot Write Yalue Doe DOs bOo4 DOS Timestamp 200r FF 04 50 47 Cuality GOOD Ver 2 22 Date May 09 2006 Page 123
84. ow Step 7 Fill in the Write Value field with 1 Step 8 Click the Write button to write the MTCP_8054 D0 DO1 value FCSOPCChest_Demo Server name MAPOPC Syvr1 9 oc MTCP_ amp 054_D0 D01 D11 Ble D3 Dlg DS pesdvaue sd DIS bot Write Yalu Doz DOs D4 pas Timestamp 200478 FF 02 31 17 DOE DOF Ug Guality GOOD Step 13 Click on the Disconnect button to disconnect from the OPC server Ver 2 22 Date May 09 2006 Page 41 NAPOPC DA Server User s Manual 4 3 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 1 Cancel merver Node Veerver or server or WWE SEYVET COIL I Refresh List Available servers f 10 ff 20 FactonmottInProc laProc OFC Server FactoryeottModbusshell l Factonsoft Modbus shell Factonmott Rapid service Factonpott OPC Rapid rers Factormsottjanple 1 Factonmoft Modbus OPC sample Step 4 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 TsaGRAF TEST tb U2 ISaRAF TESTI tdb U3 WINCON 8837 tdb 04 NAPOPCI tdb NS Ma POPC tdh 4 Step 5 Click on the OPC Add Item menu item to add existing tags step 6 Browse the tree list Then double click on the tag to add Ver 2 22
85. pe Bit Input Bit Input 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 l 7K I 8K I 87K I O Modules radio button is active Ver 2 22 Date May 09 2006 Page 18 NAPOPC DA Server User s Manual sing Properties Setting Real amp Write Canal Contmlin Location Data Fiat o o scalp C Enable Simulation signal Sine 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 Type Specifies the command to be used for this tag Different modules Support different commands For commands please refer to a MODULES HTM file in DAQPro NAPOPC folder Channel Specifies 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 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 Ver 2 22 Date May 09 2006 Page 19 NAPOPC DA Server User s Manual OK Click on the OK button
86. ption Figure 1 7 3 Select a tag and right click the mouse button Then select the Delete option 1 12 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 8 icon to generate tags Ver 2 22 Date May 09 2006 Page 28 NAPOPC DA Server User s Manual Edit View Options Help New Device Cth New Group Ctelt s New Tag t T search Modules Ctrl M Colts le t Tags are generated depending on the Module ID Possible tags are Analog Input Analog Output Digital Input Digital Output Latched DI and Counter 1 13 Debug Logging The Debug Logging feature records the message string of each communication with your module on the RS 485 network These message strings will be saved in the OPCDbg log file The file is placed in the current directory For example if users run the OPC server from Explorer the OPCDbg log file will be placed in the same directory as the OPC server This feature is useful for debugging To debug easily we may ask the user to enable the Debug Logging feature and then send us the results To enable disable the Debug Logging feature just check uncheck the it
87. res 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 hitp Awww 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 a Enable Disable Database Name DATABASE VO Driver Definition NO Driver Name SIM Simulation Driver ki Contigured I0 Drivers lh Simulation Driver Backup sae SUA Name OK Cancel Help Step 3 Select the OPC OLE for Process Control Client 7 12 driver Step 4 Click on the OK button Urivers available Y slk Simulation Driver Ver 2 22 Date May 09 2006 Page 57 NAPOPC DA Server User s Manual Step 5 Select the OPC OLE for Process Control Client 7 12 driver Step 6 Click on the Configure button to configure the I O driver SCADA Conti guration SCADA Support Database Definition Enable Disable Database Name IDATABASE KO Driver Definition KO Driver Name OPC OLE for Process Control Client 7 12 Configured I O Drivers otha Simulation Driver OPC OLE for Process Control Client 7 12 Contigure Delete
88. rom http www icodas com download 000 napopcsvr htm 6 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 DAQPro NAPOPC Manual and the VB demo source code in the C DAQPro NAPOPC Client VB5 Step 1 m Install OPCDAC on your PC E Start a new VB project Ver 2 22 Date May 09 2006 Page 113 NAPOPC DA Server User s Manual mE In VB click on Project gt References on the VB menu bar m The OPC Automation Wrapper appears on the dialog as OPC Automation 2 0 select it as shown here References Frojectl ybp x Available References OK al Ea fee as Visual Basic For Applications Fr Cancel Visual Basic runtime objects and procedures a Visual Basic objects and procedures POLE Automatigri me oc nhc te v OPC Automation 20 A nna Sebel a nent 1 0 Type Library IAS RADIUS Protocol 1 0 Type Library Browse ABManager 1 0 Type Library Priority aboutlook 1 0 Type Library Help aboutlookex 1 0 Type Library Acrobat Acrobat Distiller Active D5 Type Library Arhive Seton Control ihrars OPC Automation 2 0 Location Cw INDO wW Si Syvstems2 OPCO44ubo dll Language Standard step 2 First you have to design your Ul User Interface You can refer to the Ul
89. routine of VB demo program Generate the tree of tags Private Sub FillltemsQ 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 anltem Read and the anltem Write are two key methods Read the OPCltem 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 2 22 Date May 09 2006 Page 115 NAPOPC DA Server User s Manual E WAPOPC Test Client Jog L NAFOFC Svr r Pannen Tag Selected Tag Tag Value Text Counter O 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 r E NAPOPC Test Client Joga OPC Server m INAPOPC Svr Y Bonneri Disconnect Tag selected 1 188EG_TLP IO Tag Value 199 3 Counter 0 6 2 Programming with Net 6 2 1 Limitations about Net client programmin
90. rs 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 cant greater than 2000 for coil and 127 for register 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 Adding A New Group step 1 Click on the Add New Group menu item or the s icon to add a new group Edit View Options Help Suge Hep New Device Cth New Group Ctl New Tag Ctrl I search Modules Ctrl M Bit Input Bit Input E Ver 2 22 Date May 09 2006 Page 17 NAPOPC DA Server User s Manual Step 2 The Group dialog box pops up 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 6 Adding A New Tag 1 6 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 i icon to add a new tag Edit View Optons Help options Help New Device Cth New Group t New Tag t T Search Modules CthM f pa A Ty
91. s button Settings Click on this button to set the scaling feature For more information please refer to the section 1 6 3 Scaling Settings 1 6 3 Scaling Settings In general the Scaling feature is only useful for the floating point data type Ver 2 22 Date May 09 2006 Page 22 NAPOPC DA Server User s Manual Tag Process Settings Scaling Raw Dala Units Min U Scalesto gt Min 0 kax 1000 Max 10 Conrersion Liner Squcue Root Deadband fO Raw Data Min The original Minimum value MinRaw Max The original Maximum value MaxRaw Scales to Units The unit of the scaled value Just for reference only Min The scaled Minimum value MinScale Max The scaled Maximum value MaxScale Conversion Linear Scaled Value Original Value MinRaw MaxRaw Min Raw MaxScale 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 Deadbana section in the OPCDA20_ Cust PDF manual page 68 OK Click the OK button to save these settings Ver 2 22 Date May 09 2006 Page 23 NAPOPC DA Server User s Manual Cancel Click the Cancel button to avoid any changes 1 7 Adding Multi Tags for Modbus device
92. seccccceeeeeesseeeeeeeees 121 Ver 2 22 Date May 09 2006 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 All the 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 The following two figures show the difference between traditional mechanisms and the OPC mechanism Application X Device A Access Mechanism A Application Y Device B Access Mechanism B Device C Access Mechanism For accessing the various devices for any application there are many different mechanisms provided by different vendors Figure 1 0 1 Traditional mechanisms used to access a device Ver 2 22 Date May 09 2006 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
93. te anew 10 Device UPLDey Edit an ensina WO Device lt Back Cancel Help Ver 2 22 Date May 09 2006 Page 72 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 f External 0 Device C Memon 140 Device WOE C Disk 10 Device VO Device name IODey Step10 Set OPC to be the method of communication for OPCDev I O Device Express Communications Wizard E Mitsubishi E Modicon f E Moore Industries E National H Select the i eI manufacturer model and method of communication for the 170 Device hd Selected driver M anuracturer OPC Foundation Model OPC Servers Communications OPC lt Back Cancel Help Ver 2 22 Date May 09 2006 Page 73 NAPOPC DA Server User s Manual Step11 Set Address to be NAPOPC Svr 1 for OPCDev I O Device Express Communications Wizard E eo ee X X You need to provide an address for your O Device Press the Driver Address Help button for help on the address of the driver you have selected Driver Address Help Enter an address below or accept the default _ vu Address NAFPOFC Swr 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
94. th selected example Double click a device to view x Web information Search for any of the words Fed C Include ni com examples Hardware No hardware found rs r Setup C Hep Close Step 3 Double click on the Multiple OPC Items Monitor vi item in the middle window of NI Example Finder dialog Ver 2 22 Date May 09 2006 Page 44 NAPOPC DA Server User s Manual NI Example Finder 059 Brows Search Submit Double click an example to open it Description Enter keyword s 6 Examples match your search criteria This example uses the DataSocket Is a sis Browse To OPC Item vi that shipped with versions of ope muin OPC lems Monitor vi Lab IEW prior to version 6i These Seidel binds R Vis are provided with LabVIEW 6i NI DAQ OPC Chient vi for compatibility The DataSocket NI Demo OPC Client vi primitives shipping with Lab IEW 61 Double click keyword s NI FieldPoint OPC Client vi are not currently fully compatible with OPC When using DataSocket to Cae eae eee SANE connect to OPC Servers use the older compatibility DataSocket VIs All hardware compatible with selected example Double click a device to view Y Web information Search for any of the words Fe M Include ni com examples Hardware No hardware found Fe Y Setup Help Close step 4 Click on the Select Items item in the Multiple OPC Items Monitor vi demo 3 Multiple OPC Items M
95. 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 2 22 Date May 09 2006 Page 117 NAPOPC DA Server User s Manual NET COM Projects a are Breen _Component Name Wersion Ce eee Acces cibilety dil 10 5000 8 CAMINDMIWS Microsof NETW Seka miod T 0200 CAP regram Filestiticnssoft ME CAN s Package l ih 9 1 5000 0 EAPregram Files Coenmen Fibe CrystelDecistons CrystelAepor 9 1 5000 0 CAPregram Files Commen ibe CrystelDecisions Hepedtieerce 9 1 5000 0 CAPreqgram Files Coenmen File CrystelDecisions Shared 9 1 5000 0 LoPregram Pilea amman File CryatelDecissons Web 3 1 5000 0 CPregram Files Camman File CryitelDecisiona Windows For 3 1 5900 0 C Pregram Files Comman ibe Ceyatell mterprigelib 9 1 5000 0 CPregram Files Camman File Cryatalinfettene ib 9 1 5800 0 Cl Pregranm FileaCammen File CryotelKeyCodeLib 3 1 5000 CiPragram Alga amman Filt Cereal Pag fehl qe ib 9 1 5000 0 CAPreqram Filea Carmmen File Selected Componenta dat EEEn F Type Source Temne 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 to the Ul of VB Net program shown as below Third you
Download Pdf Manuals
Related Search
Related Contents
Losi 1/36 Micro-T Stadium Truck RTR DE Gebrauchsanleitung Raffel-Vorsatz EN Operating Instructions 電流リレー Type RAS A 取扱説明書 1.使用上の注意 2 User`s Manual for TCSE (TED Corpus Search Engine) Chemilizer Indesit XWA81252X TRAC Macerator Pump User Manual Nortel Networks 8672ATME User's Manual Copyright © All rights reserved.
Failed to retrieve file