CN113670427A - Weighing self-correcting method, processing module, weighing device and storage medium - Google Patents

Weighing self-correcting method, processing module, weighing device and storage medium Download PDF

Info

Publication number
CN113670427A
CN113670427A CN202110987815.3A CN202110987815A CN113670427A CN 113670427 A CN113670427 A CN 113670427A CN 202110987815 A CN202110987815 A CN 202110987815A CN 113670427 A CN113670427 A CN 113670427A
Authority
CN
China
Prior art keywords
medicine
quality
weighing
actual
value
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.)
Pending
Application number
CN202110987815.3A
Other languages
Chinese (zh)
Inventor
张佳璇
张能军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Nubomed Technology Co Ltd
Original Assignee
Shenzhen Nubomed Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Nubomed Technology Co Ltd filed Critical Shenzhen Nubomed Technology Co Ltd
Priority to CN202110987815.3A priority Critical patent/CN113670427A/en
Publication of CN113670427A publication Critical patent/CN113670427A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G23/00Auxiliary devices for weighing apparatus
    • G01G23/01Testing or calibrating of weighing apparatus
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/40Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight
    • G01G19/42Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight for counting by weighing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G3/00Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances
    • G01G3/12Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing
    • G01G3/14Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing measuring variations of electrical resistance
    • G01G3/1414Arrangements for correcting or for compensating for unwanted effects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G3/00Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances
    • G01G3/12Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing
    • G01G3/14Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing measuring variations of electrical resistance
    • G01G3/1414Arrangements for correcting or for compensating for unwanted effects
    • G01G3/1418Arrangements for correcting or for compensating for unwanted effects for temperature variations
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G3/00Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances
    • G01G3/12Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing
    • G01G3/14Weighing apparatus characterised by the use of elastically-deformable members, e.g. spring balances wherein the weighing element is in the form of a solid body stressed by pressure or tension during weighing measuring variations of electrical resistance
    • G01G3/142Circuits specially adapted therefor
    • G01G3/147Circuits specially adapted therefor involving digital counting

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)

Abstract

The application discloses method, processing module, weighing device and storage medium of weighing self-calibration, relate to the technical field of weighing, and wherein the method of weighing self-calibration includes: acquiring first actual qualities of a plurality of medicine groups and a standard quality of a preset single medicine; the drug group comprises a plurality of drugs; dividing each first actual quality by the standard quality and rounding to obtain the number of medicines of the medicine group corresponding to the first actual quality; obtaining a second actual mass of a single medicine according to the first actual mass of each medicine group and the number of the medicines corresponding to the medicine group; and re-determining the standard quality according to the difference value of the standard quality and the second actual quality. This application can be when selecting low-cost, the less sensor of precision, and the single quality of self-correction medicine counts the medicine more accurately.

Description

