* * * Affordable, Reliable, Guaranteed * * *

Using WinTECH Software's OPC Server Rapid Development Toolkit, you can beup and running a fully functional OPC Server, integrated with your owndata, in less than a day's time. All you have to do is download thetoolkit below, link the dll in with your application, and pass yourdata points to the dll using the simple API as included with thedocumentation. The dll takes care of all the details necessary to interface to OPC Clients using either OPC 1.0, OPC 2.0 or OPC 3.0 Data AccessStandards. All required OPC interfaces are supported by the dll, including theBrowse functions. The demo version of the dll, (available below), allows you tocreate a complete working OPC Server solution for your custom applicationwithout cost or obligation. The API is fully documented and supported.After you have successfully integrated your application's data with thedll, and are satisfied that it works to your satisfaction, you may purchasea developer's license for the toolkit to remove the time limit. (The demo versionof the dll will time-out after 30 minutes of operation.) The completeworking source code for the dll is also available for those who want completeprotection for their investment.

Why spend months of development time pouring over the OPC/DCOM specs before you begindeveloping? Why spend thousands more dollars to purchase a toolkit from oneof the 'Major Commercial Vendors'? We have over 20 years of software design experiencein process-related industries. Our toolkits are robust, efficient, and field-proven inhundreds of locations through-out the world. Other vendors may sell toolkits that workequally as well, but there are none better, and certainly none as economical as thoseprovided by WinTECH Software Design. Our Developer Toolkits are our main business.We were the first to provide fully functional, readily downloadable demos with an openlypublished API. This allows potential users to create and test server and client applicationsintegrated with their own data without cost or obligation. Other vendors may sell theirtoolkits as a side-line and are often more interested in marketing their own OPC-basedsolutions than they are in supporting your development efforts. At WinTECH Software Design,your application is what's important to us. We stand behind the software with an unconditionalguarantee. Technical support is without charge and licensed users have access to allfuture releases of the product. Please take the time to download and evaluate the demotoolkit(s) and if you have any comments or questions, please email us at:opc@win-tech.com

Download the Server Toolkit
WTOPCSvr.zip (413K)

WTOPCSvr User's Guide

Dear Sir, I want to develop OPC CLIENT (and your site is related to this technology). Can you recommend me a good OPC client and server SOURCE CODE samples for this purpose? Or secondly, may be very low cost solutions with third-party frameworks. Alias Map: Fixed an issue introduced in 6.7 where client items that contained periods in the Alias Map portion of the item path would fail item validation. Ethernet Encapsulation (serial drivers): Added an event log message to indicate if threads cannot be created.

The WinTECH Software Rapid Development DLL for OPC Servers, (WTOPCSvr), provides aneasy to use API for integrating custom data with OPC. All the details of COM and OPCare handled by the DLL, which allows an application to present data points to OPC ata high-level, without having to be concerned with the actual implementation of theunderlying interfaces. The DLL may be easily integrated with existing applications,or new ones. All required OPC Interfaces are supported for both OPC 1.0 and OPC 2.0Data Access Standards as well as the Browse Interface.

WTOPCSvr basically operates as a data librarian. The controlling application createsProcess Tags by passing a name and value to the DLL. The DLL records the data pointand makes it available to any OPC Client application by name. The controllingapplication may change the value of the data at any time, and all attached clientswould be automatically notified. Callback notification is provided for any ProcessTag that is modified by an OPC Client connection. (The application has control overwhich tags are OPC_WRITEABLE.)

Creating a Custom OPC Server using WTOPCSvr.DLL

Installing the OPC Proxy DLL’s

