Dispensing control method and device
By collecting historical data to generate the corresponding relationship between temperature and time, and adjusting the dispensing temperature, it solves the temperature control problem in traditional technology and improves the dispensing qualification rate and efficiency.
Patent Information
- Application Number
- CN202410656582.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional dispensing technology is difficult to control the amount of glue output based on temperature, making it difficult to improve the dispensing effect and pass rate.
By collecting historical operation data, the corresponding relationship between dispensing temperature data and dispensing time data is generated, dispensing image data is collected to confirm the starting conditions, the temperature is adjusted during the dispensing process to meet the best conditions, and the finished product image is checked to see if it is qualified.
It improves the qualification rate and efficiency of dispensing and avoids unqualified products caused by too high or too low temperature.
Smart Images

Figure CN118594869A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of glue dispensing, and in particular to a glue dispensing control method and device. Background Art
[0002] Glue dispensing machine is also called glue coating machine, glue dripping machine, glue spraying machine, glue filling machine, etc. It is specially used to control fluids. It is an automated machine that drips and applies fluids on the surface or inside of products. It can achieve three-dimensional and four-dimensional path dispensing, precise positioning, precise glue control, no drawing, no glue leakage, and no glue dripping. Glue dispensing machine is mainly used for glue, paint and other liquids in product processes to accurately point, inject, apply and drip at the precise position of each product. It can be used to achieve dotting, drawing lines, circles or arcs.
[0003] With the advancement of technology and the demand for production, dispensing technology has been widely used in many industries, especially in the electronics industry. At the same time, the requirements for dispensing technology are getting higher and higher. However, traditional dispensing technology can only control a fixed amount of glue. However, in the actual operation of dispensing, since temperature control is required, the temperature affects the amount of glue and the dispensing effect. Therefore, it is difficult to improve the qualified rate of dispensing with traditional dispensing technology. Summary of the invention
[0004] In view of the above-mentioned defects, an embodiment of the present invention discloses a dispensing control method and device, which can intelligently adjust the dispensing temperature according to different dispensing times to improve the dispensing qualification rate.
[0005] A first aspect of an embodiment of the present invention discloses a dispensing control method, comprising:
[0006] Collect historical operation data, the historical operation data including dispensing action data, dispensing temperature data, and dispensing time data, the dispensing time data including season and dispensing timestamp, the dispensing action data including first dispensing action, calculate the time difference between the current dispensing timestamp and the dispensing timestamp of the first dispensing action according to the dispensing timestamp and the dispensing action data, and generate a corresponding relationship between the dispensing temperature data and the dispensing time data according to the historical operation data;
[0007] In response to a dispensing start instruction, dispensing image data is collected, and based on the dispensing image data, whether the start condition is currently met is confirmed; the dispensing start instruction includes a plurality of workpiece information to be dispensed, each of which includes a dispensing position and a preset dispensing capacity;
[0008] When the conditions are met, the workpiece to be glued is transported to a set position, the target position of the workpiece to be glued is adjusted to align with the glue nozzle, and then the glue dispensing process is entered, and the glue dispensing temperature is adjusted during the glue dispensing process according to the corresponding relationship;
[0009] The finished product image of the workpiece to be glued is collected after glue dispensing, and the finished product image is tested to see whether it meets the qualification standard.
[0010] As an optional implementation, in the first aspect of the embodiment of the present invention, generating a correspondence between dispensing temperature data and dispensing time data according to the historical operation data includes:
[0011] Divide the historical operation data into a plurality of corresponding data groups, each corresponding data group includes a dispensing time data and a dispensing temperature data, and the dispensing time data and the dispensing temperature data in each corresponding data group correspond to each other;
[0012] Calculate the time difference between the dispensing time data in each corresponding data group and the first dispensing time data according to the first dispensing time data of the first dispensing action, and form a new data group set with the time difference and dispensing temperature data corresponding to each corresponding data group;
[0013] Sorting the data group set in ascending order of the time difference value, and generating a first corresponding relationship between the time difference and the dispensing temperature data in the sorted order;
[0014] The corresponding data are grouped and sorted in the order of the dispensing time data from the earliest to the latest, and a second corresponding relationship between the dispensing time data and the dispensing temperature data is generated according to the sorting order.
[0015] As an optional implementation, in the first aspect of the embodiment of the present invention, generating the first correspondence between the time difference and the dispensing temperature data in the sorting order includes:
[0016] Obtain all dispensing temperature data corresponding to the same time difference, obtain a first value range with the most distributed data in all the dispensing temperature data, calculate a first median of the first value range, and use the first median as the dispensing temperature data corresponding to the time difference;
[0017] Generate a first number set of each time difference and a corresponding first median, and obtain a first corresponding relationship according to the sorting order and the first number set;
[0018] The second corresponding relationship between the dispensing time data and the dispensing temperature data is generated in the sorting order, including:
[0019] Obtain all dispensing temperature data corresponding to the same dispensing time data, obtain a second numerical range with the most distributed data in the said dispensing temperature data, calculate a second median of the second numerical range, and take the second median as the dispensing temperature data corresponding to the dispensing time data;
[0020] Generate each dispensing time data and the second data of the corresponding second median, and obtain a second corresponding relationship according to the sorting order and the second data.
[0021] As an optional implementation manner, in the first aspect of the embodiment of the present invention, it also includes:
[0022] Compare the trend overlap between the first corresponding relationship and the second corresponding relationship, and when the trend overlap is greater than or equal to a threshold, select the first corresponding relationship as the corresponding relationship between the dispensing temperature data and the dispensing time data;
[0023] When the trend coincidence is less than a threshold, the second corresponding relationship is corrected based on the first corresponding relationship.
[0024] As an optional implementation, in the first aspect of the embodiment of the present invention, confirming whether the start condition is currently met based on the dispensing image data includes:
[0025] Confirm whether the workpiece to be glued is located at the fixed glue dispensing position according to the glue dispensing image data, and confirm whether the glue capacity meets the current glue dispensing capacity;
[0026] The current dispensing capacity is calculated based on the preset dispensing capacity.
[0027] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the step of confirming whether the glue capacity satisfies the current glue dispensing capacity includes:
[0028] Obtain the initial glue capacity and the glue dispensing capacity used each time, and calculate the total glue dispensing capacity used based on the glue dispensing capacity used each time;
[0029] Calculate the current remaining glue capacity based on the initial glue capacity and the total glue dispensing capacity used;
[0030] Get the preset dispensing capacity, calculate the maximum current dispensing capacity according to the formula M+a, and calculate the minimum current dispensing capacity according to the formula Ma, where M is the preset dispensing capacity, a is the preset calculated value, and a is greater than 0;
[0031] It is determined whether the remaining glue capacity is greater than the current maximum glue dispensing capacity. When the remaining glue capacity is less than the current maximum glue dispensing capacity and greater than the current minimum glue dispensing capacity, an alarm message is generated.
[0032] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the detecting whether the finished product image meets the qualification standard includes:
[0033] Generate a first comparison image of the workpiece to be glued before glue is dispensed, and compare the first comparison image with the finished product image to detect whether the glue dispensing position is qualified;
[0034] When the dispensing position is qualified, the glue overflow amount at the dispensing position is detected according to the finished product image to see whether it meets the standard.
[0035] A second aspect of an embodiment of the present invention discloses a dispensing control device, comprising:
[0036] Data collection module: used to collect historical operation data, the historical operation data includes dispensing action data, dispensing temperature data, and dispensing time data, the dispensing time data includes season and dispensing timestamp, the dispensing action data includes the first dispensing action, the time difference between the current dispensing timestamp and the dispensing timestamp of the first dispensing action is calculated according to the dispensing timestamp and the dispensing action data, and the corresponding relationship between the dispensing temperature data and the dispensing time data is generated according to the historical operation data;
[0037] Glue dispensing start module: used to respond to the glue dispensing start instruction, collect glue dispensing image data, and confirm whether the start condition is currently met based on the glue dispensing image data; the glue dispensing start instruction includes a number of workpiece information to be glued, and each of the workpiece information to be glued includes a glue dispensing position and a preset glue dispensing capacity;
[0038] Workpiece alignment module: used for conveying the workpiece to be glued to a set position when the conditions are met, adjusting the target position of the workpiece to be glued to be aligned with the glue dispensing nozzle, and then entering the glue dispensing process, and adjusting the glue dispensing temperature during the glue dispensing process according to the corresponding relationship;
[0039] Qualification verification module: used to collect the finished product image of the workpiece to be glued after dispensing, and detect whether the finished product image meets the qualification standard.
[0040] As an optional implementation, in the second aspect of the embodiment of the present invention, generating a correspondence between dispensing temperature data and dispensing time data according to the historical operation data includes:
[0041] Divide the historical operation data into a plurality of corresponding data groups, each corresponding data group includes a dispensing time data and a dispensing temperature data, and the dispensing time data and the dispensing temperature data in each corresponding data group correspond to each other;
[0042] Calculate the time difference between the dispensing time data in each corresponding data group and the first dispensing time data according to the first dispensing time data of the first dispensing action, and form a new data group set with the time difference and dispensing temperature data corresponding to each corresponding data group;
[0043] Sorting the data group set in ascending order of the time difference value, and generating a first corresponding relationship between the time difference and the dispensing temperature data in the sorted order;
[0044] The corresponding data are grouped and sorted in the order of the dispensing time data from the earliest to the latest, and a second corresponding relationship between the dispensing time data and the dispensing temperature data is generated according to the sorting order.
[0045] As an optional implementation, in the second aspect of the embodiment of the present invention, generating the first correspondence between the time difference and the dispensing temperature data in the sorting order includes:
[0046] Obtain all dispensing temperature data corresponding to the same time difference, obtain a first value range with the most distributed data in all the dispensing temperature data, calculate a first median of the first value range, and use the first median as the dispensing temperature data corresponding to the time difference;
[0047] Generate a first number set of each time difference and a corresponding first median, and obtain a first corresponding relationship according to the sorting order and the first number set;
[0048] The second corresponding relationship between the dispensing time data and the dispensing temperature data is generated in the sorting order, including:
[0049] Obtain all dispensing temperature data corresponding to the same dispensing time data, obtain a second numerical range with the most distributed data in the said dispensing temperature data, calculate a second median of the second numerical range, and take the second median as the dispensing temperature data corresponding to the dispensing time data;
[0050] Generate each dispensing time data and the second data of the corresponding second median, and obtain a second corresponding relationship according to the sorting order and the second data.
[0051] As an optional implementation manner, in the second aspect of the embodiment of the present invention, it also includes:
[0052] Compare the trend overlap between the first corresponding relationship and the second corresponding relationship, and when the trend overlap is greater than or equal to a threshold, select the first corresponding relationship as the corresponding relationship between the dispensing temperature data and the dispensing time data;
[0053] When the trend coincidence is less than a threshold, the second corresponding relationship is corrected based on the first corresponding relationship.
[0054] As an optional implementation, in the second aspect of the embodiment of the present invention, confirming whether the start condition is currently met based on the dispensing image data includes:
[0055] Confirm whether the workpiece to be glued is located at the fixed glue dispensing position according to the glue dispensing image data, and confirm whether the glue capacity meets the current glue dispensing capacity;
[0056] The current dispensing capacity is calculated based on the preset dispensing capacity.
[0057] As an optional implementation, in the second aspect of the embodiment of the present invention, the step of confirming whether the glue capacity satisfies the current glue dispensing capacity includes:
[0058] Obtain the initial glue capacity and the glue dispensing capacity used each time, and calculate the total glue dispensing capacity used based on the glue dispensing capacity used each time;
[0059] Calculate the current remaining glue capacity based on the initial glue capacity and the total glue dispensing capacity used;
[0060] Get the preset dispensing capacity, calculate the maximum current dispensing capacity according to the formula M+a, and calculate the minimum current dispensing capacity according to the formula Ma, where M is the preset dispensing capacity, a is the preset calculated value, and a is greater than 0;
[0061] It is determined whether the remaining glue capacity is greater than the current maximum glue dispensing capacity. When the remaining glue capacity is less than the current maximum glue dispensing capacity and greater than the current minimum glue dispensing capacity, an alarm message is generated.
[0062] As an optional implementation, in the second aspect of the embodiment of the present invention, the detecting whether the finished product image meets the qualification standard includes:
[0063] Generate a first comparison image of the workpiece to be glued before glue is dispensed, and compare the first comparison image with the finished product image to detect whether the glue dispensing position is qualified;
[0064] When the dispensing position is qualified, the glue overflow amount at the dispensing position is detected according to the finished product image to see whether it meets the standard.
[0065] The third aspect of an embodiment of the present invention discloses an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the dispensing control method disclosed in the first aspect of the embodiment of the present invention.
[0066] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the dispensing control method disclosed in the first aspect of an embodiment of the present invention.
[0067] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0068] The dispensing control method of the embodiment of the present invention collects historical operation data to form a correspondence between the dispensing temperature data and the dispensing time data in the historical operation data, and confirms whether the starting conditions are met by collecting the dispensing image data. After the dispensing is started, the dispensing temperature is adjusted during the dispensing process according to the correspondence. After the dispensing is completed, it is checked whether the qualification standards are met. The embodiment designs the correspondence between the dispensing temperature data and the dispensing time data, thereby adjusting the dispensing temperature data after confirming that the starting conditions are met and starting the dispensing process, thereby avoiding excessively high or low temperatures, and improving the qualification rate and efficiency of the dispensing. At the same time, the embodiment also performs a qualification rate test on the workpiece after dispensing to avoid unqualified products from entering the market. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0070] Figure 1 It is a flow chart of a dispensing control method provided by an embodiment of the present invention;
[0071] Figure 2 is a structural schematic diagram of a dispensing device provided by an embodiment of the present invention;
[0072] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0074] It should be noted that the terms "first", "second", "third", "fourth", etc. in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present invention and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0075] The embodiments of the present invention disclose a dispensing control method, device, electronic device and storage medium. The dispensing control method of the embodiment collects historical operation data to form a correspondence between dispensing temperature data and dispensing time data in the historical operation data, and confirms whether the starting conditions are met by collecting dispensing image data. After the dispensing is started, the dispensing temperature is adjusted during the dispensing process according to the correspondence. After the dispensing is completed, it is checked whether the qualification standard is met. The embodiment designs the correspondence between the dispensing temperature data and the dispensing time data, thereby adjusting the dispensing temperature data after confirming that the starting conditions are met and starting the dispensing process, thereby avoiding excessively high or low temperatures, and improving the qualification rate and efficiency of dispensing. At the same time, the embodiment also performs a qualification rate test on the workpiece after dispensing to avoid unqualified products from entering the market.
[0076] Embodiment 1
[0077] See also Figure 1 , Figure 1 It is a flow chart of a dispensing control method disclosed in an embodiment of the present invention. Among them, the execution subject of the method described in the embodiment of the present invention is an execution subject composed of software and / or hardware, and the execution subject can receive relevant information by wired or / and wireless means, and can send certain instructions. Of course, it can also have certain processing functions and storage functions. The execution subject can control multiple devices, such as a remote physical server or cloud server and related software, or it can be a local host or server and related software that performs related operations on a device placed somewhere. In some scenarios, multiple storage devices can also be controlled, and the storage devices can be placed in the same place or different places as the devices.
[0078] like Figure 1 As shown, the dispensing control method includes the following steps:
[0079] 101. Collect historical operation data, wherein the historical operation data includes dispensing action data, dispensing temperature data, and dispensing time data, wherein the dispensing time data includes season and dispensing timestamp, and the dispensing action data includes the first dispensing action. Calculate the time difference between the current dispensing timestamp and the dispensing timestamp of the first dispensing action based on the dispensing timestamp and the dispensing action data, and generate a corresponding relationship between the dispensing temperature data and the dispensing time data based on the historical operation data.
[0080] In an embodiment, historical operation data is data corresponding to each glue dispensing within a set time range, including the time corresponding to the first glue dispensing and the control temperature of the glue by the glue dispensing machine during each glue dispensing. Different seasons may affect the heating rate of the glue, which also affects the glue dispensing temperature at different times. The seasons included in the glue dispensing time data are also four seasons, and the glue dispensing timestamp is the specific time of glue dispensing. The glue dispensing action data is used to confirm the glue dispensing, thereby associating the glue dispensing timestamp. Exemplarily, when the first glue dispensing action is obtained, the timestamp is recorded as the timestamp t1 of the first glue dispensing, and the timestamp corresponding to the second glue dispensing is t2, then t2-t1 is a time difference, the timestamp corresponding to the third glue dispensing is t3, t3-t1 is another time difference, and so on.
[0081] The embodiment collects historical operation data, including dispensing action data, dispensing temperature data, and dispensing time data. Among them, the dispensing time data not only includes a specific timestamp, but also is associated with season information. The corresponding relationship of the corresponding season can be set in combination with different seasons. The corresponding relationship between the dispensing temperature and the dispensing time is generated, which can provide a basis for temperature adjustment for the subsequent dispensing process.
[0082] In this embodiment, the correspondence between the dispensing temperature data and the dispensing time data is used to indicate the temperature conditions corresponding to different dispensing times. Specifically, generating the correspondence includes dividing the historical operation data into several groups of corresponding data groups, each group of corresponding data groups includes a dispensing time data and a dispensing temperature data, and the dispensing time data and the dispensing temperature data in each group of corresponding data groups correspond to each other; calculating the time difference between the dispensing time data and the first dispensing time data in each group of corresponding data groups according to the first dispensing time data of the first dispensing action, and forming a new data group set with the time difference and dispensing temperature data corresponding to each group of corresponding data groups; sorting the data group set in order from small to large according to the value of the time difference, and generating the first correspondence between the time difference and the dispensing temperature data according to the sorting order; sorting the corresponding data groups in order from first to last according to the dispensing time data, and generating the second correspondence between the dispensing time data and the dispensing temperature data according to the sorting order.
[0083] In the above, grouping the data means dividing the dispensing temperature data according to the corresponding different dispensing times. For example, there is a dispensing action at 14 o'clock on the 20th, and the corresponding dispensing temperature data is T1. There is also a dispensing action at 14 o'clock on the 21st, and the corresponding dispensing temperature data is T2. In fact, the 14 points and the corresponding dispensing temperature data T1 and T2 are all grouped as the same data. Calculate the time difference between each dispensing time and the first dispensing time respectively, and form another data group with the time difference and the corresponding dispensing temperature data. For example, 13 o'clock is the first dispensing time, 14 o'clock is a dispensing action, and the corresponding dispensing temperature data is T1. There is also a dispensing action at 14:15, and the corresponding dispensing temperature data is T2. The time difference between 14 o'clock and 13 o'clock forms a data group set with T1, and the time difference between 14:15 and 13 o'clock forms a data group set with T2. By sorting the data, it helps to quickly establish the first corresponding relationship and the second corresponding relationship. And establishing a corresponding relationship can help to adjust the dispensing temperature in a targeted manner later.
[0084] Furthermore, the method of generating the first corresponding relationship includes obtaining all the dispensing temperature data corresponding to the same time difference, obtaining the first numerical range with the most distributed data in the said all the dispensing temperature data, calculating the first median of the first numerical range, and taking the first median as the dispensing temperature data corresponding to the time difference; generating a first number set for each time difference and the corresponding first median, and obtaining the first corresponding relationship according to the said sorting order and the first number set. Correspondingly, generating the second corresponding relationship between the dispensing time data and the dispensing temperature data according to the sorting order includes: obtaining all the dispensing temperature data corresponding to the same dispensing time data, obtaining the second numerical range with the most distributed data in the said all the dispensing temperature data, calculating the second median of the second numerical range, and taking the second median as the dispensing temperature data corresponding to the dispensing time data; generating the second data for each dispensing time data and the corresponding second median, and obtaining the second corresponding relationship according to the said sorting order and the second data. Taking the first correspondence as an example, the first dispensing of glue was at 13:00 on the afternoon of the 20th, and 13:30 corresponds to a temperature data. The time difference at this time is 30 minutes. The first dispensing of glue was also at 13:00 on the afternoon of the 21st, and 13:30 also corresponds to a temperature data, so the time difference is also 30 minutes. Therefore, when generating the first correspondence, these two identical time differences are used as the same factor. The corresponding temperature data corresponding to the time difference on the 20th and the other temperature data corresponding to the time difference on the 21st are collected as dispensing temperature data. All the dispensing temperature data at the same time are distributed in different values. The value range with more concentrated and more temperature data distribution is recorded and defined as the first value range. The temperature data outside the first value range means that it is more scattered and relatively lacks reference significance, so it is eliminated. For the retained data, a temperature data with the middle value is selected. When the middle value is two values, the different dispensing temperature data in the first value range are calculated. If it is an even number, the average of the two middle values is calculated as the first median.
[0085] On this basis, the embodiment also includes: comparing the trend overlap between the first corresponding relationship and the second corresponding relationship, when the trend overlap is greater than or equal to the threshold, selecting the first corresponding relationship as the corresponding relationship between the dispensing temperature data and the dispensing time data; when the trend overlap is less than the threshold, correcting the second corresponding relationship based on the first corresponding relationship. By comparing the trend overlap of the two corresponding relationships, it can be ensured that the corresponding relationship finally selected has high accuracy and reliability. When necessary, the second corresponding relationship is corrected to make it more in line with the actual situation. In the embodiment, the trend overlap is calculated. First, the curve graph of the corresponding relationship can be divided into multiple peaks, each peak includes an ascending segment and a descending segment, and each ascending segment of the first corresponding relationship is compared with the corresponding ascending segment of the second corresponding relationship. The descending segment is also compared in the same way. Taking the ascending segment as an example, compare whether the height between the highest point and the lowest point of the ascending segment is close, and whether the slope is close. When the trend overlap difference between the two is large, since the first corresponding relationship takes into account the time from the first glue dispensing, the different time from the first glue dispensing may cause a greater impact on the glue dispensing temperature. Therefore, the embodiment adopts the first corresponding relationship to correct the second corresponding relationship, and appropriately uses the glue dispensing temperature at the same corresponding time position to modify the glue dispensing temperature at the corresponding position in the second corresponding relationship with the glue dispensing temperature of the first corresponding relationship. For example, the glue dispensing temperature corresponding to a certain glue dispensing time point in the second corresponding relationship is much higher than the adjacent glue dispensing temperature, and there is a possibility of abnormality. At this time, the glue dispensing temperature at this time point is replaced with the glue dispensing temperature at the corresponding position in the first corresponding relationship. In another example, the glue dispensing temperature corresponding to a certain time point in the first corresponding relationship is T1, and the time difference point corresponding to the time point in the second corresponding relationship corresponds to T2, and the difference between T2 and T1 is too large. At this time, an average value can be taken in combination with T2 and T1 to adjust the second corresponding relationship.
[0086] 102. In response to a dispensing start instruction, collect dispensing image data, and confirm whether the current start condition is met based on the dispensing image data; the dispensing start instruction includes a plurality of workpiece information to be dispensed with glue, and each piece of workpiece information to be dispensed with glue includes a dispensing position and a preset dispensing capacity.
[0087] When receiving the glue dispensing start instruction, the system first collects the glue dispensing image data. Based on these image data, the system determines whether the current start conditions are met, such as equipment status, raw material supply, etc. In the embodiment, when receiving the glue dispensing start instruction, the glue dispensing work is not directly carried out, but reconfirmed, usually including confirmation of the completeness of the preparation work such as whether the workpiece is in the working position. Specifically, according to the glue dispensing image data, it is confirmed whether the workpiece to be glued is located in the fixed position for glue dispensing, and whether the glue capacity meets the current glue dispensing capacity; wherein, the current glue dispensing capacity is calculated based on the preset glue dispensing capacity.
[0088] In the above, confirming whether the glue capacity meets the current glue dispensing capacity includes: obtaining the initial glue capacity and the glue dispensing capacity used each time, and calculating the total glue dispensing capacity used according to the glue dispensing capacity used each time; calculating the current remaining glue capacity based on the initial glue capacity and the total glue dispensing capacity used; obtaining the preset glue dispensing capacity, calculating the current maximum glue dispensing capacity according to the formula M+a, and calculating the current minimum glue dispensing capacity according to the formula Ma, wherein M is the preset glue dispensing capacity, a is the preset calculated value, and a is greater than 0; judging whether the remaining glue capacity is greater than the current maximum glue dispensing capacity, and generating an alarm message when the remaining glue capacity is less than the current maximum glue dispensing capacity and greater than the current minimum glue dispensing capacity.
[0089] 103. When the conditions are met, the workpiece to be glued is transported to a set position, the target position of the workpiece to be glued is adjusted to be aligned with the glue nozzle, and then the glue dispensing process is entered, and the glue dispensing temperature is adjusted during the glue dispensing process according to the corresponding relationship.
[0090] Once the starting conditions are met, the system transports the workpiece to be glued to the set position, and through precise positioning technology, adjusts the target position of the workpiece to align with the glue nozzle to ensure the accuracy of glue dispensing. In this step, the glue dispensing temperature is adjusted according to the corresponding relationship. That is, for example, according to the generated corresponding relationship in the current season, after a certain time difference from the first glue dispensing time, the glue dispensing temperature is too high for glue dispensing, resulting in excessive and unsatisfactory glue output. At this time, the glue dispensing temperature needs to be adjusted to lower the glue dispensing temperature.
[0091] 104. Collect a finished product image of the workpiece to be glued after glue dispensing, and detect whether the finished product image meets the qualification standard.
[0092] In this step, a first comparison image of the workpiece to be glued is specifically generated before glue is dispensed, and the first comparison image is compared with the finished product image to detect whether the glue dispensing position is qualified; when the glue dispensing position is qualified, the glue overflow amount at the glue dispensing position is detected according to the finished product image to see whether it meets the standard.
[0093] In the above, the first comparison chart can be combined to know the glue dispensing position of the workpiece before glue dispensing, and a virtual glue dispensing qualified comparison chart will be intelligently and automatically generated in combination with the glue dispensing position. The glue dispensing qualified comparison chart has the information of the amount of glue overflow after virtual glue dispensing at the glue dispensing position. Through the glue dispensing qualified comparison chart, a standard range of glue dispensing can be known, and a corresponding dotted line box can be generated in the glue dispensing qualified comparison chart to indicate the standard range, which means that the glue dispensing amount within the standard range is qualified, and less than or more than the standard range is unqualified. Therefore, according to the finished product image, the glue overflow amount at the glue dispensing position can be compared with the glue dispensing qualified comparison chart to know whether the glue overflow amount is qualified, and whether the glue dispensing amount is insufficient.
[0094] Embodiment 2
[0095] See also Figure 2 , Figure 2 Schematic diagram of the structure of the dispensing control device disclosed in the embodiment of the present invention. Figure 2 As shown, the glue dispensing control device may include: a data collection module 201, a glue dispensing start module 202, a workpiece alignment module 203 and a qualified verification module 204, wherein the data collection module 201: is used to collect historical operation data, the historical operation data includes glue dispensing action data, glue dispensing temperature data, and glue dispensing time data, the glue dispensing time data includes season and glue dispensing timestamp, the glue dispensing action data includes the first glue dispensing action, the time difference between the current glue dispensing timestamp and the glue dispensing timestamp of the first glue dispensing action is calculated according to the glue dispensing timestamp and the glue dispensing action data, and the corresponding relationship between the glue dispensing temperature data and the glue dispensing time data is generated according to the historical operation data; glue dispensing start module 202 The activation module 202 is used to respond to the glue dispensing start instruction, collect the glue dispensing image data, and confirm whether the start condition is currently met based on the glue dispensing image data; the glue dispensing start instruction includes a number of workpiece information to be glued, and each of the workpiece information to be glued includes a glue dispensing position and a preset glue dispensing capacity; the workpiece alignment module 203 is used to transport the workpiece to be glued to a set position when the conditions are met, adjust the target position of the workpiece to be glued to align with the glue dispensing nozzle, and then enter the glue dispensing process, and adjust the glue dispensing temperature during the glue dispensing process according to the corresponding relationship; the qualified verification module 204 is used to collect the finished product image of the workpiece to be glued after glue dispensing, and detect whether the finished product image meets the qualified standard.
[0096] In the data collection module 201, a correspondence between the dispensing temperature data and the dispensing time data is generated according to the historical operation data, including: dividing the historical operation data into a plurality of corresponding data groups, each corresponding data group includes a dispensing time data and a dispensing temperature data, and the dispensing time data and the dispensing temperature data in each corresponding data group correspond to each other; calculating the time difference between the dispensing time data and the first dispensing time data in each corresponding data group according to the first dispensing time data of the first dispensing action, and forming a new data group set with the time difference and the dispensing temperature data corresponding to each corresponding data group; sorting the data group set in order from small to large according to the value of the time difference, and generating a first correspondence between the time difference and the dispensing temperature data according to the sorting order; sorting the corresponding data groups in order from first to last according to the dispensing time data, and generating a second correspondence between the dispensing time data and the dispensing temperature data according to the sorting order.
[0097] Furthermore, the above-mentioned generation of the first correspondence between the time difference and the dispensing temperature data according to the sorting order includes: obtaining all the dispensing temperature data corresponding to the same time difference, obtaining the first numerical range with the most distributed data in the said all dispensing temperature data, calculating the first median of the first numerical range, and taking the first median as the dispensing temperature data corresponding to the time difference; generating a first number set for each time difference and the corresponding first median, and obtaining the first correspondence according to the said sorting order and the first number set. And the generation of the second correspondence between the dispensing time data and the dispensing temperature data according to the sorting order includes: obtaining all the dispensing temperature data corresponding to the same dispensing time data, obtaining the second numerical range with the most distributed data in the said all dispensing temperature data, calculating the second median of the second numerical range, and taking the second median as the dispensing temperature data corresponding to the dispensing time data; generating the second data for each dispensing time data and the corresponding second median, and obtaining the second correspondence according to the said sorting order and the second data.
[0098] Furthermore, the data collection module 201 may also include comparing the trend overlap between the first corresponding relationship and the second corresponding relationship. When the trend overlap is greater than or equal to a threshold, the first corresponding relationship is selected as the corresponding relationship between the dispensing temperature data and the dispensing time data; when the trend overlap is less than the threshold, the second corresponding relationship is corrected based on the first corresponding relationship.
[0099] In the glue dispensing start module 202, based on the glue dispensing image data, confirming whether the current start condition is met includes: confirming whether the workpiece to be glued is located at the fixed position of glue dispensing according to the glue dispensing image data, and confirming whether the glue capacity meets the current glue dispensing capacity; wherein the current glue dispensing capacity is calculated according to the preset glue dispensing capacity. Further, the confirmation of whether the glue capacity meets the current glue dispensing capacity includes: obtaining the initial glue capacity and the glue dispensing capacity used each time, and calculating the total glue dispensing capacity used according to the glue dispensing capacity used each time; calculating the current remaining glue capacity based on the initial glue capacity and the total glue dispensing capacity used; obtaining the preset glue dispensing capacity, calculating the maximum value of the current glue dispensing capacity according to the formula M+a, and calculating the minimum value of the current glue dispensing capacity according to the formula Ma, wherein M is the preset glue dispensing capacity, a is the preset calculated value, and a is greater than 0; judging whether the remaining glue capacity is greater than the maximum value of the current glue dispensing capacity, and generating an alarm message when the remaining glue capacity is less than the maximum value of the current glue dispensing capacity and greater than the minimum value of the current glue dispensing capacity.
[0100] In the qualified verification module 204, whether the finished product image meets the qualified standards is detected, including: generating a first comparison image of the workpiece to be glued before glue is dispensed, comparing the first comparison image with the finished product image to detect whether the glue dispensing position is qualified; when the glue dispensing position is qualified, detecting whether the overflow amount of glue at the glue dispensing position meets the standard according to the finished product image.
[0101] Embodiment 3
[0102] See also Figure 3 , Figure 3 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. The electronic device may be a computer, a server, etc. Of course, in certain circumstances, it may also be a smart device such as a mobile phone, a tablet computer, a monitoring terminal, and an image acquisition device with processing functions. Figure 3 As shown, the electronic device may include:
[0103] A memory 301 storing executable program codes;
[0104] a processor 302 coupled to the memory 301;
[0105] The processor 302 calls the executable program code stored in the memory 301 to execute part or all of the steps in the dispensing control method in the first embodiment.
[0106] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute part or all of the steps in the dispensing control method in the first embodiment.
[0107] The embodiment of the present invention further discloses a computer program product, wherein when the computer program product is run on a computer, the computer is enabled to execute part or all of the steps in the dispensing control method in the first embodiment.
[0108] An embodiment of the present invention further discloses an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps in the dispensing control method in embodiment one.
[0109] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0111] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0112] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the method described in each embodiment of the present invention.
[0113] In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0114] A person of ordinary skill in the art can understand that some or all of the steps in the various methods of the embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0115] The dispensing control method, device, electronic device and storage medium disclosed in the embodiments of the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A dispensing control method, It is characterized in that include: Collect historical operation data, the historical operation data including dispensing action data, dispensing temperature data, and dispensing time data, the dispensing time data including season and dispensing timestamp, the dispensing action data including first dispensing action, calculate the time difference between the current dispensing timestamp and the dispensing timestamp of the first dispensing action according to the dispensing timestamp and the dispensing action data, and generate a corresponding relationship between the dispensing temperature data and the dispensing time data according to the historical operation data; In response to a dispensing start instruction, dispensing image data is collected, and based on the dispensing image data, whether the start condition is currently met is confirmed; the dispensing start instruction includes a plurality of workpiece information to be dispensed, each of which includes a dispensing position and a preset dispensing capacity; When the conditions are met, the workpiece to be glued is transported to a set position, the target position of the workpiece to be glued is adjusted to align with the glue nozzle, and then the glue dispensing process is entered, and the glue dispensing temperature is adjusted during the glue dispensing process according to the corresponding relationship; The finished product image of the workpiece to be glued is collected after glue dispensing, and the finished product image is tested to see whether it meets the qualification standard.
2. The dispensing control method according to claim 1, It is characterized in that The corresponding relationship between the dispensing temperature data and the dispensing time data is generated according to the historical operation data, including: Divide the historical operation data into a plurality of corresponding data groups, each corresponding data group includes a dispensing time data and a dispensing temperature data, and the dispensing time data and the dispensing temperature data in each corresponding data group correspond to each other; Calculate the time difference between the dispensing time data in each corresponding data group and the first dispensing time data according to the first dispensing time data of the first dispensing action, and form a new data group set with the time difference and dispensing temperature data corresponding to each corresponding data group; Sorting the data group set in ascending order of the time difference value, and generating a first corresponding relationship between the time difference and the dispensing temperature data in the sorted order; The corresponding data are grouped and sorted in the order of the dispensing time data from the earliest to the latest, and a second corresponding relationship between the dispensing time data and the dispensing temperature data is generated according to the sorting order.
3. The dispensing control method according to claim 2, It is characterized in that The generating of the first corresponding relationship between the time difference and the dispensing temperature data in the sorting order includes: Obtain all dispensing temperature data corresponding to the same time difference, obtain a first value range with the most distributed data in all the dispensing temperature data, calculate a first median of the first value range, and use the first median as the dispensing temperature data corresponding to the time difference; Generate a first number set of each time difference and a corresponding first median, and obtain a first corresponding relationship according to the sorting order and the first number set; The second corresponding relationship between the dispensing time data and the dispensing temperature data is generated in the sorting order, including: Obtain all dispensing temperature data corresponding to the same dispensing time data, obtain a second numerical range with the most distributed data in the said dispensing temperature data, calculate a second median of the second numerical range, and take the second median as the dispensing temperature data corresponding to the dispensing time data; Generate each dispensing time data and the second data of the corresponding second median, and obtain a second corresponding relationship according to the sorting order and the second data.
4. The dispensing control method according to claim 3, It is characterized in that Also includes: Compare the trend overlap between the first corresponding relationship and the second corresponding relationship, and when the trend overlap is greater than or equal to a threshold, select the first corresponding relationship as the corresponding relationship between the dispensing temperature data and the dispensing time data; When the trend coincidence is less than a threshold, the second corresponding relationship is corrected based on the first corresponding relationship.
5. The dispensing control method according to claim 1, It is characterized in that Confirming whether the start condition is currently met based on the dispensing image data includes: Confirm whether the workpiece to be glued is located at the fixed glue dispensing position according to the glue dispensing image data, and confirm whether the glue capacity meets the current glue dispensing capacity; The current dispensing capacity is calculated based on the preset dispensing capacity.
6. The dispensing control method according to claim 5, It is characterized in that The step of confirming whether the glue capacity meets the current glue dispensing capacity includes: Obtain the initial glue capacity and the glue dispensing capacity used each time, and calculate the total glue dispensing capacity used based on the glue dispensing capacity used each time; Calculate the current remaining glue capacity based on the initial glue capacity and the total glue dispensing capacity used; Get the preset dispensing capacity, calculate the maximum current dispensing capacity according to the formula M+a, and calculate the minimum current dispensing capacity according to the formula Ma, where M is the preset dispensing capacity, a is the preset calculated value, and a is greater than 0; It is determined whether the remaining glue capacity is greater than the current maximum glue dispensing capacity. When the remaining glue capacity is less than the current maximum glue dispensing capacity and greater than the current minimum glue dispensing capacity, an alarm message is generated.
7. The dispensing control method according to claim 1, It is characterized in that The step of detecting whether the finished product image meets the qualification standard includes: Generate a first comparison image of the workpiece to be glued before glue is dispensed, and compare the first comparison image with the finished product image to detect whether the glue dispensing position is qualified; When the dispensing position is qualified, the glue overflow amount at the dispensing position is detected according to the finished product image to see whether it meets the standard.
8. A dispensing control device, It is characterized in that include: Data collection module: used to collect historical operation data, the historical operation data includes dispensing action data, dispensing temperature data, and dispensing time data, the dispensing time data includes season and dispensing timestamp, the dispensing action data includes the first dispensing action, the time difference between the current dispensing timestamp and the dispensing timestamp of the first dispensing action is calculated according to the dispensing timestamp and the dispensing action data, and the corresponding relationship between the dispensing temperature data and the dispensing time data is generated according to the historical operation data; Glue dispensing start module: used to respond to the glue dispensing start instruction, collect glue dispensing image data, and confirm whether the start condition is currently met based on the glue dispensing image data; the glue dispensing start instruction includes a number of workpiece information to be glued, and each of the workpiece information to be glued includes a glue dispensing position and a preset glue dispensing capacity; Workpiece alignment module: used for conveying the workpiece to be glued to a set position when the conditions are met, adjusting the target position of the workpiece to be glued to be aligned with the glue dispensing nozzle, and then entering the glue dispensing process, and adjusting the glue dispensing temperature during the glue dispensing process according to the corresponding relationship; Qualification verification module: used to collect the finished product image of the workpiece to be glued after dispensing, and detect whether the finished product image meets the qualification standard.
9. An electronic device, It is characterized in that include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the dispensing control method described in any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the dispensing control method according to any one of claims 1 to 7.