Weighing self-correcting method, processing module, weighing device and storage medium
Technical Field
The application relates to the technical field of weighing, in particular to a weighing self-correcting method, a processing module, an electronic scale and a readable storage medium.
Background
When products such as hospital drug cabinets and the like are used, the drug medical products need to be counted to judge the using state of the drugs, the counting aiming at the drug medical products is mainly realized by weighing, a pressure sensor is needed to be used for weighing, the precision of the weighing pressure sensor is closely related to the cost of the pressure sensor, on the premise that the precision of the weighing pressure sensor is certain, if a single object to be weighed is light, the maximum weighing weight is smaller, if the single object to be weighed is light, the weighing quantity is larger, namely the maximum weighing weight is also larger, only a high-precision sensor can be selected, but the cost of the weighing pressure sensor is increased sharply, if the sensor with low cost and small precision is selected, the single object to be weighed is light, the large number of objects need to be weighed, the weighing result is influenced by the physical properties of the weighing device and the weighing environmental factors, the counting error is larger, and the weighing counting result is wrong.
Disclosure of Invention
The present application is directed to solving at least one of the problems in the prior art. Therefore, the application provides a weighing self-correcting method, a processing module, a weighing device and a storage medium, which can automatically correct the mass of a single medicine when a sensor with low cost and small precision is selected, and can count the medicines more accurately.
In a first aspect, the present application provides a method for self-correcting weighing, comprising:
acquiring first actual qualities of a plurality of medicine groups and a standard quality of a preset single medicine; the drug group comprises a plurality of drugs;
dividing each first actual quality by the standard quality and rounding to obtain the number of medicines of the medicine group corresponding to the first actual quality;
obtaining a second actual mass of a single medicine according to the first actual mass of each medicine group and the number of the medicines corresponding to the medicine group;
and re-determining the standard quality according to the difference value of the standard quality and the second actual quality.
The weighing self-correcting method according to the embodiment of the first aspect of the application has at least the following beneficial effects: the method comprises the steps of obtaining first actual quality of a plurality of medicine groups, calculating the number of medicines of each medicine group according to the first actual quality and preset single standard quality of the medicines, obtaining second actual quality of the single medicines according to the first actual quality and the number of the medicines corresponding to the medicine groups, judging whether the standard quality needs to be determined again according to the difference value of the standard quality and the second actual quality, and realizing more accurate counting of the medicines when a sensor with low cost and smaller precision is selected by automatically correcting the single quality of the medicines.
According to some embodiments of the first aspect of the present application, said re-determining the standard quality based on a difference between the standard quality and the second actual quality comprises: acquiring a preset lower limit threshold; and if the difference is smaller than the lower threshold, the standard quality is not updated.
According to some embodiments of the first aspect of the present application, said re-determining the standard quality based on a difference between the standard quality and the second actual quality further comprises: acquiring a preset upper limit threshold; wherein the upper threshold is greater than the lower threshold; and if the difference value is larger than the upper limit threshold value, the standard quality is not updated.
According to some embodiments of the first aspect of the present application, said re-determining the standard quality based on a difference between the standard quality and the second actual quality further comprises: if the continuous N difference values are larger than the lower limit threshold and smaller than the upper limit threshold, the standard quality is updated to be an average value of the corresponding N second actual qualities; wherein, the value of N is calculated according to the factory weight error of the medicine.
Some embodiments according to the first aspect of the present application further comprise: acquiring a preset overweight threshold; and if the first actual quality is larger than the overweight threshold, giving an early warning to the drug group.
Some embodiments according to the first aspect of the present application further comprise: determining the setting range of the lower limit threshold according to the maximum medicine weighing number and the standard mass; the maximum medicine weighing number is the maximum number of medicines which can be weighed by the weighing device; and determining the upper threshold setting range according to the maximum error value of the quality of the single medicine.
Some embodiments according to the first aspect of the present application further comprise: obtaining the maximum medicine quality and the minimum number of error medicines generated by the single medicine according to the standard quality and the preset maximum error value of the medicine quality; and determining the setting range of the overweight threshold according to the error medicine numerical value and the maximum medicine quality.
In a second aspect, the present application further provides a processing module, including: at least one memory; at least one processor; at least one program; the program is stored in the memory and the processor executes at least one of the programs to implement a method of weight self-correction as defined in any one of the embodiments of the first aspect.
According to the processing module of the embodiment of the second aspect of the application, at least the following advantages are achieved: the method comprises the steps of obtaining first actual qualities of a plurality of medicine groups, calculating the number of medicines of each medicine group according to the first actual qualities and preset single standard qualities of the medicines, obtaining second actual qualities of the single medicines according to the first actual qualities and the numbers of the medicines corresponding to the medicine groups, judging whether the standard qualities need to be determined again according to the difference values of the standard qualities and the second actual qualities, and counting the medicines more accurately in a mode of automatically correcting the single qualities of the medicines.
In a third aspect, the present application further provides a weighing apparatus, including the processing module and the load cell as described in the second aspect, the load cell includes a strain gauge and a bridge circuit connected to the strain gauge, the strain gauge generates strain through stress generated by the weighing object and generates a variable resistance value through the strain, and the load cell outputs a voltage value through the bridge circuit according to the variable resistance value of the strain gauge and displays the voltage value as a weighing value.
In a fourth aspect, the present application further provides a computer-readable storage medium having stored thereon computer-executable signals for performing the method of weight self-correction according to any one of claims 1 to 7.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a method of weight self-correction provided by one embodiment of the present application;
FIG. 2 is a flow chart of a method of weight self-correction provided by another embodiment of the present application;
FIG. 3 is a flow chart of a method of weight self-correction provided by another embodiment of the present application;
FIG. 4 is a flow chart of a method of weight self-correction provided by another embodiment of the present application;
FIG. 5 is a flow chart of a method of weight self-correction provided by another embodiment of the present application;
FIG. 6 is a flow chart of a method of weight self-correction provided by another embodiment of the present application;
FIG. 7 is a schematic diagram of a processing module provided by one embodiment of the present application;
FIG. 8 is a schematic view of a weighing apparatus provided in accordance with one embodiment of the present application;
FIG. 9 is a schematic diagram of a bridge circuit of a prior art load pressure sensor;
FIG. 10 is a graph of zero drift for a prior art load pressure sensor;
FIG. 11 is a graph of prior art load pressure sensors with respect to 20kg drift data;
fig. 12 is a graph showing creep temperature drift of a conventional weighing pressure sensor.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, it is to be understood that the positional descriptions, such as the directions of up, down, front, rear, left, right, etc., referred to herein are based on the directions or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, and do not indicate or imply that the referred device or element must have a specific direction, be constructed and operated in a specific direction, and thus, should not be construed as limiting the present application.
In the description of the present application, if there are first and second described only for the purpose of distinguishing technical features, it is not understood that relative importance is indicated or implied or that the number of indicated technical features or the precedence of the indicated technical features is implicitly indicated or implied.
In the description of the present application, unless otherwise expressly limited, terms such as set, mounted, connected and the like should be construed broadly, and those skilled in the art can reasonably determine the specific meaning of the terms in the present application by combining the detailed contents of the technical solutions.
In a first aspect, referring to fig. 1, fig. 1 is a flowchart of a method for self-calibration in weighing provided by an embodiment of the present application, which includes, but is not limited to, step S110, step S120, step S130, and step S140:
step S110: acquiring first actual qualities of a plurality of medicine groups and a standard quality of a preset single medicine; the drug group comprises a plurality of drugs;
step S120, dividing each first actual quality by the standard quality and then rounding to obtain the number of the medicines of the medicine group corresponding to the first actual quality;
step S130: obtaining a second actual mass of a single medicine according to the first actual mass of each medicine group and the number of medicines corresponding to the medicine group;
step S140: and re-determining the standard quality according to the difference value of the standard quality and the second actual quality.
The method comprises the steps of obtaining first actual mass of a plurality of medicine groups through a weighing pressure sensor, calculating the number of medicines of each medicine group according to the first actual mass and preset single standard mass of the medicines, obtaining second actual mass of the single medicines according to the first actual mass and the number of the medicines corresponding to the medicine groups, judging whether the standard mass needs to be determined again according to the difference value of the standard mass and the second actual mass, and counting the medicines more accurately in a mode of automatically correcting the single mass of the medicines.
It will be appreciated that the first actual mass W of the plurality of drug groups to each drug group is obtained by a weighing pressure sensor1,W2,W3,W4,W5The number of the medicine groups is not limited herein, and the more medicine groups are used for correction, the more accurate the correction result is, i.e. the more accurate the correction can be made by obtaining more data of the first actual mass through more medicine groups, for example, W6,W7...Wn. Measured first actual mass W1=25.8,W2=26.2,W3=26.3,W4=26.5,W527, according to the standard specification of the drug delivery, the standard quality W of a single drug is preset02.63, calculating the number N of the medicines of each medicine group according to the first actual quality and the standard qualitynWherein N isn=Wn/W0I.e. N1=9.81,N2=9.96,N3=10,N4=10.08,N5Since the number of medicines is an integer 10.27, the calculated number of medicines is processed by rounding, that is, N1=10,N2=10,N3=10,N4=10,N 510. According to the first actual mass W of each drug groupnNumber of medicines N corresponding to medicine groupnObtaining a second actual mass W 'of the single drug'n,W’n=Wn/NnI.e. the calculated second actual mass of a single drug is W'1=2.58,W’2=2.62,W’3=2.63,W’4=2.65,W’52.70. And re-determining the standard quality according to the difference value between the standard quality and the second actual quality so as to accurately count the medicines subsequently. Wherein, the difference value delta W'n=|W’n-W0L according to the obtained Δ W'nTo re-determine the standard quality.
Wherein, weighing pressure sensor produces decurrent pressure according to the gravity of the object that awaits measuring, produces voltage signal according to pressure, then obtains corresponding weight value through the voltage value of measurement, in the normal use, because weighing pressure sensor's physical characteristics, and environmental factor influence, if not calibrating, can lead to utilizing the result of weighing value calculation article to produce great error.
In particular, the weighing pressure sensor used in the embodiment is a pressure sensor with simple structure, low cost and limited precision, and comprises a sensing element, a conversion element, a measuring element and an auxiliary power supply, wherein the sensing element is used for directly sensing the weight of a measured object and outputting other quantities related to the mass of the measured object, such as an elastomer in the resistance strain type weighing sensor 810, the mass of which is expressed by deformation, a transformation element for transforming the output of the sensing element into some kind of easily measurable signal, such as a resistance strain gauge 811 in a resistance strain gauge load cell 810, converts the deformation into a resistance quantity, a measuring element is used to convert an easy-to-measure signal output by the converting element into an electrical signal, such as bridge circuit 812 in resistance strain gauge load cell 810, converts the resistance into an electrical signal and the auxiliary power supply is used to provide a source of energy for the electrical signal output by the measurement element.
The weighing pressure sensor converts pressure into linear corresponding quantity of voltage through a bridge circuit 812 of a strain gauge 811, then converts an analog signal output by the sensor into a digital signal, and finally acquires the weight of the current measurement object by collecting the signal.
The strain is a deformation amount of a material which is elongated or contracted by an external force, and a sensor element which detects the strain by an electric signal is a strain gauge 811, and the resistance is changed by the change of the shape, and the strain gauge 811 utilizes the change of the resistance.
When the metal resistance material is subjected to strain epsilon, the resistance R is changed by the influence of the strain epsilon, and delta R/R is epsilon Ks.
The strain rate Ks is a coefficient indicating the sensitivity of the strain gauge 811, and the strain rate Ks of the cupronickel alloy and the nichrome alloy used for the general strain gauge 811 is about 2.
When the strain gauge 811 is used alone, since the resistance change by the strain gauge 811 is extremely small, the measurement is performed by converting the resistance change into a voltage change.
Referring to fig. 9, in the bridge circuit 812, the resistance value R1 of the strain gauge 811 is bridged with a plurality of resistors, the resistance value changes by stretching or compressing to Δ R (Ω), and the voltage E applied to the bridge circuit changes by Δ R (Ω) due to stretching or compressing to output the voltage E, and E ≈ 1/4 ≈ Δ R/R ∈ Ks E of 1/4 ∈ Ks.
An output voltage e proportional to the resistance change Δ R is obtained, and an output voltage e proportional to the strain gauge 811 is also obtained, and after the minute voltage e is amplified by an amplifier, an analog output is obtained and displayed as weighing data.
The bridge circuit has a simple structure, only needs a plurality of resistors and one strain gauge 811, has low cost, and simultaneously meets certain accuracy and sensitivity.
When using low-cost, low accuracy sensor, relative to high accuracy sensor, to the error more sensitive, its error source mainly includes:
first, repeatability error
The standing was repeated five times for 100g, 1kg, 5kg, 10kg and 15kg, respectively, to obtain the following Table 1, which is a repeatability test table.
Figure BDA0003231320120000061
Figure BDA0003231320120000071
TABLE 1 repeatability test data record sheet
From the repeatability test data sheet of table 1, it can be seen that the repeatability error is within the range of 0.01g to 0.54g, and if the total weight of the weighed items is between 100g and 15kg and the weight of an individual item is within the range of 0.01g to 0.54g, then the results will have at least one error in the counting result with multiple repeated weighing, the error being mainly due to two factors:
errors caused by the physical properties of the sensor, such as repeatability errors caused by the structural design of the sensor and creep errors generated by the selected strain materials;
and B, repeatability errors caused by environmental noise, vibration and the like.
Second, zero drift
Referring to fig. 10, wherein the X-axis of fig. 10 represents the number of times a/D (analog/digital, digital to analog conversion) values are acquired at a preset frequency, which is 10HZ, i.e., 0.1S, the a/D values are acquired once, and the Y-axis represents weight values in g/100. It can be seen from the zero-shift graph that the maximum value of the zero-shift in the test is 0.08g, that is, before each weighing, the zero point can be self-provided with a weighing error of 0.08g, and if the weight of a single article is small, the weighing result has a random counting error of 1 in the vicinity of 0.08 g.
Third, creep temperature drift of sensor
Because weighing pressure sensor can receive the influence of characteristics such as creep, temperature drift to and receive environmental factor influences such as humiture, the output signal of sensor also can produce certain drift, leads to the beat that the result of weighing digit can.
Creep of load cell 810 refers to the characteristic of the sensor that remains constant (e.g., force generating system stability, loading and clamping conditions, etc.) and other variables in a constant environment (e.g., temperature, humidity, etc.), and that the electrical signal output by the sensor changes over time as the sensor rapidly applies a constant load and rapidly removes the constant load.
Referring to fig. 11, wherein the X-axis of fig. 11 represents the number of times a/D (analog/digital, digital to analog conversion) values are acquired at a preset frequency, which is 10HZ, i.e., 0.1S, the a/D values are acquired once, and the Y-axis represents weight values in g/100. As can be seen from the 20kg drift data curve below, the curve has a constantly changing data trend and a rising data trend, and the error is mainly drift error and creep error mixed by temperature, environmental noise, power supply noise, measurement error of the sensor itself and the like.
Referring to fig. 12, wherein the X-axis of fig. 12 represents the number of times a/D (analog/digital, digital to analog conversion) values are acquired at a preset frequency of 10HZ, i.e., 0.1S, the Y-axis represents the weight value in g/100, and the negative value is the value shown after zero point shift. The sensor is influenced by temperature, and the creep temperature drift process occurs under the influence of vibration.
According to the embodiment, the number of the medicines of each medicine group is calculated according to the first actual quality and the preset single standard quality of the medicines, the second actual quality of the single medicines is obtained according to the first actual quality and the number of the medicines corresponding to the medicine group, whether the standard quality needs to be determined again or not is judged according to the difference value of the standard quality and the second actual quality, and the medicines are counted more accurately when the low-cost and low-precision sensors are selected in a mode of automatically correcting the single quality of the medicines.
It is understood that, referring to fig. 2, fig. 2 is a schematic diagram of an embodiment of a refinement procedure of step S140 in fig. 1, and the step S140 includes, but is not limited to, the following steps:
step S210: acquiring a preset lower limit threshold;
step S220: and if the difference is smaller than the lower threshold, the standard quality is not updated.
In one embodiment, the lower threshold A1Set to 0.03, if the standard mass W of the drug0And second actual mass of drug group Δ W'nIs delta W'nLess than a lower threshold A1Then the standard quality is not updated, e.g., difference Δ W 'for the first drug group'1Is 0.02, i.e. Δ W'1<A1And the system judges that the error range is reasonable, namely the error of the second actual quality of the first medicine group is in a tolerable range, the rounded counting result is not influenced, and correction processing is not needed.
It is understood that fig. 3 is a schematic diagram of an embodiment of a refinement procedure of step S140 in fig. 1, and the step S140 includes, but is not limited to, the following steps:
step S310: acquiring a preset upper limit threshold; wherein the upper threshold is greater than the lower threshold;
step S320: and if the difference value is larger than the upper limit threshold value, the standard quality is not updated.
In one embodiment, the upper threshold A2Set to 0.1 if the standard mass W of the drug0And second actual mass of drug group Δ W'nIs delta W'nGreater than an upper threshold A2Then the standard quality is not updated, e.g., difference Δ W 'for the second drug group'2Is 0.12, i.e. Δ W'2<A2The system determines that the second actual mass of the single sample calculated this time is not acceptable, which is caused by an operation error condition or a misplaced drug of other batches, and is not an error range caused by the error of the sensor or the error of the sample itself, and does not need to perform correction processing.
It is understood that step S140 further includes, but is not limited to, the following steps:
if the continuous N difference values are larger than the lower limit threshold and smaller than the upper limit threshold, the standard quality is updated to be an average value corresponding to the N second actual qualities; wherein, the value of N is related to the factory error range of the medicine.
It can be understood that the value of N is related to the error range of the medicine itself, when the number of medicines in the medicine group to be weighed is too large, an accumulated error is generated, which results in inaccurate counting, and if the factory mass error range of a certain medicine is 5% at most, when the number of weighed objects reaches 20, a counting error value of ± 1 or more may be generated, and at this time, N should be set to be less than 20.
In one embodiment, the lower threshold A1Set to 0.03, upper threshold A2Set to 0.1, the drug product is shipped with standard specifications, including standard weight and error range, if the standard mass of a single drug product is W0When the error range is 7.63% to 2.63 ± 0.1%, the maximum delivery mass error of the medicine is 0.2, and the maximum error range is 0.2/2.62 × 100%, then when the number of weighed articles reaches 14, the number of counting errors of ± 1 and more may be generated, N should be set to be less than 14, where N is 10, that is, the number of consecutive 10 differences satisfies greater than 0.03 and less than 0.1, and then the average value of the second actual masses corresponding to the 10 differences is used as the standard mass of a single medicine. For example, in the primary correction, the obtained error Δ W'n0.05, 0.01, 0, 0.02, 0.07, … …, wherein the error value is 0.05 in the range of 0.03 to 0.1, but does not satisfy the continuous 10 error intervals [0.03, 0.1%]In between, no correction processing is performed at this time. For example, in another correction, the obtained error Δ W'n0.01, 0.03, 0.04, 0.05, 0.04, 0.06, 0.07, 0.06, 0.06, 0.07, 0.06, … …, respectively, wherein the individual drug errors Δ W 'for the first set of drug groups'1Less than a lower threshold A1Is not treated, and is Δ W'2To delta W'11The errors of the single medicines of the continuous 10 groups are all in the interval of [0.03,0.1 ]]Within, the standard mass of the individual drug needs to be adjusted, and Δ W 'is calculated'2To delta W'11W 'is calculated as the average value of the second actual masses of the corresponding drugs'2To W'11The average value of (2.66+2.67+2.68+2.67+2.69+2.7+2.69+2.69+2.7+2.69)/10 is 2.684, the standard mass W of the single drug substance0From 2.63 to 2.684.
Referring to fig. 4, the method for self-correcting weighing provided by the present application further includes, but is not limited to, the following steps:
step S410: acquiring a preset overweight threshold;
step S420: if the first actual mass is greater than the overweight threshold, the drug group is warned.
It can be understood that when the number of drugs in the drug groups measured twice is different before uncorrecting, for example, the previous drug group contains 10 drugs, and the next drug group contains 50 drugs, a large accumulated error may occur before correction, resulting in a counting error. For example, the factory standard quality W of an individual drug02.63, and the actual mass of the drug is 2.70, but the standard mass correction has not been started yet, and when the user puts more than 20 drugs at a time as one drug group to measure, the number N of the calculated drugs is calculatednIf an error occurs, the above calculation method can yield the number of medicines of 2.7 × 20/2.63 ≈ 20.53 ≈ 21, that is, if the calculated number of medicines is 21, which does not match the actual number of medicines, the error is easily caused in the correction process. In order to avoid the situation, the first actual mass of the medicine group is detected and judged during each weighing and counting, an error may be caused by presetting an overweight threshold Y, if the first actual mass is larger than the overweight threshold Y, namely if the first actual mass is used for carrying out the next calculation, and for the accuracy of data correction, the medicine group is not corrected, and early warning is carried out in a certain warning mode.
It is to be understood that the data correction decision is only continued for the group of drugs when the difference between the standard mass and the second actual mass is within the interval between the lower threshold and the upper threshold and the first actual mass of the group of drugs is greater than the overweight threshold.
Referring to fig. 5, the method for self-correcting weighing provided by the present application further includes, but is not limited to, the following steps:
step S510: determining the setting range of a lower limit threshold according to the maximum medicine weighing number and the standard mass; the maximum number of medicines to be weighed is the maximum number of medicines that the weighing device 800 can weigh.
Specifically, the maximum lower limit threshold is calculated by a first formula, wherein the first formula is
Figure BDA0003231320120000101
Wherein L is the upper limit drug value counted by the weighing device 800, which is related to the maximum measuring range of the weighing device 800 and the maximum volume of the weighing device 800 capable of containing drugs, in this embodiment, the upper limit drug value L counted by the weighing device 800 is 150, and the maximum lower limit threshold value is 0.0086. Since the present counting method rounds the orders after the decimal point, the right side of the first calculation formula is L +0.49, and depending on the specific measurement accuracy, the right side of the first calculation formula may be L +0.4 or L +0.499, and the present invention is not limited herein.
Step S520: and determining an upper threshold setting range according to the maximum error value of the quality of the single medicine.
Specifically, the maximum upper threshold is calculated by a second formula, wherein the second formula is
A2=ΔW;
Wherein Δ W is the maximum mass difference from the standard mass, if the standard mass W of a single drug is W02.63 ± 0.1, the maximum upper threshold a2Is 0.1.
Referring to fig. 6, the method for self-correcting weighing provided by the present application further includes, but is not limited to, the following steps:
step S610: obtaining the maximum medicine quality and the minimum number of error medicines generated by a single medicine according to the standard quality and the preset maximum quality error value of the medicines;
step S620: and determining the setting range of the overweight threshold according to the error medicine numerical value and the maximum medicine quality.
Specifically, the maximum overweight threshold Y is obtained by calculating a third formula, wherein the third formula is
Y=N·(M0)max
Wherein N is the minimum number of error medicines, if the standard quality W of a single medicine0When the preset maximum mass error of the medicine is 0.1, the value of N is 14, namely the value is 2.63 +/-0.1Indicating that when 14 items are weighed, a count error of + -1 and more (M) is possible0)maxFor maximum drug quality, (M) in this example0)maxIf 2.73 is taken, the maximum set overweight threshold Y is 38.22.
In a second aspect, the present application further provides a processing module 700, where the processing module 700 includes: one or more memories 720; one or more processors 710; one or more programs, stored in the memory 720, that are executed by the processor 710 to implement the weight self-calibration method described above. One processor 710 is illustrated in fig. 7.
The processor 710 and the memory 720 may be connected by a bus or other means, and fig. 7 illustrates a connection by a bus as an example.
The memory 720, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and signals, such as program instructions/signals corresponding to the tidal channel control apparatus in the embodiments of the present application. The processor 710 executes various functional applications and data processing, i.e., implementing the weight self-correction method of the above-described method embodiments, by executing non-transitory software programs, instructions and signals stored in the memory 720.
The memory 720 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area can store the related data of the weighing self-correcting method and the like. Further, the memory 720 may include high speed random access memory 720, and may also include non-transitory memory 720, such as at least one piece of disk memory 720, flash memory device, or other non-transitory solid state memory 720. In some embodiments, the memory 720 optionally includes memory 720 located remotely from the processor 710, and the remote memory 720 may be connected to the tidal path control device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more signals are stored in memory 720 and, when executed by the one or more processors 710, perform the weight self-correction method of any of the method embodiments described above. For example, the above-described method steps S110 to S140 in fig. 1, method steps S210 to S220 in fig. 2, method steps S310 to S320 in fig. 3, method steps S410 to S420 in fig. 4, method steps S510 to S520 in fig. 5 and method steps S610 to S620 in fig. 6 are performed.
In a third aspect, referring to fig. 8, the present application provides a weighing apparatus 800, comprising a processing module 700 and a load cell 810 as provided in the second aspect, wherein the load cell 810 comprises a strain gauge 811 and a bridge circuit 812 connected to the strain gauge 811, the strain gauge 811 is strained by stress generated by weighing an article and generates a variable resistance value by the strain, and the load cell 810 outputs a voltage value through the bridge circuit 812 according to the variable resistance value of the strain gauge 811 and displays the voltage value as a weighing value.
It should be noted that the weighing pressure sensor used in this embodiment is a pressure sensor with simple structure, low cost and limited accuracy, and includes a sensing element, a converting element, a measuring element and an auxiliary power supply, wherein the sensing element is used for directly sensing the weight of a measured object and outputting other quantities related to the mass of the measured object, such as an elastomer in the resistance strain type weighing sensor 810, the mass of which is expressed by deformation, a transformation element for transforming the output of the sensing element into some kind of easily measurable signal, such as a resistance strain gauge 811 in a resistance strain gauge load cell 810, converts the deformation into a resistance quantity, a measuring element is used to convert an easy-to-measure signal output by the converting element into an electrical signal, such as bridge circuit 812 in resistance strain gauge load cell 810, converts the resistance into an electrical signal and the auxiliary power supply is used to provide a source of energy for the electrical signal output by the measurement element. The weighing pressure sensor converts pressure into linear corresponding quantity of voltage through a bridge circuit 812 of a strain gauge 811, then converts an analog signal output by the sensor into a digital signal, and finally acquires the weight of the current measurement object by collecting the signal. The factors of hardware inside the weighing pressure sensor have inevitable counting errors.
In order to solve the counting error generated in the weighing sensor 810, the weighing device 800 provided by the application can calculate the number of medicines in each medicine group according to the first actual mass and the preset single standard mass of the medicines by acquiring the first actual masses of a plurality of medicine groups, obtain the second actual mass of a single medicine according to the first actual mass and the number of medicines corresponding to the medicine group, judge whether the standard mass needs to be determined again according to the difference value between the standard mass and the second actual mass, and count the medicines more accurately by automatically correcting the single mass of the medicines by the weighing device 800.
In a fourth aspect, the present application also provides a computer-readable storage medium storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the method of weight self-correction in the above method embodiments. For example, the above-described method steps S110 to S140 in fig. 1, method steps S210 to S220 in fig. 2, method steps S310 to S320 in fig. 3, method steps S410 to S420 in fig. 4, method steps S510 to S520 in fig. 5 and method steps S610 to S620 in fig. 6 are performed.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
From the above description of embodiments, those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable signals, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable signals, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "specifically," or "some examples" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made without departing from the spirit of the present application within the knowledge of those skilled in the art.

