Flexible OPC Client Development in VS NET VB
Flexible OPC Client Development in VS. NET, VB 6 and More Got a snazzy graphic mike – remove this and put it here! Your Hosts Today: Win Worrall Application Engineer and Developer Renee Sikes Application Engineer
Flexible OPC Client Development in VS. NET, VB 6 and More Agenda – 45 Minutes u OPC to Visual Studio. NET Overview u OPCData. NET Overview u Live training u Basic OPC functions u u u Reading, Writing, Subscribing Browsing via code and dialog Windows application Web application Connect to OPC UA Server Discussion, Questions & Answers
Using Visual Studio as an OPC Client u u u When you configure an HMI, you configure an OPC client connection to the OPC Server. In VS. NET you need an OPC client plug-in tool Good Design and Planning Still Required u Systems are only as good as weakest link Visual Basic to 1 OPC Server to 1 -N Devices
Putting it to Work Server Application Client Tool Plug-In
OPC Client Plug-In Tools u Two Types – Free & Commercial u Free Wrapper Objects u u Available from OPC Foundation Requires understanding of key OPC interfaces and working with handles & collections Community support only – no phone or email support Commercial Software Tools u u u Variety of types & languages available Details of OPC implementation abstracted for user User focuses on “read this”, “write that” Phone, email support usually included OPC Certified solutions are available
OPCData. NET u u u u u 100% managed, native 32 and 64 bit. NET component Targeted to Microsoft. NET Framework 2. 0 or 4. 0 u Works with VS 2005 and higher. Easy to use API Abstracts much of the OPC work under the hood Includes UA COM wrapper Multi-threaded, non-blocking design for high performance Self-optimizing OPC Certified OPCData-COM available for Active. X users
Typical Usage Can be used from within any tool based on the Microsoft. NET Framework u Thick-client. NET applications u. Windows Forms or Windows Services u u u Thin-client web applications Building your own web service u. Your application with OPCData. NET u. Your OPC-DA Server
OPCData. NET API u Three main assemblies u Easy. Opc. Common. Net. dll u u Easy. Opc. DANet. dll u u Classes that hold common OPC information Classes that work with OPC Data Access Easy. Opc. DANet. Forms. dll u Classes that work with OPC-DA from Windows Forms applications (browsing dialogs)
OPCData. NET API u u u Easy. DAClient is the main object that allows access to OPC DA servers Browsing via dialog or code Allows simultaneous operations u u Error handling u u multiple threads for improved efficiency OPC-related errors, COM/DCOM errors, errors returned from OPC server, errors detected by OPCData. NET library Helper properties for increased control u Synchronous and asynchronous operations, timeout and hold periods, percent deadband
What is OPC UA? u u u Unified Architecture A collaborative working effort of the OPC Foundation and it’s members since 1994 Objective to create a standard that u u Isn’t dependent on DCOM Can interoperate with non-Windows platforms Is more secure than the original OPC Removes redundant code across interfaces
Value of OPC UA u. Common Usage Interface u. DA, A&E, HDA, Security, etc
Value of OPC UA u. Common Usage Interface u. DA, A&E, HDA, Security, etc u Requires less programming: eliminates/combines many OPC calls OPC Classic u OPC Unified Architecture DA: u u u A&E: u HDA: u u u u IOPCSync. IO: : Read IOPCAsync. IO 2: : Read IOPCAsync. IO 3: : Read IOPCItem. IO: : Read IOPCEvent. Server: : Get. Condition. State IOPCHDA_Sync. Read: : Read. Raw IOPCHDA_Sync. Read: : Read. Processed IOPCHDA_Sync. Read: : Read. At. Time IOPCHDA_Sync. Read: : Read. Modified IOPCHDA_Sync. Read: : Read. Attribute IOPCHDA_Async. Read: : Read. Raw IOPCHDA_Async. Read: : Advise. Raw IOPCHDA_Async. Read: : Read. Processed IOPCHDA_Async. Read: : Advise. Processed IOPCHDA_Async. Read: : Read. At. Time IOPCHDA_Async. Read: : Read. Modified IOPCHDA_Async. Read: : Read. Attribute u u Read. History
Value of OPC UA u. Common Usage Interface Enterprise u. DA, A&E, HDA, Security, etc Servers u Requires less programming: eliminates/combines many OPC calls Workstations u. Built-in Security through certificate Mobile exchange Controllers u. No DCOM! Unified Architecture u Enterprise Data Communications enables communications and data sharing Embedded u. Enables data sharing across enterprise-wide
Live Demo u Basic OPC functions u u u u Reading and Multi Reads Writing and Multi Writes Subscribing Browsing via code and dialog Windows application (VB. NET) Web application (C Sharp) Connect to OPC UA Server Smart Client Deployment
What Tools are Needed? u u u For all usage scenarios u No tag count limits u No limits on # of clients, # of servers OPCData. NET Single PC Usage License (p/n 41283501) $595 OPCData. NET Single Developer + Runtime Free License (p/n 41283502) $995 OPCData. NET Additional Developers License (p/n 41283503) $395 OPC Data Client (p/n 41283508) $1495 u u OPCData. NET OPCData-COM Support contracts also available (20% of List Price) Contact us for upgrade pricing from OPCWeb. Client 3. 02
Contact Information & Other Learning Opportunities u u Free Demo: http: //opcwebclient. com/html/free_demo. asp Questions later? u Win Worrall u u u Renee Sikes u u wworrall@softwaretoolbox. com 888 -665 -3678 x 1329 or 704 -849 -2773 x 1329 rsikes@softwaretoolbox. com 888 -665 -3678 x 1328 or 704 -849 -2773 x 1328 www. opcwebclient. com Other learning opportunities u u Recording of this webinar Visit www. softwaretoolbox. com/webinars
- Slides: 16