Creep-resistant method, device and system for weighing goods shelf

Through system calibration and real-time internal code correction technology, the instability problem of weighing shelf sensors caused by environmental changes and data loss is solved, the weighing accuracy is improved, creep and temperature drift are corrected, and higher measurement accuracy is achieved. .

CN118730265APending Publication Date: 2024-10-01SUZHOU ZHIPU NUO AUTOMATION EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410766425.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing sensors for weighing heavy-duty shelves cause data creep due to changes in ambient temperature and long-term use, and the data cannot be restored after a power outage, resulting in unstable measurement results.

Method used

Obtain the calibration value through system calibration, set the zero value and linear value, use real-time internal code to determine the shelf loading status, calculate and correct the zero value and linear value, improve the weighing accuracy, and increase the accuracy to 1/1 without changing the sensor. 30000.

Benefits of technology

It effectively corrects the creep and temperature drift problems of sensor data, improves weighing accuracy, and restores the accuracy of weighing results after data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730265A_ABST
    Figure CN118730265A_ABST
Patent Text Reader

Abstract

The invention relates to the field of intelligent goods shelves, in particular to a creep-resistant method, device and system for a weighing goods shelf. The weighing result of the weighing type goods shelf is calculated by using the real-time internal code, the corrected third zero value, the corrected first linear value, the corrected second linear value and the calibration value, so that the display precision of the weighing type goods shelf is improved, and the display precision of a sensor can be improved under the condition that the sensor is not changed. While the precision is improved, the problems of creep deformation, temperature drift, linear drift and the like are corrected, and the data change caused by data power failure restart is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent shelves, and in particular to an anti-creep method, device and system for weighing heavy shelves. Background Art

[0002] The core key component of the weighing shelf products in the prior art is the weighing sensor, which is generally C3 with an accuracy of 1 / 3000. Due to its own characteristics, this weighing sensor will inevitably cause linear drift due to long-term use, or cause sensor data to creep under long-term pressure. In addition, the sensor is a delicate device, and large changes in ambient temperature will inevitably cause changes in sensor data. Therefore, the weighing sensor of the weighing shelf products in the prior art has the problem of easily causing the display value to drift, resulting in unstable measurement results, and there is also a problem that the data value cannot be changed after power failure and restart. Summary of the invention

[0003] In order to solve the creep problem of the sensor of the heavy-duty shelf in the prior art caused by the change of the ambient temperature and the problem that the data value cannot be changed after power failure and restart, on the one hand, the present invention provides an anti-creep method for weighing heavy-duty shelves, comprising: Performing system calibration on the weighing shelf to obtain a calibration value; Setting a first zero point value, a second zero point value, a third zero point value, a first linear value, and a second linear value, and initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value; Acquire a real-time internal code, wherein the real-time internal code is acquired by a weighing sensor of the weighing shelf, and the loading state of the weighing shelf is determined by a change in the real-time internal code; When the weighing shelf is in a non-loaded state, a real-time internal code reference value is obtained, a first difference between the real-time internal code and the real-time internal code reference value is calculated, and the third zero point value is compensated by using the first difference to obtain a corrected third zero point value; The weighing result of the weighing shelf is calculated and displayed according to the real-time internal code, the corrected third zero point value, the first linear value, the second linear value and the calibration value.

[0004] Preferably, it also includes: Acquire the real-time internal code of T01 time and T02 time, wherein the T01 time and the T02 time are continuous times; Calculating a second difference, where the second difference is a difference between the real-time inner code at time T01 and the real-time inner code at time T02; Using the second difference to compensate the first linear value to obtain a corrected first linear value, and using the second difference to compensate the second linear value to obtain a corrected second linear value; The weighing result of the weighing shelf is calculated and displayed according to the real-time internal code, the corrected third zero point value, the corrected first linear value, the corrected second linear value and the calibration value.

[0005] Specifically, obtaining the real-time inner code reference value includes: obtaining the real-time inner code reference value at time T1, wherein time T1 is the first time value of the weighing shelf after entering a non-loading state, and the real-time inner code reference value is the difference between the real-time inner code at time T1 and the third zero point value at time T1.

[0006] Specifically, at time T2, the first difference between the real-time inner code and the real-time inner code reference value is calculated, and the third zero point value is compensated using the first difference to obtain a corrected third zero point value. The T2 time is the time value that the weighing shelf maintains after entering a non-loaded state.

[0007] Specifically, judging the loading state of the weighing shelf by the change amount of the real-time internal code includes: Compare the difference between the real-time inner code of the Mth sample and the real-time inner code of the MNth sample in sequence, where M and N are both positive integers and M is greater than N. If the difference after comparison is greater than the first threshold, and the number of times the difference after comparison is greater than the first threshold is greater than the second threshold, it is determined that the weighing shelf is in a loaded state; If the compared difference is smaller than the first threshold, or the number of times the compared difference is larger than the first threshold is smaller than the second threshold, the weighing rack is determined to be in a non-loaded state.

[0008] Specifically, it also includes calculating a third difference, where the third difference is the difference between the third zero point value and the second zero point value; when the third difference is greater than a third threshold, compensating the third difference to the first linear value and the second linear value respectively so that the third zero point value is equal to the second zero point value; and storing the compensated first linear value and the compensated second linear value.

