A kind of information integrated system and method based on OPC UATechnical field
The present invention relates to Technique of Information Integration field more particularly to a kind of information integrated systems and side based on OPC UAMethod.
Background technique
Currently, China existing many technical deficiencies, one of them key skill in terms of promoting intelligent plant constructionArt is the Technique of Information Integration of the software of workshop appliance and shop equipment.Top-layer Design Method of China's manufacture 2025 about intelligence manufactureIn uniquely recommend technical standard of the OPC UA as information integration, foreign study personnel competitively study OPC UA technical applicationIn the polynary heterogeneous information integration of intelligent plant, and technology has tended to be mature, and China is still in starting in the research of this aspectStage.And it is very little with application study for theory of the OPC UA standard in terms of the polynary heterogeneous information integration in workshop, it is unable to satisfyNeeds of the domestic intelligent plant construction at present to this respect theory and technology.
The building basis of intelligent plant is equipment networking and information integration, only solves polynary heterogeneous information integrationApplied basic research, including convert cooperation and information sharing, information between information, equipment for data and be converted into knowledge and decisionThese intelligent plant superstructures are fed back to be possible to realize.Important management and control devices are predominantly PLC device in intelligent plant,A kind of method can make information integration method of the factory floor management software using OPC UA standard to PLC device currently not yetAnd system.
Explanation of nouns:
Information integration: refer to that the information of each subsystem and user use unified standard, specification and coding in system, realizeTotal system information sharing, and then can realize the interaction between associated user's software and orderly work.
OPC:(OLE for Process Control) it is for one communication interface standard of industrial control field, it isProcess control provides standard set interface, attribute and method.There are the Devices and Drivers so that different vendor in OPC'sIt can neatly be attached and information exchange, but traditional opc server access is still very complicated, for different types of dataAccess needs to develop different access programs, including data access (DA), alarm and event (AE) and historical data access(HDA) etc..For example, the history average of the current value of a temperature sensor, a high-temperature event and temperature is obtained,Three kinds of different opc server programs are developed respectively, and this considerably increases the complexity of data acquisition device.OPC UA(UnifiedArchitecture) be OPC newest standards, for from DCS acquire data provide a kind of unified interface to MESMethod significantly reduces the complexity of software development.In addition, OPC UA does not depend on specific operating system, cross-platform fortune is supportedRow provides possibility to simplify the software and hardware structure of data acquisition device.
Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide one kind to be based on OPC UA standard in production equipmentPLC controller information integrated system.
It is a further object of the present invention to provide a kind of based on OPC UA standard to the information of the PLC controller in production equipmentIntegrated approach.
The technical scheme adopted by the invention is that:
A kind of information integrated system based on OPC UA, including mechanical floor, OPC UA server and Shop floor control layer, it is describedMechanical floor includes multiple for controlling the PLC controller of production equipment, the OPC UA server respectively with Shop floor control layer andMultiple PLC controller connections;
The PLC controller is used to obtain the status information and control information of production equipment, and the information hair that will acquireIt send to OPC UA server;
OPC UA server is used to receive the information of each PLC controller transmission, and by the information received according to presetMode is stored;
The Shop floor control layer reads and deposits for being communicated according to OPC UA consensus standard and OPC UA serverThe information in OPC UA server is stored up, realizes the information integration to mechanical floor.
Further, the Shop floor control layer includes OPC UA client and database, the OPC UA client respectively withOPC UA server is connected with database;
The OPC UA client is used to access OPC UA server, and the letter that will be read according to OPC UA consensus standardBreath is stored in database.
Further, the database uses SQLServer database.
Further, the OPC UA server uses KEPServerEX server, and Shop floor control layer passes through wireless connectionMode is connect with OPC UA server.
Further, the Shop floor control layer visits OPC UA server using the communication modes of EthernetTCP/IPIt asks.
It is of the present invention another solution is that
A kind of information integration method based on OPC UA, comprising the following steps:
S1, each PLC controller obtain and store the status information and control information of production equipment, and the information that will acquireIt is sent to OPC UA server;
S2, OPC UA server store the information received according to preset mode;
S3, Shop floor control layer are communicated according to OPC UA communication standard and OPC UA server, and read and store OPCInformation in UA server realizes the information integration to mechanical floor.
Further, further comprising the steps of:
After OPC UA server is connect with each PLC controller, OPC UA server adds and configures the logical of each PLC controllerChannel is interrogated, and establishes address space corresponding with each PLC controller on OPC UA server.
Further, the step S2, specifically:
The information for receiving each PLC controller is respectively stored in correspondingly with each PLC controller by OPC UA serverIn the space of location.
Further, the Shop floor control layer includes OPC UA client and database, the step S3, specifically:
OPC UA client accesses OPC UA server according to OPC UA communication standard, and reads in OPC UA serverIt, will be in the information that read storage to database after information.
Further, the database uses SQLServer database.
The beneficial effects of the present invention are: the present invention passes through storage of the OPC UA server to each PLC device information, workshop controlPreparative layer accesses to OPC UA server using OPC UA standard, to effectively realize the information collection to polynary heterogeneous deviceAt, it provides the foundation for subsequent intelligent plant big data analysis, the digitlization and intelligent development process of the control of quickening factory.
Detailed description of the invention
Fig. 1 is a kind of structural block diagram of information integrated system based on OPC UA;
Fig. 2 is a kind of step flow chart of information integration method based on OPC UA;
Fig. 3 is the structural block diagram of specific embodiment one.
Specific embodiment
Embodiment one
As shown in Figure 1, a kind of information integrated system based on OPC UA, including mechanical floor, OPC UA server and workshopControl layer, the mechanical floor include multiple for controlling the PLC controller of production equipment, the OPC UA server respectively with vehicleBetween control layer connected with multiple PLC controllers;
The PLC controller is used to obtain the status information and control information of production equipment, and the information hair that will acquireIt send to OPC UA server;
OPC UA server is used to receive the information of each PLC controller transmission, and by the information received according to presetMode is stored;
The Shop floor control layer reads and deposits for being communicated according to OPC UA consensus standard and OPC UA serverThe information in OPC UA server is stored up, realizes the information integration to mechanical floor.
The working principle of above system are as follows: have the production equipment of many isomeries in factory, if these production equipments are equipped withDry PLC hardware, these PLC hardware are connect by Industrial Ethernet mode or fieldbus mode with OPC UA server,PLC controller obtains the status information and control information of production equipment, and the information that will acquire is sent to OPC UA server,OPC UA server receives the information that PLC controller sends over and is stored according to predetermined manner.Shop floor control layer passes through OPCUA consensus standard accesses OPC UA server, and reads and store the data in OPC UA server, controls to realize PLCDevice information integration.Wherein, DCS is the english abbreviation (Distributed Control System) of dcs,Domestic automatic control industry is also referred to as Distributed Control System;PLC, that is, programmable logic controller (PLC);DNC is distributed CNC;CNC isA kind of automated machine tool equipped with program control system;RTU is the abbreviation of REMOTE TERMINAL UNIT, and Chinese is remoteJourney detection and control terminal has telemetering, remote signalling, remote regulating, distant control function for monitoring, controlling the application with data acquisition.
It is further used as preferred embodiment, the Shop floor control layer includes OPC UA client and database, describedOPC UA client is connect with OPC UA server and database respectively;
Shop floor control layer is equipped with MES system, is integrated with OPC UA client in the MES system.The OPC UA visitorFamily end is used to access OPC UA server according to OPC UA consensus standard, can read status information, the warning message of equipment, look intoIt sees the historical data of equipment, or calls the operating method of equipment to operate to equipment transfer control instruction etc. etc., thus realInformation integration of the existing intelligent plant MES system to workshop appliance.In addition, the information read is stored in number by OPC UA clientAccording in library.
It is further used as preferred embodiment, the database uses SQLServer database.
The OPC UA client using C#.Net as program development language, and with Open Source Code library OPCFor UAHelper as exploitation basis, the database uses SQLServer database, and constructs in SQLServerSmartFactory database come record PLC controller acquisition data.
It is further used as preferred embodiment, the OPC UA server uses KEPServerEX server, and workshopControl layer is connect by radio connection with OPC UA server.
Shop floor control layer can access OPC UA server by web page, can pass through the communication of EthernetTCP/IPMode accesses.
It is further used as preferred embodiment, the Shop floor control layer uses the communication modes pair of EthernetTCP/IPOPC UA server accesses.
By above-mentioned system, intelligent plant management software can be effectively conveniently realized to the information of polynary heterogeneous deviceIt is integrated, it realizes real-time acquisition and storage to the running state data of polynary isomery bottom hardware equipment, it is big to form intelligent plantData provide the foundation for subsequent intelligent plant big data analysis, and it is total to be that data are converted into cooperation and information between information, equipmentEnjoy, information is converted into knowledge and the basis of decision feedback, can accelerate intelligent plant digital intelligent transparence manage process.
Embodiment two
As shown in Fig. 2, a kind of information integration method based on OPC UA, comprising the following steps:
After A1, OPC UA server are connect with each PLC controller, OPC UA server adds and configures each PLC controllerCommunication channel, and corresponding with each PLC controller address space is established on OPC UA server.
A2, each PLC controller obtain and store the status information and control information of production equipment, and the information that will acquireIt is sent to OPC UA server.
A3, OPC UA server store the information received according to preset mode.
Wherein, step A3 specifically: OPC UA server by the information for receiving each PLC controller be respectively stored in respectivelyIn the corresponding address space of PLC controller.
A4, Shop floor control layer are communicated according to OPC UA communication standard and OPC UA server, and read and store OPCInformation in UA server realizes the information integration to mechanical floor.
The Shop floor control layer includes OPC UA client and database, step A4 specifically: layer includes OPC UA clientEnd and database, the step S3, specifically:
OPC UA client accesses OPC UA server according to OPC UA communication standard, and reads in OPC UA serverIt, will be in the information that read storage to database after information.Wherein, the database uses SQLServer database.
By the above method, intelligent plant management software can be effectively conveniently realized to the information collection of polynary heterogeneous deviceAt, it realizes and the real-time of the running state data of polynary isomery bottom hardware equipment is obtained and stored, the formation big number of intelligent plantAccording to providing the foundation for subsequent intelligent plant big data analysis, it is total to be that data are converted into cooperation and information between information, equipmentEnjoy, information is converted into knowledge and the basis of decision feedback, can accelerate intelligent plant digital intelligent transparence manage process.
Specific embodiment one
Referring to Fig. 3, the example for reading the revolving speed of motor in real time below in conjunction with Shop floor control layer is explained in detail, the electricityMachine is equipped with corresponding motor PLC controller.
(1) using KEPServerEX as OPC UA server, the communication of addition and configuration support the motor PLC controllerThe channel of agreement, and driving interface is added, then added and PLC register address corresponding address space under the equipment.
(2) PLC controller obtains the rotary speed information of motor in real time, and rotary speed information is stored to the address register D1002Afterwards, rotary speed information is sent to OPC UA server.
(3) it after OPC UA server receives rotary speed information, is deposited in the corresponding address space of motor PLC controllerStorage, for example it is recorded in data label D1002.
(4) OPC UA client realizes the access to OPC UA server by way of EthernetTCP/IP, and readsThe communications protocol of the rotary speed information for taking OPC UA server memory to store up, OPC UA client and OPC UA server is OPC UA associationIt assesses a bid for tender standard.The OPC UA client using C#.Net as program development language, and with Open Source Code library OPCUAHelper is as exploitation basis.
(5) a SmartFactory database is constructed in SQLServer database, and in SmartFactory dataEstablish the tables of data of motor speed in library, OPC UA client by call System.Data.SqlClient andThe class and method that System.Data is provided are realized the access to SQLServer database, and will be read from OPC UA serverTo motor speed and corresponding time tag write-in motor speed table in.
Above-mentioned example only explains in detail the PLC controller of motor, the information of the PLC controller of other hardware devicesIntegrated approach is similar, will not repeat them here.Intelligent plant management software is realized by above-mentioned technological approaches to manage PLCMotor device information integration, and KEPServer server is integrated with the drive of more than the 100 kinds of polynary heterogeneous devices of different agreementIt is dynamic, therefore the technological approaches described through the invention, intelligent plant management software can be effectively conveniently realized to polynary isomeryThe information integration of equipment can accelerate intelligent plant digital intelligentization to manage process.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation aboveExample, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replaceIt changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.