CN108844602B - Self-diagnosis and correction method of direct-reading mechanical counter with pulse input - Google Patents
Self-diagnosis and correction method of direct-reading mechanical counter with pulse input Download PDFInfo
- Publication number
- CN108844602B CN108844602B CN201810648855.3A CN201810648855A CN108844602B CN 108844602 B CN108844602 B CN 108844602B CN 201810648855 A CN201810648855 A CN 201810648855A CN 108844602 B CN108844602 B CN 108844602B
- Authority
- CN
- China
- Prior art keywords
- value
- counter
- direct reading
- pulse
- epsilon
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F25/00—Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume
- G01F25/10—Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume of flowmeters
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01F—MEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
- G01F25/00—Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume
- G01F25/10—Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume of flowmeters
- G01F25/15—Testing or calibration of apparatus for measuring volume, volume flow or liquid level or for metering by volume of flowmeters specially adapted for gas meters
Abstract
The invention provides a self-diagnosis and correction method of a direct-reading mechanical counter with pulse input, which comprises the following steps: step one, setting delta, delta n and delta x; step two, initializing a counter; step three, obtaining mechanical transmission and pulse signals related to the volume of the fluid passing in the signal acquisition time; step four, acquiring a direct reading value N1 and a pulse count value X1 of the counter; step five, diagnosing and correcting the acquired N1 and X1; and step six, processing overflow flag signals and alarm signals, wherein a pulse count value X0 is a pulse count value X1, a direct-reading value N0 is a direct-reading value N1, outputting the signals, waiting for the next time of signal acquisition, diagnosing and correcting the obtained direct-reading value and the pulse indication value of the mechanical counter by introducing a pulse signal proportional to mechanical transmission, and diagnosing and correcting whether the mechanical counter is abnormal or not on line and outputting reliable metering value information, thereby providing a better diagnosis technology and a diversified diagnosis and correction method, reducing the cost and improving the reliability.
Description
Technical Field
The invention belongs to the field of fluid metering, and particularly relates to a self-diagnosis and correction method of a direct-reading mechanical counter with pulse input.
Background
The direct-reading mechanical counter is applied to an automatic meter reading system, and the existing direct-reading mechanical counter can be divided into two categories according to the signal collecting mode, namely an opposite type and a reflection type, wherein the opposite type comprises an opposite type of a light-transmitting light guide accessory. The opposite type character wheel is provided with a light passing hole, one side surface of the character wheel is provided with a light emitting source, and the other side is provided with a light receiving device. The light emitted by the light source is irradiated on the light receiving device through the light passing hole, and the light receiving device performs photoelectric conversion and decodes and reads the indicating number of each character wheel. The reflection type working principle is the same, except that the character wheel is not provided with a light passing hole, the outer ring of the character wheel is printed with a reflection bar code, a light emitting source irradiates on the reflection bar code, light is reflected to a light receiving device, and accordingly the number on the character wheel is read through decoding. In the correlation type letter-picking method, because the light-emitting sources, the light-receiving devices and the sizes of the light-passing holes of the character wheel discs on the two sides of the character wheel discs, the positions of the character wheel discs and the like have certain deviation, interference possibly exists in light due to scattering, and the reliability of reading is influenced; the reflective letter-picking mode has relatively high reliability although the position deviation of the character wheel disk has some influence. However, both of them have errors in reading codes caused by failure of the light emitting source or the light receiving device or due to positional inaccuracy, etc. However, most direct-reading counters adopt a method of directly reading all bits at present, so that the possibility of misreading is high, and self-diagnosis and correction technologies of the direct-reading counters are not provided in real time, so that better diagnosis and correction technologies are necessarily provided, and the reliability is improved.
Disclosure of Invention
In order to overcome the technical defects, the invention provides a self-diagnosis and correction method of a direct-reading mechanical counter with pulse input, which introduces a pulse signal proportional to mechanical transmission, and outputs a reliable count value after diagnosis and correction.
The invention provides a self-diagnosis and correction method of a direct-reading mechanical counter with pulse input, which comprises the following steps:
step one, setting a maximum allowable error value delta of a direct reading value and a pulse indication value difference, a maximum allowable error value delta n of the direct reading value and a maximum error value delta x of a pulse count value;
initializing a counter, determining a direct reading value N0 of the counter as an indicating value of the instant mechanical counter, and determining a pulse count value X0 as the indicating value of the instant mechanical counter;
setting a period of time as a letter acquisition time, and acquiring mechanical transmission and pulse signals related to the volume of fluid passing from a flow meter in the letter acquisition time;
step four, acquiring a direct reading value N1 of a counter at the moment and a pulse count value X1 at the moment when the timing signal acquisition time is over;
step five, diagnosing and correcting the acquired direct reading value N1 of the counter and the pulse count value X1;
and step six, processing the overflow mark signal and the alarm signal, wherein the pulse count value X0 is a pulse count value X1, the direct reading value N0 is a direct reading value N1, outputting the signal, and waiting for the next time of signal acquisition.
In the fifth step, the process is carried out,
(1) if the difference epsilon between the counter direct reading value N1 and the pulse count value X1 is smaller than the maximum allowable error value delta, the pulse count value X1= the direct reading value N1, and the output value is the counter direct reading value N1;
(2) if the difference epsilon between the counter direct reading value N1 and the pulse count value X1 is greater than or equal to the maximum allowable error value delta, then epsilon = the difference between the counter direct reading value N1 and the counter direct reading value N0 is obtained, and the absolute value | epsilon N | of the difference is compared with deltan,
(2.1) if | epsilon N | < δ N, the pulse count value X1= direct reading value N1, and the output value is the counter direct reading value N1;
(2.2) if the | epsilon | is more than or equal to delta n, judging the positive and negative values of epsilon n;
(2.2.1) if epsilon N is less than 0, setting an overflow flag, wherein the pulse count value X1= direct reading value N1, and the output values are a counter direct reading value N1 and an overflow value signal;
(2.2.2) if the epsilon n is more than or equal to 0, clearing an overflow mark, obtaining a difference epsilon X between a pulse count value X1 and a pulse indication value X0, and comparing the epsilon X with the delta X;
(2.2.2.1) if | epsilon X | < δ X, the direct reading value N1= pulse indication value X1, and the output value is a pulse count value X1;
(2.2.2.2) if the | epsilon x | ≧ delta x, outputting counter alarm information.
The invention has the beneficial effects that: by introducing the pulse signal proportional to the mechanical transmission and diagnosing and correcting the obtained direct reading value and pulse indicating value of the mechanical counter, whether the mechanical counter is abnormal or not can be diagnosed on line, reliable metering numerical value information can be output, better diagnosis technology and diversified diagnosis and correction methods are provided, and therefore cost is reduced and reliability is improved.
Drawings
Fig. 1 is a schematic structural diagram of a mechanical counter with online diagnosis and correction functions to which the present invention is applied.
FIG. 2 is a block flow diagram of the present invention.
FIG. 3 is a block diagram of a self-diagnostic calibration module according to the present invention.
Fig. 4 shows an embodiment of the present invention applied to a flow meter with an online diagnostic function.
Detailed Description
The embodiments of the invention will be further described with reference to the accompanying drawings in which:
as shown in the figure, the invention provides a self-diagnosis and correction method of a direct-reading mechanical counter with pulse input, which comprises the following steps:
step one, setting a maximum allowable error value delta of a direct reading value and a pulse indication value difference, a maximum allowable error value delta n of the direct reading value and a maximum error value delta x of a pulse count value;
initializing a counter, determining a direct reading value N0 of the counter as an indicating value of the instant mechanical counter, and determining a pulse count value X0 as the indicating value of the instant mechanical counter;
setting a period of time as a letter acquisition time, and acquiring mechanical transmission and pulse signals related to the volume of fluid passing from a flow meter in the letter acquisition time;
step four, after the timing signal collecting time is up, simultaneously acquiring a direct reading value N1 and a pulse count value X1 of a counter;
step five, diagnosing and correcting the acquired direct reading value N1 of the counter and the pulse count value X1;
and step six, processing the overflow mark signal and the alarm signal, wherein the pulse count value X0 is a pulse count value X1, the direct reading value N0 is a direct reading value N1, outputting the signal, and waiting for the next time of signal acquisition.
In the fifth step, if the difference epsilon between the counter direct reading value N1 and the pulse count value X1 is smaller than the maximum allowable error value δ, the pulse count value X1= direct reading value N1, and the output is the counter direct reading value N1;
in the fifth step, the process is carried out,
(1) if the difference epsilon between the counter direct reading value N1 and the pulse count value X1 is smaller than the maximum allowable error value delta, the pulse count value X1= the direct reading value N1, and the output value is the counter direct reading value N1;
(2) if the difference epsilon between the counter direct reading value N1 and the pulse count value X1 is greater than or equal to the maximum allowable error value delta, then epsilon = the difference between the counter direct reading value N1 and the counter direct reading value N0 is obtained, and the absolute value | epsilon N | of the difference is compared with deltan,
(2.1) if | epsilon N | < δ N, the pulse count value X1= direct reading value N1, and the output value is the counter direct reading value N1;
(2.2) if the | epsilon | is more than or equal to delta n, judging the positive and negative values of epsilon n;
(2.2.1) if epsilon N is less than 0, setting an overflow flag, wherein the pulse count value X1= direct reading value N1, and the output values are a counter direct reading value N1 and an overflow value signal;
(2.2.2) if the epsilon n is more than or equal to 0, clearing an overflow mark, obtaining a difference epsilon X between a pulse count value X1 and a pulse indication value X0, and comparing the epsilon X with the delta X;
(2.2.2.1) if | epsilon X | < δ X, the direct reading value N1= pulse indication value X1, and the output value is a pulse count value X1;
(2.2.2.2) if the | epsilon x | ≧ delta x, outputting counter alarm information.
The invention also provides a direct-reading mechanical counter, which comprises a shell 7, wherein a character wheel 1 of the mechanical counter is arranged in the shell, the character wheel 1 of the mechanical counter rotates through mechanical transmission, a character wheel direct-reading circuit 5 reads the numerical value on the character wheel at regular time and transmits the numerical value to a microprocessor 4, and the method comprises the following steps: the character wheel is provided with a light passing hole, one side surface of the character wheel is provided with a light emitting source, and the other side surface of the character wheel is provided with a light receiving device. The light emitted by the light source is irradiated on the light receiving device through the light passing hole, and the light receiving device performs photoelectric conversion and decodes and reads the indicating number of each character wheel. The hole is coded, for example, by 8421, so that the character wheel position is known and the displayed number is obtained. The reflective type does not have holes and is transmitted and received by the bar code; the pulse shaping circuit 6 shapes the input pulse signal proportional to the mechanical transmission and transmits the shaped waveform to the microprocessor; the microprocessor processes the signals according to the steps of the method of the invention, and the signal information and the alarm information are respectively transmitted by the signal output module 3 and the alarm signal output module 2. By introducing the pulse signal proportional to the mechanical transmission and diagnosing and correcting the obtained direct reading value and pulse indication value of the mechanical counter, the invention can diagnose whether the mechanical counter is abnormal on line and output reliable information of the metering value.
Fig. 4 shows a gas flowmeter (hereinafter referred to as a direct-reading gas flowmeter) with a self-diagnosis and calibration method direct-reading mechanical counter, to which the technique of the present invention is applied. In fig. 4, a direct-reading mechanical counter with self-diagnosis and correction method is mechanically and electrically connected with a gas flow meter 16 through a transmission gear 14 and a cable 13, a low-frequency generator 17 converts mechanical energy which is proportional to the medium flow into a pulse signal, and the pulse signal is processed by a low-frequency signal module 15 and is used as a pulse input source of the direct-reading mechanical counter through the cable 13; the mechanical energy proportional to the medium flow is coupled by a transmission gear and is transmitted to the direct-reading mechanical counter to be used as the rotational kinetic energy of the character wheel 1 of the mechanical counter. The character wheel direct reading circuit 5 directly reads each bit reading of the character wheel 1 of the mechanical counter; the oil pump system 18 lubricates various mechanical transmission parts; according to the method, the pulse signal proportional to mechanical transmission is introduced, and the obtained direct reading value and pulse indicating value of the mechanical counter are diagnosed and corrected, so that whether the mechanical counter is abnormal or not can be diagnosed on line, reliable metering value information is output, better diagnosis technology and a diversified diagnosis and correction method are provided, the cost is reduced, and the reliability is improved.
The examples should not be construed as limiting the present invention and any modifications made based on the spirit of the present invention should be covered within the scope of protection of the present invention.
Claims (1)
1. A self-diagnosis and correction method of a direct-reading mechanical counter with pulse input is characterized in that: which comprises the following steps:
step one, setting a maximum allowable error value delta of a direct reading value and a pulse indication value difference, a maximum allowable error value delta n of the direct reading value and a maximum error value delta x of a pulse count value;
initializing a counter, and determining that a direct reading value N0 of the counter is an indication value of an instant mechanical counter, and a pulse count value X0 is an indication value of an instant pulse counter;
setting a period of time as a letter acquisition time, and acquiring mechanical transmission and pulse signals related to the volume of fluid passing from a flow meter in the letter acquisition time;
step four, acquiring a direct reading value N1 of a counter at the moment and a pulse count value X1 at the moment when the timing signal acquisition time is over;
step five, diagnosing and correcting the acquired direct reading value N1 of the counter and the pulse count value X1;
step six, processing the overflow mark signal and the alarm signal, modifying the pulse count value X0 into a pulse count value X1, modifying the direct reading value N0 into a direct reading value N1, outputting the signal, waiting for the next time of acquiring the signal,
in the fifth step, the process is carried out,
(1) if the difference epsilon between the counter direct reading value N1 and the pulse count value X1 is smaller than the maximum allowable error value delta, the pulse count value X1= the direct reading value N1, and the output value is the counter direct reading value N1;
(2) if the difference epsilon between the counter direct reading value N1 and the pulse count value X1 is greater than or equal to the maximum allowable error value delta, then epsilon = the difference between the counter direct reading value N1 and the counter direct reading value N0 is obtained, and the absolute value | epsilon N | of the difference is compared with deltan,
(2.1) if | epsilon N | < δ N, the pulse count value X1= direct reading value N1, and the output value is the counter direct reading value N1;
(2.2) if the | epsilon | is more than or equal to delta n, judging the positive and negative values of epsilon n;
(2.2.1) if epsilon N is less than 0, setting an overflow flag, wherein the pulse count value X1= direct reading value N1, and the output values are a counter direct reading value N1 and an overflow value signal;
(2.2.2) if the epsilon n is more than or equal to 0, clearing an overflow mark, obtaining a difference epsilon X between a pulse count value X1 and a pulse indication value X0, and comparing the epsilon X with the delta X;
(2.2.2.1) if | epsilon X | < δ X, the direct reading value N1= pulse indication value X1, and the output value is a pulse count value X1;
(2.2.2.2) if the | epsilon x | ≧ delta x, outputting counter alarm information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810648855.3A CN108844602B (en) | 2018-06-22 | 2018-06-22 | Self-diagnosis and correction method of direct-reading mechanical counter with pulse input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810648855.3A CN108844602B (en) | 2018-06-22 | 2018-06-22 | Self-diagnosis and correction method of direct-reading mechanical counter with pulse input |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108844602A CN108844602A (en) | 2018-11-20 |
CN108844602B true CN108844602B (en) | 2020-01-10 |
Family
ID=64202132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810648855.3A Active CN108844602B (en) | 2018-06-22 | 2018-06-22 | Self-diagnosis and correction method of direct-reading mechanical counter with pulse input |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108844602B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE3618950A1 (en) * | 1986-06-05 | 1987-12-10 | Diessel Gmbh & Co | Flow-measuring device |
FR2655155A1 (en) * | 1989-11-30 | 1991-05-31 | Mecelec Sa | Electrical device for the remote measurement of energy consumption, particularly a consumption of gas |
CN101893464A (en) * | 2010-06-23 | 2010-11-24 | 宁波明泰流量设备有限公司 | High-precision and fast pulse metering device and method thereof |
CN105784015A (en) * | 2016-03-15 | 2016-07-20 | 天信仪表集团有限公司 | Gas turbine flowmeter |
CN106989790A (en) * | 2017-05-17 | 2017-07-28 | 成都千嘉科技有限公司 | A kind of pulse reading photo-electronic directly reading combines gas meter, flow meter |
-
2018
- 2018-06-22 CN CN201810648855.3A patent/CN108844602B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE3618950A1 (en) * | 1986-06-05 | 1987-12-10 | Diessel Gmbh & Co | Flow-measuring device |
FR2655155A1 (en) * | 1989-11-30 | 1991-05-31 | Mecelec Sa | Electrical device for the remote measurement of energy consumption, particularly a consumption of gas |
CN101893464A (en) * | 2010-06-23 | 2010-11-24 | 宁波明泰流量设备有限公司 | High-precision and fast pulse metering device and method thereof |
CN105784015A (en) * | 2016-03-15 | 2016-07-20 | 天信仪表集团有限公司 | Gas turbine flowmeter |
CN106989790A (en) * | 2017-05-17 | 2017-07-28 | 成都千嘉科技有限公司 | A kind of pulse reading photo-electronic directly reading combines gas meter, flow meter |
Non-Patent Citations (1)
Title |
---|
HG1963型自校准数字多用表及其模数转换;顾慰君;《电测与仪表》;19900131(第01期);第3-9页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108844602A (en) | 2018-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103134562A (en) | Method for directly reading mechanical metering device by utilizing optical path | |
CN107013421B (en) | Method and system for measuring rotation speed of impeller of wind generating set | |
CN101308550B (en) | Counting digit wheel radial transmitting photoelectric direct-reading apparatus of long distance transmitting meter | |
CN108844602B (en) | Self-diagnosis and correction method of direct-reading mechanical counter with pulse input | |
CN209820558U (en) | Real-time coding direct-reading remote water meter | |
CN101629861A (en) | Torque rotary speed sensor | |
CN100483080C (en) | Image direct-read method for character barcode computation indicated character wheel | |
CN108036843B (en) | Method for detecting indication value error of gas meter | |
CN106650908B (en) | Axial reflection type photoelectric direct-reading device | |
CN102607662A (en) | Laser counting method and laser counting system of wheel type metering instrument | |
CN200941053Y (en) | Device for converting mechanical reads of meter into digital electrical signals | |
CN208269993U (en) | Direct-reading mechanical counter rotz flowmeter | |
CN201885767U (en) | Passive photoelectric counting sensor of metering instrument | |
CN101592500B (en) | Four-position angle coder | |
CN114088170B (en) | Water meter photoelectric direct-reading circuit board testing device and testing method | |
CN106949939B (en) | Gas turbine flowmeter with double high-frequency detection | |
CN203908568U (en) | Reading device of mechanical counter wheel and remote metering device | |
CN208269981U (en) | Direct-reading mechanical counter turbine flowmeter | |
CN214846824U (en) | Anti-cheating sensor for taximeter | |
CN202978859U (en) | Device for enabling encoder to resist interference | |
CN213021765U (en) | Rising direct-reading water meter | |
CN104201944A (en) | Interface circuit provided with optical fiber interface and used for detecting velocity and position of high-voltage synchronous motor | |
CN2852057Y (en) | Counter capable of measuring reverse flow | |
CN113848345B (en) | Main pump rotating speed signal processing method and system based on digital logic hardware circuit | |
CN201607239U (en) | Encoding counter for remote-transmitting meter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Self diagnosis and Correction Method of Direct Reading mechanical counter with Pulse Input Effective date of registration: 20230423 Granted publication date: 20200110 Pledgee: Bank of China Limited by Share Ltd. Cangnan County branch Pledgor: Tancy Instrument Group Co.,Ltd. Registration number: Y2023330000782 |