[0009] Specifically, the first zero point value is an absolute reference zero point, the second zero point value is a relative reference zero point, the third zero point value is a calibration zero point, the first linear value is a linear calculation zero point, and the second linear value is a linear calculation calibration point. Initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value includes making the first zero point value, the second zero point value, and the third zero point value equal, and the first linear value is equal to the third zero point value.

[0010] Specifically, after determining that the weighing shelf is in a loaded state, the method further includes: when the real-time internal code is greater than a first zero point value and less than a second zero point value, making the first zero point value, the second zero point value, and the third zero point value equal to the real-time internal code.

[0011] In one aspect, the present invention further provides an anti-creep device for a heavy-duty shelf, comprising: A system calibration module, used for performing system calibration on the weighing shelf to obtain a calibration value; an initialization module, used for setting a first zero point value, a second zero point value, a third zero point value, a first linear value, and a second linear value, and initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value; A loading status judgment module, used for obtaining a real-time internal code, the real-time internal code is obtained by a weighing sensor of the weighing shelf, and judging the loading status of the weighing shelf by a change in the real-time internal code; A correction module, used for obtaining a real-time internal code reference value when the weighing shelf is in a non-loaded state, calculating a first difference between the real-time internal code and the real-time internal code reference value, and using the first difference to compensate the third zero point value to obtain a corrected third zero point value; A result calculation module is used to calculate and display the weighing result of the weighing shelf according to the real-time internal code, the corrected third zero point value, the first linear value, the second linear value and the calibration value.

[0012] In one aspect, the present invention also provides an anti-creep system for a heavy-duty shelf, comprising: A weighing shelf body, a processor and a memory, wherein the memory stores a program module, and the program module runs on the processor to implement the above-mentioned method on the weighing shelf body.

[0013] Through the anti-creep algorithm of the weighing shelf mentioned above, the weighing result of the weighing shelf is calculated using the real-time internal code, the corrected third zero value, the corrected first linear value, the corrected second linear value and the calibration value, so as to improve the display accuracy of the weighing shelf, that is, without changing the sensor, the original 1 / 3000 sensor display accuracy can be improved to 1 / 30000 display accuracy. While improving the accuracy, the creep, temperature drift, linear drift and other problems are corrected and the data changes caused by power failure and restart are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 A flow chart of an anti-creep method for weighing heavy duty racks; Figure 2Another flow chart for an anti-creep method for weighing heavy duty racks; Figure 3 Schematic diagram of the loading algorithm. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0016] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0017] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0018] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0019] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0020] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0021] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."

[0022] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0023] Embodiment 1 On the one hand, if Figure 1 As shown, the present invention provides an anti-creep method for weighing heavy duty shelves, comprising: S1: calibrate the system of the symmetrical heavy-duty shelf to obtain the calibration value; S2: setting a first zero point value, a second zero point value, a third zero point value, a first linear value, and a second linear value, and initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value; S3: Acquire the real-time internal code. The real-time internal code is acquired through the weighing sensor of the weighing shelf, and the loading state of the weighing shelf is determined by the change of the real-time internal code; S4: when the heavy-duty shelf is in a non-loaded state, obtaining a real-time internal code reference value, calculating a first difference between the real-time internal code and the real-time internal code reference value, and using the first difference to compensate the third zero point value to obtain a corrected third zero point value; S5: Calculate the weighing result of the weighing shelf according to the real-time internal code, the corrected third zero point value, the first linear value, the second linear value and the calibration value and display it.

[0024] It should be noted that in step S1, before weighing the heavy-duty shelf, the system needs to be calibrated to obtain the calibration value Value. In step S2, after completing the system calibration and obtaining the calibration value, read the values ​​inside the register and initialize these values. These values ​​include the first zero point value, the second zero point value, the third zero point value, the first linear value and the second linear value, wherein the first zero point value is the absolute reference zero point Zero0, the second zero point value is the relative reference zero point Zero1, the third zero point value is the calibration zero point or the currently used zero point internal code Zero3, and the second linear value is the linear calculation calibration point or the calibration loading internal code LineCode1. Initialize the first linear value, the first zero point value, the second zero point value and the third zero point value, even if Zero0=Zero1=Zero2 and LineCode0=Zero2. When the above-mentioned assignment operation is completed, the system's relevant numerical initialization is completed.

[0025] In step S3, the real-time internal code is the real-time internal value Code2 of the system, which is a value read in real time by the weighing sensor. This value will change with factors such as the ballast time and temperature drift of the goods. When this real-time internal code value changes, it will cause the final measurement result to be inaccurate. Therefore, a series of corrections need to be made to other values ​​to ensure the accuracy of the final calculation result. In this step, it is necessary to first monitor the change in the real-time internal code Code2 to determine whether the heavy-duty shelf is in a loaded state or a non-loaded state. The loaded state is the process in which the goods are placed on the heavy-duty shelf and are not yet in a stable state, while the non-loaded state is the state in which the goods remain stable after being placed on the heavy-duty shelf. After determining the loading state by calculating the change in the real-time internal code Code2, if it is in a non-loaded state, i.e. a stable state, execute step S4.

