A kind of framework of multilayer automation control system
Technical field
The invention belongs to technical field of industrial automatic control, mainly propose a kind of framework of multilayer automation control system.
Background technology
The medium-and-large-sized automation control system ubiquity of prior art Internet traffic is large, cause the feature that communication speed is low, mainly because the data acquisition of current any one industrial automation control system and topworks is more and dispersed placement, cause substation end all more, taking aluminum alloy strip or Band by Hot-rolling machine as example, aluminum alloy strip or Band by Hot-rolling machine generally have 100 substation ends of >, the collection that described substation end is signal or signal send terminal, acquisition terminal comprises motor temperature sensor, motor speed sensor etc.; Signal sends terminal and comprises as DC electric machine, alternating current generator frequency converter and operator's console scene pilot lamp etc.; In prior art, automation control system adopts flat network topology framework, the flat network topology framework that automation control system adopts only has a master controller, described master controller can be main control computer/server or main control PLC(and is generally the PLC main website of the CPU with power) as the control core of a whole set of control system, for the flow process that completes a whole set of control system with basic logic control and serve as and carry out the database server of data exchange with the man-machine interface (HMI) of controlling framework and as the terminal being connected with external system; As shown in Figure 2, a master controller is communicated with all substation ends by communications protocol such as individual layer TCP/IP, Profibus-DP, and the signal feedback that multiple substations end all gathers self is obtained the required signal sending to master controller or by communication from master controller.Complete all control algorithms and coordination by master controller, cause program huge and concentrated because information processing is concentrated, be difficult to multi-person synergy and write and safeguard, caused managerial personnel's task in long-time running and maintenance to complete a business transaction fuzzy, also caused program operation slowly simultaneously.Because processor is limited in one's ability, be difficult to realize multithreading operation, affect production precision and efficiency; According to existing industrial communication protocol requirement, as shown in Figure 1, each substation end of a network segment can only carry out passive exchanges data with unique main website of this network segment, and exchanges data can only complete the corresponding time within the master station communication scan period, that is to say that main website provides continuous ring type communication scanning, the end of a communication scan period is exactly the beginning of a new communication scan period; One section will be cut apart to each substation in its network segment in each communication scan period in main website, and such communication mode makes the communication speed of actual each substation be=the interior substation of nominal bandwidth/network segment quantity.So, substation more multiple speed causes the limitation of this control method very large more slowly, and easily causes communication slow, affects production precision.
Summary of the invention
For solving the problems of the technologies described above, the object of the invention is to propose a kind of framework of multilayer automation control system.
The present invention adopts following technical scheme for completing foregoing invention task:
A framework for multilayer automation control system, mainly comprises top layer control framework, middle layer control framework and end control framework; Described end control framework, there are multiple end control modules, described end control module is also referred to as substation, and for on-the-spot I/O-inputs or outputs terminal, described multiple end control modules correspond respectively to signal source setting controlled or required collection; Control endways in framework, same or analogous function several end control modules are merged into one group; The functional block controller that many group ends control module of dividing by function is controlled corresponding function in framework by end network with middle layer is respectively communicated with; Described middle layer is controlled framework and is included several functional block controllers, each functional block controller is by one group of network-in-dialing control or two groups or more end control module, be used for controlling a certain function, all signals that independent processing is relevant to its function; The functional block controller that middle layer is controlled in framework is communicated with or is directly communicated with top layer control framework by one-level mid-level network by the last layer functional block controller in secondary mid-level network and middle layer control framework, accept last layer functional block controller or all orders relevant to its function of top layer control framework, and feed back all execution results and the state of self to last layer functional block controller or top layer control framework; The last layer functional block controller that described middle layer is controlled in framework is communicated with top layer control framework by one-level mid-level network; Described top layer control framework has at least one master controller, and the execution result that several functional block controllers in reception middle layer control framework feed back and oneself state several functional block controllers from framework to middle layer that control in send function steering order.
Control according to middle layer functional block amount controller and the function that framework has, the functional block controller that described middle layer is controlled in framework is divided into one or more layers according to function, that is: the functional block controller of middle layer being controlled in framework is classified and group according to function; By functional block controller identical or close function and and be one group, and be communicated with the functional block controller of the last layer corresponding function in middle layer control framework by secondary mid-level network, the functional block controller that the last layer corresponding function in framework is controlled in described middle layer is communicated with top layer control framework by one-level mid-level network.
When described top layer control framework has some master controllers, the functional block controller of last layer in framework communicate by letter with a master controller of top layer control framework connection or the connection of communicating by letter with a master controller wherein are respectively controlled in described middle layer.
Described end network is TCP/IP, Profibus-DP agreement or other agreement.
Described one-level mid-level network, secondary mid-level network is TCP/IP, Profibus-DP agreement or other agreement.
The framework of a kind of multilayer automation control system that the present invention proposes, between top layer control framework and end control framework, several functional block controllers are set, multiple end control modules are divided by function, it is communicated with the functional block controller that corresponding middle layer is controlled in framework respectively, by all relevant end control modules of the control of functional block controller and its, fill order situation and oneself state feed back to top layer control framework by progressive mode, avoid occurring controlling phenomenon chaotic or that comprise raw data communication, the traffic and communication object are reduced, increase processing power, thereby it is slow to have solved the operation of prior art Program, the problem of trouble hunting difficulty, production precision and efficiency are improved.
Brief description of the drawings
Fig. 1 is the communication scan period of prior art Plays controller CPU.
Fig. 2 is the structural representation of the medium-and-large-sized automation control system flat network topology of prior art framework.
Fig. 3 is structural representation of the present invention.
In figure, 1, master controller, 2, peripherals, 3, control network, 4, top layer control framework, 5, external network, 6, one-level mid-level network, 7, the last layer functional block controller of framework is controlled in middle layer, 8, secondary mid-level network, 9, middle layer controls framework, 10, end network, 11, end control framework, 12, end control module.
Embodiment
With specific embodiment, the present invention is illustrated by reference to the accompanying drawings, in this embodiment, as an example of aluminum alloy strip hot-rolling mill example, the present invention is further described, but the present invention is not only confined to following embodiment, and can be applicable to all automation control systems:
As shown in Figure 3, a kind of framework of multilayer automation control system, mainly comprises top layer control framework 4, middle layer control framework 9 and end control framework 11; Described end control framework 11, there are multiple end control modules 12, described end control module is also referred to as substation, and for on-the-spot I/O-inputs or outputs terminal, described multiple end control modules 12 correspond respectively to signal source setting controlled or required collection; As the main frame in aluminum alloy strip hot-rolling mill, two driving motor flow directing device, the on-the-spot I/O of various pumping plant, the on-the-spot I/O of various valve platform and on-the-spot I/O of various operator's console etc. of batching; Control endways in framework 11, same or analogous function several end control modules are merged into one group; The functional block controller that many group ends control module of dividing by function is controlled corresponding function in framework by end network 10 with middle layer is respectively communicated with; Described middle layer is controlled framework 9 and is included several functional block controllers, and each functional block controller is by network-in-dialing control one group end control module 12, for controlling a certain function, and all signals that independent processing is relevant to its function; As: main frame, two driving motor flow directing device etc. of batching put main transmission control under, and be communicated with the same functional block controller in middle layer control framework by end network, jointly complete control by main transmission functional block controller; By on-the-spot pumping plant I/O, the on-the-spot I/O of valve platform etc. and and be one group, be communicated with the hydraulic function block controller in middle layer control framework by end network, by the control of hydraulic function block controller.The functional block controller that middle layer is controlled in framework 9 is communicated with top layer control framework 8 by one-level mid-level network 6, accepts all orders that top layer control framework is relevant to its function, and feeds back all execution results and the state of self to top layer control framework 8; If the middle layer control function block in middle layer control framework 9 is more, middle layer control function block approximate function further can be merged, the last layer functional block controller 7 of being controlled in framework by middle layer is controlled, i.e. the functional block controller connection of communicating by letter with the last layer functional block controller 7 in middle layer control framework by secondary mid-level network 8; Form middle layer and control two layers of frame construction of framework; Reduce the interior substation of the one-level mid-level network quantity of master controller in top layer control framework, make multi level control framework obtain further layering, and reduce communication data and reduced the communication scan period of each substation, shorten the scan period of the whole network segment, can relatively accelerate communication speed in each network segment.
The last layer functional block controller 7 that described middle layer is controlled in framework 9 is communicated with top layer control framework 4 by one-level mid-level network 6; Described top layer control framework 4 has at least one master controller, and the execution result that several functional block controllers in reception middle layer control framework feed back and oneself state several functional block controllers from framework to middle layer that control in send function steering order.
There is quantity and the function of end control module according to end control framework, the functional block controller that described middle layer is controlled in framework 9 is divided into one or more layers according to function, that is: middle layer is controlled to the functional block controller of framework and classified and group according to function; By functional block controller identical or close function and and be one group, and be communicated with the functional block controller 7 of the last layer corresponding function in middle layer control framework by secondary mid-level network 8, the functional block controller 7 that the last layer corresponding function in framework is controlled in described middle layer is communicated with top layer control framework 4 by one-level mid-level network 6.
Top layer control framework 4 comprises master controller 1, HMI(man-machine interface) and third party's system and with third party's system communication use external network 5, the ICP/IP protocol with versatility that is generally widespread use facilitates the access of third party's system.Described master controller can be main control computer/server or main control PLC(and is generally the PLC main website of the CPU with power) as the control core of a whole set of control system, be generally used for flow process control, the Premium Features control of a whole set of control system and served as and control that man-machine interface (HMI) in framework is carried out the database server of data exchange and as the terminal being connected with external system.
When described top layer control framework has some master controllers 1, functional block controller in framework communicate by letter with a master controller of top layer control framework connection or the connection of communicating by letter with a master controller wherein are respectively controlled in described middle layer.
Described end network 7 is TCP/IP, Profibus-DP agreement or other agreement.
Described one-level mid-level network 6, secondary mid-level network 8 are TCP/IP, Profibus-DP agreement or other agreement.