Control method and device of loss-in-weight scale, loss-in-weight scale and readable storage medium
By continuously acquiring and processing the cumulative weight information in the loss-in-weight scale, the problem of weight fluctuation caused by external interference is solved, and the control precision and flow rate accuracy are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHUZHOU GEMAN TECH CO LTD
- Filing Date
- 2023-09-21
- Publication Date
- 2026-07-31
AI Technical Summary
Loss-in-weight scales are easily affected by external interference during use, causing the weight to fluctuate and resulting in a negative cumulative weight value, which affects the accuracy of the flow rate and the control precision.
By continuously acquiring the cumulative weight information of the loss-in-weight scale over multiple preset time periods, performing anti-negative cumulative processing, determining the flow rate information, and determining the control quantity based on the flow rate information, the loss-in-weight scale is controlled to perform the feeding action.
This improves the control accuracy of the loss-in-weight scale when it is disturbed, ensures the accuracy of the flow rate, and reduces the impact of external interference on the control system.
Smart Images

Figure CN117309110B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of loss-in-weight scale technology, and particularly relates to a control method, device, loss-in-weight scale, and readable storage medium for a loss-in-weight scale. Background Technology
[0002] A loss-in-weight weigher is a weighing device that feeds intermittently and discharges continuously. Because the loss control is carried out in the hopper, it can achieve high control accuracy. Its structure is also easy to seal. It is often used for the controlled batching of fine materials such as cement, lime powder, and coal powder.
[0003] When a loss-in-weight scale is subjected to external disturbances during use, the weight may fluctuate erratically. This could cause the weight to suddenly increase instead of decreasing, or it could exhibit abnormal weight decreases, meaning the weight may rebound. In such cases, the accumulated weight can easily become negative, leading to inaccurate flow rate values and consequently affecting the scale's control accuracy. Summary of the Invention
[0004] This application provides a control method, device, loss-in-weight scale, and readable storage medium for a loss-in-weight scale, which can solve the problem of low control accuracy when the loss-in-weight scale is disturbed in related technologies.
[0005] In a first aspect, embodiments of this application provide a control method for a loss-in-weight scale, including: The cumulative value of weight information collected by the loss-in-weight scale over multiple preset time periods is continuously acquired; When the cumulative value of weight information accumulates negatively, the corresponding cumulative value is processed to prevent negative accumulation, resulting in a processed cumulative value. Traffic information is determined based on the processed cumulative value and the corresponding time period; Determine the control quantity based on flow information; The loss-in-weight scale is controlled by a control quantity to perform the feeding action.
[0006] Secondly, embodiments of this application provide a control device for a loss-in-weight scale, comprising: The acquisition module is used to continuously acquire the cumulative value of the weight information collected by the loss-in-weight scale over multiple preset time periods; The processing module is used to perform anti-negative accumulation processing on the corresponding cumulative value when the cumulative value of the weight information is negatively accumulated, and obtain the processed cumulative value. The first determining module is used to determine traffic information based on the processed cumulative value and the corresponding time period. The second determining module is used to determine the control quantity based on the flow information; The execution module is used to control the loss-in-weight scale to perform the feeding action based on the control quantity.
[0007] Thirdly, this application provides a loss-in-weight scale, which applies the control method of the loss-in-weight scale described above.
[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described control method for a loss-in-weight scale.
[0009] Fifthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to execute the aforementioned control method for a loss-in-weight scale.
[0010] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment continuously acquires the cumulative value of weight information collected by the loss-in-weight scale within multiple preset time periods. When the cumulative value of the weight information accumulates negatively, anti-negative accumulation processing is performed on the corresponding cumulative value to obtain a processed cumulative value. Based on the processed cumulative value and the corresponding time period, flow rate information is determined, and then a control quantity is determined based on the flow rate information. Finally, the loss-in-weight scale is controlled to perform the feeding action based on the control quantity. By continuously performing anti-negative accumulation processing on the cumulative value of weight information, this application embodiment makes the calculated flow rate value more accurate, thereby improving the control accuracy of the loss-in-weight scale when it is disturbed. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 This is a schematic diagram illustrating the implementation process of a control method for a loss-in-weight scale provided in an embodiment of this application; Figure 2 This is a schematic diagram of the implementation process of the anti-negative accumulation processing provided in the embodiments of this application; Figure 3 This is a schematic diagram illustrating the negative accumulation of the cumulative value of the weight information provided in the embodiments of this application; Figure 4 This is a schematic diagram illustrating one implementation process of the locking control quantity provided in an embodiment of this application; Figure 5 This is a schematic diagram of an implementation process for determining that the control quantity is no longer over-adjusted, provided in an embodiment of this application. Figure 6 This is a schematic diagram of another implementation process for determining that the control quantity will no longer be over-adjusted, provided in the embodiments of this application; Figure 7 This is a schematic diagram of an implementation process for determining the control quantity provided in an embodiment of this application; Figure 8 This is a schematic diagram illustrating another implementation process of the locking control quantity provided in the embodiments of this application; Figure 9 This is a schematic diagram of another implementation process for determining the control quantity provided in the embodiments of this application; Figure 10 This is a schematic diagram of the control device for a loss-in-weight scale provided in an embodiment of this application. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are protected by this application.
[0014] It should be noted that the terms "comprising," "including," and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application, are intended to cover non-exclusive inclusion. For example, a process, method, terminal, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. Terms such as "first" and "second" in the claims, specification, and accompanying drawings of this application, as well as relational terms, are used merely to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such immediate relationship or order between these entities / operations / objects.
[0015] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0016] A loss-in-weight weigher is a weighing device that provides intermittent feeding and continuous discharge. Because loss control is performed in the hopper, it achieves high control accuracy and its structure is easy to seal. It is commonly used for batching fine materials such as cement, lime powder, and coal powder. When a loss-in-weight weigher is subjected to external disturbances during operation, the weight may fluctuate erratically. This could cause the weight to suddenly increase instead of decrease, or it could exhibit abnormal weight drops, i.e., weight reversals. In such cases, the accumulated weight can easily become negative, leading to inaccurate flow rates and consequently affecting the control accuracy of the loss-in-weight weigher.
[0017] In view of this, the embodiments of this application continuously perform anti-negative accumulation processing on the cumulative value of weight information, so that the calculated flow rate value is more accurate, thereby improving the control accuracy of the loss-in-weight scale when it is disturbed.
[0018] To illustrate the technical solution of this application, specific embodiments are described below.
[0019] Figure 1 This illustration shows a schematic flowchart of a control method for a loss-in-weight scale according to an embodiment of this application. This method can be applied to a loss-in-weight scale. The loss-in-weight scale may include a control unit. The control unit can be located inside the loss-in-weight scale, such as a PLC, or it can be an external terminal device electrically connected to the loss-in-weight scale, such as a mobile phone, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, etc., to apply the aforementioned control method for the loss-in-weight scale.
[0020] Specifically, the control method of the loss-in-weight scale may include the following steps S101 to S105.
[0021] Step S101: Continuously acquire the cumulative value of weight information collected by the loss-in-weight scale within multiple preset time periods.
[0022] A loss-in-weight scale includes at least a weighing platform and a load cell. The load cell continuously acquires the weight information and cumulative value of the material on the weighing platform. The preset time period can be the collection cycle for weight information. The cumulative value can be the value obtained by accumulating the weight of the material over time, that is, the total weight of the material weighed by the loss-in-weight scale within a certain period of time.
[0023] In the embodiments of this application, the weighing sensor can continuously collect the cumulative value of weight information within multiple preset time periods, with a preset time period as one collection cycle. The control unit can be electrically connected to the weighing sensor to continuously acquire the weight information of the material collected by the weighing sensor within multiple preset time periods, thereby obtaining the cumulative value of the weight information.
[0024] Step S102: When the cumulative value of the weight information accumulates negatively, the corresponding cumulative value is processed to prevent negative accumulation, and the processed cumulative value is obtained.
[0025] In some scenarios, as the material on the weighing platform decreases, the weight information collected by the load cells also decreases. However, due to interference with the weighing device (such as a collision), the weight information collected by the load cells suddenly increases, meaning the weight information experiences a pullback. This indicates that the cumulative weight information has entered a negative phase. Negative accumulation refers to a sudden change in the direction of change of the cumulative weight information. When the cumulative weight information enters a negative phase, it can easily lead to inaccurate flow rate values, thereby affecting the control accuracy of the loss-in-weight scale.
[0026] In the embodiments of this application, the control unit can continuously acquire weight information collected by the weighing sensor and continuously determine whether the direction of change of the corresponding cumulative value has changed. When the direction of change of the corresponding cumulative value changes, it can be regarded as the cumulative value has undergone negative accumulation. At this time, the control unit can perform anti-negative accumulation processing on the corresponding cumulative value to obtain the processed cumulative value, thereby reducing or eliminating the impact of negative accumulation of weight information on control accuracy.
[0027] Understandably, the control unit can continuously determine whether the cumulative value of the weight information has accumulated negatively, and continuously perform anti-negative accumulation processing on the accumulated value that has accumulated negatively, so as to continuously monitor the weight information and thus improve the control accuracy of the loss-in-weight scale.
[0028] Step S103: Determine traffic information based on the processed cumulative value and the corresponding time period.
[0029] Here, flow rate is the rate of change of weight per unit time. The cumulative value corresponds to the time period during which the weight information was collected.
[0030] In the embodiments of this application, the control unit can divide the processed cumulative value by the corresponding time period and perform unit conversion to obtain the corresponding flow information.
[0031] The implementation method of this application can calculate both large and small flow rates, thus expanding the applicability of the loss-in-weight scale and basically meeting the needs of both large and small flow rate scenarios. Simultaneously, by dividing by a total time, interference from abnormal data during processing can be reduced, improving the anti-interference performance of the loss-in-weight scale.
[0032] Step S104: Determine the control quantity based on the flow information.
[0033] The control quantity can be a control signal that corresponds to the flow information. It can be used to control the motor of the loss-in-weight scale, adjusting its speed to perform the feeding action. Specifically, the control quantity can include analog and digital quantities, and analog and digital quantities can be converted to each other. Analog quantities can include information such as voltage and current, for example, 0-5V, 4-20mA, etc. Digital quantities can include information such as speed and displacement, for example, PWM pulse signals, RS485 protocol frame data (such as Modbus RTU), Profinet bus communication data, etc.
[0034] In the embodiments of this application, the control unit can acquire real-time flow information and obtain the difference between the real-time flow information and the target flow information (the set target value), and then determine the control quantity based on the difference between the two and the correspondence between the control quantity and the flow information.
[0035] Step S105: Control the loss-in-weight scale to perform the feeding action based on the control quantity.
[0036] In the embodiments of this application, the control unit can control the feeding mechanism in the loss-in-weight scale to perform the corresponding feeding action according to the control quantity, so that the flow rate of the loss-in-weight scale approaches or reaches the target flow rate.
[0037] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment continuously acquires the cumulative value of weight information collected by the loss-in-weight scale within multiple preset time periods. When the cumulative value of the weight information accumulates negatively, anti-negative accumulation processing is performed on the corresponding cumulative value to obtain a processed cumulative value. Based on the processed cumulative value and the corresponding time period, flow rate information is determined, and then a control quantity is determined based on the flow rate information. Finally, the loss-in-weight scale is controlled to perform the feeding action based on the control quantity. By continuously performing anti-negative accumulation processing on the cumulative value of weight information, this application embodiment makes the calculated flow rate value more accurate, thereby improving the control accuracy of the loss-in-weight scale when it is disturbed.
[0038] like Figure 2 As shown, in some embodiments of this application, when the cumulative value of the weight information accumulates negatively, the corresponding cumulative value is subjected to anti-negative accumulation processing to obtain the processed cumulative value, which may specifically include steps S201 to S204.
[0039] To facilitate understanding, an example is provided below. Figure 3The diagram illustrates the negative accumulation of weight information. In segment A1, the weight accumulates positively, and the weight data in this segment continuously decreases. In segment A2, the weight accumulates negatively, and the weight data in this segment suddenly increases. In segment A3, the negative accumulation of weight is canceled out, and the weight data in this segment resumes its decline, with the amount of weight decrease being equal to the amount of weight increase in segment A2. In segment A4, the weight resumes its positive accumulation, and the weight data in this segment continuously decreases.
[0040] Step S201: When the cumulative value of the weight information accumulates negatively, the output of the corresponding first cumulative value is set to zero until the cumulative value of the weight information returns to positive accumulation.
[0041] The first cumulative value is the cumulative value of weight information during the negative accumulation process.
[0042] In the embodiments of this application, when the cumulative value of the weight information accumulates negatively, the corresponding Figure 3 In segment A2, the control unit can set the output of the corresponding first cumulative value to zero until the cumulative value of the weight information resumes positive accumulation (that is, until the weight information is at the starting position of segment A3). Setting the output of the first cumulative value to zero means that the weight information of segment A2 is regarded as consistent with the weight information at the starting position of segment A2, that is, it can be considered that the weight of segment A2 has not changed compared to the starting position of segment A2.
[0043] The implementation of this application sets the first cumulative value output to zero, so that the cumulative value of weight information caused by external interference will not have a significant impact on the final output cumulative value after it accumulates negatively.
[0044] Step S202: When the cumulative value of the weight information resumes positive accumulation, the output of the corresponding second cumulative value is set to zero until the first cumulative value and the second cumulative value are equal.
[0045] The second cumulative value is the cumulative value of weight information during the process of switching from negative to positive cumulative, and the cumulative value of positive cumulative is equal to the cumulative value of negative cumulative.
[0046] In the embodiments of this application, when the cumulative value of the weight information resumes positive accumulation, the corresponding Figure 3 In segment A3, the control unit can set the output of the corresponding second cumulative value to zero until the first cumulative value and the second cumulative value are equal (that is, until the weight information is at the beginning of segment A4). Setting the output of the second cumulative value to zero means that the weight information of segment A3 is considered to be consistent with the weight information at the beginning of segment A2, that is, the weight of segment A3 can be considered to have not changed compared to the beginning of segment A2.
[0047] The embodiments of this application achieve anti-negative accumulation processing by setting the output of the second cumulative value to zero, so that the second cumulative value can cancel out the first cumulative value.
[0048] Step S203: After the first cumulative value and the second cumulative value are equal, the corresponding third cumulative value is output normally.
[0049] Among them, the third cumulative value is the cumulative value of the weight information after the weight information offsets the negative cumulative value.
[0050] In the embodiments of this application, although the control unit sets the outputs of the first cumulative value and the second cumulative value to zero, the control unit can still obtain the actual values of the first cumulative value and the second cumulative value, thereby determining whether the first cumulative value and the second cumulative value are equal. When the first cumulative value and the second cumulative value are equal, the corresponding... Figure 3 The A3 segment in the code. At this point, the negative cumulative effect of the weight information has been eliminated, and the control unit can output the third cumulative value normally, that is, without changing the output value of the third cumulative value.
[0051] Step S204: Combine the cumulative value before the negative accumulation, the first cumulative value, the second cumulative value, and the third cumulative value to obtain the processed cumulative value.
[0052] In the embodiments of this application, the cumulative value before the negative accumulation occurs is... Figure 3 The cumulative value of the weight information in segment A1, combined with the cumulative value of the weight information in segment A1, the first cumulative value with zero output, the second cumulative value with zero output, and the third cumulative value with normal output, can be used to obtain the processed cumulative value, that is, the cumulative value of the weight information after anti-negative cumulative processing in the entire cumulative process.
[0053] During use, loss-in-weight scales are prone to over-adjustment of the control quantity. Specifically, when the flow rate is consistently lower or higher than the target flow rate, the control quantity is continuously adjusted in one direction. At the same time, because the sampling time is extended too much, the flow rate may not be adjusted to the correct value in time, resulting in over-adjustment of the control quantity.
[0054] In view of this, such as Figure 4 As shown, in some specific embodiments of this application, after determining the control quantity based on the flow information and before controlling the loss-in-weight scale to perform the feeding action based on the control quantity, the method may further include steps S401 to S403.
[0055] Step S401: Determine whether the control quantity has been over-adjusted.
[0056] In the embodiments of this application, the control unit can acquire real-time flow information and the corresponding control quantity, thereby obtaining the direction of change of the flow information and the direction of change of the corresponding control quantity. When the flow information changes in one direction for a preset number of times, and the corresponding control quantity changes in one direction for a preset number of times, it can be determined that the control quantity has been over-regulated.
[0057] For example, if the flow rate changes 100 times in an increasing direction (100 times has reached or exceeded a preset number), and the control quantity also changes 100 times in an increasing direction, it can be determined that the control quantity has been over-regulated. Alternatively, if the flow rate changes 100 times in an increasing direction (100 times has reached or exceeded a preset number), and the control quantity changes 100 times in a decreasing direction, it can also be determined that the control quantity has been over-regulated. This application does not limit the direction of change of the flow rate information or the direction of change of the control quantity in its embodiments.
[0058] Step S402: If the control quantity is over-adjusted, lock the control quantity until it is determined that the control quantity is no longer over-adjusted.
[0059] In the embodiments of this application, when the control quantity is over-adjusted, the control unit can lock the control quantity, that is, lock the output of the control quantity to the value of the control quantity corresponding to the moment before the over-adjustment occurred, and keep it locked until the control quantity no longer over-adjusts.
[0060] Specifically, such as Figure 5 As shown, in some embodiments of this application, the above-mentioned determination control quantity is no longer over-adjusted, which may specifically include steps S501 and S502.
[0061] Step S501: Obtain real-time traffic information and determine whether the real-time traffic information exceeds the target traffic value.
[0062] Step S502: If the real-time flow information exceeds the target flow value, it is determined that the control quantity will no longer be over-adjusted.
[0063] In the embodiments of this application, the control unit can acquire real-time flow information and a preset target flow value, and determine whether the real-time flow information exceeds the target flow value. If the real-time flow information exceeds the target flow value, it indicates that the real-time flow has been adjusted to the appropriate level, and it can be determined that the control quantity will no longer be over-adjusted.
[0064] In addition, such as Figure 6 As shown, in some embodiments of this application, the above-mentioned determination control quantity is no longer over-adjusted, and may specifically include steps S601 and S602.
[0065] Step S601: Obtain real-time traffic information and determine whether the direction of change of the real-time traffic information has changed.
[0066] In step S602, if the direction of change of the real-time flow information changes, it is determined that the control quantity will no longer be over-adjusted.
[0067] In the embodiments of this application, the control unit can acquire real-time flow information and determine whether the direction of change of the real-time flow information has changed. If the direction of change of the real-time flow information changes, for example, if the direction of change of the real-time flow information changes from continuous increase to decrease, it can be said that the real-time flow has been adjusted to the appropriate level (because after the real-time flow value reaches the vicinity of the target flow value, it will change around the target flow value, that is, it may rise above the target flow value and then fall below the target flow value). At this time, it can be determined that the control quantity is no longer over-adjusted.
[0068] Step S403: When the control quantity is no longer over-adjusted, unlock the control quantity.
[0069] In the embodiments of this application, when the control quantity no longer over-adjusts, the control unit can unlock the control quantity, that is, no longer lock the output of the control quantity to the value of the control quantity corresponding to the moment before the over-adjustment occurred, and the calculated control quantity is the output of the control quantity.
[0070] The embodiments of this application lock the control quantity when the control quantity is over-adjusted, which can maintain the control quantity within a suitable range and reduce the time for the real-time flow to reach the target flow value.
[0071] When a loss-in-weight scale is subjected to external interference during use, such as a collision, the acquired flow rate information can be affected, thus impacting control accuracy.
[0072] In view of this, such as Figure 7 As shown, in some embodiments of this application, the above-mentioned determination of the control quantity based on the traffic information may specifically include steps S701 to S705.
[0073] Step S701: Obtain real-time weight information.
[0074] In the embodiments of this application, the control unit can acquire weight information collected in real time by the weighing sensor.
[0075] Step S702: Obtain the target flow rate value and obtain the target weight change value based on the target flow rate value.
[0076] In the embodiments of this application, the control unit can obtain a preset target flow rate value and use the flow rate value calculation formula to divide the target flow rate value by the sampling interval time to obtain the target weight change value.
[0077] Step S703: Determine whether the flow rate information is interfered with based on real-time weight information and target weight change value.
[0078] In the embodiments of this application, the control unit can acquire real-time weight information and weight information at the moment before the sampling interval. Subtracting the weight information at the moment before the sampling interval from the real-time weight information yields the actual weight change value within that sampling interval. The control unit then calculates whether the difference between the actual weight change value and the target weight change value is greater than a preset value (the preset value can be set empirically). If it is greater, it indicates that the change in the material's weight information within one sampling interval exceeds the sum of the target weight change and the preset value, meaning the flow rate calculated by the loss-in-weight scale has been disturbed.
[0079] Step S704: If the flow information is interfered with, the current flow information corresponding to the real-time weight information is used as the future flow information within the first preset time after the current time.
[0080] In the embodiments of this application, when the control unit determines that the flow information is disturbed, it can calculate the current flow information based on the actual weight information. Simultaneously, the current flow information is used as the future flow information within a first preset time period after the current time. The first preset time period can be set empirically, for example, it can be set to 3 seconds.
[0081] For example, if the traffic information is interfered with, the control unit can use the current traffic information as the traffic information for the next 3 seconds.
[0082] It should be understood that when a loss-in-weight scale is disturbed, if the flow rate information is not controlled, the flow rate information is prone to large fluctuations, ultimately affecting the control accuracy. The embodiment of this application, after identifying disturbances in the flow rate information, uses the current flow rate information as the future flow rate information for a future period, preventing large fluctuations in the flow rate information. Furthermore, after the disturbance is resolved, it facilitates rapid adjustment of the flow rate information, thereby improving the anti-interference capability and control accuracy of the loss-in-weight scale.
[0083] Step S705: Determine the control quantity based on future traffic information.
[0084] In the embodiments of this application, the control quantity can be determined by referring to the above step S104, which will not be repeated here.
[0085] like Figure 8 As shown, in some embodiments of this application, after determining the control quantity based on future traffic information, the method may further include steps S801 to S804.
[0086] Step S801: After the flow information is disturbed, the control quantity is locked within a second preset time.
[0087] In the embodiments of this application, when the flow information is disturbed, the control unit can lock the control quantity within a second preset time period, that is, lock the control quantity at the moment before the disturbance, and the output of the control quantity during the subsequent disturbance period will be the value of the control quantity at the moment before the disturbance. The second preset time can be set by experience, for example, it can be set to 5 seconds.
[0088] Step S802: After the control quantity lock time reaches the second preset time, re-determine whether the flow information is disturbed.
[0089] In the embodiments of this application, after locking the control quantity for a second preset time, the control unit can re-determine whether the flow information is disturbed. The specific determination steps can be referred to step S703 above, and will not be repeated here.
[0090] In step S803, if the traffic information is not disturbed, the control quantity is unlocked, and the unlocked control quantity is determined based on the real-time traffic information.
[0091] In the embodiments of this application, if the flow information is not interfered with, it means that the interference has been eliminated and the control quantity can be output normally. At this time, the control unit can unlock the control quantity and determine the control quantity according to the real-time flow information, and use the value of the control quantity as the output of the control quantity.
[0092] In step S804, if the traffic information is disturbed, the control quantity is locked until it is determined that the traffic information is not disturbed. Then the control quantity is unlocked, and the unlocked control quantity is determined based on the real-time traffic information.
[0093] In the embodiments of this application, if the flow information is still interfered with, the control unit can continue to lock the control quantity, and the locking time remains the second preset time. After locking for the second preset time, it continues to determine whether the flow information is interfered with. If it is still interfered with, the above locking steps are repeated until it is determined that the flow information is not interfered with, at which point the unlocking step is performed.
[0094] The implementation method of this application locks the control quantity synchronously when the flow information is disturbed, which can prevent large fluctuations in the flow information and thus improve the control accuracy of the loss-in-weight scale.
[0095] like Figure 9 As shown, in some embodiments of this application, the above-mentioned determination of the control quantity based on flow information may specifically include steps S901 to S907.
[0096] Step S901: Determine the correspondence between flow information and control quantity based on flow calibration.
[0097] Step S902: Obtain the target traffic value.
[0098] Step S903: Determine the difference between the flow information and the target flow value.
[0099] Step S904: Obtain the control quantity adjustment period and get the ratio of the time period to the control quantity adjustment period.
[0100] Step S905: Obtain the proportional adjustment coefficient.
[0101] Step S906: Obtain the control quantity adjustment value based on the correspondence, difference, ratio, and proportional adjustment coefficient.
[0102] Step S907: Determine the corresponding current control quantity based on the current flow information, and adjust the current control quantity based on the control quantity adjustment value to obtain the control quantity.
[0103] The control quantity adjustment cycle is a preset detection time cycle. The time period is the actual data acquisition time. The proportional adjustment coefficient is set by the user and is used to adjust the control quantity.
[0104] In the embodiments of this application, flow information and control quantity can first be calibrated to obtain the correspondence between them. The control unit can acquire the target flow value and calculate the difference between the flow information and the target flow value. Dividing the time period by the control quantity adjustment cycle yields the adjustment multiple. The formula for calculating the control quantity adjustment value is as follows:
[0105] in, Adjustment value for control quantity; This is the ratio coefficient between flow information and control quantity; This is the difference between the traffic information and the target traffic value; It is the ratio of the time period to the control quantity adjustment cycle; This is the proportional adjustment coefficient.
[0106] The control unit can calculate the control quantity adjustment value using the above formula. Then, using the current flow information and the proportional coefficient between the flow information and the control quantity, the current control quantity is obtained. Finally, the control quantity is adjusted using the control quantity adjustment value to obtain the final control quantity (this control quantity is adjusted in real time).
[0107] Figure 10 This illustration shows a structural schematic diagram of a control device for a loss-in-weight scale according to an embodiment of this application. The control device 10 for the loss-in-weight scale can be applied to a loss-in-weight scale. Specifically, the control device 10 for the loss-in-weight scale may include: The acquisition module 1001 is used to continuously acquire the cumulative value of the weight information collected by the loss-in-weight scale within multiple preset time periods.
[0108] The processing module 1002 is used to perform anti-negative accumulation processing on the corresponding cumulative value when the cumulative value of the weight information has a negative accumulation, so as to obtain the processed cumulative value.
[0109] The first determining module 1003 is used to determine traffic information based on the processed cumulative value and the corresponding time period.
[0110] The second determining module 1004 is used to determine the control quantity based on the flow information.
[0111] The execution module 1005 is used to control the loss-in-weight scale to perform the feeding action based on the control quantity.
[0112] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment continuously acquires the cumulative value of weight information collected by the loss-in-weight scale within multiple preset time periods. When the cumulative value of the weight information accumulates negatively, anti-negative accumulation processing is performed on the corresponding cumulative value to obtain a processed cumulative value. Based on the processed cumulative value and the corresponding time period, flow rate information is determined, and then a control quantity is determined based on the flow rate information. Finally, the loss-in-weight scale is controlled to perform the feeding action based on the control quantity. By continuously performing anti-negative accumulation processing on the cumulative value of weight information, this application embodiment makes the calculated flow rate value more accurate, thereby improving the control accuracy of the loss-in-weight scale when it is disturbed.
[0113] In some embodiments of this application, the processing module 1002 is further configured to: when the cumulative value of the weight information experiences negative accumulation, set the output of the corresponding first cumulative value to zero until the cumulative value of the weight information returns to positive accumulation; when the cumulative value of the weight information returns to positive accumulation, set the output of the corresponding second cumulative value to zero until the first cumulative value and the second cumulative value are equal; after the first cumulative value and the second cumulative value are equal, output the corresponding third cumulative value normally; and combine the cumulative value before the negative accumulation, the first cumulative value, the second cumulative value, and the third cumulative value to obtain the processed cumulative value.
[0114] In some embodiments of this application, the control device 10 of the loss-in-weight scale may further include a judgment module for: judging whether the control quantity has been over-adjusted; if the control quantity has been over-adjusted, locking the control quantity until it is determined that the control quantity is no longer over-adjusted; and unlocking the control quantity when the control quantity is no longer over-adjusted.
[0115] In some embodiments of this application, the above-mentioned judgment module can also be used to: acquire real-time traffic information and determine whether the real-time traffic information exceeds the target traffic value; if the real-time traffic information exceeds the target traffic value, determine that the control quantity will no longer be over-adjusted; or, acquire real-time traffic information and determine whether the direction of change of the real-time traffic information has changed; if the direction of change of the real-time traffic information has changed, determine that the control quantity will no longer be over-adjusted.
[0116] In some embodiments of this application, the first determining module 1003 described above can also be used to: obtain real-time weight information; obtain a target flow rate value and obtain a target weight change value based on the target flow rate value; determine whether the flow rate information is interfered with based on the real-time weight information and the target weight change value; if the flow rate information is interfered with, take the current flow rate information corresponding to the real-time weight information as the future flow rate information within a first preset time after the current time; and determine the control quantity based on the future flow rate information.
[0117] In some embodiments of this application, the first determining module 1003 described above can also be used to: lock the control quantity within a second preset time after the traffic information is interfered with; after the locking time of the control quantity reaches the second preset time, re-determine whether the traffic information is interfered with; if the traffic information is not interfered with, unlock the control quantity and determine the unlocked control quantity based on the real-time traffic information; if the traffic information is interfered with, keep the control quantity locked until it is determined that the traffic information is not interfered with, then unlock the control quantity and determine the unlocked control quantity based on the real-time traffic information.
[0118] In some embodiments of this application, the second determining module 1004 described above can also be used to: determine the correspondence between flow information and control quantity based on flow calibration; obtain a target flow value; determine the difference between flow information and target flow value; obtain the control quantity adjustment period and obtain the ratio of the time period to the control quantity adjustment period; obtain a proportional adjustment coefficient; obtain a control quantity adjustment value based on the correspondence, difference, ratio and proportional adjustment coefficient; determine the corresponding current control quantity based on the current flow information, and adjust the current control quantity based on the control quantity adjustment value to obtain the control quantity.
[0119] This application also provides a loss-in-weight scale, which can be controlled using the above-described loss-in-weight scale control method.
[0120] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described control method for a loss-in-weight scale.
[0121] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps in the above-described loss-in-weight scale control method.
[0122] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0123] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for various specific applications, but such implementations should not be considered beyond the scope of this application.
[0124] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0125] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0126] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0127] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0128] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A control method of a loss-in-weight scale, characterized by, Applied to loss-in-weight scales, the method includes: The cumulative value of the weight information collected by the loss-in-weight scale within multiple preset time periods is continuously acquired; When the cumulative value of the weight information accumulates negatively, the corresponding cumulative value is subjected to anti-negative accumulation processing to obtain the processed cumulative value; Traffic information is determined based on the processed cumulative value and the corresponding time period. The control quantity is determined based on the flow information; The loss-in-weight scale is controlled to perform a feeding action based on the control quantity; When the cumulative value of the weight information experiences a negative accumulation, the corresponding cumulative value of the weight information is subjected to anti-negative accumulation processing to obtain a processed cumulative value, including: When the cumulative value of the weight information accumulates in a negative direction, the output of the corresponding first cumulative value is set to zero until the cumulative value of the weight information returns to a positive direction. When the cumulative value of the weight information resumes positive accumulation, the output of the corresponding second cumulative value is set to zero until the first cumulative value and the second cumulative value are equal. After the first cumulative value and the second cumulative value are equal, the corresponding third cumulative value will be output normally. The processed cumulative value is obtained by combining the cumulative value before the negative accumulation, the first cumulative value, the second cumulative value, and the third cumulative value. Wherein, the first cumulative value is the cumulative value of weight information during the negative accumulation process; The second cumulative value is the cumulative value of weight information during the process of switching from negative to positive accumulation, and the cumulative value of positive accumulation being equal to the cumulative value of negative accumulation. The third cumulative value is the cumulative value of the weight information after the weight information offsets the negative cumulative value; The step of determining the control quantity based on the flow information includes: Obtain real-time weight information; Obtain the target flow rate value, and based on the target flow rate value, obtain the target weight change value; Based on the real-time weight information and the target weight change value, it is determined whether the flow information is interfered with; If the traffic information is interfered with, the current traffic information corresponding to the real-time weight information will be used as the future traffic information within a first preset time after the current time. The control quantity is determined based on the future traffic information.
2. The control method of the loss-of-weight scale according to claim 1, characterized by, After determining the control quantity based on the flow information and before controlling the loss-in-weight scale to perform the feeding action based on the control quantity, the method further includes: Determine whether the control quantity has been over-adjusted; If the control quantity is over-adjusted, the control quantity is locked until it is determined that the control quantity is no longer over-adjusted. When the control quantity is no longer over-adjusted, the control quantity is unlocked.
3. The control method of the loss-of-weight scale according to claim 2, characterized by, The determination that the control quantity is no longer over-adjusted includes: Obtain real-time traffic information and determine whether the real-time traffic information exceeds the target traffic value; If the real-time traffic information exceeds the target traffic value, it is determined that the control quantity will no longer be over-adjusted; Alternatively, obtain real-time traffic information and determine whether the direction of change of the real-time traffic information has changed; If the direction of change of the real-time flow information changes, it is determined that the control quantity will no longer be over-adjusted.
4. The control method of the loss-of-weight scale according to claim 1, characterized by, After determining the control quantity based on the future traffic information, the method further includes: After the flow information is disturbed, the control quantity is locked within a second preset time. After the lock time of the control quantity reaches the second preset time, it is re-evaluated whether the flow information has been interfered with; If the traffic information is not disturbed, the control quantity is unlocked, and the unlocked control quantity is determined based on the real-time traffic information. If the traffic information is interfered with, the control quantity is kept locked until it is determined that the traffic information is not interfered with. Then the control quantity is unlocked, and the unlocked control quantity is determined based on the real-time traffic information.
5. The control method for the loss-in-weight scale as described in claim 1, characterized in that, The step of determining the control quantity based on the flow information further includes: The correspondence between the flow information and the control quantity is determined based on flow calibration; Obtain the target traffic value; Determine the difference between the traffic information and the target traffic value; Obtain the control quantity adjustment period and get the ratio of the time period to the control quantity adjustment period; Obtain the proportional adjustment coefficient; The control quantity adjustment value is obtained based on the correspondence, the difference, the ratio, and the proportional adjustment coefficient. The corresponding current control quantity is determined based on the current flow information, and the current control quantity is adjusted based on the control quantity adjustment value to obtain the control quantity.
6. A control device for a loss-in-weight scale, characterized in that, The device, used in loss-in-weight scales, includes: The acquisition module is used to continuously acquire the cumulative value of the weight information collected by the loss-in-weight scale within multiple preset time periods; The processing module is used to perform anti-negative accumulation processing on the corresponding cumulative value when the cumulative value of the weight information has a negative accumulation, so as to obtain the processed cumulative value; The first determining module is used to determine traffic information based on the processed cumulative value and the corresponding time period. The second determining module is used to determine the control quantity based on the flow information; The execution module is used to control the loss-in-weight scale to perform the feeding action based on the control quantity; When the cumulative value of the weight information experiences a negative accumulation, the corresponding cumulative value of the weight information is subjected to anti-negative accumulation processing to obtain a processed cumulative value, including: When the cumulative value of the weight information accumulates in a negative direction, the output of the corresponding first cumulative value is set to zero until the cumulative value of the weight information returns to a positive direction. When the cumulative value of the weight information resumes positive accumulation, the output of the corresponding second cumulative value is set to zero until the first cumulative value and the second cumulative value are equal. After the first cumulative value and the second cumulative value are equal, the corresponding third cumulative value will be output normally. The processed cumulative value is obtained by combining the cumulative value before the negative accumulation, the first cumulative value, the second cumulative value, and the third cumulative value. Wherein, the first cumulative value is the cumulative value of weight information during the negative accumulation process; The second cumulative value is the cumulative value of weight information during the process of switching from negative to positive accumulation, and the cumulative value of positive accumulation being equal to the cumulative value of negative accumulation. The third cumulative value is the cumulative value of the weight information after the weight information offsets the negative cumulative value; The step of determining the control quantity based on the flow information includes: Obtain real-time weight information; Obtain the target flow rate value, and based on the target flow rate value, obtain the target weight change value; Based on the real-time weight information and the target weight change value, it is determined whether the flow information is interfered with; If the traffic information is interfered with, the current traffic information corresponding to the real-time weight information will be used as the future traffic information within a first preset time after the current time. The control quantity is determined based on the future traffic information.
7. A loss-in-weight scale, employing the control method for a loss-in-weight scale as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the control method for the loss-in-weight scale as described in any one of claims 1 to 5.