[0026] Since the formula for calculating the weighing result of the heavy duty shelf is: Display weight / quantity = [Code2-Zero2] / [(LineCode1- LineCode0) / Value] It can be seen from the above formula that if you want to output the weighing result stably, you need to correct the third zero point value Zero2, and if you want to correct the third zero point value, you need to know the change of the real-time internal code Code2. In step S4, after determining that the weighing shelf is in a non-loaded state, obtain the real-time internal code reference value Code1, and calculate the difference between the real-time internal code Code2 and the real-time internal code reference value Code1 to obtain the first difference ERR1, and then compensate ERR1 to the third zero point value Zero2, that is, the first difference ERR1=Code2-Code1, then the corrected third zero point value Zero2=Zero2+ERR1.

[0027] In step S5, the calibration value Value in step S1, the real-time internal code Code2 in step S3, the corrected third zero point value Zero2 in step S4, and the first linear value LineCode0 and the second linear value LineCode1 are put into the above-mentioned formula for calculating the weighing result of the heavy-duty shelf to obtain a stable weighing result.

[0028] Preferably, if Figure 2 Also shown are: S6: Acquire the real-time internal code of time T01 and time T02, where time T01 and time T02 are continuous times; S7: Calculate a second difference, where the second difference is the difference between the real-time inner code at time T01 and the real-time inner code at time T02; S8: using the second difference to compensate the first linear value to obtain a corrected first linear value, and using the second difference to compensate the second linear value to obtain a corrected second linear value; S9: Calculate the weighing result of the weighing shelf according to the real-time internal code, the corrected third zero point value, the corrected first linear value, the corrected second linear value and the calibration value and display it.

[0029] It should be noted that in actual use, there is another uncertain factor, which is the sudden power outage during the weighing process. The dual effects of sensor creep and temperature drift will still have a significant change in the measurement results. Although the first linear value LineCode0 and the third zero point value have been initialized in step S2, the creep and temperature drift of the sensor make the two values ​​no longer equal. In addition, there are many items loaded on the shelf when the power outage occurs. At this time, the correct third zero point value Zero2 cannot be correctly obtained. Even if the system is powered on again at this time, the displayed value is obviously deviated and cannot be correctly obtained. In order to solve this problem, when correcting the third linear value Code2, it is also necessary to synchronously correct the first linear value LineCode0 and the second linear value LineCode1. The specific correction method is to obtain the real-time inner code Code2_T01 of time T01 at time T01, and obtain the real-time inner code Code2_T02 of time T02 at time T02. T01 and T02 are two consecutive times. After obtaining the real-time inner code values ​​of time T01 and T02, calculate the second difference ERR2=Code2_T02-Code2_T01, and then compensate the second difference ERR2 to the first linear value LineCode0 and the second linear value LineCode1 respectively, so that the corrected LineCode0=LineCode0+(Code2_T02-Code2_T01), and the corrected LineCode1=LineCode1+(Code2_T02-Code2_T01). In addition, in order to keep the first linear value LineCode0 and the third zero point value Zero2 the same, the second difference ERR2 needs to be compensated to the third zero point value Zero2 at the same time. Finally, the weighing result of the weighing shelf is calculated and displayed according to the real-time internal code, the corrected third zero point value, the corrected first linear value, the corrected second linear value and the calibration value.

[0030] Specifically, obtaining the real-time inner code reference value includes: S401: At time T1, obtain the real-time inner code reference value, where time T1 is the first time value after the weighing shelf enters a non-loaded state, and the real-time inner code reference value is the difference between the real-time inner code at time T1 and the third zero point value at time T1.

[0031] S402: At time T2, calculate a first difference between the real-time inner code and the real-time inner code reference value, use the first difference to compensate the third zero point value to obtain a corrected third zero point value, and the T2 time is the time value that the weighing shelf maintains after entering a non-loading state.

[0032] It should be noted that each time T1 is experienced, that is, each time the system judges the loading state to be a non-loading state, the real-time inner code reference value is calculated once. Therefore, this inner code reference value will be stable in the non-loading state and will not change. If other situations occur and it is judged to be unstable, such as power failure, reloading, etc., the real-time inner code reference value will be recalculated. The real-time inner code reference value is the difference between the real-time inner code at T1 time and the third zero point value at T1 time, that is, Code1=Code2_T1-Zero2_T1.

[0033] After the real-time inner code reference value Code1 is calculated, since the real-time inner code Code2 is a real-time changing value, and the real-time inner code reference value remains unchanged within the same stable state range, the change amount of the real-time inner code Code2 can be calculated by the real-time inner code reference value Code1 at time T2, and the change amount is set as the first difference value ERR1, and it can be obtained that ERR1=Code2-Code1. Finally, the change amount is obtained, and the change amount is compensated to the third zero point value to obtain the corrected third zero point value Zero2.

[0034] Specifically, judging the loading status of the heavy-duty shelf by the change in the real-time internal code includes: S301: Compare the difference between the real-time inner code of the Mth sample and the real-time inner code of the MNth sample in sequence, where M and N are both positive integers and M is greater than N. If the difference after comparison is greater than a first threshold, and the number of times the difference after comparison is greater than the first threshold is greater than a second threshold, it is determined that the heavy-duty shelf is in a loaded state; S302: If the difference after comparison is less than the first threshold, or the number of times the difference after comparison is greater than the first threshold is less than the second threshold, it is determined that the heavy-duty shelf is in a non-loaded state.

