Documente Academic
Documente Profesional
Documente Cultură
Guide V2.1
This Guide is a product of Matrikon International
Matrikon International
Suite 1800, 10405 Jasper Avenue
Edmonton, AB T5J 3N4
Canada
Phone:
+1.780.448.1010
Fax: +1.780.448.9191
www.matrikonopc.com
1|Page
22-8-14
Document
Version
1.0
Description
Initial document
Author
C.C.
2.0
W.D.
2.1
R.S.
2|Page
DOCUMENT VERSION
Version:
2.1
COPYRIGHT INFORMATION
Copyright 1997 - 2014, Matrikon International All rights reserved. No part of this document may be
reproduced, stored in a retrieval system, translated, or transmitted in any form or by any means, electronic, mechanical,
photocopying, recording, or otherwise, without prior written permission of Matrikon International
CONFIDENTIAL
The information contained herein is confidential and proprietary to Matrikon International It may not be disclosed or
transferred, directly or indirectly, to any third party without the explicit written permission of Matrikon International
IMPORTANT NOTICE
Although every endeavor has been made to ensure that the information contained within this document is up
to date and accurate, Matrikon cannot be held responsible for any inaccuracy or error in the information
contained within this document. Matrikon makes no warranty of any kind with regard to the information
contained within this document and Matrikon shall not be liable for any direct, indirect, incidental or
consequential damages which may arise in connection with the furnishing, reliance, or use of the information
contained within this document.
Specifications and statements as to performance in this document are Matrikon estimates, intended for
general guidance. Matrikon reserves the right to change the information contained within this document and
any product specification without notice.
Statements in this document are not part of a contract or program product licence insofar as they are
incorporated into a contract or licence by express preference. Issue of this document does not entitle the
recipient to access or use of the products described, and such access or use shall be subject to separate
contracts or licences.
The receiving party shall not disclose, publish, report, communicate, or otherwise transfer any information in
this document to any third party, and shall protect all information contained herein from unauthorized
disclosure. The receiving party shall permit access to this document only to its employees, agents,
subcontractors, and affiliates who reasonably require access to such information contained herein, have been
made aware of the confidential nature of this document and have executed a written employment or other
confidentiality agreement party to maintain the confidential status of this document.
LICENSE AGREEMENT
This document and the software described in this document are supplied under a license agreement and may only be
used in accordance with the terms of that agreement. Matrikon reserves the right to make any improvements and/or
changes to product specifications at any time without notice.
TRADEMARK INFORMATION
The following are either trademarks or registered trademarks of their respective organizations:
Matrikon and MatrikonOPC are trademarks or registered trademarks of Matrikon International
OTHER
MatrikonOPC is a brand of Matrikon International
3|Page
Introduction ............................................................................................................................................................... 5
Who Should Use This Guide ................................................................................................................................ 5
Overview of Guide .............................................................................................................................................. 5
Additional Training .............................................................................................................................................. 5
Document Terminology ...................................................................................................................................... 6
Background ................................................................................................................................................................ 7
Mega Corp........................................................................................................................................................... 7
Exercise overall objective........................................................................................................................................... 8
Level 1 OPC Fundamentals ...................................................................................................................................... 9
Module 1 The Evolution of OPC ....................................................................................................................... 9
Exercise 1.1 OPC Client to Server Connection ............................................................................................. 9
Module 2 The OPC Specification for Data Access .......................................................................................... 15
Exercise 2.1 OPC Server Configuration ...................................................................................................... 15
Module 3 The Historical Data Access (HDA) Specification............................................................................. 22
Exercise 3.1 Desktop Historian Tag Management ..................................................................................... 22
Exercise 3.2 OPC HDA Client Application ................................................................................................... 26
Exercise 3.3 Transferring Data ................................................................................................................... 34
Module 4 The OPC Specification for Alarms and Events ............................................................................... 41
Exercise 4.1 Alarm and Event Subscription ................................................................................................ 41
Level 2 OPC Diagnostics and Troubleshooting ...................................................................................................... 47
Module 5 Classic OPC and Windows .............................................................................................................. 47
Exercise 5.1 DCOM in Local Communication ............................................................................................. 47
Exercise 5.2 OPC Tunneller ........................................................................................................................ 51
Module 6 The Windows Security Framework ................................................................................................ 58
Exercise 6.1 The Effect of the Identity Settings on OPC Servers ............................................................ 58
Module 7 OPC Diagnostics and Troubleshooting........................................................................................... 61
Exercise 7.1 Sniffing OPC Communication ................................................................................................. 61
Exercise 7.2 OPC Server for Performance Monitor (Perfmon) .................................................................. 65
4|Page
Introduction
Welcome to the MatrikonOPCTM Training Solutions Level 1 and 2 Workshop!
Level 1 introduces you to the Fundamentals of OPC; the underlying technology that enables OPC, the OPC
Specifications and the functionalities and behaviours they define, and the servers developed from those
specifications and their relevance to modern data-connectivity requirements.
Level 2 covers OPC Diagnostics and Troubleshooting. From techniques and tools to log files and error codes,
this portion of the workshop deals with issues that are relevant to both the OPC components of the Process
Control Network, and the network and machines themselves.
The workshop consists of a series of presentations on the major OPC specifications, a customer example
highlighting how OPC is used to provide extended value, and OPCs application as a solution to some common
issues affecting data connectivity in the modern industrial.
This guide acts as your resource to carry out the practical exercises that are included to reinforce material
presented in the workshop. Should you have further questions, or require additional information, please
contact your instructor.
Overview of Guide
The chapters in this document are structured as follows:
Additional Training
Training which is available but not part of this exercise guide:
5|Page
Document Terminology
The following table provides a list of definitions for terms used throughout this guide.
Term/Abbreviation
Description
A&E
COM
DA
DCOM
DCOMCNFG
DDE
DMCONFIG
GUI
HDA
HMI
Matrikon
Matrikon International
MatrikonOPC or
Matrikon OPC
ODH
ODM
OPC
ORB
ProgID
6|Page
Background
Throughout the level 1 and 2 exercises we will be referring to Mega Corp., a fictitious company derived from
many years of customer experience. The exercises will emphasize how OPC can provide value by providing a
solution to real world problems. You will work though the entire Mega Corp. solution from leaning about
business needs too implementing a solution.
Mega Corp.
Mega Corp. is a multi-national company and has numerous sites of various ages and types. They compete in
the tough modern world economy by providing good service and a quality product. Not all of their sites have
lived up to their vision and are now the focus of targeted enhancements. Our project has to do with one of
the older sites and an effort to increase its operational effectiveness.
The site, Station 3, is one of the older and smaller sites in Mega Corp.s portfolio. The market it serves has a
growing demand and prefers to source locally. Station 3 is the only local supplier and is situated well in terms
of market demand and competition.
Mega Corp. needs Station 3 to solve two immediate problems to satisfy the corporate targeted
enhancements. First, the high tech industry moving into the area requires their supplies to be on time and a
consistent grade for their Just-In-Time (JIT) operations to be effective (and profitable). This is an immediate
need of the customer base. Second, the drain on the aging power grid is starting to affect all industrial
consumers and as such energy costs are rising sharply.
Receiving
Processing
Inspection
Packaging
Shipping
Line 1
Over the past six months Mega Corp.s Station 3 engineering staff has researched all aspects of the plant and
feels they have come up with a winning solution to their immediate problems. Since a JIT manufacturing
process ramps up and down in real time based on customer need predicting future production is hit and miss.
To keep availability the energy consuming machinery is constantly on, even in periods of low usage. The
solution is to add control mechanisms to the machinery where they can be controlled based on the inflow of
source materials allowing them to use less power and still maintain availability. This will also allow the
planning of production around short periods of very high power costs.
Specifically the engineering staff found that source material coming into Station 3 was directly related to
orders. It is also directly related to the energy required to produce product. If the source material volume is
low machinery can be set to idle to save costs while still being able to process the incoming materials, abet at
7|Page
a slower rate. Looking at historical order trends the engineering staff feels they may be able to reduce energy
consumption by 50% with <1% variance in delivery.
The ERP system contains the production requirements and current orders. The existing DCS system is able to
retrieve this information and will be used to control a new Modbus PLC running the production equipment.
The PLC will then provide real time OPC data through the MatrikonOPC Server for Modbus. The DCS will use
its existing OPC client to collect the data and from there will feed data to the existing OPC Desktop Historian
and the HMI. An additional benefit is that local operators will be able to pull up data in Matrikon OPC Trender
or perform calculation on it in Matrikon OPC to Excel.
Control Network Line 1
Corporate Network
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
When the system is in place and order volume varies the DCS will be able to control production machinery
accurately. This will solve the immediate operational effectiveness requirements of Station 3 for Mega Corp.
8|Page
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
Procedure:
9|Page
10 | P a g e
4. Connect to the selected OPC server by clicking the Connect button on the right-hand side of the
display.
5. Create an OPC group object within the selected OPC Server by double-clicking on the selected server.
Note: There are multiple mechanisms for connecting OPC Explorer to an OPC server, and for adding
groups and items. A complete listing of the methods available for each are listed in the Users Manual for
OPC Explorer and for the specific OPC server.
11 | P a g e
6. Note the properties in the Add Group window. Click on the OK button to accept the default properties
and create the group.
7. The Add Items window opens. Navigate to the SimulationItems.Random branch using the Browse
Tree on the left-hand side of the window.
8. Select all items under the Random branch to add to the recently created OPC group:
a. Select the Random branch under Simulation Items in the Available Items in Server window.
b. Right-click in the Available Tags area.
c. Select Add All Items to Tag List from the displayed menu.
d. Click on the OK button or the
icon. This adds all selected items to the group and reverts
to the main OPC Explorer display.
9. Once you have the data items being displayed in the data area of OPC Explorer, arrange the columns
so that ItemID, Value, Quality, and Timestamp are all clearly displayed.
12 | P a g e
10. Right-click on one of the items displayed in the data area. Note the options available in the displayed
menu.
Questions:
1. If Mega Corp. adds additional OPC Servers in the future can they connect to multiple OPC servers from
the one OPC client in the DCS?
2. If you can connect to more than one OPC server how many OPC servers can one OPC client connect to?
3. If Mega Corp. adds additional OPC client based products how many OPC clients can connect to the one
OPC Server connected to the coal feeder?
4. To show Mega Corp. that OPC will be a viable in solving their connectivity issue what are the
13 | P a g e
indications in the OPC Explorer GUI that the connection to the selected OPC server has been
established?
5. Is it possible to access the data items within the OPC server without first creating the group object?
6. Mega Corp. has numerous items they want to collect out of the production equipment but would like
to get them at different rates based on different priorities. This is done by using different group
objects. How many group objects can be created within an OPC server?
8.
When showing Mega Corp. that the OPC data can be trusted by looking at the quality of each item
what are some possible qualities in OPC Mega Corp. would be interested in?
9. Mega Corp. is concerned that any solution be interoperable with other vendors and industry standards,
Can OPC Explorer or any OPC client connect to all vendors OPC servers? If so, why?
10. Will the DCS OPC client application display the same information as OPC Explorer? What will be
common between the two OPC clients?
14 | P a g e
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
15 | P a g e
Procedure:
1. Start the MDBUS Modbus device simulation program. The simulator is located in the OPC Classic
folder on the desktop. Click OK in the about box if it appears.
The configuration of the simulator can be verified by clicking on the Configuration menu item.
2. Select the File Ident. button and the OPCTrain.CFG file. Press the Load File(s) button. Click OK.
The Simulator is now configured for the training exercises.
16 | P a g e
3. On the main window select the On menu item to start the simulator. The operating system may ask
for permission to allow firewall access. Accept access.
4. From the Start Menu, launch the configuration of the MatrikonOPC Server for Modbus.
Start All Programs MatrikonOPC Modbus MatrikonOPC Server for Modbus
17 | P a g e
Note that the Timestamp of the items that change are updated in OPC Explorer. What does this
18 | P a g e
9. Right-click on the OPC group in the OPC Explorer server list area. Select Properties.
10. In General type, select Synchronous I/O from the drop-down list. Click on OK.
What change is noted in the update behavior of the data in the client?
11. Stop the Modbus Simulator by selecting the Off menu item.
19 | P a g e
18. Stop the service for the MatrikonOPC Server for Modbus.
What is the effect of this on the connection between OPC Explorer and the OPC Server for Modbus?
Does the connection to the OPC Server for Modbus come back with the restart of the server?
20. In OPC Explorer, connect to Matrikon.OPC.Modbus.1. Add all the Configured Aliases tags.
20 | P a g e
21. Open the Group Properties window and increase the Update Rate to 5000 ms.
21 | P a g e
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
Procedure:
1. Open the OPC Desktop Historian configuration tool.
Start All Programs MatrikonOPC Desktop Historian MatrikonOPC Desktop Historian.
22 | P a g e
2. In the ODH configuration utility, select and expand Desktop Localhost OPC Desktop Historian
Data Collection Management. Then select Configure.
3. The Data Collection Management tab opens on the right-hand side of the screen.
4.
In the Tag Browser on the left hand side of the configuration panel:
a. Under Source Data Server, click on the ellipsis, navigate to and select the local OPC Server for
Simulation and Testing.
b. Click on the Browse button.
c. Browse to the Simulation Items/ BucketBrigade branch by clicking on each item in turn.
d. Select the BucketBrigade.Int2 and BucketBrigade.Int4 tags.
e. Add these tags to the tag list by clicking on the Add Selected Tags button at the bottom of the
Tag Browser panel.
Note: For use in a future exercise, these two new tags are to be configured as blank tags.
23 | P a g e
5. Delete the Source Name and Process Name attributes for these new tags.
6. Change the Item Name attribute to a name appropriate for archiving data from another database
(e.g., Store1).
7. Ensure that the Archiving attribute is selected.
8. In the lower right-hand corner of the configuration panel, click on the Commit button.
9. These two tags are now added to the tag data base, but are not associated with a data source. No
values are being stored for these tags.
10. Close the ODH configuration window.
11. Open a blank Excel spreadsheet.
Note: If you are using Office 2003, there are additional menu headings for Excel Reporter and Desktop
Historian. If you are using Office 2007 / 2010, these same two add-ins are located in the Add-ins tab
24 | P a g e
13. The Load Tags window appears. This allows you to choose the item attributes you wish to display in
the spreadsheet. For this exercise, accept the default, which is to include all of the attributes. Click on
the OK button.
14. All of the configured tags from ODH appear in the Excel spreadsheet. In this application, you are able
to add, modify and delete OPC tags from the tag database.
15. The functions of the ODH Tag Manager Add-in for Excel are described in detail in the ODH Users
Manual. You may use this document as a reference for additional practice if you so choose.
25 | P a g e
Corporate Network
HMI
ODH
Excel
Reporter
Workstation
ERP
DCS
OPC
Explorer
Tunneller
CSC
DCS Machine
Procedure:
1. Open a blank Excel spreadsheet. If you are using Office 2003, there are additional menu headings for
Excel Reporter and Desktop Historian. If you are using Office 2007, these same two add-ins are located
in the Add-ins tab group on the ribbon.
26 | P a g e
3. Click on the Add-Ins Excel Reporter Raw History menu item. The Raw History window opens.
Any item not specifically dealt with in this section is to be left at the default value.
27 | P a g e
28 | P a g e
6. The next step is to configure the start and end times (time range) for the data read call. See the
MatrikonOPCTM Analytics Excel Reporter Users Manual for further instructions on this feature. Select a
time range of 1 hour during a period when the system was powered on, typically between 8 and 9
a.m. of the current day. Leave the Cell field blank.
12. Select cell G1 (or the next empty cell in row 1).
13. Click on the Excel Reporter Processed History menu item. The Processed History window opens.
Items not specifically dealt with in this section are to be left at the default value.
29 | P a g e
14. Use the same Data Source and Tag as the Raw History retrieval.
15. In the Read Method area, select the INTERPOLATIVE aggregate and a Resample Interval of 1 second.
30 | P a g e
16. Set the same Time Interval as the Raw History retrieval.
Note: In order keep the spreadsheet uncluttered, it is a good idea to start this Quick Chart on
a new spreadsheet.
21. In the Quick Charting windows, select the Desktop Historian server as both the historical and real-time
OPC server.
22. Select the Sample_Int2 tag, and ensure that the Continuously update with latest value checkbox is
selected.
31 | P a g e
25. Close the Excel spreadsheet without saving the changes. Ensure all Desktop Historian windows are
closed.
Questions:
b) How do the OPC qualities for the returned values differ from the qualities of DA items we have
seen in previous exercises?
c) Do the OPC timestamps of the returned values match the requested time range?
b) Are the OPC qualities of all of the returned values the same? What is the reason for this?
32 | P a g e
c) How would Mega Corp. use the ability to have different qualities? What advantage is there to
having different qualities?
33 | P a g e
History
Link
Tunneller
CSC
Tunneller
SSC
Enterprise
Historian
Matrikon
OPC HDA
Explorer
Procedure:
1. Open HistoryLink.
Start All Programs MatrikonOPC HistoryLink MatrikonOPC HistoryLink
34 | P a g e
3. Ensure the Maximum Message Window Lines is 100 and click apply.
35 | P a g e
5. On the right-hand side of the configuration window, click on the New button.
6. The Transaction Edit window appears. In the Item Mapping Summary area, click on the Edit Item
Mappings button.
7. The Item Mapping Editor window appears. Configure the Data Source using the following settings;
a. Type OPC HDA Server
b. Name Localhost Matrikon.OPC.DesktopHistorian.1
c. Click on the Browse button twice, leave the Browse Filter blank.
d. Select the Sample_Int2 item. The item will be highlighted and will remain so when you switch
to the Data Destination area
36 | P a g e
9. Upon selection of the destination tag, the Map Selected button will become active. Click on this
button to create the link between the two selected items.
Note: Ensure that the selected OPC items are of the same data type.
10. Click on the Accept button in the lower right-hand corner of the window. The Item Mapping Editor
window disappears.
11. In the Data Window Configuration area, configure the data range that will be selected for transfer
within the source database. This will be configured By Start and End Time.
12. Adjust the Start Time and End Time for a 15 second data window. Ensure that you use the current
date, and times that are not in the future.
37 | P a g e
15. Observe that the transaction messages appear in the window below indicating that the transactions
are taking place.
16. In the Transaction list, observe that the Next Execution time increments by the window size.
17. To ensure that the writes are taking place in the destination archive, use Excel Reporter to view the
data in the destination tags.
Note: If you are using a Remote Desktop Connection to a Virtual Machine in this class, do not perform
the next series of steps. Disconnecting the physical media from your machine results in a loss of
connection to the remote machine.
18. Upon completion of several transactions, interrupt network connectivity, either by pulling the network
cable or disabling the network connection.
38 | P a g e
19. Observe that the transactions continue, with errors. In the destination archive, verify that data is no
longer being written to the destination tags.
20. Re-establish the network connection.
21. Observe that the transactions now show no errors, and that data is being written to the destination
tags. A gap should appear in the data in the destination tag.
22. Select TRN0 in the Transaction list. The Transaction Edit window appears.
23. In the Schedule Transaction area, check the box beside Retry the same sliding window if failed. Set
the Retry Interval to 1 Minute (this is the default value).
28. Observe that HistoryLink will schedule and execute all missed transactions until a transaction is
scheduled that has not yet occurred.
29. Delete the transaction and close all windows.
Questions:
1. What is the purpose of the Expanding Window?
39 | P a g e
3. Which method works better for network interruption recovery, the Sliding Window with the Retry the
same Sliding Window if failed option selected or the Expanding Window? Based on Mega Corps
requirements which do you think they should use?
40 | P a g e
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
Procedure:
41 | P a g e
3. At the top of the page, in the Event Sources area, click on the Event Sources button. The Event
Source Configuration window will open.
42 | P a g e
5. On the right-hand side, click on the Add a Condition to this Event Source button. The Condition
Configuration window will open.
43 | P a g e
b. Value
c. OPC Item
d. Greater Than
e. Constant Value
f. 10
7. Click on Ok.
8. Create a second Event Source named OverUnder. Add a condition based on the Value of the OPC item
Simulation Server \Random.Int1 being Greater Than a Constant Value of 75.
9. After clicking on the Ok button the Event Configuration display returns. On the right-hand side, click
on the New OPC Event button.
10. The Create an OPC Event window opens. Create an event from the MyCPU event source. The Category
is CPU Warning Event (you will have to create this category by typing it in).
11. Enter a message to be displayed in the OPC A&E client when the event is triggered. Select a Severity
Level for this event.
44 | P a g e
14. Enter a message to be displayed in the OPC A&E client when the event is triggered. Select a Severity
Level for this event.
15. Click on the Ok button. Minimize the OPC Server for Events configuration window.
16. Open OPC Explorer.
Start All Programs MatrikonOPC Explorer MatrikonOPC Explorer
18. Create a subscription to the Event server by clicking on the Add Alarms button.
19. The Add Subscription window opens. Name this subscription CPUHigh, and accept the default settings
on the Subscription Settings tab.
20. On the Filtering tab, accept all of the defaults in the Events area, and CPU Warning Event in the
Categories area.
45 | P a g e
Questions:
1. Why would Mega Corp. use event data instead of monitoring an item value on a HMI faceplate?
3. For the subscribed events, is there any indication of the Condition that caused the Event to trigger?
4. What does this indicate about the OPC Event server and A&E client?
46 | P a g e
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
Procedure:
1. Open the DCOMCNFG utility.
Start RUN DCOMCNFG
47 | P a g e
2. In the DCOMCNFG utility, open the DCOM permissions configuration GUI for the MatrikonOPC Server
for Modbus Devices by right clicking and selecting Properties.
3. On the Launch and Activation Permissions and Access Permissions of the OPC Server for Modbus
Devices, set the Interactive User permissions to Deny.
48 | P a g e
49 | P a g e
5. Stop the OPC Server for Modbus Devices using the Windows Services panel.
6. Note that if the OPC Server for Modbus Devices process either does not stop, or it re-starts
automatically it is due to an OPC client reconnecting to the server and restarting it.
7. Attempt to connect OPC Explorer to the OPC Server for Modbus Devices. Note the results.
8. Change the Access Permissions for the Interactive User on the OPC Server for Modbus Devices to
Allow.
9. Attempt to connect OPC Explorer to the OPC Server for Modbus Devices.
a. Note that OPC Explorer can now connect to the OPC Server for Modbus Devices.
10. Reset the permissions for the OPC Server for Modbus Devices to their original values
(Allow Launch and Activation permissions) and stop the service from the service panel.
50 | P a g e
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
Procedure:
1. Set-up:
a. The trainer will assign you a partner for this exercise. Ask for your partners machine name.
b. Ensure that you can establish a DCOM connection to your partners machine by opening OPC
Explorer and connecting to the Network Neighborhood [Node Name]
Matrikon.OPC.Simulation.1 server.
2. Navigate to Start All Programs MatrikonOPC Tunneller.
51 | P a g e
3. Open the Tunneller Client Side Gateway Configuration (CSC) Utility. Use the Run as Administrator
option.
4. Add a Tunneller connection to the OPC Tunneller Server-Side Component on your machine by
selecting the File menu item and select Add Remote Tunneller Connection from the displayed menu.
Again, be aware that there are multiple mechanisms for performing this function. Consult the
MatrikonOPC Tunneller Users Manual for a complete listing.
52 | P a g e
5. Select your computer name from the drop-down list. Usually this is the machine name that appears in
the window by default. Once connected, all of the installed OPC servers on your machine are listed
under the computer name in the display.
53 | P a g e
6. Once you have successfully added your local machine, add a remote Tunneller connection to your
partners machine using the same procedure as in the previous steps in this exercise.
7. Close the CSC utility window. This will close the configuration utility, but not the configured Tunneller
connections.
8. Open OPC Explorer. You will see that in addition to the OPC servers installed under localhost, you will
now have Tunneller connections to the OPC servers on both yours and your partners machine. The
syntax is as follows:
54 | P a g e
Tunneller:<partnercomputername>:Matrikon.OPC.Simulation.1.
10. Create a group and add all of the Random items from this server.
11. Connect to the same OPC Server for Simulation using a DCOM-managed connection through the
Network Neighborhood. Create a group and add all of the Random items from this server.
55 | P a g e
12. Once you have made the connection and have Good quality in all of the OPC items in both OPC
groups, pull the network cable from your machine. If the cables are not conveniently located, you can
simulate this by disabling the network connection using Windows utilities.
a. Note the following:
i. The DCOM-managed connection to your partners OPC Server for Simulation and
Testing has been destroyed.
ii. Although OPC Explorer is still connected to the Tunneller connection, all qualities of
the items in this connection are Bad.
56 | P a g e
14. Ensure that all applications and configuration windows are closed.
Questions:
1. Will any vendors Tunneller Client-Side work with another vendors Tunneller Server-Side? Why or why
not?
2. Will OPC Tunneller work with all vendors OPC clients and OPC servers?
3.
Mega Corp. will need more than one Tunneller node installed. How many will they need based on the
network diagram above? Why?
57 | P a g e
MatrikonOPC
Modbus OPC
Server
Tunneller
SSC
MatrikonOPC
Perfmon OPC
Server
HMI
ODH
ERP
DCS
Modbus
PLC
OPC
Explorer
OPC
Explorer
MatrikonOPC
Server for Events
Tunneller
CSC
DCS Machine
OPC Machine
Procedure:
1. Working with a partner, use one machine as the client machine, one as the server machine.
2. On the server machine, set the OPC Server for Simulation and Testing to run as an application by
58 | P a g e
3. On the server machine, use DCOMCNFG to set the Identity of the OPC Server for Simulation and
Testing to the Interactive User.
5. On the client machine, attempt to connect to the OPC Server for Simulation and Testing on the server
machine using DCOM.
6. On the server machine, log in to Windows.
7. On the client machine, connect to the OPC Server for Simulation and Testing on the server machine
using DCOM.
8. On the server machine, log off of Windows. Observe the effect on the connection between client and
server.
Note: For the next part of this exercise it may be necessary to create additional users.
9. On the server machine, log back on to Windows. Open DCOMCNFG and change the Identity of the
OPC Server for Simulation and Testing to the Launching User.
10. On the server machine, open Task Manager and select the Processes tab.
11. On the client machine, use the Run As option to launch at least three instances of OPC Explorer using
different identities for each instance. For each instance, connect to the OPC Server for Simulation and
Testing on the server machine using DCOM.
59 | P a g e
12. On the server machine, set the OPC Server for Simulation and Testing to run as a service by
performing the following steps:
a. Open a command line interface by selecting Start Run and typing cmd.
b. Navigate to the OPC Server for Simulation and Testing installation folder:
cd C:\Program Files\Matrikon\OPC\Simulation
c. Register the server as a service:
Opcsim -service
Questions:
1. With the OPC Server for Simulation and Testing using the Interactive User identity:
a) How many instances of the server are running?
b) How would this setting affect everyday operations of the OPC servers in use at your plant?
2. With the OPC Server for Simulation and Testing using the Launching User identity:
a) How many instances of the OPC Server for Simulation and Testing are running?
b) What is the User Name listed for the OPC Server for Simulation and Testing?
c) What permissions are associated with this server and how would these affect daily operations?
60 | P a g e
61 | P a g e
15. Select Matrikon.OPC.Sniffer.1 from the list of OPC servers installed on Localhost.
62 | P a g e
16. Connect to the selected OPC server by clicking the Connect button on the right-hand side of the
display.
17. A console window will appear as well as the configuration screen for OPC Sniffer. Select
Matrikon.OPC.Simulation.1 and hit Continue. Logging will scroll in the console window.
63 | P a g e
18. Browse, Add Items, Read, Write, all will show in the log window.
19. Exit OPC Explorer. Sniffer will also exit.
Questions:
1. OPC Communication is logged. What other information is logged in the OPC communication?
64 | P a g e
Procedure:
1. Open OPC Explorer:
Start All Programs MatrikonOPC Explorer OPC Explorer
2. Select MatrikonOPC Explorer.
65 | P a g e
66 | P a g e
4. Connect to the selected OPC server by clicking the Connect button on the right-hand side of the
display.
5. Create a group in OPC Explorer and browse to the item localhost\Processor\_Total\% Processor
Time.
67 | P a g e
7. Start and Stop Microsoft Word and notice the CPU usage go up and down.
8. Exit out of OPC Explorer.
Questions:
68 | P a g e
1. What host metrics would you need to use to know if an automation piece of software had deadlocked
(halted but not exited)?
2. Could you also use the same metric to determine if the automation piece of software was overloading
the computers CPU?
3. Could you do the similar things with memory? What can you detect?
4. If combined with the OPC Server for Events which generates OPC Events could you create an automatic
system to help determine the health of the hosts on a network?
69 | P a g e