A kind of MES system collecting method based on OPC intelligence chemical industry equipment
Technical field
The present invention relates to the control of the industrial process stream of chemical industry, manufacture execution management and data acquisition and processing (DAP)s
Technical field, more particularly to one kind is based on OPC (industrial standard OLE for Process Control) intelligent chemical industry equipment
MES system collecting method.
Background technique
With the development of industrial intelligent, equipment internet, intelligent control are technology trends.It is controlled in industrial equipment
The important component of middle acquisition data is all kinds of sensor, and chemical industry filling and package stage mostly important sensor is exactly weight
Sensor.Traditional industrial equipment data acquisition cannot go to match miscellaneous industrial equipment and sensing using same agreement
Device, industrial control system, therefore each engineering project, each personalized filling apparatus will use customized development code
Mode go to develop the data acquisition driving of each equipment, without standardized Product-level solution so that the project cycle is long,
Each project implementation requires a large amount of advanced developers could finished item.
Traditional industrial automation control system SCADA, DCS only focuses on transient data and control, and general only storage is in short-term
Between equipment operating data and floor data be not easy to store for a long time, also data do not divided in real time since data volume is big
Analyse calculation processing.The packing shop of chemical industry often first passes through physical hardware connection in the collection process of device data,
Designated communication agreement, then by equipment generate data be collected, host computer computer receive data after to be encoded conversion,
It calculates, storage, analysis, process is cumbersome and very long, and easily generation various information is abnormal, different including the signal in transmission process
Often, disconnecting exception etc., while multiple conversions are needed when service class management system processing analysis data, real-time is lower,
It is unfavorable for the analysis of strong real-time and the analysis of mass data.
Therefore, it is necessary to a kind of technology, it can be realized and carry out edge calculations in industry internet, real-time reception is simultaneously handled all kinds of
After the device data of heterogeneous protocol, COMPREHENSIVE CALCULATING and analysis, it is uploaded to MES system, realizes that a kind of data are acquired, analyze and controlled
Closed loop service management.
Summary of the invention
In view of the above problems in the prior art, the object of the present invention is to provide a kind of based on OPC intelligent equipment
MES system collecting method.
The technical solution adopted by the present invention the following steps are included:
All kinds of intelligent equipments are set in workshop, and the communications protocol of equipment needs support OPCUA, and equipment is controlled by supporting
The PLC of OPC UA is executed;
MES system, which defines, needs the data that acquire, and the data acquisition module of MES carries out data acquisition, and with each equipment end
PLC carry out data communication and interaction;
The data that production process equipment is generated or obtained are responsible for acquisition by PLC;
After PLC acquires data, edge calculations are carried out to data first, judge whether that feedback device is needed to execute other move
Make;
By treated, data are uploaded to MES system to PLC;
MES judges whether that feedback device is needed to execute other movements, sends a command to PLC if necessary, pass through PLC
Equipment is allowed to execute movement;
MES stores the data after acquisition, according to it is corresponding rule and calculating analyzed, and show analysis after
As a result.
More specifically, if there is multiple data need cross processing and analysis, then it is uploaded to the data acquisition of MES system
Module carries out secondary treatment and calculating to above-mentioned multiple data by MES.
Due to using above-mentioned technical solution, compared with prior art, the beneficial effects of the present invention are: using OPC is supported
The communication modes of the intelligent chemical industry equipment of UA agreement, are communicated using OPC UA, carry out the side of data in equipment end distribution
Edge calculates and processing, and treated result data is directly passed to MES system according to the specified type of setting justice and carries out center
Analysis, had not only solved the needs that mass data is analyzed in time, but also meet requirement of real-time under normal circumstances.
Detailed description of the invention
Fig. 1 is the flow chart of the MES system collecting method of the invention based on OPC intelligent equipment.
Specific embodiment
Below by taking the filling and package link of chemical industry as an example, in conjunction with attached drawing, the present invention is further illustrated.It is a kind of
MES system collecting method based on OPC intelligent equipment, process step are shown in Figure 1.
Firstly, all kinds of intelligent equipments are arranged in workshop, the communications protocol of equipment needs support OPC UA, equipment control
By supporting the PLC of OPC UA to execute.
The data that PLC acquisition production process equipment is generated or obtained.Link, the number mainly acquired are packed for chemical material
According to include pail pack information (such as color, specification etc.), filling weight information (such as 200kg, 1t etc.), reinspection information,
Implementation procedure exception information etc., the mode of acquisition meet the communications protocol of PLC and sensor, such as TCP/IP.
MES system, which defines, needs the data that acquire, and the data acquisition module of MES carries out data acquisition, and with each equipment end
PLC carry out data communication and interaction.For the chemical industry filling and package link of present embodiment, acquisition packaging can be defined
Bucket colouring information, acquires pail pack weight data (empty barrel weight), the gross weight data after acquisition is filling, and whether the movement of acquisition labeling
Success, acquisition pail pack logistics circulate data, acquire weight bucket storage location data etc., can also according to the actual situation and client
Demand flexible setting.Some of them information such as gross weight can be by acquiring real time data edge calculations based on OPC smart machine
Whether value that treated, some information such as labeling succeed and can directly be uploaded to MES system without edge calculations and processing, are
It is no that edge calculations and processing is needed to be also required to flexible setting according to the actual situation.
After PLC acquires data, edge calculations are carried out to data first, judge whether that feedback device is needed to execute other move
Make.The object that PLC carries out edge calculations is mostly acquisition content, and is real-time data, and after management system is with greater need for calculating
Situations such as data, such as average, maximum value etc..After smart machine based on OPC acquires data, immediately by itself
Reason, by treated, data are uploaded to MES system.Usual scene has multiple equipment and PLC, if there is multiple data need to hand over
What fork was handled and was analyzed, need first to be uploaded to the data acquisition module of MES system, by MES secondary to the progress of these data
Reason and calculating.
By treated, data are uploaded to MES system to PLC;If there is multiple data need cross processing and analysis, then
It is uploaded to the data acquisition module of MES system, secondary treatment and calculating are carried out to above-mentioned multiple data by MES;
MES judges whether that feedback device is needed to execute other movements, sends a command to PLC if necessary, pass through PLC
Equipment is allowed to execute movement;
MES stores the data after acquisition, according to it is corresponding rule and calculating analyzed, and show analysis after
As a result, being consulted for workshop related personnel.
It describes the embodiments of the present invention in detail above according to specific embodiment shown in the drawings and effect, the above institute
State preferable specific embodiment only of the invention, rather than the restriction to its protection scope, it is all according to conception of the invention
Made equivalents or modification should all be in protection models of the invention when the spirit still covered without departing from specification and attached drawing
In enclosing.