[0035] It should be noted that if Figure 3As shown, M represents the serial number of the first column in the figure, and the ADC real-time value of the second column is the real-time inner code Code2. The storage table is stored in a sliding storage manner, that is, each time new data is stored in the last serial number, the real-time values ​​of the remaining serial numbers are moved up. For example, let M be a serial number value from 11 to 15, and N be 10. The real-time inner code of the Mth sample is compared with the real-time inner code of the MNth sample in turn. That is to say, the ADC real-time value of serial number 15 is used for the first time to compare the difference with the ADC real-time value of serial number 5. The second time, the ADC real-time value of serial number 14 is used for the second time to compare the difference with the ADC real-time value of serial number 4. The third time, the ADC real-time value of serial number 13 is used for the third time to compare the difference with the ADC real-time value of serial number 3, and so on. If the difference is greater than the first threshold value each time (the preferred case is that the first threshold value is 10), then The number of times is recorded once, and if the cumulative number of times is greater than the second threshold value (the preferred case is that the second threshold value is 4), the heavy-duty shelf is judged to be in a loaded state; relatively, if the difference after multiple comparisons is less than the first threshold value, or after multiple comparisons, although some differences are greater than the first threshold value, but the number of times greater than the first threshold value does not reach the second threshold value, then the heavy-duty shelf is judged to be in a non-loaded state. For example, if the difference is less than 10 each time after 5 comparisons, or if the difference is greater than 10 only 4 times after 5 comparisons, and the difference is less than 10 once, then the heavy-duty shelf is still judged to be in a non-loaded state. The beneficial effect of multiple judgments is to avoid misjudgment, so the number of difference comparisons is increased to increase the accuracy of the judgment.

[0036] There is another situation that although it has been determined in the previous step that the heavy-duty shelf is in a non-loaded state, there may be a judgment error. Therefore, a second judgment mechanism is added, that is, to judge again whether the data change is valid, repeat the previous judgment step, and increase the accuracy of the judgment.

[0037] In addition, adding a filtering program to the system can increase the accuracy of the subsequent anti-creep algorithm. Specifically, after determining that the weighing shelf is in an unloaded state, the filtering program is entered to perform median filtering, low-pass filtering and sliding average filtering on the real-time internal code. After processing by the filtering program, the anti-creep program is entered for data processing. This can increase the accuracy of the anti-creep algorithm and make the final calculation of a more accurate and stable weighing result of the weighing shelf.

[0038] Specifically, it also includes: S10: Calculate a third difference, which is the difference between the third zero point value and the second zero point value. When the third difference is greater than a third threshold, compensate the third difference to the first linear value and the second linear value respectively, so that the third zero point value is equal to the second zero point value, and store the compensated first linear value and the compensated second linear value.

[0039] It should be noted that after the third zero value Zero2, the first linear value LineCode0 and the second linear value LineCode1 are corrected, the data in the EEPROM needs to be updated in time to ensure that normal values ​​can be retrieved during the second startup, especially the retrieval of data during the second startup after a sudden power failure. However, since the EEPROM has a corresponding service life, frequent storage of data will reduce the life of the EEPROM, so each change cannot be saved, so the third threshold is set, ERR3 is the difference between the third zero value Zero2 and the second zero value Zero1, ERR3=Zero2-Zero1. Only when ERR3 is greater than the third threshold, the preferred choice is that the third threshold is 10, that is, when the difference ERR3 between the third zero point value Zero2 and the second zero point value Zero1 is greater than 10, the third zero point value Zero2, the first linear value LineCode0 and the second linear value LineCode1 are stored, and the third difference ERR3 is compensated to the first linear value LineCode0 and the second linear value LineCode1, and the third zero point value Zero2 is equal to the second zero point value Zero1. If ERR3 is less than the third threshold, the corrected third zero point value Zero2, the first linear value LineCode0 and the second linear value LineCode1 are not stored, and the weight and quantity calculation is performed directly.

[0040] Specifically, the first zero point value is an absolute reference zero point, the second zero point value is a relative reference zero point, the third zero point value is a calibration zero point, the first linear value is a linear calculation zero point, and the second linear value is a linear calculation calibration point. Initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value includes making the first zero point value, the second zero point value, and the third zero point value equal, and the first linear value is equal to the third zero point value.

[0041] It should be noted that after completing the system calibration and obtaining the calibration value, the values ​​inside the register are read and initialized. These values ​​include the first zero point value, the second zero point value, the third zero point value, the first linear value, and the second linear value, where the first zero point value is the absolute reference zero point Zero0, the second zero point value is the relative reference zero point Zero1, the third zero point value is the calibration zero point or the currently used zero point internal code Zero3, and the second linear value is the linear calculation calibration point or the calibration loading internal code LineCode1. The first linear value, the first zero point value, the second zero point value, and the third zero point value are initialized, that is, Zero0=Zero1=Zero2 and LineCode0=Zero2. When the above assignment operation is completed, the system's related value initialization is completed.

