A method, system, device and storage medium for controlling automatic batching and distributing materials

The material weight is obtained and sent in real time through intelligent sensors, combined with the speed regulation and feeding stop function of the remote control module, the problem of inaccurate material weight in the prior art is solved, and the efficiency and reliability of the batching process are achieved.

CN118701645BActive Publication Date: 2025-04-15HENAN YUANDONG REFRACTORIES TECH CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410729528.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2025-04-15
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

The existing automated batching system cannot guarantee the correctness of the received material weight during the process of sending the material weight, resulting in inaccurate batching.

Method used

The material weight is obtained in real time through intelligent sensors and sent to the remote control module. The remote control module adjusts the feeding speed according to the material weight, calculates the feeding time, and monitors the current of the feeding equipment and the status of the pneumatic valve to ensure the accuracy of the material weight.

Benefits of technology

实现了对物料重量的准确获取和精准控制,确保配料过程的高效和可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118701645B_ABST
    Figure CN118701645B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data processing technology, and specifically relates to an automatic batching material distribution control method, system, equipment and storage medium. The method includes obtaining the material weight in real time through an intelligent sensor, sending the material weight to a remote control module, and adjusting the feeding speed according to the material weight after the remote control module receives the material weight, calculating the time to stop feeding, and monitoring the current and pneumatic valve of the feeding equipment through the intelligent sensor during the feeding process. When the current is abnormal, an alarm is given, and when the pneumatic valve is not opened, the feeding is automatically stopped. During the material receiving process, the position and running direction of the batching vehicle are monitored. After the material receiving is completed, the position of the batching vehicle is controlled to the milling pot, the material is poured into the milling pot, and water is automatically added and mixed according to the formula parameters. The present invention can ensure that the remote control module obtains the accurate material weight and can also accurately control the material weight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular relates to an automatic batching and distributing control method, system, equipment and storage medium. Background Art

[0002] Under the background of the continuous improvement of the current scientific and technological level, the degree of production automation is increasing, and the traditional production batching device is gradually unable to meet the current needs of highly automated production. In order to reduce the labor intensity of production, improve product quality and product economic benefits, and ensure high reliability, high safety and high efficiency production, more and more companies are beginning to use automatic batching systems. A similar prior art patent application document with the publication number of CN114140067A provides a batching weighing control method, system and equipment. The invention weighs the ingredients according to the target production task instruction sheet sent by the server through the operation terminal, which meets all the requirements of the pharmaceutical batching process for weighing, and the degree of automation is significantly improved; the weight value of the target ingredient measured by the electronic scale is obtained through the operation terminal, and if the weight value meets the preset weight requirement, the weight value of the target ingredient is collected to obtain the target weight value, which improves the accuracy, controllability and standardization of the batching weighing, can effectively prevent the occurrence of personnel errors, and meet the requirements of regulations; the target weight value is sent to the server through the operation terminal, and the server matches the target ingredient in the target production task instruction sheet according to the target weight value to obtain the batching weighing data report, providing the function of data audit tracking. Similar prior art also includes a Chinese patent application document with publication number CN106709258A, which discloses an intelligent automated Chinese herbal medicine dispensing system, which mainly includes: a medicine storage system, a medicine dispensing system, and a control system; the system starts with the doctor's prescription, collects information in both directions through QR code recognition technology and computer information input technology, and then analyzes it through the central processor of the control device, driving the medicine dispensing switch and weighing device in the medicine dispenser to produce a series of working reactions, perform cumulative and instantaneous flow statistics, and finally mix the medicinal materials and package them. However, the above two documents do not consider the problem of ensuring the correctness of the received material weight in the process of sending the material weight. Therefore, the present invention provides an automated batching material distribution control method, system, equipment and storage medium. Summary of the invention

[0003] The present invention obtains the weight of the material in real time through the intelligent sensor, and sends the weight of the material to the remote control module. After receiving the weight of the material, the remote control module adjusts the feeding speed according to the weight of the material, calculates the time to stop feeding, and monitors the current and pneumatic valve of the feeding equipment through the intelligent sensor during the feeding process. When the current is abnormal, an alarm is given, and when the pneumatic valve is not opened, the feeding is automatically stopped. During the material receiving process, the position and running direction of the batching vehicle are monitored. After the material receiving is completed, the position of the batching vehicle is controlled to the milling pot, the material is poured into the milling pot, and water is automatically added and mixed according to the formula parameters. The present invention can ensure that the remote control module obtains the accurate weight of the material and can also accurately control the weight of the material.

[0004] In order to achieve the above-mentioned purpose of the invention, the present invention provides an automatic batching material distribution control method as described below, which is mainly implemented by executing the following steps:

[0005] Add each material to the weighing device according to the recipe parameters, set the feeding speed of the feeding device to the first feeding speed when starting to add materials, obtain the weight of the added materials in real time through the intelligent sensor during the feeding process, and send the weight of the materials to the remote control module;

