Mining multifunctional safety in production on-line checkingi outstation and method of work
Technical field
The present invention relates to a kind of colliery multifunctional safe and produce on-line checkingi watch-dog.
Background technology
Gas and mine pressure are the main harm affecting coal in China safety in production, and mutually direct or indirect relation is said in these harm in a sense.But, existing safety monitor and control equipment, also be in the state to single Accidents Disasters monitoring, split the interdependence of all kinds of monitored data artificially, thus cause the research of all kinds of disaster accident and the independent of one another of management method, make the control decision of security incident there is certain one-sidedness.
Along with deepening continuously of Coal Mine Safety Faulty Forecast and control theory research, originally single safety of coal mines Monitoring for Coal Mine equipment is more and more not suitable with the research of current Coal Mine Safety Faulty Forecast and control theory and the growth requirement of coal mine safety information quantification, thus it is also proposed higher requirement to the means of security related information collection.Therefore, development mining multifunctional safety in production on-line checkingi watch-dog, comprehensive monitoring monitoring can be carried out to the information affecting mine safety accidents, this is not only and obtains integrated information affect Safety of Coal Mine Production and provide advanced effectively means and platform, and to advancing the informationization of Safety of Coal Mine Production, particularly the research on the integrated information basis of Coal Mine Safety Faulty Forecast and control is all had great significance.
Summary of the invention
The object of this invention is to provide a kind of mining multifunctional safety in production on-line checkingi outstation, simultaneously by the method for work of this substation.This substation can collection of coal mine down-hole multiple analog amount and on-off model, has data processing, information displaying and control output function, can with host computer telecommunication.
For reaching above-mentioned purpose, technical scheme of the present invention is: a kind of mining multifunctional safety in production on-line checkingi outstation, concrete structure is, main circuit board and display circuit board are installed in Instrument shell, main circuit board and display circuit board realize communication, it is characterized in that, described main circuit board is connected to form by signal acquisition circuit, single chip circuit, communicating circuit, control output circuit; Display circuit board is connected to form by Chinese LCD module and LED indicating circuit; Above-mentioned signal acquisition circuit is made up of walk abreast 16 road signal acquisition circuits and serial 20 road signal acquisition circuit, can gather the frequency signal of parallel 16 road 200-1000hz, on-off model and 20 tunnel serial input signals simultaneously; Above-mentioned single chip circuit comprises two single-chip microcomputers, two one-chip machine commons data storage, wherein the first single-chip microcomputer is for managing uplink communication circuit and upper machine communication, and second singlechip is used for supervisory signal Acquisition Circuit, controls output circuit and display circuit;
Above-mentioned parallel 16 road signal acquisition circuits are connected to form by No. 16 photoisolator P521 and 2 analog switch CD4051,2 analog switches gating 16 passage successively under the control of second singlechip, and the 200-1000hz frequency values of 16 road signals is detected by second singlechip;
Above-mentioned serial 20 road signal acquisition circuit adopt model be the chip of MAX1487 as RS-485 standard serial communicating circuit, gather the serial signal of 20 road RS-485 standards successively.
The first above-mentioned single-chip microcomputer is the single-chip microcomputer of model AT89C205; Second singlechip is the single-chip microcomputer of model AT98S52; The data storage shared is the data storage of model FM24C16; Uplink communication circuit is RS-485 communicating circuit;
Above-mentioned RS-485 communicating circuit is made up of the RS-485 chip MAX1487 of standard, triode amplifier and the first single-chip microcomputer I; Triode amplifies 5 and is connected between the first single-chip microcomputer I and the receiving terminal of RS-485 chip, has the enlarging function of Received signal strength, strengthens communication distance and the load capacity of RS-485 bus;
5 above-mentioned tunnels control output circuit and are made up of second singlechip, a phase inverter 74LS04 and 5 photoisolator P521; Second singlechip sends logic control instruction signal to phase inverter 74LS04, sends into outside actuator after signal logic is anti-phase through photoisolator;
Workflow of the present invention is: second singlechip gathers frequency signal or the switching signal of 16 parallel channels, tunnel successively by control simulation switch, by the communication data of the RS-485 chip road transmitter of asynchronous serial communication interface link standard, by after image data process stored in data storage, and data are sent into Chinese LCD module, show information intuitively, and control by 5 tunnels the control output that output circuit realizes switch amount; Data stored in the data reading in data storage, and by the RS-485 serial communication chip MAX1487 of asynchronous communication interface connection standard and upper machine communication, are sent into host computer by second singlechip by the first single-chip microcomputer.
Specific works step of the present invention is as follows:
The first step, powers on to on-line checkingi outstation, the first monolithic processor resetting, and after time delay, second singlechip resets;
Second step, after the first monolithic processor resetting, initializes internal RAM, asynchronous communication mouth, interruption, register; Initialization terminates rear wait and sends data command by host computer request; When receiving after by host computer request transmission data command, entering interruption, resolve command, judging whether is the machine address command; If not the machine address command, exit interruption, continue circular wait; If the machine address command, then the data in read data storage period send buffer area to the data of asynchronous communication mouth, send total data successively, send after terminating and return time delay wait, enter and circulate next time;
3rd step, second singlechip initializes registers such as internal RAM, asynchronous communication mouth, timer counter, interruptions after resetting, system starts after initializing, specific as follows:
The parallel 16 road frequency signals of 3.1st step, successively collection:
Opening timing device counter; Gating analog switch; When there being pulse signal to come then, shot timers counter, detects frequency signal;
The data processing of the 3.2nd step, frequency signal:
By the frequency signal digital filtering detected, remove interfering signal; Count pulse is carried out frequency signal conversion; Frequency signal is carried out the conversion of physical quantity respective value; With after standard data format process stored in data storage;
3.3rd step, control export and display:
Currency in reading data storage and the fiducial value of setting compare, and when currency is more than or equal to setting value, single-chip microcomputer output logic is high, control output circuit and open or close; When currency is less than setting value, single-chip microcomputer output logic is low, and control output circuit or pass are opened; When control output circuit is opened, single-chip microcomputer reads 16 circuit-switched data successively in data storage, then data is sent into display module display;
3.4th step, collection serial 20 road communication data:
Open asynchronous communication mouth to interrupt, once send the instruction gathering serial 20 circuit-switched data, receive data, exit interruption;
3.5th step, serial data send data storage to store:
Serial 20 circuit-switched data received is pressed prescribed form stored in data storage, returns the 3.1st step, enter and circulate next time.
Good effect of the present invention:
1, owing to have employed timing and the tally function of single-chip microcomputer, achieve the detection of frequency signal and switching signal, linking of the RS-485 serial communication chip of single-chip microcomputer asynchronous serial communication interface and standard, achieves the collection of serial communication data.Thus the collection of various for underground coal mine analog quantity is finally converted to the 200-1000Hz frequency signal of standard or the transmission of RS-485 serial signal.Owing to have employed above-mentioned two kinds of functions in single-chip microcomputer, dimension the present invention can collection of coal mine down-hole multiple analog amount and on-off model.
2, the present invention is owing to have employed singlechip technology, corresponding display module and logical output circuit, makes the present invention have data processing, information displaying and control output function.
3, the present invention is due in communicating circuit, adds the enlarging function of Received signal strength, make the present invention can with host computer telecommunication; Maximum distance can reach 10 kilometers.Have nothing to do, I is a people cold especially, and I refers to " "
4, the present invention is owing to have employed double mcu circuit, thus adds a serial communication interface, and the present invention is come true as gathered while gas ventilation class, mine pressure class, Pitwater disaster class to relating to colliery multiclass security information.
5, the present invention due to communication distance is far away and the corresponding interface with the use of, a point station network can be formed flexibly at underground coal mine.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention circuit board theory diagram;
Fig. 2 is the parallel 16 road signal acquisition circuit figure of the embodiment of the present invention;
Fig. 3 is embodiment of the present invention communicating circuit figure;
Fig. 4 is that the embodiment of the present invention controls output circuit figure;
Fig. 5 is embodiment of the present invention single-chip microcomputer I program flow diagram;
Fig. 6 is embodiment of the present invention single-chip microcomputer II program flow diagram.
Detailed description of the invention
A kind of mining multifunctional safety in production on-line checkingi outstation, concrete structure is in Instrument shell, be provided with main circuit board as shown in Figure 1 and display circuit board, and main circuit board and display circuit board realize communication by winding displacement; Described main circuit board is connected to form by signal acquisition circuit, single chip circuit, communicating circuit, control output circuit; Display circuit board is that LCM128645ZK Chinese LCD module and LED light emitting diode form by model.
Above-mentioned signal acquisition circuit as shown in Figure 2, is made up of parallel 16 road signal acquisition circuits and serial 20 road signal acquisition circuit, can gathers the frequency signal of parallel 16 road 200-1000hz, on-off model and 20 tunnel serial input signals simultaneously; Parallel 16 road signal acquisition circuits are connected to form by No. 16 photoisolator P521 and 2 analog switch CD4051,2 analog switches gating 16 passage successively under the control of single-chip microcomputer II AT98S52, and the 200-1000hz frequency values of 16 road signals is detected by second singlechip II; Serial 20 road signal acquisition circuit adopt model be the chip of MAX1487 as RS-485 standard serial communicating circuit, gather the serial signal of 20 road RS-485 standards successively.
Above-mentioned single chip circuit comprises the second singlechip sheet II of the first single-chip microcomputer I and model AT89C205 of model AT89C205, and the first single-chip microcomputer I and second singlechip II shares a model FM24C16 data storage, and adopts concurrent working mode; First single-chip microcomputer I resets to second singlechip II after starting, enabled instruction two single-chip microcomputer concurrent workings;
Wherein the first single-chip microcomputer I is main frame, and by up RS-485 communicating circuit and upper machine communication, second singlechip II to be walked abreast the analog quantity on 16 tunnels or on-off model by parallel 16 road signal acquisition circuit Real-time Collections; By the communication data of model Acquisition Circuit timing acquiring serial 20 road, serial 20 tunnel transmitter; By data write data storage that is real-time and timing acquiring; The control output that output circuit realizes switch amount is controlled by 5 tunnels; To be connected with display circuit board by winding displacement and information displaying is sent into 128 × 64 Chinese LCD modules, show information intuitively.
Above-mentioned communicating circuit as shown in Figure 3, be made up of the RS-485 chip MAX1487 of standard, triode amplifier 9015 and the first single-chip microcomputer I, triode 9015 is connected between the receiving terminal of the first single-chip microcomputer I and RS-485 chip MAX1487, there is the enlarging function of Received signal strength, strengthen communication distance and the load capacity of RS-485 bus.
Above-mentioned control output circuit is that 5 tunnels control output circuit, as shown in Figure 4, be made up of second singlechip II, a phase inverter 74LS04 and 5 photoisolator P521, second singlechip II sends logic control instruction signal to phase inverter 74LS04, sends into outside actuator after signal logic is anti-phase through photoisolator;
Workflow of the present invention is: second singlechip gathers frequency signal or the switching signal of 16 parallel channels, tunnel successively by control simulation switch, by the RS-485 chip MAX1487 of asynchronous serial communication interface link standard, the communication data of timing acquiring serial 20 road transmitter, by after image data process stored in data storage, and data are sent into Chinese LCD module, show information intuitively, and control by 5 tunnels the control output that output circuit realizes switch amount; Data stored in the data reading in data storage, and by the RS-485 serial communication chip MAX1487 of asynchronous communication interface connection standard and upper machine communication, are sent into host computer by second singlechip by the first single-chip microcomputer.
The concrete steps of workflow of the present invention are as follows:
The first step, powers on to on-line checkingi outstation, the first monolithic processor resetting, and after time delay, second singlechip resets;
Second step, as shown in Figure 5, after the first monolithic processor resetting, initializes internal RAM, asynchronous communication mouth, interruption, register; Initialization terminates rear wait and sends data command by host computer request; When receiving after by host computer request transmission data command, entering interruption, resolve command, judging whether is the machine address command; If not the machine address command, exit interruption, continue circular wait; If the machine address command, then the data in read data storage period send buffer area to the data of asynchronous communication mouth, send total data successively, send after terminating and return time delay wait, enter and circulate next time;
3rd step, as shown in Figure 6, second singlechip initializes registers such as internal RAM, asynchronous communication mouth, timer counter, interruptions after resetting, and system starts is as follows:
1, parallel 16 road frequency signals are gathered successively:
Opening timing device counter; Gating analog switch; When there being pulse signal to come then, shot timers counter, detects frequency signal;
2, the data processing of frequency signal:
By the frequency signal digital filtering detected, remove interfering signal; Count pulse is carried out frequency signal conversion; Frequency signal is carried out the conversion of physical quantity respective value; With after standard data format process stored in data storage;
3, control to export and display:
Currency in reading data storage and the fiducial value of setting compare, and when currency is more than or equal to setting value, single-chip microcomputer output logic is high, control output circuit and open or close; When currency is less than setting value, single-chip microcomputer output logic is low, and control output circuit or pass are opened; When control output circuit is opened, single-chip microcomputer reads 16 circuit-switched data successively in data storage, then data is sent into display module display;
4, serial 20 road communication data is gathered:
Open asynchronous communication mouth to interrupt, once send the instruction gathering serial 20 circuit-switched data, receive data, exit interruption;
5, serial data send data storage to store:
Serial 20 circuit-switched data received is pressed prescribed form stored in data storage, returns the 1st step of this step 3, enter and circulate next time.