The numerical transformation method of electromechanical integration counter
Technical field
The present invention relates to the number system of a kind of application machine, electric power, electronic counter, specifically is the electromechanics storage and the display packing of a kind of method of discerning mechanical rotary-type counter and data conversion, data.
Background technology
Mechanical rotary-type counter is widely used on water meter, ammeter, gas meter, flow meter and other accumulative total formula measuring instrument, because my patent of invention " electronic digitalizing read method of the mechanical rotary-type counter " (patent No.: ZL00105255.1, U.S. Patent number: US 6,712,263 B2) concrete application, having formed a kind of new product (comprising a large amount of pirate products) in recent years is that so-called code-type direct-reading gage is applied to water, electricity, combustion gas field in large quantities, and has begun to replace pulse meter and become teletransmission polling list of new generation.
Mechanical rotary-type counter has a very wide range of applications at metering field, but also has some shortcomings:
1. be subjected to the influence of machine work precision and the restriction of measuring instrument size, its figure place can not be too many, generally speaking, to 8 just near the limit.This has influenced its application on the big number measuring instrument of metering (as the large pipeline flowmeter).
2. be subjected to the influence of friction force, bigger than normal to metering (as the low discharge of water meter, the little electric current of the ammeter) error of small-signal incident.This is especially big for the error effect that resembles in the flow metering that amass low flow velocity, heavy in section in the hydraulic department.
When the slow-speed of revolution when (corresponding be the small-signal incident) and high rotating speed (corresponding is high-velocity fluid, as current, when air-flow or big electric current) because the nonlinearity erron of the effect generation of friction force has limited the range and the confidence level thereof of instrument.
4. because mechanical rotary-type counter is strict machinery metering, and for different size, the instrument of different cultivars all must design the gear train that different drive ratios is arranged when inserting counter, to guarantee the accuracy of metering.Like this,, need many different gear trains making the instrument of a series, mould and the processing capacity that must make increase considerably, this had both increased input and cost, had also prolonged the construction cycle.
5. in real world applications, the fluid metering of some large-scale pipelines owing to the nonstandard parasexuality of its size, can not have the mechanical measuring instrument of the ratio of gear that is consistent in advance.Thereby make that the measuring instrument of mechanical counter prototype can't be used in this field.
Summary of the invention
The objective of the invention is to overcome above-mentioned shortcoming, a kind of transform method of electronics numerical value is provided, and simplify mechanical transmission mechanism with this digital conversion, to become the Electronic Calibration mode to the calibrating mode of instrument, improve precision, expand range, make mechanical rotary-type counter that more extensive, more convenient, more economical application be arranged.
The technical solution used in the present invention is:
At first be to extend on the basis of patent of invention " electronic digitalizing read method of mechanical rotary-type counter " (patent No.: ZL00105255.1, U.S. Patent number: US 6,712,263 B2) and expand at me.
The counter that is constituted with the electronic digit read method of mechanical rotary-type counter is as the mechanical type data-carrier store of accumulative total formula measuring instrument, and the intermediate result of storage metering just can obtain final correct result after the electronic data conversion.
The data of storage only are intermediate result, need just can obtain net result through mapping transformation Y=f (X), wherein X is that storer is read number, Y is a net result, its the most direct application is linear transformation Y=kX, wherein k is that purposes, range, manufacture craft according to each concrete instrument determines, the coefficient of determining through reality test comparison;
The not electricity consumption of data storage of metering process, only electricity consumption when reading.
The dynamo-electric storage mode that mixes of The data, promptly some positions of Ji Liang intermediate result are by the rotary-type counter storage, and some positions combine complete variable by the electronic method storage according to certain rules by both; Also be storing with mechanical type of lower-order digit (often change in the metering process), seniority (seldom changing) is stored with electronics.
Utilize electronics numerical value k to replace gear train and make series of products and do not need to do variation on mechanically the especially ratio of gear, realized and need only change the k value because of the difference of range or usable range.
Utilize local range to infer the k value, reach the raising measuring accuracy, open up wide range relatively, promptly to each concrete measuring instrument, only its concrete necessary range ability is carried out the k value and infer, the method for inferring can be with least square method or other mathematical model, after manually determining, data-interface by instrument writes in the instrument, uses when calculating net result for instrument.
The instrument of making according to the present invention has following characteristics:
1. manufacturing process is oversimplified, and the instrument of different size no longer needs different gear combination, and only needs a full-height tooth train just enough, and the instrument of different size only needs to change a k value and just can realize metering exactly.
2. calibrating indicating instrument need not use mechanical means, carries out as gear changing more or the means such as physical location that change the parts of a certain influence metering.And only be change k value just can, this is on production line or comparison all provides great convenience in debugging at the scene.
3. still having kept does not need this great advantage of charged metering, is much better than the picture ultrasonic flow meter in this, the instrument that the dependence electric energy of this class of electromagnetic flowmeter measures.
4. same instrument according to the needs of its concrete application scenario, is only carried out the best to the k value of the measures range that may occur and is inferred, and makes error in dipping become minimum.For example: flowmeter is installed in only to be needed to carry out the k value to flow velocity higher flows point when carrying out water metering on the water pump pipe and infers.And the error that need not to consider to hang down flow velocity point is inferred otherwise then only need to carry out the k value to low flow velocity point in the gravity flow pipeline.Make and be expected to make the measuring accuracy of this class instrument in concrete measures range, to be significantly improved in this way.
5. the employing mechano-electronic mixes storage accumulative total digital mode, makes big number accumulative total numeral obtain permanent preservation reliably.
Description of drawings
Fig. 1 is the dynamo-electric logic schematic diagram that mixes storage accumulative total numeral.
Embodiment
Implementation method of the present invention is undertaken by following design:
1. the instrument of a series only needs to set a fixing pinion unit and counter interlock, and the metering numeral of counter is not the net result as metering.
2. utilize the method among my the patent ZL00105255.1 that accumulative total in the counter is read.Be made as X then, finally measure the result and just can obtain net result for Y meets Y=f (X).Wherein X is the counter read number, and Y is a net result, and Y is as the function of X.Its most direct application is linear transformation Y=kX.Wherein the k value is called mapping coefficient.Its role is to convert the accumulated result of counter to final metering result.Final metering Y value is as a result shown by electronics mode (as charactron or LCD panel).
Inferring of k value, can by orientation ratio to and utilize mathematical measure such as least square method to obtain optimization and infer.
The calculating of Y value, can utilize the same single-chip microcomputer that is used for the identification and counting machine reading to carry out (can certainly carry out with special-purpose single-chip microcomputer) and the default value of k value is 1. will revise the k value, and communication interface that can be by this instrument is by the external computer electronic memory such as the E of instrument of writing direct that send instructions
2Carry out permanent preservation among the PROM, for calling at any time.
3. adopt mechano-electronic to mix storage accumulative total digital mode: mechanical counter with and electronic read-out device (being the structure among the patent ZL00105255.1) formed a mechanical type storer, the characteristics of this storer are that (promptly in metering process) do not need electricity consumption in the stored digital process, only by medium such as the current of being measured, just air-flow comprises also that certainly the rotation of the mobile drive counter of electric current finishes naturally.
Only when being read, counter just needs electricity consumption.(with 4 digit counters is example: go to 9999 backs) just periodically gets back to 0000 behind the full lattice of mechanical counter, and this needs twice reading number in front and back compared just can judge whether to produce data and overflow.For example, one time read number is Y, and after the some time, read number is X.If satisfy Y>>X.Then up-to-date reading should be 10000+X.The seniority 1 that is overflowed should specify ad hoc the location to store in electronic memory.With regard to general, if number of counter bits is the N position, the seniority of electronics storage is M (initial value M=0) when when mechanical counter reads as X, then the reading X=M*10 of whole dynamo-electric storer
N+ X.
If Y is the reading of last time, and satisfy Y>>X then decidable be that mechanical counter overflows.M needs carry.Whole logical process is seen accompanying drawing 1.
Example: infer the k value with least square method
Stage property: wait to infer one in k value MD flowmeter, with reference to using one in portable supersonic flowmeter.
The MD flowmeter has been installed on the pipe under test, and k value default value is 1
Successively to n different flow point a
1A
nCarry out actual test comparison, two flowmeters draw respectively is recorded as x
1X
nAnd x
1 1X
n 1
If y=kx satisfies
α
2Minimum
To the k differentiate
Thus the method k value of inferring can protect the metering performance of MD flowmeter with reference to flow in respect of best-fit.As long as the reference system flowmeter is enough accurate, the MD flowmeter obtains best approaching by the change of k value, and passes through α
2Calculating, the assessment that can draw the discreteness of this flowmeter.