[0006] After receiving the material weight, the remote control module determines whether the material weight is greater than or equal to a first threshold value. If so, a speed adjustment instruction is sent to the feeding device, and the feeding device adjusts the feeding speed to a second feeding speed, which is less than the first feeding speed. Then, the material weight is continuously monitored. When the material weight is greater than or equal to the second threshold value, the remote control module calculates a first time point for stopping feeding, and sends a stop feeding instruction to the feeding device at the first time point. After the feeding is completed, the intelligent sensor also sends the final material weight to the remote control module.

[0007] During the feeding process, the current and pneumatic valve of the feeding equipment are monitored by intelligent sensors. If the current is abnormal or the pneumatic valve is not opened, an alarm is given and the feeding is automatically stopped.

[0008] During the material receiving process, the position and running direction of the batching vehicle are monitored, and the position and running direction are sent to the remote control module. After the material receiving is completed, the position of the batching vehicle is controlled to the grinding pot, the materials are poured into the grinding pot, and water is automatically added and mixed according to the formula parameters.

[0009] As a preferred technical solution of the present invention, after the remote control module receives the material weight in real time, it further performs the following steps:

[0010] According to the material weight obtained in real time, after sending the speed control instruction, the change rate of the material weight is obtained, and the first time when the material weight reaches the target weight is calculated according to the change rate and the target weight. The first time duration for the intelligent sensor to send the material weight and the second time duration for sending the stop feeding instruction are also obtained, and the first time duration is subtracted from the first time and the second time duration to obtain the second time, and the stop feeding instruction is sent to the feeding equipment at the second time.

[0011] As a preferred technical solution of the present invention, after receiving the final weight of the material, the remote control module further performs the following steps:

[0012] The weight difference is obtained by subtracting the target weight from the final material weight, the absolute value of the weight difference is obtained, and the rate of change of the material weight is obtained. The first error duration is calculated according to the rate of change and the absolute value, and it is determined whether the weight difference is a positive number. If it is a positive number, the stop feeding instruction is sent in advance by the first error duration at the next feeding. If it is a negative number, the stop feeding instruction is sent in advance by the first error duration at the next feeding.

[0013] As a preferred technical solution of the present invention, the process of sending the material weight to the remote control module in real time includes the following steps:

[0014] Determine whether it is the first time to send the material weight;

[0015] If so, generate a corresponding first hash value based on the material weight, encode and convert the first hash value to generate first verification data, store the first verification data, encode and convert the material weight to generate first data, generate a corresponding first verification code based on the first data, package the first data and the first verification code to generate a data packet and send it to the remote control module.

[0016] As a preferred technical solution of the present invention, if it is not the first time to send the material weight, perform the following steps:

[0017] Determine whether error correction is required for the data sent at the current time point, and if not, generate second data according to the weight of the material, package the second data to generate a data packet and send it to the remote control module;

[0018] If necessary, the material weight is encoded and converted to generate third data, the third data and the first verification data are XORed to generate fourth data, a corresponding third verification code is generated according to the third data, and the third data, the third verification code and the fourth data are packaged to generate a data packet and sent to the remote control module;

[0019] After receiving the data packet, the remote control module performs error correction on the data packet to obtain the correct weight of the material.

[0020] As a preferred technical solution of the present invention, the process of performing error correction on the data packet includes the following steps:

[0021] Determining whether it is the first time to receive the data packet;

[0022] If so, the first check code and the first data are obtained according to the received data packet, and whether the first data is wrong is verified according to the first check code. If there is an error, a resend request is sent to the corresponding smart sensor, and the smart sensor resends the data packet to the remote control module. If there is no error, the material weight is generated according to the first data, and a corresponding hash value is generated according to the material weight, and second check data is generated according to the hash value;

[0023] If not, obtain the received data packet, determine the number of data in the data packet, and if the number is one, obtain the second data in the data packet, and obtain the corresponding material weight according to the second data;

[0024] If the number is three, the third data, the third check code and the fourth data are obtained according to the data packet, and whether the third data is erroneous is verified according to the third check code. If an error occurs, the fourth data and the second check data are XORed to generate data to obtain the third data without error.

[0025] As a preferred technical solution of the present invention, the process of determining whether error correction is required for sending data at the current time point includes the following steps:

[0026] Acquire historical communication data, acquire a time series value of a previous cycle according to the historical communication data, divide the time series value into two groups of data, namely a first group of data and a second group of data, calculate a first average value of the first group of data and a second average value of the second group of data, calculate a first variance of the first group of data according to the first average value, calculate a second variance of the second group of data according to the second average value, acquire a first maximum value in the first group of data, and when the first maximum value is less than a third threshold value and the first variance is less than a fourth threshold value, determine that error correction is required when sending data in a first time period to which the first group of data belongs, otherwise determine that error correction is not required, acquire a second maximum value in the second group of data, and when the second maximum value is less than the third threshold value and the second variance is less than the fourth threshold value, determine that error correction is required when sending data in a second time period to which the second group of data belongs, otherwise determine that error correction is not required, acquire a time period in which the current time point is located in the current cycle according to the current time point, and acquire whether error correction is required for the time period corresponding to the previous cycle according to the time period.

[0027] The present invention also provides an automatic batching and material distribution control system, comprising the following modules:

