A kind of low-power consumption pressure transmitter with pressure drop rate detection
Technical field
The present invention relates to a kind of pressure transmitter, specifically refer to a kind of low-power consumption pressure inverting with pressure drop rate detection
Device, is applied to gas-liquid linkage actuator and breaks protection of pipe electronic unit.
Background technology
Gas-liquid linkage actuator is a kind of valve actuator being arranged on natural gas transmission pipeline, and its operation principle is
Valve is driven as power source by the natural gas in natural gas line.Broken protection of pipe electronic unit is gas-liquid linkage actuator
One adnexa, its effect is pressure and the pressure drop rate monitoring natural gas line in real time, if natural gas line occurs abnormal, pressure
Power or pressure drop rate exceed setting value, then break protection of pipe electronic unit and send the signal of telecommunication, drive gas-liquid linkage actuator to open or
Close valve, protect pipeline.Therefore, the reliability of broken protection of pipe electronic unit directly affects the safety of gas pipeline, promotes broken
The reliability of protection of pipe electronic unit becomes the emphasis that each executor producer pays close attention to.And pressure transmitter is broken protection of pipe electronics
The important step of the signal transmission of unit, its effect is that the mV signal that pressure transducer exports is converted into higher current signal
(4 ~ 20mA), voltage signal (0 ~ 10V) or fieldbus signal (ModBus, Profibus etc.) are transferred to remote client.But pass
The pressure transmitter of system breaks in gas-liquid linkage actuator and but occurs in that the biggest shortcoming in the application on protection of pipe electronic unit, its
Show the following aspects:
(1) power consumption is higher, and usual pressure transmitter generally uses 24VDC work electricity for the purpose realizing long transmission distance
Pressure, either current signal, voltage signal or fieldbus signal, its operating current is all between tens milliamperes to 100 milliamperes
And power consumption is 0.2W to 2W.And broken protection of pipe electronic unit is mostly battery and powers, it is desirable to the power consumption of broken protection of pipe electronic unit
The lowest.Therefore, usual pressure transmitter is extremely difficult to the requirement of low-power consumption;
(2) calculate without pressure drop rate, usual pick-up pressure data of usual pressure transmitter.And break protection of pipe electronics list
Unit is the most normal in order to detect natural gas line, not only needs pressure data, and is also required to pressure drop rate data.Common do
Method is broken that protection of pipe electronic unit receives the data of pressure transmitter, is then counted by the CPU within broken protection of pipe electronic unit
Calculate 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 organizing pressure transmitter, therefore electricity more
Subelement uses single pressure sensor pattern substantially.
B. the time of the conversion of pressure transmitter data and transmission is uncertain, the precision of pressure drop rate it is difficult to ensure that.
Summary of the invention
The invention aims to the shortcoming and defect overcoming prior art to exist, and provide a kind of with having pressure drop
The low-power consumption pressure transmitter of speed detection.
For achieving the above object, the technical scheme is that and include with lower module:
Power module, for providing electric power to transmitter work;
Central processing unit, integrally disposed on this central processing unit have A-D converter and Universal Asynchronous Receive/dispensing device;
RS485 communication module, this RS485 communication module is mutual with the Universal Asynchronous Receive/dispensing device of central processing unit
Communication connection;
Described A-D converter is used for receiving the mV signal of pressure transducer and converting thereof into pressure on the number signal carrying
Supply central processing unit, central processing unit draws force value according to pressure on the number signal and calculates pressure drop rate value, and passing through
Universal Asynchronous Receive/dispensing device is transferred to the output of RS485 communication module.The calculating of pressure drop rate is to be determined by Δ P/t
, wherein Δ P is the changing value of pressure, and t is transformation period.
Arrange further be described central processing unit be the embedded central processing unit of super low-power consumption.
Arrange further is to also set up the FLASH storage for recording sampling period instruction on described central processing unit
Device, described power module is provided for the first power supply output line road of powering to pressure transducer and for RS485
Second source outlet line that communication module is powered and for the 3rd power supply output line road powered to central processing unit, institute
Be provided with cycle timer in the central processing unit stated, this central processing unit according to sampling period of FLASH memory instruct with
And cycle timer output is for controlling the low power consumption control signal of power module work.
It is an advantage of the invention that
1. super low-power consumption
Due in broken protection of pipe electronic unit pressure transmitter be located proximate to electronic unit controller, its transmission range
Less than 50m, therefore, the running voltage of pressure transmitter can use 5VDC.In order to reduce the electric current in data transmission procedure, pressure
Power transmitter uses the RS485 communication pattern of 3.3V.Owing to broken protection of pipe electronic unit is not required to real-time transmission data, because of
This, pressure transmitter can need timing acquiring pressure data according to user, and interior on one's own time, uses Low-power-consumptiodormancy dormancy mould
Formula reduces energy loss.Therefore, lower power consumption when can pressure sensor data be gathered is to 15mW, and at Low-power-consumptiodormancy dormancy mould
Under formula, the power consumption of pressure transmitter is 2mW, does not the most consume electric energy.
2. pressure transmitter can calculate pressure drop rate
Owing to broken protection of pipe electronic unit needs the pressure drop rate value by natural gas line to carry out protective conduit, and commonly press
Power transmitter cannot export pressure drop rate value.In order to solve this problem.The calculating of pressure drop rate is had been moved to transmitter by us
End.So pressure of sensor acquisition can calculate pressure drop rate by pressure transmitter immediately, is so greatly improved pressure drop
The computational accuracy of speed.And, each transmitter can calculate pressure drop rate by the CPU of oneself, and be of little use electronic unit
Cpu resource, be thus an electronic unit controller collection more organize pressure transmitter data provide possibility.Can be convenient
Decomposition pressure transmitter networking.
Owing to have employed the pressure transmitter with These characteristics, the broken protection of pipe electronic unit of my company's exploitation is made to protect
The data of many group pressure transmitter transmission can be received under conditions of card low-power consumption, thus be greatly improved the reliability of product, subtract
Lack the generation of product misoperation.
Described on end, it is an advantage of the invention that the pressure transmitter of the present invention is possible not only to pick-up force value, it is also possible to become
Send pressure drop rate value, the most not only promote the precision of pressure drop rate, alleviate brokenly the calculating pressure of protection of pipe electronic unit.And,
Also for broken protection of pipe electronic unit collection, organize pressure more and pressure drop rate value provides possibility, because organizing pressure if gathered more
With there is also 2 significant problems while the stability that pressure drop rate value improves broken protection of pipe electronic unit:
(1) power consumption of many sensors and transmitter can be greatly increased, and this is for battery-powered broken protection of pipe electronics
Unit is unallowed;
(2) if calculating pressure drop rate, the meter of electronic unit in the data of many pressure transducers are put into electronic unit
Calculation amount can be greatly increased, and there is also the loss of data and the uncertain of time in the transmitting procedure of transmitter data
Property.Therefore its reliability is made to can not be guaranteed.
The pressure transmitter of the present invention is that the broken protection of pipe electronic unit of high stability (needs to gather many group pressure and pressure drop
Rate value) provide 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 the principle schematic of pressure acquisition pick-up device;
The flow chart of data processing figure of the central processing unit of Fig. 2 present invention.
Detailed description of the invention
Below by embodiment, the present invention is specifically described, is served only for the present invention being further described, no
It is understood that for limiting the scope of the present invention, the technician in this field can be according to the content of foregoing invention to the present invention
Make some nonessential improvement and adjustment.
The detailed description of the invention of the present invention as shown in Figure 1-2,
Power module 1, for providing electric power to transmitter work;Be provided on power module described in the present embodiment to
The first power supply output line road 11 that pressure transducer is powered and the second source for powering to RS485 communication module export
Circuit 12 and for the 3rd power supply output line road 13 that powers to central processing unit,
Central processing unit 2, on this central processing unit 2 integrally disposed have A-D converter (ADC) 21 and Universal Asynchronous Receive/
Dispensing device (UART) 22;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 and the Universal Asynchronous Receive/dispensing device 22 of central processing unit 2
It is in communication with each other connection;
Described A-D converter 21 is for receiving the mV signal of pressure transducer and converting thereof into pressure on the number signal
Being supplied to central processing unit 2, central processing unit draws force value according to pressure on the number signal and calculates pressure drop rate value, and leads to
Cross Universal Asynchronous Receive/dispensing device to be transferred to RS485 communication module 3 and export.
It addition, also set up the FLASH storage for recording sampling period instruction on central processing unit 2 described in the present embodiment
Device 23, is provided with cycle timer 24 in described central processing unit 2, this central processing unit 2 adopting according to FLASH memory 23
Sample cycles per instruction and cycle timer output are for controlling the low power consumption control signal 25 of power module work.
The operation principle of the present embodiment is:
(1) hardware principle, sees Fig. 1
A. normal operating conditions
Pressure data is converted to mV voltage signal and is transferred to CPU by pressure transducer.CPU is the embedded system of super low-power consumption
System.The mV signal of pressure transducer is directly converted to data by 24 ADC and processes by it.The adc data that CPU will gather
Be converted to force value and calculate pressure drop rate value.Then it is defeated by RS485 module by serial UART oral instructions, 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 issue CPU the sampling period by RS485 communication module in the sampling period, and CPU is by number
According to preserving to its FLASH memory.When the time interval of sampling period defined arrives, pressure transmitter enters normal
Duty.When complete normal operating conditions data sampling, process and upload task after, CPU by output low power consumption control
The power supply (the first power supply output line road 11) of signal 25 closing presure sensor and the power supply (second source of RS485 communication module
Outlet line 12).And CPU starts sampling period cycle timer, and enters resting state.When cycle timer time delay arrives
Time, CPU is waken up, and turns on the power the first power supply output line road 11 and second source output by low power consumption control signal 25
Circuit 12, makes pressure transmitter enter normal operating conditions.
(2) software principle, sees Fig. 2
Software principle illustrates:
First program is run, and initializes I/O port, UART mouth, ADC, opens the first power supply output when initializing
Circuit 11, second source outlet line 12, enter normal operating conditions.
2. the data collected are filtered by software filtering mode, obtain pressure AD data accurately by ADC sampling.Root
Force value is calculated according to the pressure calibration data being stored in CPU in advance.
When running program first, the initial value that the force value calculated for the first time is calculated as pressure drop rate.Output pressure drop
Speed is 0.Then pressure drop rate is calculated in next duty by (Pn+1 Pn)/t.Wherein: Pn+1 is for currently to adopt
The force value that sample calculates, Pn is the force value that last time, sampling calculated.T is the time interval of double sampling.
4. after calculating pressure and pressure drop rate value, wait that electronic unit controller passes through serial ports to its reception that sends instructions
Pressure and pressure drop rate value.
5. after receiving instruction and sending data, start cycle timer, close RS485 communication module and pressure sensing
Device power supply, enters resting state.
6. cycle timer overflows, and exits dormancy, opens RS485 communication module and pressure transducer power supply, enters normal
Mode of operation.