Feeding control method of feeding machine, medium and equipment
By using intelligent algorithm filtering and PID control, interference signals in the feeder are eliminated, enabling precise control of the feeder. This solves the problems of control accuracy and stability of the feeder in complex environments, thereby improving production efficiency and product quality.
Patent Information
- Application Number
- CN202410967953.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-22
AI Technical Summary
Existing loss-in-weight feeders lack sufficient control precision and stability when faced with complex and ever-changing material characteristics and production environments. In particular, they cannot effectively filter out weight changes caused by interference such as human touch, which affects feeding accuracy.
The weight data is filtered and processed using an intelligent algorithm, which is then converted into a flow signal. The passability of the signal is judged by comparing the standard deviation rate and preset values. The unqualified signal is replaced by calling the standard curve. The feeding speed is adjusted using a PID algorithm, and interference is eliminated by combining Fourier, exponential weighted moving average and median recursive average algorithms to achieve precise control.
It improves the control precision and stability of the feeder, can adapt to changes in different material characteristics and production environment, improves production efficiency and product quality, and has good scalability and flexibility.
Smart Images

Figure CN119002230A_ABST
Abstract
Description
Technical Field
[0001] The invention mainly relates to the technical field of food and medicine packaging, and in particular to a feeding control method, medium and equipment of a feeding machine. Background Art
[0002] The loss-in-weight feeder consists of a hopper, a feeder (single-axis or double-axis screw feeder), a weighing system and a regulator. During operation, the hopper, material and feeder are weighed together continuously. As the material is delivered, the actual weight loss rate is measured and compared with the required weight loss rate (set value). The loss-in-weight feeder automatically corrects the deviation from the set point by adjusting the feeder rate. Thus, the material can be fed continuously and evenly and accurately. Loss-in-weight feeders have been widely used in industrial production due to their high precision and continuity. However, the control accuracy and stability of existing loss-in-weight feeders still need to be improved when facing complex and changeable material properties and production environments. For example, existing feeders are equipped with sensors for detecting weight, and the discharge amount is determined by weight changes. In actual production, the weight change is affected by many factors, such as vibration, human touch, etc. The existing methods cannot filter out the data of weight changes caused by human touch, etc., making the weight inaccurate. Summary of the invention
[0003] In view of the technical problems existing in the prior art, the present invention provides a feeding control method, medium and equipment for a precisely controlled feeder.
[0004] In order to solve the above technical problems, the technical solution proposed by the present invention is:
[0005] A feeding control method for a feeder, comprising the steps of:
[0006] 1) Obtain the real-time weight data of the feeder and filter the weight data;
[0007] 2) Convert the filtered weight signal into a flow signal;
[0008] 3) Obtaining the standard deviation rate according to the flow signal, and comparing the standard deviation rate with the preset value; when the standard deviation rate is less than the preset value, the corresponding flow signal is determined to be qualified; otherwise, the corresponding flow signal is determined to be unqualified, and the data in the preset standard curve is called to replace the current unqualified flow signal;
[0009] 4) Adjust the feeding speed of the feeder according to the flow signal obtained in step 3).
[0010] Preferably, the specific process of obtaining the standard deviation rate is:
[0011] W′=(w1+w2+w3+...Wn) / n
[0012]
[0013]
[0014] Where W1, W2, W3…Wn are the flow signals of n cycles; W' is the mean; σ is the standard deviation; CV is the standard deviation rate.
[0015] Preferably, in step 1), the filtering process includes a Fourier algorithm and / or a median recursive averaging algorithm.
[0016] Preferably, in step 2), an exponentially weighted moving average algorithm is used to convert the filtered weight signal into a flow signal.
[0017] Preferably, in step 4), the feeding speed is adjusted by a PID algorithm.
[0018] Preferably, the specific process of the PID algorithm is:
[0019] Automatically allocate structure array A and structure array B. Array A is used to store the running data corresponding to different weights. Each running data contains weight, speed and continuous running time under the current weight. Array B is used to store the most recent m array A data.
[0020] In a stable production state, the collected data is stored in the corresponding array A index; when a production cycle ends, the data in array A is automatically stored in array B, and array A is cleared at the same time;
[0021] When a complete production cycle is completed, data B is cleaned and fitted to obtain array C;
[0022] Adjust PID parameters according to array C.
[0023] Preferably, in the fitting operation, the qualified values in data B are averaged after removing the maximum and minimum values, and the structure array is obtained and stored in array C.
[0024] The present invention also discloses a computer program product, comprising a computer program, wherein the computer program executes the steps of the method described above when executed by a processor.
[0025] The present invention further discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are executed.
[0026] The present invention also discloses a computer device, comprising a memory and a processor connected to each other, wherein a computer program is stored in the memory, and when the computer program is run by the processor, the steps of the method described above are executed.
[0027] Compared with the prior art, the advantages of the present invention are:
[0028] The present invention can automatically adapt to the changes of different material characteristics and production environment by introducing intelligent algorithms, improve control accuracy and stability; predict and optimize the feeding process according to historical data and real-time data, and further improve production efficiency; the control system has good scalability and flexibility, and can be easily integrated into other industrial automation systems; the present invention can achieve precise control of the feeder by introducing intelligent algorithms, improve production efficiency and product quality. At the same time, the system has good scalability and flexibility, providing a new solution for the field of industrial automation control. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 The flowchart of the control method of the present invention is an embodiment.
[0030] Figure 2 This is a weight-flow conversion relationship diagram in the present invention.
[0031] Figure 3 This is a flow chart for determining the eligibility of a flow signal in the present invention.
[0032] Figure 4 The figure is a flow chart of an embodiment of data collection in the present invention.
[0033] Figure 5 It is a curve fitting flow chart of the present invention. DETAILED DESCRIPTION
[0034] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0035] like Figure 1 As shown, the feeding control method of the feeder of the embodiment of the present invention specifically includes the steps of:
[0036] 1) Obtain the real-time weight data of the feeder and filter the weight data;
[0037] 2) Convert the filtered weight signal into a flow signal;
[0038] 3) Obtaining the standard deviation rate according to the flow signal, and comparing the standard deviation rate with the preset value; when the standard deviation rate is less than the preset value, the corresponding flow signal is determined to be qualified; otherwise, the corresponding flow signal is determined to be unqualified, and the data in the preset standard curve is called to replace the current unqualified flow signal;
[0039] 4) Adjust the feeding speed of the feeder according to the flow signal obtained in step 3).
[0040] In a specific embodiment, the filtering in step 1) is to eliminate the common periodic and non-periodic medium and high frequency signal interference signals in the production process to achieve the purpose of accurate measurement, mainly including Fourier algorithm and median recursive averaging algorithm.
[0041] The Fourier algorithm is used to eliminate periodic interference signals, converting the signal from the time domain to the frequency domain, thereby revealing the spectral characteristics of the signal. The eliminated clutter is converted into a time domain signal through the inverse Fourier transform, thereby eliminating unnecessary clutter.
[0042] Under normal production conditions, loss-in-weight scales have two working conditions: feeding and supplementing. The weight gradually decreases during feeding and gradually increases during supplementing. There is no situation where the weight is sometimes large and sometimes small. At this time, the median filtering algorithm will have a significant effect. The larger the period parameter of the median filter, the more obvious the effect. At the same time, the median filter has an obvious disadvantage, which is the large delay, so it is initially used in combination with the median recursive average filtering algorithm.
[0043] The above method can eliminate periodic interference and non-periodic medium and high frequency interference signals. However, in daily production processes, low-frequency non-periodic interference signals such as knocking, air disturbances, and non-periodic vibrations are often encountered. This requires the system to be able to identify these interference signals and correct them.
[0044] In a specific embodiment, if Figure 2 As shown, in step 2), the exponentially weighted moving average (EWMA) algorithm is used in the process of converting weight to flow. The exponentially weighted moving average is a moving average method that gives higher weight to the most recent data points. It calculates the average value by assigning a weight to each data point that decays over time. In EWMA, closer data points have a greater impact on the average value, while farther data points have a smaller impact. This weighting method makes EWMA more sensitive to changes in weight while not fluctuating too much, specifically:
[0045]
[0046] Where F is the flow rate; a n is the weight; ΔG is the weight change; ΔT is the time change; n is the weight index number.
[0047] In a specific embodiment, in step 3), a preset standard curve is obtained by a curve fitting algorithm. Specifically, the curve fitting algorithm collects and stores the system's operating data periodically when the system is operating normally, collects the operating data of the last 10 cycles (weight, the output speed corresponding to the weight, and the duration of the current weight), and performs data cleaning, analysis, and fitting operations on the counted data to finally form a standard curve. When the system fluctuation is greater than the set value, the data in the fitting curve is called to replace the current measurement data.
[0048] like Figure 3 As shown in the figure, the method for determining the fluctuation size is to perform standard deviation analysis on the sampling data of the latest n cycles; when the standard deviation is greater than the set value, it is unqualified. The specific process of obtaining the standard deviation is:
[0049] W′=(w1+w2+w3+...Wn) / n
[0050]
[0051]
[0052] Where W1, W2, W3…Wn are flow signals of n cycles; W′ is the mean; σ is the standard deviation; CV is the standard deviation rate.
[0053] In a specific embodiment, in step 4), the feeding speed is adjusted by a PID algorithm. Figure 4 As shown, a structure array A with a length of 300 and a structure array B with a length of 10 are automatically allocated when the machine is turned on. Array A is used to store the operation data corresponding to different weights. Each data contains weight, speed and continuous operation time under the current weight. Array B is used to store the latest 10 arrays of A. When the system determines that it is in a stable production state, it automatically turns on the data collection function, and performs preliminary preprocessing on the collected data and stores it in the corresponding array A index. When a production cycle ends, the data in array A is automatically stored in array B, and array A is cleared at the same time;
[0054] like Figure 5 As shown in the figure, when a complete production cycle is completed, a data fitting operation is triggered. After receiving the fitting instruction, the system automatically performs data cleaning and fitting operations on array B. Array B is a structure array with a length of 10, a width of 300, and a depth of 3. First, the data validity is judged row by row. If it is qualified, it is added to the operation, and if it is unqualified, it is removed; then the maximum and minimum values of the qualified values are removed and the average is calculated. Finally, a structure array with a length of 300 and a width of 3 is fitted and stored in array C;
[0055] Finally, the control execution end adjusts the parameters in PID according to array C, and then outputs signals to the servo motor to achieve the purpose of precise control. The average value in array C can be used to determine the intensity of proportional P control; the data trend and fluctuation in array C can be used to adjust the integral time constant to avoid overshoot and oscillation in system response; the data change rate in array C can be used to adjust the differential time constant to improve dynamic performance.
[0056] The fitting results in the above array C can provide a basis for adjusting the PID parameters, so that the system can reach a stable state faster, reduce overshoot and oscillation, improve control accuracy, and automatically adjust the feeding speed of the feeder to achieve precise control of the feeding process.
[0057] An embodiment of the present invention also discloses a feeding control system for a feeder, comprising a data acquisition module, an intelligent algorithm module and a control execution module; the data acquisition module, the intelligent algorithm module and the control execution module are connected in sequence; the data acquisition module is used to collect various operating data of the feeder in real time; the intelligent algorithm module is used to process and analyze the collected data, and output control instructions according to preset control objectives and constraints; the control execution module is used to automatically adjust the feeding speed (PID adjustment) according to the control instructions to achieve precise control.
[0058] In the intelligent algorithm module, a combination of multiple intelligent algorithms can be used to fully utilize the advantages of various algorithms. For example, Fourier algorithm, median recursive averaging algorithm, median filtering algorithm, curve fitting method, exponential weighted moving average algorithm, PID algorithm. In addition, the present invention can also add other functional modules according to actual needs, such as fault detection and diagnosis module, remote monitoring and debugging module, etc., to further improve the function of the control system.
[0059] The present invention can automatically adapt to the changes of different material characteristics and production environment by introducing intelligent algorithms, improve control accuracy and stability; predict and optimize the feeding process according to historical data and real-time data, and further improve production efficiency; the control system has good scalability and flexibility, and can be easily integrated into other industrial automation systems; the present invention can achieve precise control of the feeder by introducing intelligent algorithms, improve production efficiency and product quality. At the same time, the system has good scalability and flexibility, providing a new solution for the field of industrial automation control.
[0060] The embodiment of the present invention further discloses a computer program product, including a computer program, which executes the steps of the above method when executed by a processor. The embodiment of the present invention further discloses a computer readable storage medium, which stores a computer program, which executes the steps of the above method when executed by a processor. The embodiment of the present invention further discloses a computer device, including a memory and a processor connected to each other, the memory stores a computer program, and the computer program executes the steps of the above method when executed by the processor. The product, medium and device of the present invention correspond to the above method and also have the advantages of the above method.
[0061] The present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by hardware related to computer program instructions. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media include: any entity or device that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. The memory is used to store computer programs and / or modules, and the processor implements various functions by running or executing computer programs and / or modules stored in the memory, and calling data stored in the memory. The memory may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, an internal memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0062] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A feeding control method for a feeder, It is characterized in that Includes steps: 1) Obtain the real-time weight data of the feeder and filter the weight data; 2) Convert the filtered weight signal into a flow signal; 3) Obtaining the standard deviation rate according to the flow signal, and comparing the standard deviation rate with the preset value; when the standard deviation rate is less than the preset value, the corresponding flow signal is determined to be qualified; otherwise, the corresponding flow signal is determined to be unqualified, and the data in the preset standard curve is called to replace the current unqualified flow signal; 4) Adjust the feeding speed of the feeder according to the flow signal obtained in step 3).
2. The feeding control method of the feeder according to claim 1, It is characterized in that The specific process of obtaining the standard deviation rate is: W'=(w1+w2+w3+...Wn) / n Where W1, W2, W3…Wn are the flow signals of n cycles; W' is the mean; σ is the standard deviation; CV is the standard deviation rate.
3. The feeding control method of the feeder according to claim 1, It is characterized in that In step 1), the filtering process includes Fourier algorithm and / or median recursive averaging algorithm.
4. The feeding control method of the feeder according to claim 1, 2 or 3, It is characterized in that In step 2), an exponentially weighted moving average algorithm is used to convert the filtered weight signal into a flow signal.
5. The feeding control method of the feeder according to claim 1, 2 or 3, It is characterized in that In step 4), the feeding speed is adjusted by a PID algorithm.
6. The feeding control method of the feeder according to claim 5, It is characterized in that The specific process of PID algorithm is: Automatically allocate structure array A and structure array B. Array A is used to store the running data corresponding to different weights. Each running data contains weight, speed and continuous running time under the current weight. Array B is used to store the most recent m array A data. In a stable production state, the collected data is stored in the corresponding array A index; when a production cycle ends, the data in array A is automatically stored in array B, and array A is cleared at the same time; When a complete production cycle is completed, data B is cleaned and fitted to obtain array C; Adjust PID parameters according to array C.
7. The feeding control method of the feeder according to claim 6, It is characterized in that In the fitting operation, the qualified values in data B are removed from the maximum and minimum values and the average is calculated to obtain a structure array which is stored in array C.
8. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are performed.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the computer program performs the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor connected to each other, wherein a computer program is stored in the memory. It is characterized in that When the computer program is executed by a processor, the computer program performs the steps of the method according to any one of claims 1 to 7.
Citation Information
Cited By
Control method of feeding machine, medium and control system
CN119929276A
A control method, medium and control system of a feeder
CN119929276B
Self-adaptive control system for feeding of weightlessness metering scale and control method of self-adaptive control system
CN120447341A
