CN111897761A - Data transmission method and system based on OPC - Google Patents
Data transmission method and system based on OPC Download PDFInfo
- Publication number
- CN111897761A CN111897761A CN202010762827.1A CN202010762827A CN111897761A CN 111897761 A CN111897761 A CN 111897761A CN 202010762827 A CN202010762827 A CN 202010762827A CN 111897761 A CN111897761 A CN 111897761A
- Authority
- CN
- China
- Prior art keywords
- module
- data
- opc
- interface
- acquisition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 230000005540 biological transmission Effects 0.000 title claims abstract description 22
- 238000004519 manufacturing process Methods 0.000 claims abstract description 30
- 238000012423 maintenance Methods 0.000 claims description 30
- 230000002688 persistence Effects 0.000 claims description 15
- 238000013480 data collection Methods 0.000 claims description 9
- 230000000737 periodic effect Effects 0.000 claims description 5
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000012545 processing Methods 0.000 abstract description 6
- 238000007726 management method Methods 0.000 description 17
- 238000004891 communication Methods 0.000 description 3
- 238000004886 process control Methods 0.000 description 2
- 229910000831 Steel Inorganic materials 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4265—Bus transfer protocol, e.g. handshake; Synchronisation on a point to point bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Factory Administration (AREA)
Abstract
The invention relates to the technical field of industrial process control data acquisition, in particular to a data transmission method and system based on OPC. The OPC-based data transmission method comprises the following steps: the system comprises a data acquisition module, a data configuration module, a data interface execution module and an MES management module; the data acquisition module is connected with the data configuration module through an OPC address module, the data configuration module is connected with the data interface execution module through a custom interface module, and the data interface execution module is connected with the MES management module. The acquisition of process data, the issuing of process data and the signal processing are realized.
Description
Technical Field
The invention relates to the technical field of industrial process control data acquisition, in particular to a data transmission method and a data transmission system based on OPC.
Background
OPC (OLE for Process control) is a communication interface standard used in the field of industrial control, and provides a set of standard interfaces, attributes and methods for Process control. The advent of OPC has made it possible to flexibly connect and interact information between devices and drivers from different manufacturers. However, the conventional OPC server access is still complicated, and different access procedures need to be developed for different types of data access.
Manufacturing Execution System (MES), which is a manufacturing process Execution system of a manufacturing enterprise, is a set of production information management system facing to a manufacturing enterprise workshop Execution layer. The MES is a link among a workshop field mechanical transportation system, an equipment control system, an equipment detection system and an enterprise-level management application system, can transmit actual information of workshop production to the enterprise-level management application system in time, and guides production according to the plan of the enterprise-level management application system; the development is divided into the following modules according to functions: order state management, production tracking, production scheduling, quality control, material pulling, production process monitoring, data acquisition, equipment energy management, reporting and analysis.
However, in the prior art, the collected data of the server is messy, and unified management is not formed. Conventional data acquisition schemes do not meet the requirements. The communication interface standard OPC is not well applied to data acquisition and transmission of an MES system. A better method of data acquisition access and transmission is needed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a data transmission method based on OPC (optical proximity correction), which realizes the acquisition of process data, the issuing of process data and the signal processing.
The technical purpose of the invention is realized by the following technical scheme:
the OPC-based data transmission system comprises a data acquisition module, a data configuration module, a data interface execution module and an MES management module;
the data acquisition module is connected with the data configuration module through an OPC address module, the data configuration module is connected with the data interface execution module through a custom interface module, and the data interface execution module is connected with the MES management module.
In one embodiment, the data acquisition module comprises an equipment module and an OPC acquisition module; the equipment module is connected with an OPC acquisition module, and the OPC acquisition module is connected with an OPC address module.
In one embodiment, the data configuration module includes: the device comprises a data point maintenance module, a signal point maintenance module, a data persistence module and a data point acquisition module;
the OPC address module is respectively connected with the data point maintenance module and the signal point maintenance module; the data point maintenance module and the signal point maintenance module are respectively connected with the data persistence module; the data persistence module is respectively connected with the data point acquisition module and the user-defined interface module. The data points and the signal points can be added or deleted according to actual conditions, so that access of a plurality of data points and signal points can be realized, and data can be acquired in multiple aspects.
In one embodiment, the data interface execution module includes: a data point receiving module and a signal triggering module; the data point receiving module and the signal triggering module are respectively connected with the user-defined interface module.
In one embodiment, the MES management module comprises: the production data collection module and the production process tracking module; the production data collection module is connected with the data point receiving module, and the production process tracking module is connected with the signal triggering module.
An OPC-based data transmission method comprises the following steps,
setting an OPC address and a custom interface;
after the OPC acquisition module acquires the data of the production equipment, the data is transmitted to the data configuration module through the OPC address module;
after the data configuration module processes the data, the data is transmitted to the data interface execution module through the user-defined interface;
and the data interface execution module transmits the data to the MES management module.
In one embodiment, the method for setting the OPC address includes:
acquiring a DA or UA module;
acquiring an OPC address, wherein the OPC address corresponds to a DA (digital-to-analog) or UA (user-architecture) mode;
the protocol contents are set according to DA or UA mode. The method of the invention supports two modes, namely DA and UA modes.
In one embodiment, the method for setting the custom interface includes:
establishing a class library project;
adding a path reference in the class library item;
establishing a class file in a class library project, and inheriting the class file to an abstract class;
the execution algorithm is defined in a class file.
In one embodiment, the executing algorithm comprises: a periodic execution algorithm and a signal triggered algorithm. The periodic execution algorithm is to program specific periodic execution program logic in the method, such as to periodically acquire the values of certain data items. The signal triggering algorithm is executed when the value of the data item in the signal packet changes, and the changed data item is transmitted, so that a user can process specific program logic processing or external system data throwing in the method.
In one embodiment, the data configuration module includes,
the data point maintenance module is used for adding or deleting data points;
the information point maintenance module is used for adding or deleting information points;
the data persistence module receives the data points and the data transmitted by the information points and stores the data to the data point acquisition module.
In conclusion, the invention has the following beneficial effects:
the data acquisition module is connected with the data configuration module through the OPC address module, the data configuration module is connected with the data interface execution module through the custom interface module, the data interface execution module is connected with the MES management module to realize the acquisition of process data, the issuing of process data and signal processing, and a set of service for utilizing data through an appointed interface mode can provide data sources and data issuing functions for most production control systems and also can be used as the data source front end of a data platform.
Drawings
FIG. 1 is a block diagram of an OPC-based data transmission system of the present invention;
fig. 2 is a flowchart of the OPC-based data transmission method according to the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and examples.
It should be noted that all the directional terms such as "upper" and "lower" referred to herein are used with respect to the view of the drawings, and are only for convenience of description, and should not be construed as limiting the technical solution.
As shown in fig. 1, an OPC-based data transmission system includes a data acquisition module 1, a data configuration module 2, a data interface execution module 3, and an MES management module 4;
the data acquisition module 1 is connected with the data configuration module 2 through an OPC address module 7, the data configuration module 2 is connected with the data interface execution module 3 through a custom interface module 12, and the data interface execution module 3 is connected with the MES management module 4.
In specific implementation, the data acquisition module 1 comprises an equipment module 5 and an OPC acquisition module 6; the equipment module 5 is connected with an OPC acquisition module 6, and the OPC acquisition module 6 is connected with an OPC address module 7. The equipment module 5 generates data, the data is collected by the OPC collection module 6, and after the data is collected, the OPC module transmits the data to the data point maintenance module 8 and the signal point maintenance module 9 through the OPC address module 7.
In specific implementation, the data configuration module 2 includes: a data point maintenance module 8, a signal point maintenance module 9, a data persistence module 10 and a data point acquisition module 11;
the OPC address module 7 is respectively connected with a data point maintenance module 8 and a signal point maintenance module 9; the data point maintenance module 8 and the signal point maintenance module 9 are respectively connected with the data persistence module 10; the data persistence module 10 is respectively connected with the data point acquisition module 11 and the custom interface module 12. The data point maintenance module 8 and the signal point maintenance module 9 add and delete data points or signal points, and a plurality of pieces of equipment data can be collected for access through the addition and deletion of the data points or the signal points, so that the data collection and management are facilitated. The data points accessed by the data point maintenance module 8 and the signal point maintenance module 9 and the data collected by the signal points and transmitted are transmitted to the data persistence module 10, the data persistence module 10 changes the collected data into storage type data and stores the storage type data in the data point collection module 11, and the data point collection module 11 stores the real-time data. The data persistence module 10 transmits the processed data to the data point receiving module 13 and the signal triggering module 14 through the custom interface module 12.
In specific implementation, the data interface execution module 3 includes: a data point receiving module 13 and a signal triggering module 14; the data point receiving module 13 and the signal triggering module 14 are respectively connected to the custom interface module 12.
In specific implementation, the MES management module 4 includes: a production data collection module 15, a production process tracking module 16; the production data collection module 15 is connected to the data point receiving module 13, and the production process tracking module 16 is connected to the signal triggering module 14. The data point receiving module 13 throws the data to the production data collection module 15. The signal trigger module 14 forwards the signal to the process tracking module 16 so that the MES system completes the data acquisition.
As shown in fig. 2, an OPC-based data transmission method includes,
s1, setting an OPC address and a custom interface;
s2, after the OPC acquisition module acquires the data of the production equipment, the data is transmitted to the data configuration module through the OPC address module;
s3, after the data configuration module processes the data, the data is transmitted to the data interface execution module through the user-defined interface;
and S4, the data interface execution module transmits the data to the MES management module.
Step S1: and setting an OPC address and a custom interface. The method for setting the OPC address comprises the following steps: acquiring a DA or UA module; acquiring an OPC address, wherein the OPC address corresponds to a DA (digital-to-analog) or UA (user-architecture) mode; and setting protocol contents according to the DA or UA mode, wherein the protocol contents comprise a link address, a security authentication mode, a user name and a password.
The method for setting the custom interface comprises the following steps: establishing a class library project; adding a path reference in the class library item; establishing a class file in a class library project, and inheriting the class file to an abstract class; the execution algorithm is defined in a class file.
The executing algorithm comprises the following steps: a periodic execution algorithm and a signal triggered algorithm.
The setting method of the custom interface is exemplified as follows:
1) middleware provides OpLink interface dll, which is convenient for users to complete the realization of the user-defined data interface according to the working requirement.
2) A user needs to establish a class library project through a Visual studio 2013 or more, and the Framework version is 4.5 or more.
3) Add path reference of OpLink
4) A class file is newly created in the project, the name can be defined as ServiceFor ×, and the file is inherited to the abstract class TagServiceBase (provided by oplink.
5) A directly usable method has been defined in TagServiceBase, invoke service (cycle execution method): the method may be used to program specific execution program logic, such as to periodically obtain values for certain data items. TagChangedExecute (signal trigger method): when the data item value in the signal packet changes, the changed data item is transmitted, and the user can process specific program logic processing or external system data throwing in the method.
6) And (4) putting the compiled dll and the parent folder into the Services folder under the program root directory, and reading dll contents in a mapping mode when the program runs.
And S2, after the OPC acquisition module acquires the data of the production equipment, transmitting the data to the data configuration module through the OPC address module. The data configuration module comprises a data point maintenance module used for adding or deleting data points; the information point maintenance module is used for adding or deleting information points; the data persistence module receives the data points and the data transmitted by the information points and stores the data to the data point acquisition module. The data items (data points and signal points) are all contained in the groups, and the corresponding groups need to be added before the new points are added, for example, the new signal point groups need to be added before the new steel biting signals are added; and adding new data point groups before adding the furnace entering temperature.
If the change condition of the data items needs to be monitored in real time, all the data items under grouping can be refreshed in real time, and the latest numerical value, communication quality, data type and latest time information of the data items are displayed.
And S3, after the data configuration module processes the data, transmitting the data to the data interface execution module through the custom interface.
And S4, the data interface execution module transmits the data to the MES management module. The steps are used for realizing the acquisition of process data, the issuing of process data and the signal processing.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.
Claims (10)
1. The OPC-based data transmission system is characterized by comprising a data acquisition module, a data configuration module, a data interface execution module and an MES management module;
the data acquisition module is connected with the data configuration module through an OPC address module, the data configuration module is connected with the data interface execution module through a custom interface module, and the data interface execution module is connected with the MES management module.
2. The OPC-based data transmission system of claim 1 wherein the data collection module comprises an equipment module and an OPC collection module; the equipment module is connected with an OPC acquisition module, and the OPC acquisition module is connected with an OPC address module.
3. The OPC-based data transfer system of claim 1 wherein the data configuration module comprises: the device comprises a data point maintenance module, a signal point maintenance module, a data persistence module and a data point acquisition module;
the OPC address module is respectively connected with the data point maintenance module and the signal point maintenance module; the data point maintenance module and the signal point maintenance module are respectively connected with the data persistence module; the data persistence module is respectively connected with the data point acquisition module and the user-defined interface module.
4. The OPC-based data transfer system of claim 1 wherein the data interface performing module comprises: a data point receiving module and a signal triggering module; the data point receiving module and the signal triggering module are respectively connected with the user-defined interface module.
5. The OPC based data transport system of claim 1 wherein the MES management module comprises: the production data collection module and the production process tracking module; the production data collection module is connected with the data point receiving module, and the production process tracking module is connected with the signal triggering module.
6. An OPC-based data transmission method is characterized by comprising the following steps,
setting an OPC address and a custom interface;
after the OPC acquisition module acquires the data of the production equipment, the data is transmitted to the data configuration module through the OPC address module;
after the data configuration module processes the data, the data is transmitted to the data interface execution module through the user-defined interface;
and the data interface execution module transmits the data to the MES management module.
7. The OPC-based data transmission method of claim 6, wherein the method of setting the OPC address is:
acquiring a DA or UA module;
acquiring an OPC address, wherein the OPC address corresponds to a DA (digital-to-analog) or UA (user-architecture) mode;
the protocol contents are set according to DA or UA mode.
8. The OPC-based data transmission method of claim 7, wherein the method for setting the custom interface comprises:
establishing a class library project;
adding a path reference in the class library item;
establishing a class file in a class library project, and inheriting the class file to an abstract class;
the execution algorithm is defined in a class file.
9. The OPC-based data transmission method of claim 8 wherein the executing algorithm comprises: a periodic execution algorithm and a signal triggered algorithm.
10. The OPC-based data transmission method of claim 7, wherein the data configuration module comprises,
the data point maintenance module is used for adding or deleting data points;
the information point maintenance module is used for adding or deleting information points;
the data persistence module receives the data points and the data transmitted by the information points and stores the data to the data point acquisition module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010762827.1A CN111897761A (en) | 2020-07-31 | 2020-07-31 | Data transmission method and system based on OPC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010762827.1A CN111897761A (en) | 2020-07-31 | 2020-07-31 | Data transmission method and system based on OPC |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111897761A true CN111897761A (en) | 2020-11-06 |
Family
ID=73183075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010762827.1A Pending CN111897761A (en) | 2020-07-31 | 2020-07-31 | Data transmission method and system based on OPC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111897761A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113189945A (en) * | 2021-04-13 | 2021-07-30 | 上海运城制版有限公司 | Multi-drive control method and device for rough and finish turning unit |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106550052A (en) * | 2016-12-08 | 2017-03-29 | 南京富岛信息工程有限公司 | A kind of data acquisition unit and method based on OPC UA |
-
2020
- 2020-07-31 CN CN202010762827.1A patent/CN111897761A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106550052A (en) * | 2016-12-08 | 2017-03-29 | 南京富岛信息工程有限公司 | A kind of data acquisition unit and method based on OPC UA |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113189945A (en) * | 2021-04-13 | 2021-07-30 | 上海运城制版有限公司 | Multi-drive control method and device for rough and finish turning unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10021064B2 (en) | Apparatus and method for translating industrial process control and automation system events into mobile notifications | |
CN110601876A (en) | Intelligent Internet of things platform | |
US8744807B2 (en) | Scalable and extensible framework for storing and analyzing sensor data | |
CN109842675B (en) | Universal satellite telemetering data processing system and method | |
CN108989358B (en) | Method for acquiring running data of textile machine based on TCP/IP protocol | |
CN106899638A (en) | A kind of fusions networking relationships system for solving Heterogeneous data and method | |
CN105245445A (en) | Internet of things gateway | |
CN109947774B (en) | On-demand real-time sensor data distribution system | |
US10078326B2 (en) | Apparatus and method for event detection to support mobile notifications related to industrial process control and automation system | |
CN108829609A (en) | A kind of test method and system of blue tooth products | |
CN101169655B (en) | Process control system | |
CN102984258A (en) | Internet of things data transmission method and adapter | |
CN103970530A (en) | Data acquisition and implementation method based on Intouch configuration technology of OPC interface | |
US20170277172A1 (en) | Sim system, control method therefor and production informatization system | |
CN110825412A (en) | Controller program flashing system and method based on LabVIEW | |
CN110868447B (en) | Multi-rocket concurrent measurement and control system and working method thereof | |
CN111897761A (en) | Data transmission method and system based on OPC | |
Ok et al. | A Survey of Industrial Internet of Things Platforms for Establishing Centralized Data‐Acquisition Middleware: Categorization, Experiment, and Challenges | |
US11487260B2 (en) | System and method for dynamically scalable soft hart modems | |
US20160335373A1 (en) | Apparatus and method for universal annotation in industrial process control and automation system | |
CN111679950B (en) | Interface-level dynamic data sampling method and device | |
CN112910985B (en) | Protocol conversion method, device, equipment and storage medium based on intelligent contract | |
CN113848834A (en) | Workshop equipment access system and method based on edge cloud cooperation | |
CN108763127A (en) | The implementation method for the Modbus adapters that source data is mutually converted with target data | |
KR20010090695A (en) | Method for Access to The Status-information of Producing devices by means of Internet and The System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201106 |
|
RJ01 | Rejection of invention patent application after publication |