[0042] Specifically, after determining that the weighing shelf is in the loaded state, it further includes: when the real-time internal code is greater than the first zero value and less than the second zero value, making the first zero value, the second zero value, the third zero value equal to the real-time internal code.

[0043] It should be noted that in the existing weighing shelves, when the object is removed from the shelf after weighing, the display value does not return to zero but stays at any value, which will cause errors in subsequent weighing and is not conducive to the continuation of subsequent weighing. Therefore, this solution adds a forced zeroing program. When the real-time internal code Code2 is greater than the first zero value Zero0 and less than the second zero value Zero1, that is, Zero0 < Code2 < Zero1, make Zero0 = Zero1 = Zero1 = Code2.

[0044] Through the anti-creep algorithm of the above-mentioned weighing shelf, the weighing result of the weighing shelf is calculated using the real-time internal code, the corrected third zero value, the corrected first linear value, the corrected second linear value and the calibration value, thereby improving the display accuracy of the weighing shelf. That is, without changing the sensor, the original sensor display accuracy of 1 / 3000 can be improved to 1 / 30000. While improving the accuracy, problems such as creep, temperature drift, and linear drift are corrected and the data changes caused by power-off and restart are improved.

[0045] Embodiment 2 On the one hand, the present invention also provides an anti-creep device for a weighing shelf, including: A system calibration module for performing system calibration on the weighing shelf to obtain a calibration value; An initialization module for setting the first zero value, the second zero value, the third zero value, the first linear value and the second linear value, and initializing the first linear value, the first zero value, the second zero value and the third zero value; the first zero value is the absolute reference zero point, the second zero value is the relative reference zero point, the third zero value is the calibration zero point, the first linear value is the linear calculation zero point, and the second linear value is the linear calculation calibration point. Initializing the first linear value, the first zero value, the second zero value and the third zero value includes making the first zero value, the second zero value and the third zero value equal, and the first linear value equal to the third zero value.

[0046] A loading state judgment module for obtaining the real-time internal code, which is obtained through the weighing sensor of the weighing shelf, and judging the loading state of the weighing shelf through the change amount of the real-time internal code; A zero value correction module for, when the weighing shelf is in the unloaded state, obtaining the real-time internal code reference value, calculating the first difference between the real-time internal code and the real-time internal code reference value, and compensating the third zero value with the first difference to obtain the corrected third zero value; The result calculation module is used to calculate and display the weighing result of the weighing shelf according to the real-time internal code, the corrected third zero point value, the first linear value, the second linear value and the calibration value.

[0047] It should be noted that for the system calibration module, before weighing the heavy-duty shelf, the system needs to be calibrated to obtain the calibration value Value. For the initialization module, after completing the system calibration and obtaining the calibration value, read the values ​​inside the register and initialize these values. These values ​​include the first zero point value, the second zero point value, the third zero point value, the first linear value, and the second linear value. The first zero point value is the absolute reference zero point Zero0, the second zero point value is the relative reference zero point Zero1, the third zero point value is the calibration zero point or the currently used zero point internal code Zero3, and the second linear value is the linear calculation calibration point or the calibration loading internal code LineCode1. Initialize the first linear value, the first zero point value, the second zero point value, and the third zero point value, even if Zero0=Zero1=Zero2 and LineCode0=Zero2. When the above assignment operation is completed, the system's relevant numerical initialization is completed.

[0048] For the loading state judgment module, the real-time internal code is the real-time internal value Code2 of the system. This value is a value read in real time by the weighing sensor. This value will change with factors such as the ballast time and temperature drift of the goods. When this real-time internal code value changes, it will cause the final measurement result to be inaccurate. Therefore, a series of corrections are required for other values ​​to ensure the accuracy of the final calculation result. In this step, it is necessary to first monitor the change in the real-time internal code Code2 to determine whether the heavy-duty shelf is in a loaded state or a non-loaded state. The loaded state means that the goods are placed on the heavy-duty shelf and are not yet in a stable state, while the non-loaded state means that the goods remain stable after being placed on the heavy-duty shelf. After determining the loading state by calculating the change in the real-time internal code Code2, if it is in a non-loaded state, that is, a stable state, enter the zero value correction module for subsequent operations.

[0049] Since the formula for calculating the weighing result of the heavy duty shelf is: Display weight / quantity = [Code2-Zero2] / [(LineCode1- LineCode0) / Value] It can be seen from the above formula that if you want to output the weighing result stably, you need to correct the third zero point value Zero2, and if you want to correct the third zero point value, you need to know the change of the real-time internal code Code2. For the zero point value correction module, after judging that the weighing shelf is in a non-loaded state, obtain the real-time internal code reference value Code1, and calculate the difference between the real-time internal code Code2 and the real-time internal code reference value Code1 to obtain the first difference ERR1, and then compensate ERR1 to the third zero point value Zero2, that is, the first difference ERR1=Code2-Code1, then the corrected third zero point value Zero2=Zero2+ERR1.

[0050] For the result calculation module, the calibration value Value in the system calibration module, the real-time internal code Code2 in the loading status judgment module, the third zero point value Zero2 corrected by the zero point value correction module, and the first linear value LineCode0 and the second linear value LineCode1 are put into the above-mentioned calculation formula for the weighing result of the heavy-duty shelf to obtain a stable weighing result.

