In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what is the use of OPC in ServerSuperIO". The editor shows you the operation process through an actual case. The method of operation is simple, fast and practical. I hope this article "what is the use of OPC in ServerSuperIO" can help you solve the problem.
Steps for using 16.OPC Server
16.1 Overview
OPC (OLE for Process Control, OLE for process control) is an industry standard based on Microsoft's OLE (now Active X), COM (component object Model) and DCOM (distributed component object Model) technologies. OPC includes a standard set of interfaces, properties, and methods. Used in all the major automatic control systems, instrumentation and process control systems in the world.
Through the loaded device driver, ServerSuperIO interacts with the hardware sensor and collects data information in real time through the network port or serial port as the communication link. After the device driver collects the data information of the hardware sensor and immediately transmits the data to the OPC Server,OPC Server, the OPC Client can respond immediately, which can better reflect the real-time performance of the data and avoid the delay caused by OPC Server reading the data information of the database regularly. Nor can it reflect the authenticity of the changes in the data in time.
The structure is shown below:
The OPC usage process of 16.2 ServerSuperIO
The use process is relatively simple. In the process of secondary development of the device driver, the dynamic interface is inherited to realize the custom attributes to save the real-time data; through the configuration work, the custom attributes of the device driver are mapped into Tag tags, and then the OPC Server service is enabled; after the device communication, the device driver will update the real-time data to OPC Server.
16.2.1 inherit dynamic interface
The dynamic interface of temporarily storing data in the device driver can define the data such as traffic or signal as the corresponding attribute name, and update the corresponding attribute after each data collection.
The code is as follows:
1234567891011public class DeviceDyn:DeviceDynamic {public DeviceDyn (): base () {} public override string GetAlertState () {throw new NotImplementedException ("No alarm message");} private float Flow {set; get;} private float Signal {set; get;}}
Of course, device driver development includes more than that, as detailed in previous tutorials.
16.2.2 add device drivers
Run the ServerSuperIO.Tool.exe tool and click the basic configuration menu. Configure the developed device driver set in the configuration tool to prove that the current device driver can run on the platform, as shown below:
What is configured above is the basic information of the assembly, which can be used by multiple device driver instances. The device driver runs under the platform and needs to be instantiated (specific communication examples), so it is necessary to mount the device driver. Mounting process: create a service instance and mount the runnable device instance under the service instance. As shown below:
16.2.3 configure label attributes
Run the "ServerSuperIO.Tool.exe" tool and click the "tag configuration" menu to map the attributes of the runnable device-driven dynamic data interface mounted on the device to the Tag tag. As shown below:
16.2.4 install OPC components
Install the corresponding OPC core component "OPC Core Components Redistributable" in the "OPC tools and components" directory, and "TOOLS" can be installed optionally. This is a must-have component of OPC Server services.
16.2.5 start the OPC Server service
Run the "ServerSuperIO.Tool.exe" tool, click the basic configuration menu, and start the OPC Server service. As shown below:
16.2.6 run the program
You can run the host program of "ServerSuperIO.Host.exe" or "ServerSuperIO.UI.exe", or you can run the main program of your own secondary development.
16.2.7OPC Client reads data in real time
In the "OPC tools and components" directory, there is a "opcquickclient.exe" OPC Client tool that increases the data to be read by server, group, and label. As shown below:
16.3 considerations
Both the OPC Server host program and the OPC Client program must be run as "administrators", otherwise they will not succeed.
This is the end of the content about "what is the use of OPC for ServerSuperIO". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.