Claims (10)

1. A method of self-correcting weighing, comprising:
acquiring first actual qualities of a plurality of medicine groups and a standard quality of a preset single medicine; the drug group comprises a plurality of drugs;
dividing each first actual quality by the standard quality and rounding to obtain the number of medicines of the medicine group corresponding to the first actual quality;
obtaining a second actual mass of a single medicine according to the first actual mass of each medicine group and the number of the medicines corresponding to the medicine group;
and re-determining the standard quality according to the difference value of the standard quality and the second actual quality.
2. The method of claim 1, wherein said re-determining the proof mass from the difference between the proof mass and the second actual mass comprises:
acquiring a preset lower limit threshold;
and if the difference is smaller than the lower threshold, the standard quality is not updated.
3. The method of weight self-correction according to claim 2, wherein said re-determining the proof mass from the difference between the proof mass and the second actual mass further comprises:
acquiring a preset upper limit threshold; wherein the upper threshold is greater than the lower threshold;
and if the difference value is larger than the upper limit threshold value, the standard quality is not updated.
4. The method of claim 3, wherein said re-determining the proof mass from the difference between the proof mass and the second actual mass further comprises:
if the continuous N difference values are larger than the lower limit threshold and smaller than the upper limit threshold, the standard quality is updated to be an average value of the corresponding N second actual qualities; wherein, the value of N is calculated according to the factory weight error of the medicine.
5. The method of self-correcting weighing according to claim 1, further comprising:
acquiring a preset overweight threshold;
and if the first actual quality is larger than the overweight threshold, giving an early warning to the drug group.
6. The method of self-correcting weighing according to claim 4, further comprising:
determining the setting range of the lower limit threshold according to the maximum medicine weighing number and the standard mass; the maximum medicine weighing number is the maximum number of medicines which can be weighed by the weighing device;
and determining the upper threshold setting range according to the maximum error value of the quality of the single medicine.
7. The method of self-correcting weighing according to claim 5, further comprising:
obtaining the maximum medicine quality and the minimum number of error medicines generated by the single medicine according to the standard quality and the preset maximum error value of the medicine quality;
and determining the setting range of the overweight threshold according to the error medicine numerical value and the maximum medicine quality.
8. A processing module, comprising:
at least one memory;
at least one processor;
at least one program;
the program is stored in the memory, and the processor executes at least one of the programs to implement the method of weight self-correction of any of claims 1 to 7.
9. A weighing apparatus comprising the processing module according to claim 8 and a load cell, the load cell comprising a strain gauge and a bridge circuit connected to the strain gauge, the strain gauge being strained by a stress generated in the weighing object and generating a varying resistance value by the strain, the load cell outputting a voltage value through the bridge circuit according to the varying resistance value of the strain gauge and displaying the voltage value as a weighing value.
10. A computer-readable storage medium having stored thereon computer-executable signals for performing the method of weight self-correction of any of claims 1-7.
CN202110987815.3A 2021-08-26 2021-08-26 Weighing self-correcting method, processing module, weighing device and storage medium Pending CN113670427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110987815.3A CN113670427A (en) 2021-08-26 2021-08-26 Weighing self-correcting method, processing module, weighing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110987815.3A CN113670427A (en) 2021-08-26 2021-08-26 Weighing self-correcting method, processing module, weighing device and storage medium