[0028] A feeding module is used to add each material to the weighing device according to the recipe parameters. When the feeding starts, the feeding speed of the feeding device is set to the first feeding speed. During the feeding process, the weight of the added material is obtained in real time through the intelligent sensor, and the intelligent sensor sends the weight of the material to the remote control module;

[0029] A remote control module is used to determine whether the material weight is greater than or equal to a first threshold after receiving the material weight, and if so, send a speed adjustment instruction to the feeding device, and the feeding device adjusts the feeding speed to a second feeding speed, and the second feeding speed is less than the first feeding speed, and then continues to monitor the material weight. When the material weight is greater than or equal to the second threshold, the remote control module calculates a first time point for stopping feeding, and sends a stop feeding instruction to the feeding device at the first time point. After the feeding is completed, the intelligent sensor also sends the final weight of the material to the remote control module;

[0030] The abnormal warning module also monitors the current and pneumatic valve of the feeding equipment through intelligent sensors during the feeding process. If the current is abnormal, an alarm will be given. If the pneumatic valve is not opened, the feeding will be automatically stopped.

[0031] The material receiving and batching module monitors the position and running direction of the batching vehicle during the material receiving process, and sends the position and the running direction to the remote control module. After the material receiving is completed, the batching vehicle is controlled to the grinding pot, the materials are poured into the grinding pot, and water is automatically added and mixed according to the formula parameters.

[0032] The present invention also provides an electronic device, characterized in that it comprises: a processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;

[0033] The memory is used to store computer programs;

[0034] The processor is used to execute the program stored in the memory to implement any of the above-mentioned automatic batching and material distribution control methods.

[0035] The present invention also provides a storage medium, wherein the storage medium stores program instructions, wherein when the program instructions are executed, the device where the storage medium is located is controlled to execute any one of the above-mentioned automatic batching and distribution control methods.

[0036] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0037] In the present invention, the material weight is obtained in real time through the intelligent sensor, and the material weight is sent to the remote control module. After receiving the material weight, the remote control module adjusts the feeding speed according to the material weight, calculates the time to stop feeding, and monitors the current and pneumatic valve of the feeding equipment through the intelligent sensor during the feeding process. When the current is abnormal, an alarm is given. When the pneumatic valve is not opened, the feeding is automatically stopped. During the material receiving process, the position and running direction of the batching vehicle are monitored. After the material receiving is completed, the position of the batching vehicle is controlled to the milling pot, the material is poured into the milling pot, and water is automatically added and mixed according to the formula parameters. The present invention can ensure that the remote control module obtains the accurate material weight and can also accurately control the material weight. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A flowchart of the steps of an automatic batching and distributing control method of the present invention;

[0039] Figure 2 The present invention is a structural diagram of an automatic batching and distribution control system. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0041] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0042] The present invention provides Figure 1 An automatic batching and distributing control method is shown, which is implemented by executing the following steps:

[0043] Step S1, add each material to the weighing device according to the recipe parameters, set the feeding speed of the feeding device to the first feeding speed when starting to feed, obtain the weight of the added material in real time through the intelligent sensor during the feeding process, and send the material weight to the remote control module.

[0044] Specifically, in order to more accurately automate the batching and distributing of materials, each material is added to the weighing equipment according to the recipe parameters. When the feeding begins, since it is the beginning of the feeding, in order to improve the feeding efficiency, the feeding speed of the feeding equipment is set relatively large. During the feeding process, the weight of the added material is obtained in real time through the intelligent sensor. In order to realize automatic batching, the material weight needs to be sent to the remote control module in real time. After receiving the material weight, the remote control module can adjust the feeding speed according to the material weight, and can also calculate the time to stop feeding according to the rate of change of the material weight. In order to enable the remote control module to obtain the correct material weight, the corresponding check code is also added to the remote control module when sending the material weight.

[0045] Step S2, after receiving the material weight, the remote control module determines whether the material weight is greater than or equal to the first threshold value. If so, a speed adjustment instruction is sent to the feeding device, and the feeding device adjusts the feeding speed to the second feeding speed. The second feeding speed is less than the first feeding speed. Then, the material weight continues to be monitored. When the material weight is greater than or equal to the second threshold value, the remote control module calculates the first time point to stop feeding, and sends a stop feeding instruction to the feeding device at the first time point. After the feeding is completed, the intelligent sensor also sends the final material weight to the remote control module.

[0046] Specifically, in order to make the weight of the added material more accurate, after receiving the material weight, the remote control module determines whether the material weight is greater than or equal to the first threshold value. The first threshold value may be eighty-five percent or ninety percent of the target weight, which may be set specifically according to the actual feeding speed. If the material weight is greater than or equal to the first threshold value, it means that the added material is about to reach the target weight. In order to be able to more accurately control the weight of the added material later, a speed control instruction is sent to the feeding device, and the feeding device adjusts the feeding speed to the second feeding speed, which is less than the first feeding speed. Then, the material weight continues to be monitored. When the material weight is greater than or equal to the second threshold value, the second threshold value may be ninety-five percent or ninety-six percent of the target weight, which may be set specifically according to the actual feeding speed. When the material weight is greater than or equal to the second threshold value, it means that the added material is very close to the target weight. At this time, the remote control module calculates the first time point to stop feeding, and sends a stop feeding instruction to the feeding device at the first time point. After the feeding is completed, the final material weight is also sent to the remote control module, so that the remote control module calculates the error between the target weight and the actual weight of the added material, and reduces the error during the next feeding.