[0051] Preferably, the anti-creep device of the heavy-duty shelf further comprises: A real-time inner code acquisition module at T01 and T02 times, which acquires the real-time inner code at T01 and T02 times, wherein the T01 and T02 times are continuous times; A second difference calculation module, used for calculating a second difference, where the second difference is the difference between the real-time inner code at time T01 and the real-time inner code at time T02; A linear value correction module, used to compensate the first linear value using the second difference value to obtain a corrected first linear value, and to compensate the second linear value using the second difference value to obtain a corrected second linear value; The result calculation module is used to calculate and display the weighing result of the weighing shelf according to the real-time internal code, the corrected third zero point value, the corrected first linear value, the corrected second linear value and the calibration value.

[0052] It should be noted that in actual use, there is another uncertain factor, which is the sudden power outage during the weighing process. The dual effects of sensor creep and temperature drift will still have a significant change in the measurement results. Although the first linear value LineCode0 and the third zero point value have been initialized in the initialization module, the creep and temperature drift of the sensor make the two values ​​no longer equal. In addition, there are many items loaded on the shelf when the power outage occurs. At this time, the correct third zero point value Zero2 cannot be correctly obtained. Even if the system is powered on again at this time, the displayed value is obviously deviated and cannot be correctly obtained. In order to solve this problem, when correcting the third linear value Code2, it is also necessary to synchronously correct the first linear value LineCode0 and the second linear value LineCode1. The specific correction method is to obtain the real-time inner code Code2_T01 of time T01 at time T01, and obtain the real-time inner code Code2_T02 of time T02 at time T02. T01 and T02 are two consecutive times. After obtaining the real-time inner code values ​​of time T01 and T02, calculate the second difference ERR2=Code2_T02-Code2_T01, and then compensate the second difference ERR2 to the first linear value LineCode0 and the second linear value LineCode1 respectively, so that the corrected LineCode0=LineCode0+(Code2_T02-Code2_T01), and the corrected LineCode1=LineCode1+(Code2_T02-Code2_T01). In addition, in order to keep the first linear value LineCode0 and the third zero point value Zero2 the same, the second difference ERR2 needs to be compensated to the third zero point value Zero2 at the same time. Finally, the weighing result of the weighing shelf is calculated and displayed according to the real-time internal code, the corrected third zero point value, the corrected first linear value, the corrected second linear value and the calibration value.

[0053] Specifically, the anti-creep device of the heavy-duty shelf also includes: The third zero point value correction module is used to obtain the real-time internal code reference value at time T1, and the T1 time is the first time value after the weighing shelf enters the non-loaded state. The real-time internal code reference value is the difference between the real-time internal code at time T1 and the third zero point value at time T1. At time T2, the first difference between the real-time internal code and the real-time internal code reference value is calculated, and the third zero point value is compensated by using the first difference to obtain the corrected third zero point value. The T2 time is the time value that the weighing shelf maintains after entering the non-loaded state.

[0054] It should be noted that each time T1 is experienced, that is, each time the system judges the loading state to be a non-loading state, the real-time inner code reference value is calculated once. Therefore, this inner code reference value will be stable in the non-loading state and will not change. If other situations occur and it is judged to be unstable, such as power failure, reloading, etc., the real-time inner code reference value will be recalculated. The real-time inner code reference value is the difference between the real-time inner code at T1 time and the third zero point value at T1 time, that is, Code1=Code2_T1-Zero2_T1.

[0055] After the real-time inner code reference value Code1 is calculated, since the real-time inner code Code2 is a real-time changing value, and the real-time inner code reference value remains unchanged within the same stable state range, the change amount of the real-time inner code Code2 can be calculated by the real-time inner code reference value Code1 at time T2, and the change amount is set as the first difference value ERR1, and it can be obtained that ERR1=Code2-Code1. Finally, the change amount is obtained, and the change amount is compensated to the third zero point value to obtain the corrected third zero point value Zero2.

[0056] Specifically, the loading status judgment module also includes: A loading state judgment module is used to compare the difference between the real-time internal code of the Mth sample and the real-time internal code of the MNth sample in sequence, where M and N are both positive integers and M is greater than N. If the difference after comparison is greater than a first threshold, and the number of times the difference after comparison is greater than the first threshold is greater than a second threshold, it is judged that the heavy-duty shelf is in a loading state; The non-loading state judgment module is used to judge that the heavy-duty shelf is in a non-loading state if the difference after comparison is less than a first threshold value, or the number of times the difference after comparison is greater than the first threshold value is less than a second threshold value.