The first step in creating an OPC Server is to obtain and install the OPC Proxy/Stub DLL’sfrom OPCFoundation. Theses are available from the OPC Foundation's public download web pagelocated at: (http://www.opcfoundation.org). Just follow thelinks through 'Technical Information', 'Common Downloads for Programmers'.

  • Download and upzip the proxy/stub files.
  • Copy opccomn_ps.dll, opcproxy.dll, opcae_ps.dll, opchda_ps.dll to the SYSTEM32 Directory. *Be sure not to overwrite any newer versions*
  • Type REGSVR32 opccomn_ps.dll
  • Type REGSVR32 opcproxy.dll
  • Type REGSVR32 opc_aeps.dll
  • Type REGSVR32 opchda_ps.dll

    Link WTOPCSvr.lib with the Application

    WTOPCSvr.lib contains the export definitions for the DLL’s API. Include this file withthe project files for the custom application and include WTOPCSvrAPI.h with those moduleswhich will be making calls into the DLL.

    Generate a new CLSID

    Each OPC Server is identified by a unique CLSID. The GUIDGen.exe utility supplied byMicrosoft may be used to generate a unique identifier for the new server application.Run GUIDGen.exe, (located in the Visual C++Bin directory). Generate a new CLSID andcopy to the clipboard to be pasted in to your server application as described below.

    Registry Entries

    The WTOPCSvr.DLL exports two API functions that make modifications to the Windows Registryfor installation of the custom server.

    UpdateRegistry (GUID CLSID_Svr, CString Name, CString Descr, CString ExePath);

    UnregisterServer (GUID CLSID_Svr, CString Name);

    These functions take as arguments the CLSID generated above, (as well as text stringsto identify and describe the new server). While the UpdateRegistry and UnregisterServerfunctions may be called from the controlling application at any time, it is generallypreferred to implement the registry functions based on command-line entries duringstart-up of the application. A self-registering server would process the RegServerand UnregServer command line options similar to the code below, (extracted from OPCSimSvrApplication):

    Initialization of WTOPCSvr.DLL

    The Windows Registration functions described above may be called prior to the initializationof the WTOPCSvr.DLL. During the self-registration process, the focus is on making thenecessary changes to the Registry and then exiting the application. There is no needat this point to go through the effort of initializing DCOM and loading up the OPC Serversupport. The exported function:

    Free download smule for laptop. InitWTOPCsvr (GUID CLSID_Svr, UINT ServerRate);

    does just that. When this function is executed, the DLL performs all necessary initializationof COM/DCOM and creates the OPCServer Interface object to be used for client connections.The specified ServerRate defines how fast the OPC Client data connections are refreshed.

    Creating Process Tags

    After initialization, the WTOPCSvr.DLL is now ready to accept data points from thecustom application. Three exported functions are provided:

    CreateTag (CString Name, VARIANT Value, WORD InitialQuality, BOOL IsWriteable);

    UpdateTag (HANDLE TagHandle, VARIANT Value, WORD Quality);

    UpdateTagByName (CString Name, VARIANT Value, WORD Quality);

    As each process tag is created, the DLL returns a HANDLE to identify the point forfuture references, (updates), from the application. The naming convention used byWTOPCSvr.DLL for browsing operations, (OPC_NS_FLAT or OPC_NS_HIERARCHIAL), is afunction of how the names are assigned by the controlling application. If segmentednames are used to create the tags, (strings containing the delimiter ‘.’,such as 'PLANT A.PROCESS1.TAG17'), WTOPCsvr.DLL will automatically configure thename space as hierarchial, otherwise a flat name space is used.

    Callback Notification

    If process tags are created as OPC_WRITEABLE, attached client applications may changethe value of data points contained within WTOPCSvr.DLL. In this scenario, the controllingapplication needs to know that a particular tag has been changed and the new value.WTOPCSvr.DLL provides the ability for the controlling application to define a callbackroutine for notification of client writes.

    EnableNotification (NOTIFYPROC lpCallback);

    If enabled, the callback function will receive the HANDLE of any data point written byan attached OPC Client. The application may then read the new value via the exportedfunction:

    ReadTag (HANDLE TagHandle, VARIANT *pValue);

    Follows the journey of a time traveler from the post-apocalyptic future who appears in present day on a mission to locate and eradicate the source of a deadly plague that will nearly destroy the human race. 12 monkeys torrent kat.

    Clean-up Functions

    The only remaining functions exported from WTOPCSvr.DLL provide the mechanism forgracefully closing the custom server.

    int NumbrClientConnections ();

    void RequestDisconnect ();

    RemoveTag (HANDLE TagHandle);

    Generally, the server logic sould check to see if any OPC Clients are connected beforeallowing the application to close. OPC 2.0 clients may be requested to disconnect. Anytags created by the application should be removed using the defined function.

    Last Updated: Jan 20, 2004
    Factorysoft opc client toolkit for facebook accountCopyright © 2000, WinTECH Software Design
    Return to WinTECH Automation Apps.
    The company offers OPC Development Toolkits for the OPC Alarm and Event specification version 1.0.
    The company offers OPC Development Toolkits for the OPC Alarm and Event specification version 1.0. The new specification identifies standard interfaces to pass alarm and event information between software applications.

    The company offers a Server toolkit and a Client toolkit for the OPC Alarm and Event interface. Both toolkits include fully documented source code and helpful instructions on building the application. A test client and server are also provided to help in testing and debugging.

    Over 20 companies have already employed the Alarm & Event toolkit in their products.

    The company offers a free OPC Alarm & Event evaluation package for free download from their website. The download includes a fully functional Modbus OPC server that implements both the data access and alarm and event interfaces. An alarm and event client application is also included. Users can access the download area from the company's home page at http://www.factorysoft.com.

    FactorySoft, Inc., 89 Forbes Blvd., Mansfield, MA 02048. Tel: 508-337-6600. Fax: 508-337-6686.

    Need More Information? Just Ask.

    Click the button below to directly contact the supplier. Use it to:

    • Ask a question.
    • Request more detailed information or literature.
    • Discuss your current project/application.
    • Request a quote.
    • Locate a distributor in your area.
    • Schedule a demo.
    This website uses cookies to ensure you get the best experience on our website. Learn more

    Popular Posts