Publications (1)

Publication Number Publication Date
CN113670427A true CN113670427A (en) 2021-11-19

Family

ID=78546607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110987815.3A Pending CN113670427A (en) 2021-08-26 2021-08-26 Weighing self-correcting method, processing module, weighing device and storage medium

Country Status (1)

Country Link
CN (1) CN113670427A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116934354A (en) * 2023-07-21 2023-10-24 浙江远图技术股份有限公司 Method and device for supervising medicine metering scale, electronic equipment and medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3507388A (en) * 1967-07-21 1970-04-21 Ciba Ltd Apparatus for sorting tablets
US4494619A (en) * 1982-06-23 1985-01-22 Kabushiki Kaisha Ishida Koki Seisakusho Combinatorial weighing apparatus with bulk and fine feed
US4566070A (en) * 1981-09-07 1986-01-21 Kabushiki Kaisha Ishida Koki Seisakusho Method of counting parts
US4739846A (en) * 1980-09-25 1988-04-26 Kabushiki Kaisha Ishida Koki Seisakusho Counting method
JP2004216144A (en) * 2002-12-27 2004-08-05 Tadanori Munemoto Method and device for inspection of quantity of dispensed medicine
CN202373040U (en) * 2011-12-13 2012-08-08 苏州艾隆科技有限公司 Inventory machine system
US20140263389A1 (en) * 2013-03-15 2014-09-18 David Michael Perozek Apparatus and methods for a semi-automatic pill counting tray
WO2017061579A1 (en) * 2015-10-08 2017-04-13 株式会社湯山製作所 Screening assistance device, screening assistance method, and screening assistance system
CN108801430A (en) * 2017-05-05 2018-11-13 广东美的生活电器制造有限公司 Bearing calibration, means for correcting and the heating vessel for zero of weighing
CN109556695A (en) * 2018-11-29 2019-04-02 上海九山电子科技有限公司 Weighing method, weighing device, self-service cabinet and self-service method
CN109784461A (en) * 2018-12-14 2019-05-21 信远德怡医疗科技(北京)有限公司 Medicine counting device and method
CN112985556A (en) * 2021-02-08 2021-06-18 红云红河烟草(集团)有限责任公司 Cigarette weight detection method, detection controller and detection system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3507388A (en) * 1967-07-21 1970-04-21 Ciba Ltd Apparatus for sorting tablets
US4739846A (en) * 1980-09-25 1988-04-26 Kabushiki Kaisha Ishida Koki Seisakusho Counting method
US4566070A (en) * 1981-09-07 1986-01-21 Kabushiki Kaisha Ishida Koki Seisakusho Method of counting parts
US4494619A (en) * 1982-06-23 1985-01-22 Kabushiki Kaisha Ishida Koki Seisakusho Combinatorial weighing apparatus with bulk and fine feed
JP2004216144A (en) * 2002-12-27 2004-08-05 Tadanori Munemoto Method and device for inspection of quantity of dispensed medicine
CN202373040U (en) * 2011-12-13 2012-08-08 苏州艾隆科技有限公司 Inventory machine system
US20140263389A1 (en) * 2013-03-15 2014-09-18 David Michael Perozek Apparatus and methods for a semi-automatic pill counting tray
WO2017061579A1 (en) * 2015-10-08 2017-04-13 株式会社湯山製作所 Screening assistance device, screening assistance method, and screening assistance system
CN108801430A (en) * 2017-05-05 2018-11-13 广东美的生活电器制造有限公司 Bearing calibration, means for correcting and the heating vessel for zero of weighing
CN109556695A (en) * 2018-11-29 2019-04-02 上海九山电子科技有限公司 Weighing method, weighing device, self-service cabinet and self-service method
CN109784461A (en) * 2018-12-14 2019-05-21 信远德怡医疗科技(北京)有限公司 Medicine counting device and method
CN112985556A (en) * 2021-02-08 2021-06-18 红云红河烟草(集团)有限责任公司 Cigarette weight detection method, detection controller and detection system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
管雪梅: "《检测与转换技术》", 30 September 2019, 机械工业出版社, pages: 85 - 86 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116934354A (en) * 2023-07-21 2023-10-24 浙江远图技术股份有限公司 Method and device for supervising medicine metering scale, electronic equipment and medium
CN116934354B (en) * 2023-07-21 2024-04-05 浙江远图技术股份有限公司 Method and device for supervising medicine metering scale, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN105258779B (en) Electronic scale automatic calibrating method
US8476910B2 (en) Capacitive sensor having calibration mechanism and capacitive sensing method
CN110849459B (en) Creep deformation correction method for weighing sensor
CN113701859A (en) Weighing counting method, device, system, computer equipment and readable storage medium
US5056050A (en) Method for determining the necessity of adjusting a high-resolution electronic balance
CN111238624A (en) Object weight measuring method, weighing device and readable storage medium
US4914611A (en) Force measuring device
CN113670427A (en) Weighing self-correcting method, processing module, weighing device and storage medium
CN110440893A (en) Weight-calibration method, apparatus and weighing-appliance
KR101239354B1 (en) An electronic balance with a function to compensate air pressure changes in the glovebox
CN112179471A (en) Dynamic gravity calibration method for intelligent cabinet
CN109620200A (en) A kind of device and method of intracranial pressure, encephalic temperature testing calibration
CN111323103A (en) Pressure sensing device for adjusting and calibrating four-corner balance, circuit and electronic weighing instrument
CN211824650U (en) Pressure sensing device for adjusting and calibrating four-corner balance, circuit and electronic weighing instrument
KR102538936B1 (en) Electronic scales with imporved precision
JP2021032872A (en) Drug quantity management device
JP2012127721A (en) Failure diagnostic device for load cell
CN113790791B (en) Gravity sensor calibration method for gravity sales counter
CN115096348B (en) Full-bridge temperature drift compensation circuit and method and strain sensing system
JP3187757U (en) electronic balance
CN113654723A (en) Batch calibration method and system of pressure sensors and weighing cabinet
CN113375817B (en) Display device of nonlinear temperature
JPH1137827A (en) Measuring device of load
CN117782274A (en) Strain gauge electronic balance and correction method thereof
CN116592984A (en) Kitchen scale calibration method

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