[0057] It should be noted that if Figure 3As shown, M represents the serial number of the first column in the figure, and the ADC real-time value of the second column is the real-time inner code Code2. The storage table is stored in a sliding storage manner, that is, each time new data is stored in the last serial number, the real-time values ​​of the remaining serial numbers are moved up. For example, let M be a serial number value from 11 to 15, and N be 10. The real-time inner code of the Mth sample is compared with the real-time inner code of the MNth sample in turn. That is to say, the ADC real-time value of serial number 15 is used for the first time to compare the difference with the ADC real-time value of serial number 5. The second time, the ADC real-time value of serial number 14 is used for the second time to compare the difference with the ADC real-time value of serial number 4. The third time, the ADC real-time value of serial number 13 is used for the third time to compare the difference with the ADC real-time value of serial number 3, and so on. If the difference is greater than the first threshold value each time (the preferred case is that the first threshold value is 10), then The number of times is recorded once, and if the cumulative number of times is greater than the second threshold value (the preferred case is that the second threshold value is 4), the heavy-duty shelf is judged to be in a loaded state; relatively, if the difference after multiple comparisons is less than the first threshold value, or after multiple comparisons, although some differences are greater than the first threshold value, but the number of times greater than the first threshold value does not reach the second threshold value, then the heavy-duty shelf is judged to be in a non-loaded state. For example, if the difference is less than 10 each time after 5 comparisons, or if the difference is greater than 10 only 4 times after 5 comparisons, and the difference is less than 10 once, then the heavy-duty shelf is still judged to be in a non-loaded state. The beneficial effect of multiple judgments is to avoid misjudgment, so the number of difference comparisons is increased to increase the accuracy of the judgment.

[0058] There is another situation that although it has been determined in the previous step that the heavy-duty shelf is in a non-loaded state, there may be a judgment error. Therefore, a second judgment mechanism is added, that is, to judge again whether the data change is valid, repeat the previous judgment step, and increase the accuracy of the judgment.

[0059] In addition, adding a filtering program to the system can increase the accuracy of the subsequent anti-creep algorithm. Specifically, after determining that the weighing shelf is in an unloaded state, the filtering program is entered to perform median filtering, low-pass filtering and sliding average filtering on the real-time internal code. After processing by the filtering program, the anti-creep program is entered for data processing. This can increase the accuracy of the anti-creep algorithm and make the final calculation of a more accurate and stable weighing result of the weighing shelf.

[0060] Specifically, the anti-creep device of the heavy-duty shelf also includes: The linear value compensation storage module is used to calculate a third difference, where the third difference is the difference between a third zero point value and a second zero point value. When the third difference is greater than a third threshold value, the third difference is compensated to the first linear value and the second linear value respectively, and the third zero point value is made equal to the second zero point value, and the compensated first linear value and the compensated second linear value are stored.

[0061] It should be noted that after the correction of the third zero value Zero2, the first linear value LineCode0, and the second linear value LineCode1, the data in the EEPROM needs to be updated in a timely manner to ensure that the normal value can be retrieved during the second startup, especially when retrieving data during the second startup after a sudden power failure. However, since the EEPROM has a corresponding service life, frequent data storage will reduce the life of the EEPROM. Therefore, not every change can be saved. So, a third threshold is set. ERR3 is the difference between the third zero value Zero2 and the second zero value Zero1, and ERR3 = Zero2 - Zero1. Only when ERR3 is greater than the third threshold, preferably the third threshold is 10, that is, when the difference ERR3 between the third zero value Zero2 and the second zero value Zero1 is greater than 10, the third zero value Zero2, the first linear value LineCode0, and the second linear value LineCode1 are stored, and the third difference ERR3 is compensated to the first linear value LineCode0 and the second linear value LineCode1, and at the same time, the third zero value Zero2 is made equal to the second zero value Zero1. If ERR3 is less than the third threshold, the corrected third zero value Zero2, the first linear value LineCode0, and the second linear value LineCode1 are not stored, and the weight and quantity calculations are directly executed.

[0062] Specifically, the anti-creep device of the heavy-duty shelf further includes: A forced zeroing module, which is further included after determining that the heavy-duty shelf is in the loading state: when the real-time internal code is greater than the first zero value and less than the second zero value, make the first zero value, the second zero value, the third zero value, and the real-time internal code equal.

[0063] It should be noted that in the existing heavy-duty shelves, when the object is removed from the shelf after weighing, the display value does not return to zero but stays at any value, which will cause errors in subsequent weighing and is not conducive to the continuation of subsequent weighing. Therefore, a forced zeroing program is added to this solution. When the real-time internal code Code2 is greater than the first zero value Zero0 and less than the second zero value Zero1, that is, Zero0 < Code2 < Zero1, make Zero0 = Zero1 = Zero1 = Code2.

[0064] Through the anti-creep device of the weighing shelf, the weighing result of the weighing shelf is calculated through the processing of the system calibration module, initialization module, loading state judgment module, zero point value correction module, real-time internal code acquisition module of T1 time and T2 time, second difference calculation module, linear value correction module and result calculation module, so as to improve the display accuracy of the weighing shelf, that is, without changing the sensor, the original 1 / 3000 sensor display accuracy can be improved to 1 / 30000 display accuracy. While improving the accuracy, the creep, temperature drift, linear drift and other problems are corrected and the data changes caused by power failure and restart are improved.

[0065] Embodiment 3 In one aspect, the present invention also provides an anti-creep system for a heavy-duty shelf, comprising: A weighing shelf body, a processor and a memory, the memory stores a program module, the program module runs on the processor, and the method of embodiment 1 is implemented on the weighing shelf body.