[0047] Step S3: During the feeding process, the current and pneumatic valve of the feeding equipment are monitored by intelligent sensors. If an abnormal current is found or the pneumatic valve is not opened, an alarm is given and the feeding is automatically stopped.

[0048] Specifically, during the feeding process, if the current of the feeding equipment is in an abnormal state or the starting valve is closed, the feeding equipment will be damaged, reducing the service life of the feeding equipment. In severe cases, production accidents may occur. In order to avoid such incidents, the current of the feeding equipment and the status of the starting valve are monitored by intelligent sensors. If the current is abnormal or the starting valve is not open, an alarm will be issued and the feeding will be automatically stopped, prompting the staff to check the equipment in time to reduce losses.

[0049] Step S4, during the material receiving process, monitor the position and running direction of the batching vehicle, and send the position and running direction to the remote control module. After the material receiving is completed, control the position of the batching vehicle to the grinding pot, pour the materials into the grinding pot, and automatically add water and mix according to the formula parameters.

[0050] Specifically, during the material receiving process, the position and running direction of the batching vehicle are monitored, and the position and running direction are sent to the remote control module, so that the remote control module can obtain the position and running direction of the batching vehicle in real time, and display the position and running direction in the simulation image, so that the staff can see the movement of the batching vehicle more intuitively. After the material receiving is completed, the position of the batching vehicle is controlled to the grinding pot, the material is poured into the grinding pot, and water is automatically added and mixed according to the formula parameters to complete the batching.

[0051] Furthermore, after receiving the material weight in real time, the remote control module also performs the following steps:

[0052] According to the material weight obtained in real time, after sending the speed control command, the change rate of the material weight is obtained, and the first time when the material weight reaches the target weight is calculated based on the change rate and the target weight. The first time duration for the intelligent sensor to send the material weight and the second time duration for sending the stop feeding command are also obtained. The first time duration is subtracted from the second time duration to obtain the second time, and the stop feeding command is sent to the feeding equipment at the second time.

[0053] Specifically, the remote control module obtains the real-time material weight, and after sending the speed change instruction, calculates the change rate of the material weight according to the obtained real-time material weight. Specifically, for example, the material weight a1 at the second time point after sending the speed change instruction, such as one second after sending the speed change instruction, is obtained, and then the material weight a2 is obtained again at the third time point after a preset time, such as five seconds later, and the change rate b is calculated using the first formula, the first formula is b=(a2-a1) / 5, and the target weight a3 is obtained. The feeding time t required to continue feeding from the third time point is calculated using the second formula, and the second formula is t=( a3-a2) / b, the time point obtained by adding the feeding time t to the third time point is the first time when the material weight reaches the target weight. In order to control the material weight more accurately, the feeding equipment is still feeding in the process of sending the material weight and in the process of the remote control module sending the stop feeding instruction. Therefore, the first time length when the intelligent sensor sends the material weight and the second time length when the remote control module sends the stop feeding instruction are obtained, and the second time length is subtracted from the calculated first time point to obtain the second time. At the second time, the stop feeding instruction is sent to the feeding equipment to make the added material weight more accurate.

[0054] Furthermore, after receiving the final material weight, the remote control module also performs the following steps:

[0055] The weight difference is obtained by subtracting the target weight from the final material weight, and the absolute value of the weight difference is obtained. The rate of change of the material weight is also obtained, and the first error duration is calculated based on the rate of change and the absolute value. It is determined whether the weight difference is a positive number. If it is a positive number, a stop feeding instruction is sent in advance by the first error duration at the next feeding. If it is a negative number, a stop feeding instruction is sent in advance by the first error duration at the next feeding.

[0056] Specifically, due to network reasons, the time required for the remote control module to obtain the material weight and send a stop command is not fixed, so the final added material weight obtained by calculating the second time to send a stop feeding command will inevitably have more or less errors. In order to make the added material weight closer to the target weight, after obtaining the final material weight a4, the weight difference c between a4 and the target weight a3 is calculated, c=a4-a3, and the error time et is calculated using the third formula, the third formula is et=|c| / b, and it is determined whether the error weight difference is a positive number. If it is a positive number, it means that the weight of the material added during the last feeding is greater than the target weight, which means that the stop feeding command was sent last time. The stop feeding instruction is delayed by the duration of et. When feeding next time, the second time is calculated. The second time is the calculated time point for sending the stop feeding instruction. Since the second time calculated last time is slightly late, the stop feeding instruction is sent in advance by the error duration of et. The time point when the stop feeding instruction is finally sent is the second time minus et. If it is a negative number, it means that the weight of material added during the last feeding is less than the target weight, and the stop feeding instruction was sent earlier than the duration of et. Therefore, when feeding next time, the second time for sending the stop feeding instruction is calculated, and the stop feeding instruction is sent after the error duration is postponed. The time point when the stop feeding instruction is finally sent is the second time plus et.

