In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly talks about "what are the ScaleOPC.DLL functions of c #". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what are the ScaleOPC.DLL functions of c #"?
I. the function and internal structure of "ScaleOPC.dll":
(1). Refer to all the functions within the WtOPCSvr.dll component, and the WtOPCSvr.dll component is written in VC
So use C # [DllImport ("WtOPCSvr.dll")], for programmers
Everyone knows that. The corresponding BaseOPCServer.cs class.
(2). Inherit the BaseOPCServer.cs class and write the OPC SERVER usage class. Of course, just use it.
BaseOPCServer.cs can also be used, but to facilitate the management of TAG, TagInfo.cs and
TagCollection.cs class, users manage TAG information and collections.
(3). The function of database driver has been added. You can use this DLL to configure data sources and configure fields at will.
System. Both ACCESS and SQL database types are supported.
(4). For ease of use, when starting the service, it will check whether the OPC is registered. If not, this
DLL automatically releases embedded resources for registration.
(5). All you need is a "ScaleOPC.dll", and other embedded resources will be automatically released. Be a user
It's not about sex.
Second, the specific application, only a few functions.
It is still very convenient to use. Don't worry about the mechanism in it, it's all sealed up.
/ / external interface class when the user uses it
ScaleOPC.OPCInterface inter=new ScaleOPC.OPCInterface ()
/ / configure data sources
Inter.ConfigOPCSvr ()
/ / start threading service, establish OPC TAG, and update data in real time
Inter.StartOPCSvr (System.AppDomain .CurrentDomain .BaseDirectory + "Test.exe")
/ / pause the current service
Inter.Suspend ()
/ / restart the service
Inter.Resume ()
/ / stop the current service
Inter.CloseOPCSvr ()
/ / View the current TAG structure
ScaleOPC.TagStructForm form=new ScaleOPC.TagStructForm (inter)
Form.ShowDialog ()
Configure the database type
Select ACCESS data source
Select SQL data source
Configure data source fields
View TAG structure
Client testing tools.
At this point, I believe you have a deeper understanding of "what are the ScaleOPC.DLL functions of c #". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.