Tech Note 425 Using the OPC Client Proxy Object to Connect with Matrikon s OPC Simulation Server All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information. Topic#: 002110 Created: April 2005 Introduction This Tech Note provides the step-by-step procedure that describes how to configure AppServer's OPC Client Proxy Object to communicate with a standard OPC Server (OPC spec version 2.5 or above). Before you get started, you will need to do the following: Install an OPC Server on a PC that has Industrial Application Server (I.E. Matrikon, Wonderware DAServer, Kepware, etc.) This technote requires Matrikon Simulation server. You can download the Simulation Server at www.matrikon.com. Install Application Server 2.0 Patch01 Create a Platform, AppEngine, and an Area Launch the IDE and Create an Instance of the OPC Proxy Object 1. From the Template Toolbox, drag-and-drop an instance of the OPCClient into the Unassigned Host area of the Deployment view pane. You should see the Create Instance pop up, then the new instance of the OPC Client should appear under the Unassigned Host area. FIGURE 1: CREATE INSTANCE 2. Rename the object by right-clicking it and selecting Rename from the submenu. A frame appears around the object (following figure): https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 1/10
FIGURE 2: MOVE OPC PROXY INSTANCE TO UNASSIGNED HOST AREA AND RENAME 3. Enter OPCTest2 for this example and click outside the object list item to accept the change. Configure the OPC Proxy Object 1. Double-click the object to edit it (check it out): FIGURE 3: DOUBLE-CLICK OPCTEST2 FOR EDITING/CONFIGURATION https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 2/10
2. Enter a name in the Server node field. For this example, the OPC server is installed on the local PC, so the field is left blank. FIGURE 4: CONFIGURE OPC SERVER NODE/NAME 3. Enter the Server name by selecting your OPC Server from the Server name drop-down list. FIGURE 5: OPCTEST2 WITH SERVER NODE AND SERVER NAME CONFIGURED https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 3/10
The OPC Server installed locally (in this example) is the Matrikon Simulation Server. 4. After selecting Matrikon.OPC.Simulation.1, select the Scan Group tab to setup a Scan Group and Attribute: FIGURE 6: SCAN GROUP AND ATTRIBUTE CONFIGURATION Note: The Item Reference is preceded by the OPC Path in the Matrikon OPC Server. However, you can leave the attribute field blank, and enter in the item directly in ObjectViewer. 5. Click the + sign to the top right of the Scan Group pane to add a new Scan Group. 6. Enter S1 as in the above figure. 7. Click the + sign to the top right of the Associated Attribute pane to add an attribute. 8. Enter Item1 with an Item Reference of Bucket Brigade.Int1. This value matches the Item ID value in the Matrikon OPC Server Explorer (Figure 6 below): https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 4/10
FIGURE 7: MATRIKON BROWSER ITEM ID VALUE Note: When you browse the Matrikon Simulation Server through the Matrikon Explorer, you should see the above screen. You can drill down to Bucket Brigade, and Int1 as shown above. This is what you need to enter as your Item Reference in the Scan Group. 9. Check in (save) the OPC Proxy object (OPCTest2) and deploy the Platform. If the Platform is already deployed, deploy only the OPC Proxy object you just created: FIGURE 8: DEPLOY OPCTEST2 Deploy the OPC Proxy Object https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 5/10
1. Right click on the OPC Proxy Object and select Deploy: FIGURE 9: DEPLOY THE OPC PROXY OBJECT https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 6/10
FIGURE 10: DEPLOYED OPC PROXY OBJECT Note: Since the Platform, AppEngine, Area are already deployed in this example, only the OPC Proxy Object needs be deployed. View Attribute in Object Viewer 1. Highlight the OPC Proxy Object. 2. Right-click and select View in Object Viewer: https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 7/10
FIGURE 11: LAUNCH OBJECT VIEWER 3. Enter the following values for the Attribute Reference OPCTest2.s1.item1. 4. Click the Go button to the right, and then OK when prompted to confirm the attribute entry. Refer to the following figures: https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 8/10
FIGURE 12: ENTER THE ATTRIBUTE REFERENCE AND CLICK GO For the attribute refernce dialog, just click OK, leaving the default Attribute Types field: FIGURE 13: CLICK OK TO CONFIRM THE ATTRIBUTE REFERENCE Note: You can enter the Attribute reference using the Item Attribute Reference (i.e. OPCTest2.s1.item1) as above or you can enter it in with the actual item name from the OPCServer; i.e. OPCTest.s1.Tagname. In this example, you could substitute OPCTest2.s1.item1 with OPCTest2.s1.bucket brigade.int1, and it should also work. You should see the Attribute Reference entered, and a value with Good Quality (C0) displayed in the Object Viewer Watch Window: https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 9/10
FIGURE 14: GOOD QUALITY ATTRIBUTE REFERENCE D. Plesset Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also technical information on our software products at Wonderware Technical Support For technical support questions, send an e-mail to support@wonderware.com. back to top 2013 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, broadcasting, or by anyinformation storage and retrieval system, without permission in writing from Invensys Systems, Inc. Terms of Use. https://wdnresource.wonderware.com/support/kbcd/html/1/t002110.htm 10/10