A kind of low-power consumption pressure unit with pressure drop rate detection
Technical field
The present invention relates to a kind of pressure unit, specifically refer to a kind of low-power consumption pressure unit that pressure drop rate detects that has, be applied to the broken protection of pipe electronic unit of gas-liquid linked actuator.Background technology
Gas-liquid linked actuator is a kind of valve actuator being arranged on natural gas transmission pipeline, and its principle of work is as power source, to drive valve by the rock gas in natural gas line.The annex that broken protection of pipe electronic unit is gas-liquid linked actuator; its effect is pressure and the pressure drop rate of Real-Time Monitoring natural gas line; if natural gas line occurs abnormal; pressure or pressure drop rate exceed setting value; broken protection of pipe electronic unit sends electric signal; drive gas-liquid linked actuator to open or close valve, protection pipeline.Therefore, the reliability of broken protection of pipe electronic unit directly affects the safety of gas pipe line, and the reliability that promotes broken protection of pipe electronic unit becomes the emphasis that each actuator producer pays close attention to.And pressure unit is broken that the important step that the signal of protection of pipe electronic unit transmits, its effect are to convert the mV signal of pressure transducer output to higher current signal (4 ~ 20mA), voltage signal (0 ~ 10V) or fieldbus signal (ModBus, Profibus etc.) to be transferred to distant place user.But in the application of traditional pressure unit on the broken protection of pipe electronic unit of gas-liquid linked actuator, occurred very large shortcoming, it shows the following aspects:
(1) power consumption is higher, usual pressure transmitter adopts 24VDC operating voltage conventionally for the object that realizes long transmission distance, no matter be current signal, voltage signal or fieldbus signal, its working current all between tens milliamperes to 100 milliamperes and power consumption be that 0.2W is to 2W.And broken protection of pipe electronic unit is mostly powered battery, require the power consumption of broken protection of pipe electronic unit as far as possible low.Therefore, usual pressure transmitter is difficult to reach the requirement of low-power consumption;
(2) without pressure drop rate, calculate, usual pressure transmitter only becomes pressurization pressure data conventionally.And whether broken protection of pipe electronic unit is normal in order to detect natural gas line, not only needs pressure data, and need pressure drop rate data.Common way is broken that protection of pipe electronic unit receives the data of pressure unit, then by the CPU of broken protection of pipe electronic unit inside, calculates pressure drop rate.The shortcoming of this pattern is:
A. the data processing load of electronic unit CPU is heavier, is difficult to process the data of many group pressure units, and therefore electronic unit adopts single pressure sensor pattern substantially.
B. the time of pressure unit data-switching and transmission uncertain, the precision of pressure drop rate is difficult to guarantee.
Summary of the invention
The object of the invention is the shortcoming and defect existing in order to overcome prior art, and a kind of low-power consumption pressure unit with having pressure drop rate detection is provided.
For achieving the above object, technical scheme of the present invention is to comprise with lower module:
Power module, for to transmitter, work provides electric power;
Central processing unit, integrated A-D converter and the Universal Asynchronous Receiver & dispensing device of being provided with on this central processing unit;
RS485 communication module, the Universal Asynchronous Receiver & dispensing device of this RS485 communication module and central processing unit communicates to connect mutually;
Described A-D converter offers central processing unit for receiving the mV signal of pressure transducer and converting thereof into pressure on the number signal, central processing unit draws force value according to pressure on the number signal and calculates pressure drop rate value, and is transferred to the output of RS485 communication module by Universal Asynchronous Receiver & dispensing device.The calculating of pressure drop rate is determined by Δ P/t, the changing value that wherein Δ P is pressure, and t is transformation period.
Further arranging is the embedded central processing unit that described central processing unit is super low-power consumption.
Further arranging is the FLASH storer that is also provided for recording sampling period instruction on described central processing unit, on described power module, be provided for the first power supply output line road to pressure transducer power supply, and for giving the second source outlet line of RS485 communication module power supply, and for the second source outlet line to central processing unit power supply, in described central processing unit, be provided with cycle timer, this central processing unit is used for controlling the low power consumption control signal of power module work according to the sampling period instruction of FLASH storer and cycle timer output.
Advantage of the present invention is
1. super low-power consumption
Because the position of pressure unit in broken protection of pipe electronic unit is near electronic unit controller, its transmission range is no more than 50m, and therefore, the operating voltage of pressure unit can adopt 5VDC.In order to reduce the electric current in data transmission procedure, pressure unit adopts the RS485 communication pattern of 3.3V.Because broken protection of pipe electronic unit does not need real-time transmission data, therefore, pressure unit can need timing acquiring pressure data according to user, and on one's own time, adopts low-power consumption park mode to reduce energy loss.Therefore, power-dissipation-reduced when pressure sensor data can be gathered is to 15mW, and under low-power consumption park mode, the power consumption of pressure unit is 2mW, does not substantially consume electric energy.
2. pressure unit can calculate pressure drop rate
Because broken protection of pipe electronic unit need to be protected pipeline by the pressure drop rate value of natural gas line, and usual pressure transmitter cannot be exported pressure drop rate value.In order to address this problem.We have moved on to transmitter end by the calculating of pressure drop rate.The pressure of sensor collection can calculate pressure drop rate by pressure unit immediately like this, can greatly improve like this computational accuracy of pressure drop rate.And each transmitter can calculate pressure drop rate by the CPU of oneself, more the cpu resource of the electronic unit that is of little use, so just organize pressure unit data for the collection of an electronic unit controller possibility be provided.Decomposition pressure transmitter networking easily.
Owing to having adopted the pressure unit with These characteristics; the broken protection of pipe electronic unit of Shi Wo company exploitation can receive the data of many group pressure units transmission under the condition that guarantees low-power consumption; thereby greatly promoted the reliability of product, reduced the generation of product misoperation.
Eventually the above, advantage of the present invention is that pressure unit of the present invention not only can become pressurization pressure value, can also become and send pressure drop rate value, so not only promotes the precision of pressure drop rate, alleviates brokenly the calculating pressure of protection of pipe electronic unit.And, also for pressure is organized in broken protection of pipe electronic unit collection more and pressure drop rate value provides possibility, because, if also there are 2 significant problems when collection many groups pressure and pressure drop rate value improve the stability of breaking protection of pipe electronic unit:
(1) power consumption of many sensors and transmitter can increase greatly, and this is unallowed for battery-powered broken protection of pipe electronic unit;
(2) if the data of many pressure transducers are put in electronic unit and calculate pressure drop rate, the calculated amount of electronic unit can increase greatly, and in the transmitting procedure of transmitter data, also there will be the loss of data and the uncertainty of time.Therefore make its reliability can not be guaranteed.
Pressure unit of the present invention is that the broken protection of pipe electronic unit (needing to gather many group pressure and pressure drop rate value) of high stability provides possibility.
Below in conjunction with specification drawings and specific embodiments, the present invention is described further.
Accompanying drawing explanation
Fig. 1 specific embodiment of the invention is applied to pressure acquisition and becomes the principle schematic of sending device;
The flow chart of data processing figure of Fig. 2 central processing unit of the present invention.
Embodiment
Below by embodiment, the present invention is specifically described; only be used to further illustrate the present invention; can not be interpreted as limiting the scope of the present invention, the technician in this field can make some nonessential improvement and adjustment to the present invention according to the content of foregoing invention.
The specific embodiment of the present invention as shown in Figure 1-2,
Power module 1, for to transmitter, work provides electric power; On power module described in the present embodiment, be provided for to the first power supply output line road 11 of pressure transducer power supply and for the second source outlet line 12 to the power supply of RS485 communication module and for the second source outlet line 13 to central processing unit power supply
Central processing unit 2, integrated A-D converter (ADC) 21 and the Universal Asynchronous Receiver & dispensing device (UART) 22 of being provided with on this central processing unit 2; Central processing unit described in the present embodiment is the embedded central processing unit of super low-power consumption.
RS485 communication module 3, this RS485 communication module 3 communicates to connect mutually with the Universal Asynchronous Receiver & dispensing device 22 of central processing unit 2;
Described A-D converter 21 offers central processing unit 2 for receiving the mV signal of pressure transducer and converting thereof into pressure on the number signal, central processing unit draws force value according to pressure on the number signal and calculates pressure drop rate value, and by Universal Asynchronous Receiver & dispensing device, is transferred to RS485 communication module 3 and exports.
In addition, on central processing unit 2 described in the present embodiment, be also provided for recording the FLASH storer 23 of sampling period instruction, in described central processing unit 2, be provided with cycle timer 24, this central processing unit 2 is used for controlling the low power consumption control signal 25 of power module work according to the sampling period instruction of FLASH storer 23 and cycle timer output.
The principle of work of the present embodiment is:
(1) hardware principle, referring to Fig. 1
A. normal operating conditions
Pressure transducer is converted to mV voltage signal by pressure data and is transferred to CPU.CPU is super low-power consumption embedded system.It is directly converted to data by the mV signal of pressure transducer by 24 ADC and processes.CPU is converted to the adc data of collection force value and calculates pressure drop rate value.Then by serial UART port transmission to RS485 module, by RS485 module, pressure and pressure drop rate value are uploaded to electronic unit controller.
B. low power consumpting state
Electronic unit controller first will will be issued CPU by RS485 communication module in the sampling period in the sampling period, and CPU is saved to data in its FLASH storer.When the time interval of sampling period defined arrives, pressure unit enters normal operating conditions.When complete normal operating conditions data sampling, process and upload after task, CPU is by the power supply (the first power supply output line road 11) of output low power consumption control signal 25 closing presure sensors and the power supply (second source outlet line 12) of RS485 communication module.And CPU starts sampling period cycle timer, and enters dormant state.When cycle timer time delay arrives, CPU is waken up, and by low power consumption control signal 25 opening power the first power supply output line road 11 and second source outlet lines 12, makes pressure unit enter normal operating conditions.
(2) software principle, referring to Fig. 2
Software principle explanation:
1. first program operation, initialization IO mouth, UART mouth, ADC module is opened the first power supply output line road 11 when initialization, and second source outlet line 12, enters normal operating conditions.
2. ADC sampling, by the filtering of software filtering mode, obtains pressure AD data accurately by the data that collect.According to the pressure calibration data that deposit in advance CPU in, calculate force value.
3. first during working procedure, the initial value calculating the force value of calculating for the first time as pressure drop rate.Output pressure drop rate is 0.Then in next duty, by (Pn+1 – Pn)/t, calculate pressure drop rate.Wherein: Pn+1 is the force value that current sampling is calculated, Pn is the force value that last time, sampling was calculated.T is the time interval of double sampling.
4. when calculating after pressure and pressure drop rate value, wait for that electronic unit controller is sent instructions and receives pressure and pressure drop rate value to it by serial ports.
5. start-up period timer after receiving instruction and sending data, closes RS485 communication module and pressure transducer power supply, enters dormant state.
6. cycle timer overflows, and exits dormancy, opens RS485 communication module and pressure transducer power supply, enters normal mode of operation.