[0057] Furthermore, the process of sending the material weight to the remote control module in real time includes the following steps:

[0058] Determine whether it is the first time to send the material weight. If so, generate a corresponding first hash value according to the material weight, encode the first hash value to generate first verification data, store the first verification data, encode the material weight to generate first data, generate a corresponding first verification code according to the first data, package the first data and the first verification code to generate a data packet and send it to the remote control module.

[0059] Specifically, in general, the work of each device in the factory is cyclical. For example, the batching work may be carried out at a fixed time period of a day. Due to the cyclical nature of the factory's work, the factory's network status may have the same situation in different cycles. For example, in the early stage of equipment operation, the network condition is good, and data can be sent stably, and the sent data is generally error-free. However, at a certain time, some devices with large data transmission volume may need to be operated, which will cause the network condition to be relatively poor, and data cannot be sent stably, and errors may occur in the sent data. Therefore, errors may occur in the process of sending material weight due to network reasons. If the remote control module receives the wrong material weight, the sending speed change indicator calculated by the material weight will be incorrect. The time of the command and the time of sending the stop feeding command may be inaccurate, resulting in waste of materials with incorrect proportions. Therefore, before sending the material weight, the network status of the corresponding time point in the previous cycle corresponding to the current time point is obtained. The specific method of obtaining the network status will be explained in detail later. If the network status at the time point corresponding to the previous cycle is good, due to the periodicity of the factory's work, it is judged that the possibility of an error corresponding to the current time point is very small, so no correction data is added when sending the material weight. If the network status is not good, errors may occur. Adding correction data when sending the material weight makes it convenient for the remote control module to correct the erroneous data according to the correction data, thereby ensuring that the remote control module obtains the correct material weight.

[0060] In order for the remote control module to receive the correct material weight, when sending the material weight, it is first determined whether it is the first time to send the material weight in the current cycle.

[0061] If so, since it is the first time to send the material weight and there is still a long time before stopping the feeding, the corresponding first hash value is obtained according to the material weight, the first hash value is encoded and converted to generate first verification data, the first verification data is binary data, and the first verification data is stored in the memory to prepare for subsequent error correction. The material weight is encoded and converted to generate first data, the first data is binary data, and the corresponding first verification code is generated according to the first data. The first verification code can be a cyclic redundancy check code, and the first data and the first verification code are packaged to generate a data packet and sent to the remote control module.

[0062] Furthermore, if this is not the first time that the material weight is sent, perform the following steps:

[0063] Determine whether error correction is required for the data sent at the current time point. If not, generate second data according to the material weight, package the second data to generate a data packet and send it to the remote control module.

[0064] If necessary, the material weight is encoded and converted to generate third data, the third data and the first verification data are XORed to generate fourth data, a corresponding third verification code is generated based on the third data, the third data, the third verification code and the fourth data are packaged to generate a data packet and sent to the remote control module.

[0065] After receiving the data packet, the remote control module performs error correction on the data packet and obtains the correct material weight.

[0066] Specifically, if it is not the first time that the material weight is sent, it is determined whether error correction is required. The specific determination method is to obtain the network status at the corresponding time point of the previous cycle, which will be explained in detail later. If error correction is not required, second data is generated according to the material weight. The second data is binary data. At this time, the network is judged to be relatively stable based on the network status, and the possibility of error in sending data is very small. In order to send data faster and enable the remote control module to receive data faster, so that the remote control module can obtain the material weight more timely, error correction is not performed. Therefore, it is only necessary to package the second data to generate a data packet and send it to the remote control module.

[0067] If error correction is required, the material weight is encoded and converted to generate third data, the third data and the previously saved first verification data are XORed to generate fourth data, a corresponding third verification code is generated based on the third data, the third data, the third verification code and the fourth data are packaged to generate a data packet and sent to the remote control module, the fourth data is used to correct the acquired erroneous data, and after receiving the data packet, the remote control module performs error correction on the data to obtain the correct material weight.

[0068] Furthermore, when performing an XOR operation, when the number of bits of the third data and the first verification data are different, the difference in the number of bits between the two is obtained. If the number of bits of the third data is greater than the number of bits of the first verification data, the number of bits of the difference is added after the first verification data. If the number of bits of the third data is less than the number of bits of the first verification data, the corresponding number of bits of the difference is deleted from the end of the first verification data.

[0069] Specifically, when performing an XOR operation, the number of bits of the third data and the first verification data may be different, so the above method is used to make the number of bits of the two data the same, and then the XOR operation is performed.

[0070] Furthermore, the process of performing error correction on the data packet includes the following steps:

[0071] Determine whether it is the first time to receive the data packet. If so, obtain the first check code and the first data according to the received data packet, verify whether the first data is wrong according to the first check code, if there is an error, send a retransmission request to the corresponding smart sensor, and the smart sensor resends the data packet to the remote control module. If there is no error, decode the first data to generate the material weight, and also generate a corresponding hash value according to the material weight, and generate second check data according to the hash value.

