Control method, device and storage medium of mounting system
Through the identification files named by visual inspection components and group positioning rules, combined with the synchronous hole information of the hole punching components, the automated detection and batch installation of tape parts in mechanical processing are realized, which solves the problem of low efficiency in the existing technology and improves production efficiency.
Patent Information
- Application Number
- CN202211246498.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-12
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-10-12
AI Technical Summary
In the prior art, during mechanical processing, the appearance detection efficiency of parts on the tape is low, resulting in low production efficiency in batch mounting scenarios, and usually rely on manual inspection methods.
The visual detection component is used to collect and identify the material tapes, generate an image recognition result set, and use the identification file named by the grouping positioning rules, combined with the synchronous hole information of the hole punching component to realize automated batch mounting.
It improves production and processing efficiency, adapts to batch mounting scenarios, reduces manual intervention, and realizes automatic defect identification and batch mounting operations.
Smart Images

Figure CN115755742B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to, but are not limited to, the field of mechanical processing technology, and in particular to a control method, device, and storage medium for a mounting system. Background Art
[0002] During machining, several parts are typically carried on a tape to enable batch placement. However, some parts on the tape may have cosmetic defects, so each part needs to be visually inspected throughout the batch processing process to ensure that the resulting product meets production requirements. In related technologies, manual inspection is typically used to first inspect parts, and then good and defective parts are transferred based on the inspection results. This method has low production and processing efficiency and is not suitable for batch placement scenarios. Summary of the Invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] The embodiments of the present application provide a control method, device, and storage medium for a placement system, which can improve production and processing efficiency to adapt to batch placement scenarios.
[0005] In a first aspect, an embodiment of the present application provides a control method for a placement system, wherein the placement system includes a visual inspection component, a punching component, and a placement component sequentially arranged along a transmission direction, the control method comprising:
[0006] Obtaining a set of files to be identified, wherein the set of files to be identified includes at least one identification file, each identification file being named according to a preset grouping and positioning rule; each identification file recording a number of image recognition results corresponding one-to-one with the workpiece; each image recognition result being a result of image recognition performed by the visual inspection component on a set of product images obtained by photographing the tape to be mounted;
[0007] Acquire first punching information obtained by the placement component detecting the to-be-placed material tape; wherein the synchronous holes corresponding to the first punching information are punched by the punching component according to the grouping positioning rule;
[0008] When the name of the first identification file in the to-be-identified file set matches the first punching information, the first identification file is used as a basis for transferring the current batch of the mounted components to be processed.
[0009] In a second aspect, an embodiment of the present application further provides an electronic device comprising: at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions, and the instructions are executed by the at least one processor so that when the at least one processor executes the instructions, a control method for a mounting system as described in any one of the first aspects is implemented.
[0010] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the control method of the mounting system described in any one of the first aspects.
[0011] The above-mentioned embodiments of the present application have at least the following beneficial effects: by collecting a set of product images before mounting and obtaining a corresponding set of image recognition results, automatic defect recognition can be achieved, and the image recognition result set that has been identified is divided according to the number of divisions, so that during mounting, only the corresponding identification file needs to be obtained for each mounting, and the divided number of workpieces can be batch mounted. The punching component follows the grouping and positioning rules for punching, and the naming of the identification file also follows the grouping and positioning rules. Therefore, the file name of the identification file and the first punching information have a unique mapping relationship. At this time, the first punching information and the naming of each identification file in the set of files to be identified can be used to quickly determine whether there is a first identification file corresponding to the current batch to be processed, thereby realizing batch automated mounting operations. Therefore, compared with the manual identification method, the embodiments of the present application have higher processing efficiency and can adapt to batch mounting scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings are used to provide a further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0013] Figure 1 is a schematic top view of a mounting system according to an embodiment of the present application;
[0014] Figure 2 is a schematic diagram named after the group positioning rule in the control method of the placement system in the embodiment of the present application;
[0015] Figure 3 1 is a flow chart of a control method for a placement system according to an embodiment of the present application;
[0016] Figure 4 This is a logic diagram of identification file matching of a control method for a placement system according to an embodiment of the present application;
[0017] Figure 5 This is a logical processing diagram of identification file matching in a specific embodiment of the control method of the placement system according to the embodiment of the present application;
[0018] Figure 6 It is a schematic diagram of the hardware structure corresponding to the control method of the mounting system of the embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0021] In addition, the described features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known methods, devices, implementations or operations are not shown or described in detail to avoid blurring various aspects of the present disclosure.
[0022] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0023] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0024] Reference Figure 1 As shown, the embodiment of the present application provides a placement system, which includes: a visual inspection component 100, a punching component 200, a placement component 300 and a control platform 400 arranged in sequence along the transmission direction. The control does not report inspection and the visual inspection component 100, the punching component 200 and the placement component 300 are all communicatively connected.
[0025] In some embodiments, the visual inspection component 100 is configured to capture images of the mounting tape passing through a preset first position area and transmit the captured product image set to the control platform 400. The control platform 400 performs image recognition on the product image set to obtain an image recognition result set. Based on a preset number of partitions, the image recognition result set is written into at least one recognition file to update the set of files to be recognized. The recognition files are named according to preset grouping and positioning rules, and each recognition file records the image recognition results for the partitioned number of workpieces. Simultaneously, when the punching component 200 detects that the mounting tape is located at the second position, it determines whether to perform synchronous hole punching and the type of punching according to the preset grouping and positioning rules. When the material tape to be mounted reaches the third position of the mounting component 300, the mounting component 300 sends the detection result to the control platform 400. The control platform 400 obtains the first punching information obtained by the mounting component 300 to detect the material tape to be mounted to determine whether there is a synchronization hole in the material tape to be mounted at the third position. If there is a synchronization hole, it means that the image recognition result needs to be synchronized and the synchronization processing process of the current batch to be processed needs to be entered. During the synchronization processing process, when the control platform 400 determines that the name of the first recognition file in the file set to be identified matches the first punching information, the mounting component 300 is controlled to transfer the passing workpieces one by one according to the first recognition file.
[0026] It should be noted that in other embodiments, the control platform 400 is configured to perform image recognition on the product image set collected by the visual inspection component 100, obtain an image recognition result set, and write the image recognition result set into at least one recognition file according to a preset number of partitions. The recognition files are named according to a preset grouping and positioning rule, and each recognition file records the image recognition results for the partitioned number of workpieces. The newly generated recognition file is then sent to the placement component 300 to update the set of files to be recognized in the placement component 300. After detecting the first punch hole information, the placement component 300 determines whether a first recognition file exists in the set of files to be recognized whose name matches the first punch hole information. If the first recognition file exists, the placement is performed according to the first recognition file.
[0027] It should be noted that the grouping and positioning rules define at least two placement batches, as well as calculation rules for each placement batch and the corresponding synchronization hole type for each placement batch. One placement batch is divided into a number of workpieces for each processing. The two placement batches are combined to form a processed batch. For example, in some embodiments, the grouping and positioning rules define two placement batches: a first batch and a second batch. Each first preset number of first batches constitutes a second batch. The first batch value increments from 0 to the first preset value each time the number of processing times is reached. When the second batch reaches the second preset value, the calculation of the first and second batches restarts. The first and second preset values can be set based on actual conditions, with the first batch corresponding to one synchronization hole type and the second batch corresponding to another synchronization hole type. Specifically, for example, the first and second preset values are both set to 10. The first batch corresponds to small synchronization holes, while the second batch corresponds to large synchronization holes. Initially, when a small synchronization hole is detected, the first batch counts up from 1. When 10 small synchronization holes are detected consecutively, the first batch counts restart from 1, and the second batch counts up from the initial value of 0 to 1. When the second batch accumulates to 10, the first batch and the second batch are counted again. By using at least two placement batches, when one batch is abnormal (for example, there is no image recognition result for the small synchronization hole), it is possible to quickly locate the first batch under the other second batch without the abnormality and re-place it, thereby improving the placement of workpieces with image recognition results.
[0028] It should be noted that the identification file is named according to the preset grouping and positioning rules, which means that the processing batch can be determined according to the naming of the identification file. For example, taking the grouping and positioning rules as an example, there are two placement batches. Figure 2 As shown, the first three digits represent the value of the second batch, and the last three digits represent the value of the first batch. Specifically, using decimal notation as an example, a file name of 001002 indicates that the currently processed batch is the second first batch under the first second batch. At this point, by simply comparing the file names, it is possible to quickly determine whether the actual strip has the corresponding image recognition result for batch placement.
[0029] Reference Figure 3 As shown, based on Figure 1 The present application proposes a control method for the placement system shown, which includes:
[0030] Step S100, obtaining a set of files to be identified, wherein the set of files to be identified includes at least one identification file, each identification file is named according to a preset grouping and positioning rule; each identification file records a number of image recognition results corresponding one-to-one to the workpiece; each image recognition result is the result of image recognition by the visual inspection component 100 on a set of product images obtained by photographing the material tape to be mounted.
[0031] It should be noted that the visual inspection component 100 can be configured based on actual defect detection requirements. The visual inspection component 100 can include at least one camera or other component with imaging capabilities. During product image acquisition, the mounting tape can be stopped to obtain a higher-quality product image set. Image recognition can utilize machine learning or neural network learning, which is not limited in this embodiment of the present application.
[0032] It should be noted that, when the placement system is started, the visual inspection component 100 will continuously inspect to support subsequent batch placement.
[0033] It should be noted that a new recognition file will be generated for each accumulated divided image recognition result. This recognition file is named according to the grouping and positioning rules. Taking the preset number of 160 as an example, if there are 154 image recognition result sets previously processed and 10 image recognition result sets in the current round, the 6 current and 154 previous image recognition result sets will be placed in the same recognition file. The remaining 4 current image recognition result sets will be merged with the next image recognition result set to generate a new recognition file. If the preset number is small and the image recognition result set obtained from each image acquisition is greater than the preset number, multiple recognition files will be generated at once.
[0034] It should be noted that each identification file in the to-be-identified file set is a file waiting to be matched.
[0035] It should be noted that the group positioning rules define at least two types of placement batches and the calculation rules for each placement batch, as well as the synchronous hole types corresponding to each placement batch. Naming the identification file according to the group positioning rules can confirm the graphic recognition results required for the current processing batch based on the file name of the identification file.
[0036] Step S200: obtaining first punching information obtained by the mounting component 300 from detecting the material tape to be mounted; wherein the synchronous holes corresponding to the first punching information are punched by the punching component 200 according to the grouping positioning rule.
[0037] It should be noted that, since the first punching information corresponds to the holes punched according to the grouping positioning rule, the recognition file containing the image recognition results of the workpieces at the same position can be determined according to the first punching information.
[0038] Step S300: When the name of the first identification file in the to-be-identified file set matches the first punching information, the first identification file is used as a basis for transferring the current batch of the mounted components 300 to be processed.
[0039] Therefore, by collecting a set of product images before mounting and obtaining a corresponding set of image recognition results, automatic defect recognition can be achieved, and the image recognition result set that has been identified is divided according to the number of divisions, so that during mounting, only the corresponding identification file needs to be obtained for each mounting, and the divided number of workpieces can be batch mounted. The punching component 200 follows the grouping and positioning rules for punching, and the naming of the identification file also follows the grouping and positioning rules. Therefore, the file name of the identification file and the first punching information have a unique mapping relationship. At this time, the first punching information and each identification file in the set of files to be identified can be used to quickly determine whether there is a first identification file corresponding to the current batch to be processed, thereby realizing batch automated mounting operations. Therefore, compared with the manual identification method, the embodiment of the present application has higher processing efficiency and can be adapted to batch mounting scenarios.
[0040] It should be noted that by setting the group positioning rules, when the first punching information does not match the expectation, automatic batch placement can be achieved through re-positioning of the next batch. In actual applications, the first punching information does not match the expectation, such as when the first identification file is not found, or the punching category of the first punching information is a non-preset category. At this time, fault-tolerant processing includes processing when the first identification file does not exist for the identified punching type, judging the current batch type to be processed for the punching type corresponding to the identified first punching information, and processing the first punching information of the unidentified punching category. For example, refer to Figure 4 As shown, taking the above steps S100 to S400 executed by the placement component 300 as an example, for each starting state (i.e., power on or reset or completion of the last transfer action), when the PLC synchronization hole signal (i.e., the first punching information) sent by the placement component 300 (specifically, the PLC in the placement component 300) is received, when the punching type corresponding to the first punching information is identified as a preset large synchronization hole signal or a small synchronization hole signal, it is determined that the PLC synchronization hole signal is consistent with the AOI file (i.e., whether there is a first identification file). If so, the current transfer is performed according to the content of the AOI file. When it is determined that it is identified as another type of synchronization hole (such as a large synchronization hole is identified as a small synchronization hole, or a small synchronization hole is identified as a large synchronization hole), an error is reported. Otherwise, it is determined that the synchronization hole is not identified, and defective products are transferred until the next PLC synchronization hole signal is consistent with the expectation and is a large synchronization hole signal. For the PLC synchronous hole signal that does not identify the punching category, and the punching type of the current batch is unclear, an error is reported. When the punching type of the current batch to be processed is clear, defective products are transferred.
[0041] It is understandable that the image recognition results corresponding to the workpieces are obtained through the following steps:
[0042] Acquire a first image of the front side of the tape to be mounted taken by the visual inspection component 100;
[0043] Acquire a second image of the bottom surface of the to-be-mounted tape captured by the visual inspection component 100;
[0044] Acquire a third image of the side view of the tape to be mounted taken by the visual inspection component 100;
[0045] Performing integrity, size, foreign matter, and first offset detection on each workpiece in the first image to obtain a first image recognition result corresponding to each workpiece;
[0046] Performing a second offset detection on each workpiece in the second image to obtain a second image recognition result corresponding to each workpiece;
[0047] Performing three-dimensional structure detection on each workpiece in the third image to obtain a third image recognition result corresponding to each workpiece;
[0048] The first image recognition result, the corresponding second image recognition result, and the third image recognition result are combined to obtain image recognition results that correspond one-to-one to the workpiece.
[0049] It should be noted that by performing result detection on different defects of images in different orientations, multi-dimensional detection of the workpiece can be performed.
[0050] It should be noted that integrity detection means detecting whether there are component defects in the workpiece, such as taking MESH steel mesh products as an example, detecting whether there is material or glue missing. Size detection means detecting whether the size of the workpiece is inconsistent with expectations, such as taking MESH steel mesh products as an example, detecting whether there are large and small edges of the steel mesh. The first offset detection means detecting whether there is an offset in the components at the front, such as taking MESH steel mesh products as an example, the first offset detection is to detect whether the black glue on the front is offset; foreign matter detection indicates whether there are parts that are not related to the workpiece; the second offset detection indicates whether there is an offset in the components at the back, such as taking MESH steel mesh products as an example, detecting whether there is a black glue offset at the bottom. Three-dimensional structure detection means detecting the integrity and material consistency of the three-dimensional structure, such as taking MESH steel mesh products as an example, detecting whether the convex bulge is crushed or the mesh is broken for integrity detection, and detecting whether there is material mixing to detect material consistency. In this regard, the embodiments of the present application do not restrict the specific detection content.
[0051] For example, refer to Figure 1 As shown, the visual inspection component 100 includes a first photographing element 111 , a second photographing element 112 , and a third photographing element 113 to respectively detect a first image, a second image, and a third image.
[0052] It is understandable that referring to Figure 4 As shown, whether the name of the first identified file in the to-be-identified file set matches the first punching information is determined by the following steps:
[0053] Step S510: Determine the punching type according to the first punching information.
[0054] It should be noted that the punching type is one of the types defined in the group positioning rule or other types. For example, taking the group positioning rule as an example in which large synchronization holes and small synchronization holes are defined, the punching type can be a large synchronization hole, a small synchronization hole, or a synchronization hole other than the large synchronization hole and the small synchronization hole.
[0055] Step S520: Obtain first punching parameters corresponding to the previous processing batch; wherein the first punching parameters include a first value and a second value, and the first value and the second value respectively correspond to batch processing information of a type of synchronous hole.
[0056] The first punching parameter represents the processing batch information of the previous processing. For example, the first punching parameter is Figure 5 For example, xxx001 indicates the xxx001th batch. For example, if the first value corresponds to the first synchronization hole and the second value corresponds to the second synchronization hole, then the xxx001th batch indicates the second synchronization hole under the xxxth batch; and the first synchronization hole of the first batch under the xxxth batch.
[0057] Step S530: Determine whether the punching type is correctly identified based on the punching type and the first punching parameter.
[0058] It should be noted that, under normal circumstances, since the punching is performed in accordance with the group definition rules, there is a unique and definite relationship between the punching type detected in the first punching information and the punching type that the current batch to be processed expects to actually process. Therefore, based on the punching type and the first punching parameter, it can be judged whether the punching type is identified correctly to determine whether the punching type is the punching type that matches the actual processing expected by the current processing batch.
[0059] Step S540: When the punching type is correctly identified, determine the second punching parameters corresponding to the current processing batch according to the preset first updating rule.
[0060] It should be noted that the first updating rule represents a rule for changing the puncture type corresponding to the next batch when the puncture type corresponding to the first puncture information matches the first puncture parameter.
[0061] Step S550: Compare the value of the second punching parameter with the file name of each identification file in the to-be-identified file set.
[0062] Step S560: When a first identification file having the same value as the second punching parameter exists in the set of files to be identified, it is determined that the name of the first identification file matches the first punching information and the first punching parameter is updated to the second punching parameter.
[0063] It should be noted that when the punch type is not correctly identified, it means that the material tape to be mounted is offset or the position of the material tape to be mounted cannot be identified. Therefore, the material tape to be mounted needs to be repositioned to assign the correct identification file for batch mounting.
[0064] It should be noted that since image recognition, punching and placement are carried out simultaneously, even if the punching type is identified correctly, there may be a situation where the workpiece has entered the placement area but the corresponding image recognition result has not come out, resulting in the non-existence of the first recognition file.
[0065] For example, refer to Figure 5 As shown, taking the group positioning rule including two mounting batches, namely the first batch and the second batch as an example, the first batch corresponds to small synchronization holes, the second batch corresponds to large synchronization holes, and every 10 small synchronization holes correspond to a large synchronization hole. At time t0, the PLC synchronization hole signal is received (i.e., the first punching information detected in the mounting component 300). When it is determined that the received PLC synchronization hole signal is a small synchronization hole, it is determined based on the current pointer whether the next set of data (i.e., the AOI file corresponding to the second punching parameter) exists to determine whether the first identification file exists. When the first identification file exists, refer to step S400 for transfer. At this time, taking the first update rule as an increment as an example, the first value of the first punching parameter is increased by 1 and updated to the second punching parameter (i.e., the small synchronization hole count in the figure is increased by 1, and the current pointer is set to the value after the small synchronization hole + 1).
[0066] It is understandable that, since at least two types of synchronous holes are set, when the first identification file does not exist, the first value of the first punching parameter can be changed to one of the preset reference values, so as to determine the execution operation of the current batch to be processed according to the specific value of the reference value. Figure 5 As shown, the method also includes:
[0067] When the first identification file does not exist in the set of files to be identified, the first punching parameters are updated according to a preset second updating rule, and the configuration file corresponding to the updated first punching parameters is used as a basis for mounting the mounting component 300 .
[0068] It should be noted that the configuration file is a default number of identification files with abnormal recognition results.
[0069] It should be noted that the second update rule represents the rule for changing the punch type corresponding to the next batch when the first recognition file does not exist. By setting the second update rule, after a recognition error occurs, the reposting judgment can still be made based on the current first punch parameters and referring to steps S510 to S560.
[0070] It is understandable that referring to Figure 5As shown, the first puncturing parameter is updated according to a preset second updating rule, including:
[0071] When the puncture type is a preset first synchronous puncture, and the first value in the first puncture parameter is equal to a preset threshold, updating the first value to a preset first reference value to update the first puncture parameter;
[0072] When the puncture type is a preset first synchronous puncture, and the first value in the first puncture parameter is not equal to the preset threshold, updating the first value to a preset second reference value to update the first puncture parameter;
[0073] When the punching type is the preset second synchronous hole, the second value in the first punching parameter is incremented and the first value is updated to the second reference value.
[0074] It should be noted that a divided number of first synchronization holes corresponds to one second synchronization hole.
[0075] It should be noted that the first reference value indicates that the type of synchronization hole to be processed in the next batch is the second synchronization hole. The second reference value indicates that the type of synchronization hole to be processed in the next batch is the first synchronization hole. Figure 4 As shown, taking the first synchronization hole as a small synchronization hole, the second synchronization hole as a large synchronization hole, and the threshold value as 009 as an example, when the punching type is a small synchronization hole, the first identification file does not exist, and when the current pointer is not xxx009, that is, the first value in the first punching parameter is not equal to the preset threshold, the current pointer is set to xxx111, where 111 represents the second reference value. When the first punching information received at the next moment is a large synchronization hole, it can be determined that it is an identification error and an early warning is required. When the first punching information received at the next moment is a small synchronization hole, it indicates that the first punching parameter needs to be updated with reference to the third update rule.
[0076] It should be noted that after the first value is updated to the first reference value, when the next second synchronization hole is received, the second synchronization hole is calculated normally and the first synchronization hole is recalculated.
[0077] It is understandable that, judging whether the punching type is correctly identified based on the punching type and the first punching parameter includes:
[0078] Determine the verification conditions based on the punching type;
[0079] When the first punching parameter meets the verification condition, it is determined that the punching type is correctly identified;
[0080] When the first punching parameter does not meet the verification condition, it is determined that the punching type recognition error;
[0081] When it is determined that the punching type recognition error occurs, an early warning is issued according to a preset early warning rule, or the first punching parameter is updated according to a preset third updating rule.
[0082] It should be noted that the verification condition is the actual expected type of the current batch, such as Figure 5 As shown, for the second synchronization hole (corresponding to Figure 5 The verification condition is that the first value is the third reference value or 010. For the first synchronization hole (corresponding to Figure 5 The verification condition is that the first value is 001 to 009. When the puncture type corresponding to the first puncture information is non-large sync hole and small sync hole, the first puncture parameter does not meet the verification condition by default.
[0083] It should be noted that when the verification condition is not met, the first value of the first punching parameter is matched with a preset reference value, and an early warning or an update of the first punching parameter is determined based on the matching result and the identified punching type.
[0084] It should be noted that the warning is issued according to the preset warning rule, or the first punching parameter is updated according to the preset third update rule. Figure 5 , including the following:
[0085] (1) When the puncture type of the first puncture information is identifiable, the following processing is performed: When the second reference value (such as Figure 5 If the punch hole type corresponding to the first numerical value (shown as 111) matches the punch hole type corresponding to the first punch hole information, the first numerical value is updated to a third reference value, where the third reference value indicates that the synchronous hole type for the next batch of processing may be the second synchronous hole. If the punch hole type corresponding to the second reference value does not match the punch hole type corresponding to the first punch hole information, an early warning is issued.
[0086] (2) When the puncture type of the first puncture information is identifiable, the following processing is performed: When the first reference value (corresponding to Figure 5 When the punching type corresponding to the first reference value (222) does not match the punching type corresponding to the first punching information, an early warning is issued. When the punching type corresponding to the first reference value matches the punching type corresponding to the first punching information, the second value is increased by 1 and the first value is set to the third reference value.
[0087] (3) When the puncture type of the first puncture information is identifiable, the following processing is performed: when the puncture type corresponding to the third reference value does not match the puncture type corresponding to the first puncture information, an early warning is issued.
[0088] (4) When the punching type of the first punching information is unrecognizable, an early warning is issued if the first value satisfies the verification condition corresponding to the first synchronous hole or the verification condition corresponding to the second synchronous hole. For example, for a small synchronous hole, a first value of 001 to 009 is normal data, and for a large synchronous hole, 010 is normal data. Therefore, an alarm is required at this time. If the first value is the third reference value, the first reference value, or the second reference value, the preset configuration file is copied. If the first value is the first reference value or the second reference value, the first value is updated to the third reference value.
[0089] Therefore, any one or more of the above methods (1) to (4) are used to implement the processing when the punch type identification error is determined. By updating the first value, the updated first punch parameter can be used to identify whether the currently detected first punch information is expected, and the logical judgment is simpler.
[0090] For example, refer to Figure 5 As shown, assuming that at time t1, the first punching information is detected to be a small synchronous hole, it is determined whether the first punching parameter meets the verification condition (that is, the first value is 001~009). If it does, it is determined whether the next set of data corresponding to the first punching parameter exists (that is, it is determined that the corresponding identification file for the currently expected processing batch exists). If it exists, refer to step S560, and according to the first update rule, the small synchronous hole count is +1, and the pointer is set to small synchronous hole +1 (that is, the first value of the first punching parameter is set to the value after the first value +1), and the AOI file corresponding to the value is used as the first identification file; and the AOI file corresponding to the value is copied. Similarly, for the case where it is not satisfied, no further details will be given here. Further, assuming that at time t1, the first value of the first punching parameter is the first reference value (that is, 222), it means that the first punching information received at the next moment of t1 is expected to be the second synchronous hole (corresponding Figure 5 Medium and large synchronization holes). Assuming that time t2 is the next moment after time t1, and the first punching information received at time t2 is a large synchronization hole, then its large synchronization hole technology +1, XXX is changed to XXY, the current pointer is set to XXY000, and the defective product is transferred, that is, the first punching parameter is updated to XXY00 according to the third update rule. When it is a small synchronization hole at time t2, an error is reported according to the early warning rule, and the error information is: Error B: The large synchronization hole is identified as a small synchronization hole. At time t2, when the first punching information is not recognized, since the first punching parameter has an expected value, it will be updated according to the third update rule, such as keeping it unchanged or setting the first value to 000; when the first value of the first punching parameter corresponds to the actual type (that is, the first value is any value from 001 to 0009 or 010), an early warning is issued. In this regard, the embodiments of the present application will not be described in detail one by one.
[0091] It should be noted that in all the above examples, the number of divisions is 10 and the value is in decimal.
[0092] It should be noted that the early warning includes two actions: transferring the warning as defective products and displaying the early warning on the terminal.
[0093] It is understood that in some embodiments, Figure 1 The placement system shown further includes: a first positioning detection component 510 and a second positioning detection component 520, wherein the first positioning detection component 510 is located at the exit of the punching component 200, and the second positioning detection component 520 is located at the entrance of the placement component 300. The method further includes:
[0094] Receive detection signals from the first positioning detection component 510 and the second positioning detection component 520;
[0095] determining whether second punching information exists according to the detection signal;
[0096] Correspondingly, when the name of the first identification file in the to-be-identified file set matches the first punching information, the placement component 300 is controlled to transfer the passed workpieces one by one according to the first identification file, including:
[0097] When the file set to be identified includes a first identification file whose name matches the first punching information and does not include second punching information, the placement component 300 is controlled to transfer the passed workpieces one by one according to the first identification file.
[0098] It should be noted that the straight-line distance between the exit of the punch assembly 200 and the entrance of the placement assembly 300 is less than the distance between two adjacent synchronization holes. The detection by the first positioning detection assembly 510 and the second positioning detection assembly 520 can further determine whether there is an abnormality. If an abnormality is found, an early warning will be prompted, and a reset operation can be selected.
[0099] It should be noted that the second punching information indicates that a synchronous hole punched by the punching component 200 is detected.
[0100] It is understandable that, before step S100, the method further includes:
[0101] Determine whether the interval hole signal and the step hole signal of the to-be-mounted material tape are received from the punching component 200;
[0102] When the interval hole signal and the step hole signal are received at the same time, the reset operation is performed.
[0103] It should be noted that the reset operation is to reset the recognition file naming, the first punching parameters, etc., so as to restart the calculation.
[0104] The reset operation can be selected by the user, or reset processing can be performed when the above-mentioned material strip punching is abnormal, or it can be reset at power-on initialization.
[0105] It is understandable that referring to Figure 6 As shown, the electronic device provided in the second aspect of the embodiment of the present application includes:
[0106] at least one processor, and
[0107] a memory communicatively connected to at least one processor; wherein,
[0108] The memory stores instructions, and the instructions are executed by at least one processor so that when the at least one processor executes the instructions, a control method for a mounting system as described in the above-mentioned embodiment of the present application is implemented.
[0109] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0110] The following combination Figure 6 The hardware structure of the computer device is described in detail. The electronic device includes: a processor 610, a memory 620, an input / output interface 630, a communication interface 640 and a bus 650.
[0111] The processor 610 may be implemented as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is configured to execute relevant programs to implement the technical solutions provided by the embodiments of the present disclosure.
[0112] The memory 620 can be implemented in the form of ROM (Read Only Memory), static storage device, dynamic storage device, or RAM (Random Access Memory). The memory 620 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 620 and is called by the processor 610 to execute the control method of the embodiments of the present disclosure.
[0113] Input / output interface 630, used to implement information input and output;
[0114] Communication interface 640, used to implement communication interaction between the device and other devices, which can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WiFi, Bluetooth, etc.); and bus 650, which transmits information between various components of the device (such as processor 610, memory 620, input / output interface 630 and communication interface 640);
[0115] The processor 610 , the memory 620 , the input / output interface 630 , and the communication interface 640 are connected to each other in communication within the device via a bus 650 .
[0116] It can be understood that the computer-readable storage medium provided according to the embodiment of the present application stores computer-executable instructions, and the computer-executable instructions are used to execute the control method of the above-mentioned placement system.
[0117] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital model processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data format such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0118] The embodiments described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0119] Those skilled in the art will appreciate that all or some of the steps in the methods, systems, and functional modules / units in the devices disclosed above may be implemented as software, firmware, hardware, or appropriate combinations thereof.
[0120] The terms "including" and "having" and any variations thereof in the specification of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0121] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0122] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A control method for a placement system, characterized in that: The placement system includes a visual inspection component, a punching component, and a placement component arranged in sequence along a transmission direction. The control method includes: Obtaining a set of files to be identified, wherein the set of files to be identified includes at least one identification file, each identification file being named according to a preset grouping and positioning rule; each identification file recording a number of image recognition results corresponding one-to-one with the workpiece; each image recognition result being a result of defect identification performed by the visual inspection component on a set of product images obtained by photographing the material strip to be mounted; Acquire first punching information obtained by the placement component detecting the to-be-placed material tape; wherein the synchronous holes corresponding to the first punching information are punched by the punching component according to the grouping positioning rule; When the name of the first identification file in the to-be-identified file set matches the first punching information, the first identification file is used as a basis for transferring the current batch of the mounting components to be processed; The existence of the first identification file in the to-be-identified file set and the matching of the first punching information are determined by the following steps: determining a punching type according to the first punching information; Obtaining a first punching parameter corresponding to a previous processing batch; wherein the first punching parameter includes a first value and a second value, and the first value and the second value respectively correspond to batch processing information of a type of synchronous hole; determining, based on the punching type and the first punching parameter, whether the punching type is correctly identified; When the punching type is correctly identified, determining the second punching parameters corresponding to the current processing batch according to a preset first updating rule; comparing the value of the second punching parameter with the file name of each identified file in the to-be-identified file set; When a first identification file having the same value as the second punching parameter exists in the set of files to be identified, determining that the name of the first identification file matches the first punching information and updating the first punching parameter to the second punching parameter; Among them, the naming according to the preset grouping positioning rule is used to determine the processing batch according to the naming of the identification file; the first update rule represents the punching type change rule corresponding to the next batch when the punching type corresponding to the first punching information matches the first punching parameter.
2. The control method of the placement system according to claim 1, characterized in that: The image recognition results corresponding to the workpieces are obtained through the following steps: Acquire a first image of the to-be-mounted tape taken from the front by the visual inspection component; Acquire a second image of the bottom surface of the to-be-mounted tape taken by the visual inspection component; Acquire a third image of the tape to be mounted taken from the side by the visual inspection component; Performing integrity, size, foreign matter, and first offset detection on each workpiece in the first image to obtain a first image recognition result corresponding to each workpiece; performing a second offset detection on each workpiece in the second image to obtain a second image recognition result corresponding to each workpiece; Performing three-dimensional structure detection on each workpiece in the third image to obtain a third image recognition result corresponding to each workpiece; The first image recognition result, the corresponding second image recognition result, and the third image recognition result are combined to obtain the image recognition results corresponding one-to-one to the workpiece.
3. The control method of the placement system according to claim 1, characterized in that: The method further comprises: When the first recognition file does not exist in the set of files to be recognized, the first punching parameters are updated according to the preset second update rules, and the configuration file corresponding to the updated first punching parameters is used as the basis for mounting the mounting components; the second update rule represents the change rule of the punching type corresponding to the next batch when the first recognition file does not exist.
4. The control method of the placement system according to claim 3, characterized in that: Updating the first puncturing parameter according to a preset second updating rule includes: When the puncturing type is a preset first synchronous puncturing and a first value in the first puncturing parameter is equal to a preset threshold, updating the first value to a preset first reference value to update the first puncturing parameter; When the puncturing type is a preset first synchronous puncturing, and a first value in the first puncturing parameter is not equal to a preset threshold, updating the first value to a preset second reference value to update the first puncturing parameter; When the puncturing type is the preset second synchronous puncturing, the second value in the first puncturing parameter is incremented and the first value is updated to the second reference value.
5. The control method of the placement system according to claim 3, characterized in that: The determining, based on the puncture type and the first puncture parameter, whether the puncture type is correctly identified includes: Determining verification conditions according to the punching type; When the first punching parameter satisfies the verification condition, it is determined that the punching type identification is correct; When the first puncture parameter does not meet the verification condition, determining that the puncture type recognition is incorrect; When it is determined that the puncture type recognition error occurs, issuing an early warning according to a preset early warning rule, or updating the first puncture parameter according to a preset third updating rule; Among them, the third update rule indicates that when the punching type matches the punching type corresponding to the preset first reference value or the second reference value, the punching type is updated to the punching type corresponding to the preset third reference value, and the warning rule includes that the punching type corresponding to the first punching information can be identified and a warning is issued when the punching type does not match the punching type corresponding to the preset first reference value or the second reference value.
6. The control method of the placement system according to claim 1, characterized in that: The placement system further includes a first positioning detection component and a second positioning detection component, wherein the first positioning detection component is located at the exit of the punching component and the second positioning detection component is located at the entrance of the placement component. The method further includes: receiving detection signals from the first positioning detection component and the second positioning detection component; determining whether second punching information exists according to the detection signal; Correspondingly, when the name of the first identification file in the to-be-identified file set matches the first punching information, controlling the placement component to transfer the passed workpieces one by one according to the first identification file includes: When the to-be-identified file set includes a first identification file whose name matches the first punching information and does not include the second punching information, the placement component is controlled to transfer the passed workpieces one by one according to the first identification file.
7. The control method of the placement system according to claim 1, characterized in that: The method further comprises: Determining whether an interval hole signal and a step hole signal are received from the punching component for detecting the material tape to be mounted; When the interval hole signal and the step hole signal are received at the same time, a reset operation is performed.
8. An electronic device, characterized in that: include: at least one processor, and a memory communicatively connected to at least one processor; wherein, The memory stores instructions, and the instructions are executed by at least one processor, so that the at least one processor implements the control method of the placement system according to any one of claims 1 to 7 when executing the instructions.
9. A computer-readable storage medium, characterized in that Computer-executable instructions are stored, and the computer-executable instructions are used to execute at least the control method of the placement system according to any one of claims 1 to 7.
Citation Information
Patent Citations
Data processing method, data processing device and electronic equipment
CN112446377A
Material gun feeder, mounting equipment and material gun automatic detection method
CN112616308A