Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to integrate OPC Client usage with ServerSuperIO

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to integrate the use of OPC Client with ServerSuperIO". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

18. Integrate OPC Client and use steps

18.1 Overview

OPC is a protocol which exists in Cramp S structure and is widely used in industrial field, in "16. Integration of OPC Server, and the steps to use "briefly introduces the basic situation of OPC." Generally, the OPC Server side provides an interface for readable data information, for example, the measuring point data read by the device driver of the ServerSuperIO can be written directly to the OPC Server; the OPC Client side actively connects to the OPC Server and reads the data information of the server side through synchronous, asynchronous, data change events and so on. There is a many-to-many relationship between OPC Server and OPC Client. OPC Server can provide data sources for multiple OPC Client, and OPC Client can also read data information from multiple OPC Server.

OPC Client is a way to collect data information, so ServerSuperIO integrates this service, which exists in the form of service, which is different from the way of device driver collecting hardware data. The integration of OPC Client services only involves the use process, not the problem of code development, and only needs configuration to save the read data directly to the real-time database.

18.2 ServerSuperIO's OPC Client uses the process 18.2.1 OPC server-side test tool and creates test points

You can find OPC Server test tools in the OPC tools and components\ OPC Server Test tools directory of ServerSuperIO v3.5. Open the tools to create OPC test points and generate data dynamically. As shown below:

18.2.2 use the configuration tool to configure basic information and read test points

You need to set the contents of the "basic configuration" menu. The main parameters include: (1) write the table name to the real-time database, and you can fill in the existing table name. (2) set the interval between reading data, which is suitable for synchronous and asynchronous data reading. (3) set the way of reading data, when the server data changes, automatically trigger the read data event, synchronous read data and asynchronous read data. (4) set whether to save the read data to the real-time database, and if you need to save it, it is necessary to set the configuration information of the real-time database correctly. (5) whether to enable the OPC Client service, if so, the host program based on ServerSuperIO secondary development will have this service, and the secondary development kit will also have this project service.

Open the [OPC Client configuration] menu, read the test point data provided by OPC Server according to the hierarchical relationship of services, groups and tags, and save the current configuration information. The ServerSuperIO main program will automatically read the data information when it starts. As shown below:

18.2.3 Open the real-time database service

Download and install the real-time database installation package and secondary development package .rar (download address). After installation, there are service manager and enterprise manager, as shown below:

.

18.2.4 run the UI program or console program

"ServerSuperIO.UI.exe" and "ServerSuperIO.Host.exe" are the two main programs in the secondary development kit, and starting any program will automatically complete the setting function of the whole process. As shown below:

Main program

Real-time database

18.3 considerations

If the name of the test point created on the OPC Server side is "Random.Tag1", then the name saved to the real-time database is changed to "RandomTag1" and the "." The point is removed, mainly considering the compatibility between the components.

18.4 Application extension

OPC Client itself is an independent service component, so how does an independent service component integrate with ServerSuperIO? The framework itself provides ServerSuperIO.Service. The IService service interface integrates OPC Client components into the entity class of the IService interface, and the ServerSuperIO framework automatically instantiates the IService interface object.

Similar to other services can also be done, such as: reading data from other data sources, analog output, LED display output, and so on. The definition of IService interface is as follows:

12345678910111213public interface IService: IServiceConnector,IPlugin {/ service Key, which requires unique / string ServiceKey {get;} / service name / string ServiceName {get;}... } this is the end of the introduction to "how ServerSuperIO integrates OPC Client usage". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report