[0072] If not, obtain the received data packet, determine the number of data in the data packet, if the number is one, obtain the second data in the data packet, and obtain the corresponding material weight based on the second data; if the number is three, obtain the third data, the third check code and the fourth data according to the data packet, and verify whether the third data is wrong based on the third check code; if there is an error, perform an XOR operation on the fourth data and the second check data to generate the data to obtain the third data without error.

[0073] Specifically, in order to ensure that the remote control module receives the correct material weight, it is determined whether it is the first time to receive the data packet. If so, a first check code and a first data are obtained according to the received data packet, and the first data is verified to be erroneous according to the first check code. Generally, there will be no error in sending data at the beginning of a cycle. If an error occurs, the possibility of the error is very small. However, if an error really occurs, it is judged that the network status should be relatively good when data is just being sent. Therefore, a retransmission request can be sent to the smart sensor that sends the data packet. The smart sensor resends the data packet to the remote control module to ensure that the correct material weight is received. If there is no error, the remote control module decodes the first data to obtain the material weight, and generates a corresponding hash value according to the material weight, and generates second check data according to the hash value. The second check data is binary data, and is the same as the first check data in that it is obtained according to the material weight sent for the first time. The remote control module can ensure that the material weight received for the first time is accurate based on the previous check, so the second check data can be used to correct the erroneous data found later.

[0074] If not, determine the number of data in the data packet. If the number of data is one, it means that the network status is good when the data packet is sent, and generally no errors occur when sending data. Therefore, the data packet is not verified, and the second data is directly obtained based on the data packet. The second data is decoded to obtain the corresponding material weight.

[0075] If the number of data is three, it means that the network status is relatively bad when sending the data packet, and the sent data may be wrong. The third data, the third check code and the fourth data are obtained according to the data packet. It is judged whether the third data is wrong according to the third check code. If it is wrong, the third data is corrected. The correction principle is AxorB=C, A=BxorC, B=AxorC, wherein A, B, C are all binary numbers, xor is an exclusive OR operator, and the probability of the third data and the fourth data being wrong at the same time when transmitting data is very small. Therefore, if the third data is wrong, the correct third data can be obtained by performing an exclusive OR operation on the obtained fourth data and the second correction data.

[0076] Furthermore, the process of determining whether error correction is required for sending data at the current time point includes the following steps:

[0077] Obtain historical communication data, obtain the time series value of the previous cycle according to the historical communication data, divide the time series value into two groups of data, namely the first group of data and the second group of data, calculate the first average value of the first group of data and the second average value of the second group of data, calculate the first variance of the first group of data according to the first average value, calculate the second variance of the second group of data according to the second average value, obtain the first maximum value in the first group of data, and when the first maximum value is less than the third threshold value and the first variance is less than the fourth threshold value, judge that error correction is required when sending data in the first time period to which the first group of data belongs, otherwise judge that error correction is not required, obtain the second maximum value in the second group of data, and when the second maximum value is less than the third threshold value and the second variance is less than the fourth threshold value, judge that error correction is required when sending data in the second time period to which the second group of data belongs, otherwise judge that error correction is not required, obtain the time period where the current time point is in the current cycle according to the current time point, and obtain whether error correction is required for the time period corresponding to the previous cycle according to the time period.

[0078] Specifically, historical communication data is obtained, and the time series value of the previous cycle, such as the previous batching cycle, is obtained according to the historical communication data. The time series value refers to the sending delay within a batching cycle. The time series value is evenly divided into two groups of data, namely the first group of data and the second group of data, and a first average value of the first group of data and a second average value of the second group of data are calculated. The first variance of the first group of data is calculated according to the first average value and the first group of data, and the second variance of the second group of data is calculated according to the second average value and the second group of data. The first maximum value in the first group of data is obtained. If the first maximum value is less than the third threshold value and the first variance is less than the fourth threshold value, it means that the sending delay in this time period is relatively small and stable. Therefore, it is judged that the first group of data belongs to the sending delay in the first time period. If no error correction is required, otherwise it is determined that error correction is required for sending data within the first time period, and the second maximum value in the second group of data is obtained. When the second maximum value is less than the third threshold and the second variance is less than the fourth threshold, it is determined that error correction is required when sending data within the second time period to which the second group of data belongs, otherwise it is determined that error correction is not required. After the judgment is completed, it is determined according to the current time point whether the current time point belongs to the first time period or the second time period of the current cycle, and whether error correction is required is obtained according to the time period of the previous cycle corresponding to the time period to which it belongs. For example, the current time point is in the first time period of the current cycle. If error correction is required in the first time period of the previous cycle, it is determined that error correction may also be required at the current time point.

[0079] According to another aspect of the embodiment of the present invention, Figure 2 As shown, an automatic batching and distributing control system is also provided, including a feeding module, a remote control module, an abnormal warning module and a material receiving and distributing module, which is used to implement an automatic batching and distributing control method as described above. The specific functions of each module are as follows:

