A kind of PROFIBUS bussing technique air-compressor set control system of online
Technical field
The invention belongs to the industrial bus technical field of air-compressor set control system of online is and in particular to one kind is based on
The air-compressor set control system of online of PROFIBUS bussing technique.
Background technology
Need multiple air compressors coordinated operation in large-scale production, in the prior art air-compressor set networking control technology master
There are three kinds:
First kind of way is artificial operation, mainly judges that instrument operation realizes control function by workman's subjective experience.Past
Control toward the proficiency level relying on operator, have high requirement to the quality of operator.
The second way is to automatically control, and mainly replaces artificial operation by computer controls, realizes simple Automated condtrol.
The third mode is networking control, can reach data remote transmission, the requirement that network controls.But this networking control
System needs individually to develop independent Control System Software, by region, the limitation of environment and respective plant equipment, and lack system
One system scheme, also for control system stability and safety bring hidden danger.
At present, the comparison of technological improvement in terms of Energy Saving Control of air compressor machine network control system is many, and most improvement exists
In control circuit and plant equipment, main improvement purpose is to realize in control function.Such improvement can not meet net
The demand of the data communication stability of the air compressor machine control system of online of network.It is known that the air compressor machine networking control in modern times
The main development trend of system is towards networking, and the intelligent direction of Integrated automation is developed.But control system in air compressor machine at present
System industry, mostly biases toward the integrated of control system and realizes.
Under many circumstances air compressor machine network control system require network between data communication realize on a large scale with across ground
The control in domain and management, bring so to very the analysis of control system of air compressor of prior art with the stable realization of control performance
How difficult, and then affect the safety of whole control system of air compressor.
As the Monitor of Air Compressor with PC as control core, the monitoring system with single-chip microcomputer as control core, with PLC
Monitoring system for control core etc..Specifically, the air compressor machine control system of online major advantage with PC as control core
It is that structure is simple.But excessively simple just because of control structure, cause holding wire excessive, there is interference from each other, be unfavorable for
The maintenance work at scene, once breaking down, whole failure system is paralysed.Air compressor machine connection with single-chip microcomputer as control core
Network control system major advantage is in response to speed soon, hardware small volume, and control ratio is more flexible.But the anti-interference of single-chip microcomputer itself
Poor, destructuring design brings a lot of inconvenience to trouble shoot and maintenance.Compare above two methods, with PLC for controlling core
The air compressor machine control system of online of the heart adopts modularized design, cycle is short of designing and constructing, and debugging modification is convenient, particularly reliability
Relatively higher, adapt to various severe industrial environments.But the monitoring system scheme that PLC is control core is processing " magnanimity " data
The transmission delay of network service when transmitting, can be produced with telecommunications data, the losing of the transient fault data bag of communication system
Lose, send and all can destroy, with the inconsistent grade reaching order, the definitiveness that control system of online script has so that air compressor machine control
The analysis and synthesis of system processed becomes more sophisticated, and the performance of control system of air compressor is subject to very big negatively affecting simultaneously.Existing
Some Chinese patents such as 201220595165.4 and 201220615633.X in disclose skies that some adopt PLC control program
Press control system, but all do not solve in a large amount of network communication data transmitting procedures in control system of air compressor because transmission is prolonged
Late, data-bag lost and the instability problem sending the destruction system of generation such as inconsistent with arrival order.
In sum, existing air-compressor set control system of online is affected by many technology and condition element, increased
The software and hardware structure complexity of control system, is particularly difficult to solve " magnanimity " data communication in air-compressor set control system of online
The instability problem of transmission is so that the equipment cost of air-compressor set control system of online is expensive and lack security and stability.
And the present invention is exactly using special " error correction " algorithm based on PROFIBUS field bus technique details, Ke Yishi
Now PLC is controlled to the effective process of network communication and transmission data problem in the air-compressor set control system of online of core.
Content of the invention
The purpose of the present invention is the defect overcoming prior art, propose a kind of structure simple, easy to use, cheap,
Stable performance and the safe and reliable air-compressor set control system of online based on PROFIBUS bussing technique.
For completing above-mentioned purpose, the technical solution used in the present invention is:This control system of air compressor includes PLC and controls mould
Block, touch screen, air-compressor set, cooling driers group, blot unit, pressure transducer and power supply.PLC control module main control unit with
Air-compressor set, cooling driers group, blot and between unit, pressure transducer, adopt PROFIBUS agreement, scene is constituted by agreement total
Line communication network.Equipped with networking control software in control module PLC main control unit.Employ maintain routing table method it is ensured that
In node data reading with ablation process, realize closing fault node, other node datas transmission are normal.
Control module PLC is by power subsystem, microcontroller CPU element, communication unit, memorizer, simulation input unit, numeral
Input block, digital output unit, programmable device forms;Power subsystem respectively with microcontroller CPU element, communication unit, memorizer,
Simulation input unit, numerical input unit, digital output unit, the power port of programmable device connects;Programmable device and microcontroller CPU
Unit connects;Memorizer, communication unit, simulation input unit, numerical input unit, digital output unit is divided by data/address bus
It is not connected with CPU;Touch screen is connected with the communication unit in control module PLC.
Blot unit to be connected with the digital output unit in control module PLC, for starting and stopping.
Cooling driers group is connected with the digital output unit in control module PLC, for starting and stopping.
Pressure transducer is connected with the simulation input unit in control module PLC, converts analog signals into digital signal.
Air compressor machine is connected with the numerical input unit in control module PLC, runs and malfunction for monitoring;Air compressor machine
It is connected with the output unit in control module PLC, for starting and stopping;Communication unit in air compressor machine and control module PLC
Connect, and different addresses are set, form communication network.
Each connection above-mentioned is to be completed by PROFIBUS bus.
Adopt PROFIBUS agreement between control module PLC main control unit and air-compressor set, scene is constituted by agreement total
Line communication network.Main website is made up of PLC control module, and slave station is made up of air-compressor set.When not having extraneous request, main website is actively
Transmission information, to slave station arrange parameter, checks the communication interface configuration of slave station, reads slave station diagnosis message, and according to having determined
The good program of justice carries out user data exchange with slave station.Main website can not only be used for the request of data in PROFIBUS communication network
Side, also can carry out duplex data communication as the responder of data, and simply main website is sent with request, and to be passed back to main website corresponding simultaneously
Data message.In node data reading with ablation process, employ the method maintaining routing table it is achieved that checking local
During node failure, closed node transmission data so as to its node data transmission unaffected, when this node recover normal when, from
Move and be added in network it is ensured that data communication is stablized, thus improving the security and stability of data communication between network node.
The main flow of described control system of online software is:
001 initialization;
002 detection pressure;
If 003 pressure limit is normal, execute 008;If abnormal, execute 004;
004 beginning timing;
If 005 timing time is more than on-line time, execute 006;If being less than on-line time, execute 007;
006 communication failure prompting;
007 execution 002;
008 calls out air compressor machine subprogram;
If 009 air compressor machine opens normal, execution 011;If abnormal, execute 010;
010 alarm;
011 calls pass air compressor machine subprogram;
If 012 air compressor machine normal switching-off, execute 013;If abnormal, execute 010;
013 calls start and stop cooling driers, dryer program;
014 execution 002.
The main flow of maintenance routing table software of node data read-write is:
061 initialization;
062 calls transmission data subprogram;
063 etc. is to be answered;
064 labelling nonreply numbering, adds newly-increased node serial number;
065 pair of dont answer label verification;
066 etc. is to be answered;
067 will have number of replies to be labeled as postponing node;
068 alarm, executes 071;
Nonreply numbering is labeled as dying for the sake of honour a little by 069;
070 alarm, executes 071;
071 postpones a period of time;
072 execution 062.
Send substream of data journey:
081 initialization;
The data encapsulation that 082 will send;
If 083 circuit orderliness takies, execute 082;If circuit does not have order to take, execute 084;
084 transmission data;
If 085 has packet loss to collide, execute 086;If no packet loss collision, execute 088;
086 calculating waiting time;
If 087 waiting time arrived, execute 082;If not to the waiting time, execute 087;
088 sends successfully.
Due to adopting technique scheme, the present invention compared with prior art has the advantages that:
The present invention carries out networking control by PROFIBUS bussing technique to air compressor system, because fieldbus is in system
Structure route the realization of table algorithm so that the air-compressor set of this PROFIBUS bussing technique joins with the maintenance of node data read-write
Network control system, compared with existing control system of air compressor, under mass communication data transmission scenarios, efficiently solves network section
Between point the problems such as delay and the packet loss of data communication, overcome the stability deficiency during data communication, Jin Erbao
Demonstrate,prove the security and stability of air-compressor set control system of online.
Therefore, the present invention with existing based on the air compressor machine control system of online of PLC technology compared with, be not only suitable for various meeting
The different manufacturers of open protocol, the various air compressor machine field apparatus of different brands, play industrial network control advantage;It is also suitable for
Automated condtrol production scene in air compressor machine control system of online in complex environment;Simultaneously suitable have to networked data communication
High-speed data exchanges, the pneumatics interconnection plane industrial and mining establishment of higher stability and security requirement.
Brief description
Fig. 1 is the structural representation of air-compressor set control system of online;
Fig. 2 is air-compressor set networking control control software controlling interface figure;
Fig. 3 is the main flow chart of air-compressor set networking control control software;
Fig. 4 is the main flow chart of the maintenance routing table software of air-compressor set networked node reading and writing data;
Fig. 5 is that in Fig. 4, calling of main flow sends data flow subprogram figure;
Fig. 6 be in Fig. 3 main flow open air compressor machine flow process subprogram figure;
Fig. 7 is the pass air compressor machine flow process subprogram figure of main flow in Fig. 3;
Fig. 8 is the start and stop cooling driers of main flow in Fig. 3, dryer flow process subprogram figure.
Specific embodiment
The invention will be further described with reference to the accompanying drawings and detailed description, not protection domain is limited:
Embodiment 1
A kind of air-compressor set control system of online based on PROFIBUS bussing technique.Described air-compressor set networking control
System is as shown in Figure 1:Including PLC control module, touch screen, air-compressor set, cooling driers group, blot unit, pressure transducer and
Power supply., by power subsystem, microcontroller CPU element, communication unit, memorizer, simulation input unit, numeral is defeated for control module PLC
Enter unit, digital output unit, programmable device forms;Power subsystem respectively with microcontroller CPU element, communication unit, memorizer, mould
Intend input block, numerical input unit, digital output unit, the power port of programmable device connects;Programmable device is mono- with microcontroller CPU
Unit connects;Memorizer, communication unit, simulation input unit, numerical input unit, digital output unit is by data/address bus respectively
It is connected with CPU;Touch screen is connected with the communication unit in control module PLC.
Blot unit to be connected with the digital output unit in control module PLC, for starting and stopping.
Cooling driers group is connected with the digital output unit in control module PLC, for starting and stopping.
Pressure transducer is connected with the simulation input unit in control module PLC, converts analog signals into digital signal.
Air compressor machine is connected with the numerical input unit in control module PLC, runs and malfunction for monitoring;Air compressor machine
It is connected with the output unit in control module PLC, for starting and stopping;Communication unit in air compressor machine and control module PLC
Connect, and different addresses are set, form PROFIBUS communication network.
Adopt PROFIBUS agreement between control module PLC main control unit and air-compressor set, scene is constituted by agreement total
Line communication network.Main website is made up of PLC control module, and slave station is made up of air-compressor set.When not having extraneous request, main website is actively
Transmission information, to slave station arrange parameter, checks the communication interface configuration of slave station, reads slave station diagnosis message, and according to having determined
The good program of justice carries out user data exchange with slave station.Main website can not only be used for the request of data in PROFIBUS communication network
Side, also can carry out duplex data communication as the responder of data, and simply main website is sent with request, and to be passed back to main website corresponding simultaneously
Data message.In node data reading with ablation process, employ the method maintaining routing table it is achieved that checking local
During node failure, closed node transmission data so as to its node data transmission unaffected, when this node recover normal when, from
Move and be added in network it is ensured that data communication is stablized, thus improving the security and stability of data communication between network node.
Equipped with networking control software in control module PLC main control unit.
The main flow of described Control System Software is:
001 initialization;
002 detection pressure;
If 003 pressure limit is normal, execute 008;If abnormal, execute 004;
004 beginning timing;
If 005 timing time is more than on-line time, execute 006;If being less than on-line time, execute 007;
006 communication failure prompting;
007 execution 002;
008 calls out air compressor machine subprogram;
If 009 air compressor machine opens normal, execution 011;If abnormal, execute 010;
010 alarm;
011 calls pass air compressor machine subprogram;
If 012 air compressor machine normal switching-off, execute 013;If abnormal, execute 010;
013 calls start and stop cooling driers, dryer program;
014 execution 002.
Open air compressor machine sub-process:
020 detection pressure;
If 021 is less than unlatching main frame pressure, execute 022;If more than or equal to opening main frame pressure, executing 029;
022 unlatching Host Detection;
If 023 is less than No. 1 subsidiary engine pressure of unlatching, execute 024;If being more than or equal to No. 1 subsidiary engine machine pressure, execute 029;
024 opens No. 1 subsidiary engine detection;
If 025 is less than No. 2 subsidiary engine pressure of unlatching, execute 026;If being more than or equal to No. 2 subsidiary engine machine pressure, execute 029;
026 opens No. 2 subsidiary engine detections;
If 027 is less than No. 3 subsidiary engine pressure of unlatching, execute 028;If being more than or equal to No. 3 subsidiary engine machine pressure, execute 029;
028 opens No. 3 subsidiary engine detections;
029 pass air compressor machine subprogram.
Close air compressor machine sub-process:
030 opens air compressor machine subprogram;
If 031 is more than No. 3 subsidiary engine pressure, execute 032;If being less than or equal to No. 3 subsidiary engine pressure, execute 033;
032 closes No. 3 subsidiary engine detections;
If 033 is more than No. 2 subsidiary engine pressure, execute 034;If being less than or equal to No. 2 subsidiary engine pressure, execute 035;
034 closes No. 2 subsidiary engine detections;
If 035 is more than No. 1 subsidiary engine pressure, execute 036;If being less than or equal to No. 1 subsidiary engine pressure, execute 037;
036 closes No. 1 subsidiary engine detection;
If 037 is more than main frame pressure, execute 038;If being less than or equal to main frame pressure, execute 039;
038 closing main frame machine testing;
039 start and stop cooling driers, dryer subprogram.
Start and stop cooling driers, dryer sub-process:
040 pass air compressor machine subprogram;
If 041 1,2, No. 3 subsidiary engines, main frames run, execute 042;If not 1,2, No. 3 subsidiary engines, main frames
Run, execute 043;
042 opens 1,2, No. 3 cooling driers, opens 1, No. 2 dryers;
If 043 1, No. 2 subsidiary engines, main frames run, execute 044;If not 1, No. 2 subsidiary engines, main frames
Run, execute 045;
044 opens 1,2, number cooling driers, close No. 3 cooling driers;Open 1, No. 2 dryers;
If 045 No. 1 subsidiary engines, main frames run, execute 046;If not No. 1 subsidiary engine, main frame
Run, execute 047;
046 opens 1, No. 2 cooling driers, closes No. 3 cooling driers;Open No. 1 dryer, close No. 2 dryers;
If 047 main frame runs, execute 048;If not main frame runs, execute 049;
048 opens No. 1 cooling driers, closes 2, No. 3 cooling driers;Open No. 1 dryer, close No. 2 dryers;
If 049 no compressor operation, execute 050;If not no compressor operation execution 051;
050 1,2, No. 3 cooling driers in pass, close 1, No. 2 dryers;
051 detection pressure.
The main flow of maintenance routing table software of node data read-write is:
061 initialization;
062 calls transmission data subprogram;
063 etc. is to be answered;
064 labelling nonreply numbering, adds newly-increased node serial number;
065 pair of dont answer label verification;
066 etc. is to be answered;
067 will have number of replies to be labeled as postponing node;
068 alarm, executes 071;
Nonreply numbering is labeled as dying for the sake of honour a little by 069;
070 alarm, executes 071;
071 postpones a period of time;
072 execution 062.
Send substream of data journey:
081 initialization;
The data encapsulation that 082 will send;
If 083 circuit orderliness takies, execute 082;If circuit does not have order to take, execute 084;
084 transmission data;
If 085 has packet loss to collide, execute 086;If no packet loss collision, execute 088;
086 calculating waiting time;
If 087 waiting time arrived, execute 082;If not to the waiting time, execute 087;
088 sends successfully.
This specific embodiment carries out networking control by PROFIBUS bussing technique to air compressor system, because scene is total
Line the read-write of system structure and node data maintenance route table algorithm realize so that the sky of this PROFIBUS bussing technique
Press group control system of online compared with existing control system of air compressor, under mass communication data transmission scenarios, effectively solving
The delay of data communication and the problems such as packet loss between network node, does not overcome stability during data communication not
Foot, and then ensure that the security and stability of air-compressor set control system of online.
Therefore, this specific embodiment with existing based on the air compressor machine control system of online of PLC technology compared with, be not only suitable for
The various different manufacturers meeting open protocol, the various air compressor machine field apparatus of different brands, play industrial network control excellent
Gesture;It is also adapted to the Automated condtrol production scene of air compressor machine control system of online in complex environment;It is suitable for networking simultaneously
Data communication has high-speed data to exchange, the pneumatics interconnection plane industrial and mining establishment of higher stability and security requirement.