[0066] Among them, the memory, i.e., the readable storage medium, can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0067] The present invention also provides a program product, which includes an execution instruction stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the method provided in the first embodiment.

[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. An anti-creep method for weighing heavy duty shelves, characterized in that: include: Performing system calibration on the weighing shelf to obtain a calibration value; Setting a first zero point value, a second zero point value, a third zero point value, a first linear value, and a second linear value, and initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value; Acquire a real-time internal code, wherein the real-time internal code is acquired by a weighing sensor of the weighing shelf, and the loading state of the weighing shelf is determined by a change in the real-time internal code; When the weighing shelf is in a non-loaded state, a real-time internal code reference value is obtained, a first difference between the real-time internal code and the real-time internal code reference value is calculated, and the third zero point value is compensated by using the first difference to obtain a corrected third zero point value; The weighing result of the weighing shelf is calculated and displayed according to the real-time internal code, the corrected third zero point value, the first linear value, the second linear value and the calibration value.

2. The anti-creep method for weighing heavy duty racks according to claim 1, characterized in that: Also includes: Acquire the real-time internal code of T01 time and T02 time, wherein the T01 time and the T02 time are continuous times; Calculating a second difference, where the second difference is a difference between the real-time inner code at time T01 and the real-time inner code at time T02; Using the second difference to compensate the first linear value to obtain a corrected first linear value, and using the second difference to compensate the second linear value to obtain a corrected second linear value; The weighing result of the weighing shelf is calculated and displayed according to the real-time internal code, the corrected third zero point value, the corrected first linear value, the corrected second linear value and the calibration value.

3. The anti-creep method for weighing heavy duty racks as claimed in claim 2, characterized in that: The obtaining of the real-time inner code reference value comprises: obtaining the real-time inner code reference value at time T1, wherein time T1 is the first time value after the weighing shelf enters a non-loading state, and the real-time inner code reference value is the difference between the real-time inner code at time T1 and the third zero point value at time T1.

4. The anti-creep method for a weighing rack according to claim 3, characterized in that: At time T2, the first difference between the real-time inner code and the real-time inner code reference value is calculated, and the third zero point value is compensated using the first difference to obtain a corrected third zero point value. The T2 time is the time value that the weighing shelf maintains after entering a non-loaded state.

5. The anti-creep method for weighing heavy duty racks as claimed in claim 2, characterized in that: The step of judging the loading state of the weighing shelf by the change amount of the real-time internal code comprises: Compare the difference between the real-time inner code of the Mth sample and the real-time inner code of the MNth sample in sequence, where M and N are both positive integers and M is greater than N. If the difference after comparison is greater than the first threshold, and the number of times the difference after comparison is greater than the first threshold is greater than the second threshold, it is determined that the weighing shelf is in a loaded state; If the compared difference is smaller than the first threshold, or the number of times the compared difference is larger than the first threshold is smaller than the second threshold, the weighing rack is determined to be in a non-loaded state.

6. The anti-creep method for weighing heavy duty racks as claimed in claim 2, characterized in that: A third difference is calculated, where the third difference is the difference between the third zero point value and the second zero point value. When the third difference is greater than a third threshold, the third difference is compensated to the first linear value and the second linear value respectively, and the third zero point value is made equal to the second zero point value, and the compensated first linear value and the compensated second linear value are stored.

7. The anti-creep method for weighing heavy duty racks according to claim 1, characterized in that: The first zero point value is an absolute reference zero point, the second zero point value is a relative reference zero point, the third zero point value is a calibration zero point, the first linear value is a linear calculation zero point, and the second linear value is a linear calculation calibration point. Initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value includes making the first zero point value, the second zero point value, and the third zero point value equal, and the first linear value is equal to the third zero point value.

8. The anti-creep method for weighing heavy duty racks as claimed in claim 4, characterized in that: After determining that the weighing shelf is in a loaded state, the method further includes: when the real-time internal code is greater than the first zero point value and less than the second zero point value, making the first zero point value, the second zero point value, and the third zero point value equal to the real-time internal code.

9. An anti-creep device for weighing heavy duty shelves, characterized in that: include: A system calibration module, used for performing system calibration on the weighing shelf to obtain a calibration value; an initialization module, used for setting a first zero point value, a second zero point value, a third zero point value, a first linear value, and a second linear value, and initializing the first linear value, the first zero point value, the second zero point value, and the third zero point value; A loading status judgment module, used for obtaining a real-time internal code, the real-time internal code is obtained by a weighing sensor of the weighing shelf, and judging the loading status of the weighing shelf by a change in the real-time internal code; A correction module, used for obtaining a real-time internal code reference value when the weighing shelf is in a non-loaded state, calculating a first difference between the real-time internal code and the real-time internal code reference value, and using the first difference to compensate the third zero point value to obtain a corrected third zero point value; A result calculation module is used to calculate and display the weighing result of the weighing shelf according to the real-time internal code, the corrected third zero point value, the first linear value, the second linear value and the calibration value.

10. An anti-creep system for weighing heavy duty racks, characterized in that: include: A weighing shelf body, a processor and a memory, wherein the memory stores a program module, and the program module runs on the processor, and the method described in any one of claims 1 to 8 is implemented on the weighing shelf body.