[0080] A feeding module is used to add various materials to the weighing device according to the recipe parameters. When the feeding starts, the feeding speed of the feeding device is set to the first feeding speed. During the feeding process, the weight of the added materials is obtained in real time through the intelligent sensor, and the intelligent sensor sends the weight of the materials to the remote control module;

[0081] The remote control module is used to determine whether the material weight is greater than or equal to a first threshold after receiving the material weight. If so, a speed adjustment instruction is sent to the feeding device, and the feeding device adjusts the feeding speed to a second feeding speed, which is less than the first feeding speed. The material weight is then continuously monitored. When the material weight is greater than or equal to the second threshold, the remote control module calculates a first time point for stopping feeding, and sends a stop feeding instruction to the feeding device at the first time point. After the feeding is completed, the intelligent sensor also sends the final material weight to the remote control module;

[0082] The abnormal warning module also monitors the current and pneumatic valve of the feeding equipment through intelligent sensors during the feeding process. If abnormal current is found, an alarm will be issued. If the pneumatic valve is not opened, the feeding will be automatically stopped.

[0083] The material receiving and batching module monitors the position and running direction of the batching vehicle during the material receiving process, and sends the position and running direction to the remote control module. After the material receiving is completed, the position of the batching vehicle is controlled to the grinding pot, the materials are poured into the grinding pot, and water is automatically added and mixed according to the formula parameters.

[0084] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising: a processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;

[0085] Memory for storing computer programs;

[0086] The processor is used to execute the program stored in the memory to implement any one of the above-mentioned automatic batching and material distribution control methods.

[0087] According to another aspect of an embodiment of the present invention, a storage medium is further provided, wherein the storage medium stores program instructions, wherein when the program instructions are executed, the device where the storage medium is located is controlled to execute any one of the above-mentioned automatic batching and distributing control methods.

[0088] In summary, the present invention provides an automated batching material distribution control method, system, equipment and storage medium, the method includes obtaining the material weight in real time through an intelligent sensor, sending the material weight to a remote control module, after the remote control module receives the material weight, adjusting the feeding speed according to the material weight, calculating the time to stop feeding, and during the feeding process, monitoring the current and pneumatic valve of the feeding equipment through an intelligent sensor, and giving an alarm when an abnormal current is found, and automatically stopping feeding when the pneumatic valve is found not to be open, and monitoring the position and running direction of the batching vehicle during the material receiving process, and after the material receiving is completed, controlling the position of the batching vehicle to the milling pot, pouring the material into the milling pot, and automatically adding water and mixing and stirring according to the formula parameters. The present invention can ensure that the remote control module obtains the accurate material weight and can also accurately control the material weight.

[0089] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0090] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0091] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0092] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0093] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An automatic batching material distribution control method, characterized in that: The steps include: Add each material to the weighing device according to the recipe parameters, set the feeding speed of the feeding device to the first feeding speed when starting to add materials, and obtain the weight of the added materials in real time through the intelligent sensor during the feeding process, and the intelligent sensor sends the weight of the materials to the remote control module; After receiving the material weight, the remote control module determines whether the material weight is greater than or equal to a first threshold value. If so, a speed adjustment instruction is sent to the feeding device, and the feeding device adjusts the feeding speed to a second feeding speed, which is less than the first feeding speed. Then, the material weight is continuously monitored. When the material weight is greater than or equal to the second threshold value, the remote control module calculates a first time point for stopping feeding, and sends a stop feeding instruction to the feeding device at the first time point. After the feeding is completed, the intelligent sensor also sends the final material weight to the remote control module. During the feeding process, the current and pneumatic valve of the feeding equipment are monitored by intelligent sensors. If the current is abnormal or the pneumatic valve is not opened, an alarm is given and the feeding is automatically stopped. During the material receiving process, the position and running direction of the batching vehicle are monitored, and the position and running direction are sent to the remote control module. After the material receiving is completed, the position of the batching vehicle is controlled to the mill pot, the material is poured into the mill pot, and water is automatically added and mixed according to the formula parameters; The process of sending the material weight to the remote control module includes the following steps: Determine whether it is the first time to send the material weight; If so, generate a corresponding first hash value based on the material weight, encode and convert the first hash value to generate first verification data, store the first verification data, encode and convert the material weight to generate first data, generate a corresponding first verification code based on the first data, package the first data and the first verification code to generate a data packet and send it to the remote control module.

2. The automatic batching material distribution control method according to claim 1, characterized in that: After the remote control module receives the material weight in real time, it also performs the following steps: According to the material weight obtained in real time, after sending the speed control instruction, the change rate of the material weight is obtained, and the first time when the material weight reaches the target weight is calculated according to the change rate and the target weight. The first time duration for the intelligent sensor to send the material weight and the second time duration for sending the stop feeding instruction are also obtained, and the first time duration is subtracted from the first time and the second time duration to obtain the second time, and the stop feeding instruction is sent to the feeding equipment at the second time.

3. The automatic batching material distribution control method according to claim 1, characterized in that: After receiving the final weight of the material, the remote control module further performs the following steps: The weight difference is obtained by subtracting the target weight from the final material weight, the absolute value of the weight difference is obtained, and the rate of change of the material weight is obtained. The first error duration is calculated according to the rate of change and the absolute value, and it is determined whether the weight difference is a positive number. If it is a positive number, the stop feeding instruction is sent in advance by the first error duration at the next feeding. If it is a negative number, the stop feeding instruction is sent in advance by the first error duration at the next feeding.

4. The automatic batching material distribution control method according to claim 1, characterized in that: If this is not the first time to send the material weight, perform the following steps: Determine whether error correction is required for the data sent at the current time point, and if not, generate second data according to the weight of the material, package the second data to generate a data packet and send it to the remote control module; If necessary, the material weight is encoded and converted to generate third data, the third data and the first verification data are XORed to generate fourth data, a corresponding third verification code is generated according to the third data, and the third data, the third verification code and the fourth data are packaged to generate a data packet and sent to the remote control module; After receiving the data packet, the remote control module performs error correction on the data packet to obtain the correct weight of the material.

5. The automatic batching material distribution control method according to claim 4, characterized in that: The process of performing error correction on the data packet comprises the following steps: Determining whether it is the first time to receive the data packet; If so, the first check code and the first data are obtained according to the received data packet, and whether the first data is wrong is verified according to the first check code. If there is an error, a resend request is sent to the corresponding smart sensor, and the smart sensor resends the data packet to the remote control module. If there is no error, the material weight is generated according to the first data, and a corresponding hash value is generated according to the material weight, and second check data is generated according to the hash value; If not, obtain the received data packet, determine the number of data in the data packet, and if the number is one, obtain the second data in the data packet, and obtain the corresponding material weight according to the second data; If the number is three, the third data, the third check code and the fourth data are obtained according to the data packet, and whether the third data is erroneous is verified according to the third check code. If an error occurs, the fourth data and the second check data are XORed to generate data to obtain the third data without error.

6. The method for controlling the automatic batching and distributing of materials according to claim 4, characterized in that: The process of determining whether error correction is required for sending data at the current time point includes the following steps: Acquire historical communication data, acquire a time series value of a previous cycle according to the historical communication data, divide the time series value into two groups of data, namely a first group of data and a second group of data, calculate a first average value of the first group of data and a second average value of the second group of data, calculate a first variance of the first group of data according to the first average value, calculate a second variance of the second group of data according to the second average value, acquire a first maximum value in the first group of data, and when the first maximum value is less than a third threshold value and the first variance is less than a fourth threshold value, determine that error correction is required when sending data in a first time period to which the first group of data belongs, otherwise determine that error correction is not required, acquire a second maximum value in the second group of data, and when the second maximum value is less than the third threshold value and the second variance is less than the fourth threshold value, determine that error correction is required when sending data in a second time period to which the second group of data belongs, otherwise determine that error correction is not required, acquire a time period in which the current time point is located in the current cycle according to the current time point, and acquire whether error correction is required for the time period corresponding to the previous cycle according to the time period.

7. An automatic batching material distribution control system, used to implement the automatic batching material distribution control method according to any one of claims 1 to 6, characterized in that: Includes the following modules: A feeding module is used to add each material to the weighing device according to the recipe parameters, set the feeding speed of the feeding device to the first feeding speed when the feeding starts, and obtain the weight of the added material in real time through the intelligent sensor during the feeding process. The intelligent sensor sends the material weight to the remote control module to determine whether it is the first time to send the material weight. If so, generate a corresponding first hash value according to the material weight, encode and convert the first hash value to generate first verification data, store the first verification data, encode and convert the material weight to generate first data, generate a corresponding first verification code according to the first data, and package the first data and the first verification code to generate a data packet and send it to the remote control module; A remote control module is used to determine whether the material weight is greater than or equal to a first threshold after receiving the material weight, and if so, send a speed adjustment instruction to the feeding device, and the feeding device adjusts the feeding speed to a second feeding speed, and the second feeding speed is less than the first feeding speed, and then continues to monitor the material weight. When the material weight is greater than or equal to the second threshold, the remote control module calculates a first time point for stopping feeding, and sends a stop feeding instruction to the feeding device at the first time point. After the feeding is completed, the intelligent sensor also sends the final weight of the material to the remote control module; The abnormal warning module also monitors the current and pneumatic valve of the feeding equipment through intelligent sensors during the feeding process. If the current is abnormal, an alarm will be given. If the pneumatic valve is not opened, the feeding will be automatically stopped. The material receiving and batching module monitors the position and running direction of the batching vehicle during the material receiving process, and sends the position and the running direction to the remote control module. After the material receiving is completed, the batching vehicle is controlled to the grinding pot, the materials are poured into the grinding pot, and water is automatically added and mixed according to the formula parameters.

8. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the automatic batching and distribution control method described in any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores program instructions, wherein when the program instructions are executed, the device where the storage medium is located is controlled to execute the automatic batching and distribution control method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent automated traditional Chinese herbal medicine dispensing system

    CN106709258A

  • Ingredient weighing control method, system and equipment

    CN114140067A

  • Material metering control method and material metering control device

    CN102175294A

  • High-speed mixing control device and control method

    CN114654615A

  • Batching monitoring method and device and mixing station

    CN114770754A