Optimized processing method of large filling files in continuous motion mode

By separating the fill files into outline data and fill parameters, and grouping and sorting based on the motion direction of the pipeline, filling lines are dynamically generated, which solves the inefficiency problem of traditional laser marking methods when dealing with complex filling lines of large files, and achieves efficient file editing and production line continuity.

CN119356212BActive Publication Date: 2025-04-04BEIJING JCZ TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411897309.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-04
Estimated Expiration
2044-12-23

AI Technical Summary

Technical Problem

In a batch continuous production environment, traditional laser marking methods are difficult to efficiently process complex fill lines of large files, resulting in high demand for device memory and computing power, long editing and transmission processes, and unable to adapt to high-speed production beats.

Method used

By separating the fill file into outline data and fill parameters, grouping and sorting the content based on the direction of the pipeline motion, dynamically generate fill lines, and real-time downloading and path optimization are achieved through parallel task processing.

Benefits of technology

It significantly improves file editing speed and storage efficiency, reduces equipment performance requirements, ensures the continuity of the production line and the ability to adapt to rapid changes, and improves the marking efficiency and overall production time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356212B_ABST
    Figure CN119356212B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of laser processing technology, and discloses an optimization processing method for filling files in a continuous motion mode, comprising the following steps: Step 1, file separation: the filling file is divided into outline data and filling parameters; the outline data includes geometric path information of the processing content, which is used to describe the basic shape of the marking content; the filling parameters include spacing, angle and filling method, which are used to define the generation rules of the filling lines; the outline data and filling parameters after file separation are stored in sequence, the outline data is used for editing and display, and the filling parameters are called when the filling content is dynamically generated later. By separating the filling file into outline data and filling parameters, the simple outline data is operated during the editing process, the processing of complex filling content is avoided, the time of file editing and loading is reduced, the editing speed and storage efficiency of the file are improved, and at the same time, the requirements for equipment performance are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of laser processing, in particular to an optimized processing method for a large filling file in a continuous motion mode. Background Art

[0002] With the development of industrial automation, laser marking technology has been widely used in various production scenarios, especially in the continuous production lines of cables, pipes, etc., for burning permanent identification. Laser marking has the advantages of high precision, durability and traceability, but in the batch continuous production environment, there are many technical challenges in processing large files with complex content.

[0003] In an assembly line production environment, the laser marking process needs to be synchronized with other processes to meet the production rhythm requirements. When marking complex content, traditional marking methods have the following problems:

[0004] The filling file has a large amount of data and involves complex filling line generation and processing, which requires high memory and computing power of the device. The process of editing and downloading the filling file takes a long time and cannot adapt to high-speed production rhythm;

[0005] Dynamic content in marking tasks needs to be updated frequently, and traditional methods often require re-editing files and stopping the production line, which significantly affects production efficiency;

[0006] The path planning of the galvanometer during the marking process is unreasonable, and the jump path is too long, resulting in a long marking time and affecting the production cycle;

[0007] In the prior art, when updating and adjusting the filling file, the production line needs to be stopped for editing and transmission, which causes process interruption and is not conducive to continuous production.

[0008] Therefore, those skilled in the art provide an optimized processing method for large filling files in a continuous motion mode to solve the above-mentioned problems. Summary of the invention

[0009] In view of the deficiencies of the prior art, the present invention provides an optimized processing method for a large filling file in a continuous motion mode to solve the problems raised in the above background technology.

[0010] To achieve the above objectives, the present invention is implemented through the following technical solutions: an optimization processing method for large filling files in a continuous motion mode, comprising the following steps:

[0011] Step 1: File separation:

[0012] Divide the filling file into contour data and filling parameters;

[0013] The contour data includes the geometric path information of the processing content, which is used to describe the basic shape of the marking content;

[0014] Filling parameters include spacing, angle, and filling method, which are used to define the generation rules of fill lines;

[0015] After the file is separated, the outline data and filling parameters are stored in sequence. The outline data is used for editing and display, and the filling parameters are called when the filling content is dynamically generated later.

[0016] Step 2: Content Grouping:

[0017] Based on the contour data separated in step 1, the processing contents are grouped in the X-axis direction according to the movement direction of the assembly line;

[0018] The X-axis range is divided according to the moving step length of the assembly line, and each group of X-axis range matches the galvanometer scanning range;

[0019] The contents of each group are stored in memory to facilitate intra-group sorting and path optimization in subsequent steps;

[0020] Step 3: Sorting within the group:

[0021] According to the content grouping completed in step 2, sort the content of each group along the Y axis direction;

[0022] Arrange each group of content in the order of top to bottom, bottom to top, and top to bottom according to the spatial position to obtain the sorting result;

[0023] Prioritize marking the content with adjacent spatial positions to reduce the jump distance of the galvanometer;

[0024] The sorting results are used to optimize path planning and serve as input data for subsequent real-time filling generation and grouping downloading;

[0025] Step 4: Real-time filling generation:

[0026] Based on the filling parameters in step 1 and the sorting results in step 3, dynamically generate a filling line in front of the content adjacent to the marking space position;

[0027] Read the outline data of the corresponding content and call the properties of the spacing and angle in the filling parameters;

[0028] Generate the corresponding filling lines through the filling algorithm and temporarily store them in the memory;

[0029] Combine the generated fill lines with the outline data to provide fill content for subsequent group downloading;

[0030] Step 5: Download in groups:

[0031] The filling content generated by the real-time filling in step 4 is transmitted to the processing equipment at one time according to the content grouping result in step 2;

[0032] The filling results of fixed content are generated and cached in advance and directly transferred to the device;

[0033] Variable content is dynamically generated and filled with results and then transmitted separately;

[0034] Ensure the integrity of each group of content during the download process to avoid transmitting the same group of data multiple times;

[0035] Step 6: Dynamic content update:

[0036] Replace the variable content in step 5 in real time;

[0037] Extract the contour data of the variable content and replace the corresponding numerical part;

[0038] Regenerate the filled lines based on the replaced data, using the filling algorithm in step 4;

[0039] The updated filling content is transmitted to the device;

[0040] Step 7: Path optimization marking:

[0041] According to the sorting results in step 3 and the content of each group downloaded in step 5, the jump path of the galvanometer is optimized and the marking is completed in sequence;

[0042] Generate an initial annotation path based on the location of the current group content;

[0043] Calculate the jump distance of the galvanometer in the path, and prioritize the order of the minimum jump distance;

[0044] Dynamically adjust the marking path during the actual marking process to adapt to changes in the marking area;

[0045] Step 8: Parallel task processing:

[0046] While the marking process of the current group of contents is being carried out in step 7, the real-time filling generation and group downloading of the next group of contents are completed;

[0047] Start an independent thread to handle the real-time filling generation of the next set of content;

[0048] Prepare and download the real-time fill generation results to the device in group order;

[0049] Ensure that the marking of the current group is seamlessly connected with the preparation process of the next group.

[0050] Preferably, the outline data and filling parameters in step 1 are stored in sequence as independent data structures, wherein the outline data is stored in vector format for fast loading and editing; and the filling parameters are stored in the form of attribute key-value pairs for subsequent calls.

[0051] Preferably, the X-axis range in step 2 is The following relationship is satisfied:

[0052] ,

[0053] in, is the X-axis range of each group of content, N is the moving step of the pipeline, and S is the scanning width of the galvanometer.

[0054] Preferably, the intra-group sorting process in step 3 includes:

[0055] a. According to the Y-axis position of the content Conduct a preliminary sorting of the content;

[0056] b. According to the distance between adjacent contents Optimize sorting to meet the following requirements:

[0057] ,

[0058] in, , is the coordinate of the ith content, , is the coordinate of the jth content, is the distance between content i and content j.

[0059] Preferably, the real-time filling generation in step 4 includes the following operations:

[0060] Generates fill lines based on the spacing and angle of the fill parameters;

[0061] Calculate the start and end coordinates of the fill line according to the boundary conditions of the outline data.

[0062] Preferably, the fixed content and variable content in step 5 are downloaded in the following manner:

[0063] For fixed content, the filling results are cached in advance and transmitted directly;

[0064] For variable content, real-time filling is generated and transmitted to the device in groups in sequence. The transmission order is consistent with the grouping order in step 2.

[0065] Preferably, the fixed content and variable content in step 5 are downloaded in the following manner:

[0066] For fixed content, the filling results are cached in advance and transmitted directly;

[0067] For variable content, real-time filling is generated and transmitted to the device in groups in sequence. The transmission order is consistent with the grouping order in step 2.

[0068] Preferably, in step 7, the initial marking path of the galvanometer is calculated according to the sorting result, and the total distance of the path jump is reduced by adjusting the order during the marking path optimization process.

[0069] Preferably, the parallel task processing in step 8 is implemented through a multi-threaded architecture, including:

[0070] Marking thread: responsible for marking the current group content;

[0071] Filling generation process: responsible for the real-time filling generation of the next set of content;

[0072] Data download thread: responsible for downloading content to the device in group order.

[0073] Preferably, in step 4, the filling algorithm is used to dynamically generate filling lines according to the contour data and the filling parameters, and the generation of the filling lines is achieved by the following formula:

[0074] Let the boundary of the contour be B and the spacing of the fill lines be , the filling angle is , the formula for generating the fill line is as follows:

[0075] Calculate the direction vector of the fill line: ,

[0076] Where d represents the direction vector of the fill line. is the fill angle specified in the fill parameters, Indicates the extent of the fill line in the X-axis direction. Indicates the extent of the fill line in the Y-axis direction;

[0077] Generate the starting point of the fill line: ,

[0078] in, is the starting point of the i-th filled line;

[0079] is the initial point of the filling area, which is the lower left corner of contour B;

[0080] is the fill spacing;

[0081] is a unit vector perpendicular to the direction of the fill line;

[0082] Calculate the end point of the filled line: for each filled line starting point , by extending in the direction of boundary B, determine the intersection point ,

[0083] in, is the end point of the i-th filled line;

[0084] L is the length of the fill line, which is determined by the intersection of the fill line and the contour boundary B;

[0085] Limit the range of the fill line: If the start and end points of the fill line exceed boundary B, the start and end points are adjusted to within the contour boundary through the clipping algorithm.

[0086] The present invention provides an optimized processing method for large filling files in a continuous motion mode. It has the following beneficial effects:

[0087] 1. The present invention separates the filling file into outline data and filling parameters, operates simple outline data during the editing process, avoids processing complex filling content, reduces the time of file editing and loading, improves the file editing speed and storage efficiency, and at the same time, reduces the requirements on device performance.

[0088] 2. The present invention ensures that the processing content can be transmitted to the equipment in groups through group division and real-time filling generation technology, and the dynamic update and adjustment of files can be realized without stopping the production line, thereby ensuring the continuity of the production line and meeting the needs of industrial assembly lines for long-term uninterrupted operation.

[0089] 3. The present invention adopts a dynamic replacement mechanism to update variable content in real time. There is no need to re-edit the file. The data update is completed directly by filling in the generated dynamic adjustment, which greatly shortens the update time and improves the ability of the production line to adapt to rapidly changing needs.

[0090] 4. The present invention optimizes the galvanometer path by grouping and sorting the processing content within the group, reducing the invalid jump time of the galvanometer during the marking process. At the same time, combined with parallel task processing technology, the filling and transmission preparation of the next group can be completed while marking the current content, thereby improving processing efficiency and shortening the total production time. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0092] In order to make the technical personnel in the technical field understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in combination with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a partial embodiment of the present invention, not a complete embodiment. Based on the embodiment of the present invention, other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present invention.

[0093] The present invention is described in detail below in conjunction with the accompanying drawings: Example

[0094] Please refer to the attached Figure 1 , an embodiment of the present invention provides an optimization processing method for a large filling file in a continuous motion mode, comprising the following steps:

[0095] Step 1: File separation:

[0096] Divide the filling file into contour data and filling parameters;

[0097] The contour data includes the geometric path information of the processing content, which is used to describe the basic shape of the marking content;

[0098] Filling parameters include spacing, angle, and filling method, which are used to define the generation rules of fill lines;

[0099] After the file is separated, the outline data and filling parameters are stored in sequence. The outline data is used for editing and display, and the filling parameters are called when the filling content is dynamically generated later.

[0100] Step 2: Content Grouping:

[0101] Based on the contour data separated in step 1, the processing contents are grouped in the X-axis direction according to the movement direction of the assembly line;

[0102] The X-axis range is divided according to the moving step length of the assembly line, and each group of X-axis range matches the galvanometer scanning range;

[0103] The contents of each group are stored in memory to facilitate intra-group sorting and path optimization in subsequent steps;

[0104] Step 3: Sorting within the group:

[0105] According to the content grouping completed in step 2, sort the content of each group along the Y axis direction;

[0106] Arrange each group of content in the order of top to bottom, bottom to top, and top to bottom according to the spatial position to obtain the sorting result;

[0107] Prioritize marking the content with adjacent spatial positions to reduce the jump distance of the galvanometer;

[0108] The sorting results are used to optimize path planning and serve as input data for subsequent real-time filling generation and grouping downloading;

[0109] Step 4: Real-time filling generation:

[0110] Based on the filling parameters in step 1 and the sorting results in step 3, dynamically generate a filling line in front of the content adjacent to the marking space position;

[0111] Read the outline data of the corresponding content and call the properties of the spacing and angle in the filling parameters;

[0112] Generate the corresponding filling lines through the filling algorithm and temporarily store them in the memory;

[0113] Combine the generated fill lines with the outline data to provide fill content for subsequent group downloading;

[0114] Step 5: Download in groups:

[0115] The filling content generated by the real-time filling in step 4 is transmitted to the processing equipment at one time according to the content grouping result in step 2;

[0116] The filling results of fixed content are generated and cached in advance and directly transferred to the device;

[0117] Variable content is dynamically generated and filled with results and then transmitted separately;

[0118] Ensure the integrity of each group of content during the download process to avoid transmitting the same group of data multiple times;

[0119] Step 6: Dynamic content update:

[0120] Replace the variable content in step 5 in real time;

[0121] Extract the contour data of the variable content and replace the corresponding numerical part;

[0122] Regenerate the filled lines based on the replaced data, using the filling algorithm in step 4;

[0123] The updated filling content is transmitted to the device;

[0124] Step 7: Path optimization marking:

[0125] According to the sorting results in step 3 and the content of each group downloaded in step 5, the jump path of the galvanometer is optimized and the marking is completed in sequence;

[0126] Generate an initial annotation path based on the location of the current group content;

[0127] Calculate the jump distance of the galvanometer in the path, and prioritize the order of the minimum jump distance;

[0128] Dynamically adjust the marking path during the actual marking process to adapt to changes in the marking area;

[0129] Step 8: Parallel task processing:

[0130] While the marking process of the current group of contents is being carried out in step 7, the real-time filling generation and group downloading of the next group of contents are completed;

[0131] Start an independent thread to handle the real-time filling generation of the next set of content;

[0132] Prepare and download the real-time fill generation results to the device in group order;

[0133] Ensure that the marking of the current group is seamlessly connected with the preparation process of the next group.

[0134] By dividing the filling file into two parts, the contour data and filling parameters, the complexity of file editing and storage is significantly reduced, so that only simple contour data needs to be operated during the editing stage, avoiding the processing of complex filling content, thereby improving the file editing speed and reducing the equipment performance requirements, providing flexibility and efficiency guarantee for the real-time filling generation in the subsequent steps;

[0135] The processing contents are grouped according to the moving step length of the assembly line, so that the range of each group of contents matches the scanning range of the galvanometer, and the span of the galvanometer when marking different areas is reduced. At the same time, the convenience of content management is improved through group storage, providing a clear structured basis for group sorting and path optimization, ensuring the orderly progress of the production process;

[0136] By sorting the grouped contents in the Y-axis direction and giving priority to marking the adjacent contents in the space, the non-processing jump distance of the galvanometer during the marking process is reduced, the marking order is optimized, and the galvanometer path is made more efficient, laying the foundation for path planning and real-time filling generation, thereby improving the marking efficiency and the continuity of the overall production rhythm;

[0137] The method of dynamically generating fill lines enables the fill content to be generated only before marking, avoiding the memory occupation problem caused by generating fill content in advance. At the same time, the fill lines are flexibly generated in combination with the fill parameters to ensure the accuracy of the fill content, providing complete processing data for subsequent group downloading, and significantly improving the real-time response capability of the production line;

[0138] The filled content is transmitted to the device at one time according to the grouping results, and the processing methods of fixed content and variable content are distinguished. By caching fixed content in advance and transmitting variable content in real time, the redundancy of repeated data transmission is effectively reduced, the integrity of each group of content is ensured, and stable and accurate input is provided for processing equipment;

[0139] By replacing variable content in real time and regenerating fill lines, the update process of variable data is made more efficient, and dynamic adjustment can be achieved without re-editing the file, which greatly improves the adaptability of dynamic content in the production line and ensures the accuracy and real-time nature of the marking content.

[0140] By optimizing the jump path of the galvanometer according to the sorting results and dynamically adjusting the jump order during the marking process, the non-processing movement time of the galvanometer is significantly reduced, the marking efficiency is maximized, and the continuity of the marking area is ensured, thereby improving the processing quality and the operating efficiency of the overall production line;

[0141] By starting independent threads to achieve parallel processing of marking, filling generation and data download, the marking of the current group of contents and the preparation of the next group of contents can be carried out simultaneously, reducing the waiting time between marking tasks, ensuring the continuity and efficiency of the production process, and significantly improving the utilization of equipment resources and the overall efficiency of the production line.

[0142] The contour data and filling parameters in step 1 are stored as independent data structures in sequence, wherein the contour data is stored in vector format for fast loading and editing; the filling parameters are stored in the form of attribute key-value pairs for subsequent calls.

[0143] Storing contour data in vector format can achieve lightweight file management and enable high-precision description of the geometric path information of the processing content. At the same time, it supports fast loading and editing operations, improving the flexibility and efficiency of file editing. Filling parameters are stored in the form of attribute key-value pairs, making filling rules such as spacing, angle, and filling method independent and scalable, which is convenient for subsequent steps to dynamically call and generate filling content, reduce memory usage, optimize the generation process of filling content, and lay an efficient foundation for real-time processing and dynamic updating.

[0144] The X-axis range in step 2 The following relationship is satisfied:

[0145] ,

[0146] in, is the X-axis range of each group of content, N is the moving step of the pipeline, and S is the scanning width of the galvanometer.

[0147] By grouping the range Setting it as the product of the pipeline moving step length N and the galvanometer scanning width S can ensure that the range of each group of content is compatible with the movement rhythm of the pipeline and the working range of the galvanometer, reducing the complexity of cross-region processing of grouped content. At the same time, the grouping method ensures that the galvanometer can complete the marking task of the current group content within its effective scanning range, reducing the invalid movement of the galvanometer jumping across groups, improving the marking efficiency, and making the overall operation rhythm of the pipeline more stable and coherent.

[0148] The in-group sorting process in step 3 includes:

[0149] a. According to the Y-axis position of the content Conduct a preliminary sorting of the content;

[0150] b. According to the distance between adjacent contents Optimize sorting to meet the following requirements:

[0151] ,

[0152] in, , is the coordinate of the ith content, , is the coordinate of the jth content, is the distance between content i and content j.

[0153] Reduce the galvanometer jump time: arrange the contents by Y-axis position through preliminary sorting, and further prioritize adjacent contents in combination with optimized sorting, so as to reduce the distance and time of non-processing jumps of the galvanometer during the marking process;

[0154] Improve the continuity of the marking path: optimize the sorting to ensure the continuity of the content marking order, so that the galvanometer can complete the marking task of each group of content in sequence along the shortest path, avoiding the disorder of marking rhythm caused by path jumping;

[0155] Improve path planning efficiency: Use geometric distance formulas to calculate the jump cost of adjacent content, which helps to automate path optimization and improve the calculation efficiency and accuracy of the path planning process;

[0156] Enhance the stability of processing within the group: The sorting results enable the galvanometer to complete the marking within the effective working range of the group, reduce the instability of cross-region processing, and ensure the marking quality and efficiency.

[0157] The real-time fill generation in step 4 includes the following operations:

[0158] Generates fill lines based on the spacing and angle of the fill parameters;

[0159] Calculate the starting and ending coordinates of the fill line according to the boundary conditions of the contour data;

[0160] The fixed content and variable content in step 5 are uploaded in the following way:

[0161] For fixed content, the filling results are cached in advance and transmitted directly;

[0162] For variable content, real-time filling is generated and transmitted to the device in groups in sequence, and the transmission order is consistent with the grouping order in step 2;

[0163] The dynamic content update in step 6 is achieved by the following operations:

[0164] Extracting the corresponding variable content in the contour data;

[0165] Replace variable values;

[0166] Call the fill parameters to regenerate the fill lines and replace them into the memory;

[0167] In step 7, the initial marking path of the galvanometer is calculated according to the sorting result, and the total distance of the path jump is reduced by adjusting the order during the marking path optimization process;

[0168] The parallel task processing in step 8 is implemented through a multi-threaded architecture, including:

[0169] Marking thread: responsible for marking the current group content;

[0170] Filling generation process: responsible for the real-time filling generation of the next set of content;

[0171] Data download thread: responsible for downloading content to the device in group order.

[0172] In step 4, the filling algorithm is used to dynamically generate fill lines based on the contour data and fill parameters. The generation of fill lines is achieved by the following formula:

[0173] Let the boundary of the contour be B and the spacing of the fill lines be , the filling angle is , the formula for generating the fill line is as follows:

[0174] Calculate the direction vector of the fill line: ,

[0175] Where d represents the direction vector of the fill line. is the fill angle specified in the fill parameters, Indicates the extent of the fill line in the X-axis direction. Indicates the extent of the fill line in the Y-axis direction;

[0176] Generate the starting point of the fill line: ,

[0177] in, is the starting point of the i-th filled line;

[0178] is the initial point of the filling area, which is the lower left corner of contour B;

[0179] is the fill spacing;

[0180] is a unit vector perpendicular to the direction of the fill line;

[0181] Calculate the end point of the filled line: for each filled line starting point , by extending in the direction of boundary B, determine the intersection point ,

[0182] in, is the end point of the i-th filled line;

[0183] L is the length of the fill line, which is determined by the intersection of the fill line and the contour boundary B;

[0184] Limit the range of the fill line: If the start and end points of the fill line exceed boundary B, the start and end points are adjusted to within the contour boundary through the clipping algorithm.

[0185] The filling algorithm in step 4 dynamically generates filling lines and directly associates the filling content with the contour data and filling parameters to achieve accurate matching and efficient calculation of the filling content. The algorithm flexibly generates filling lines based on parameters such as filling spacing and filling angle, uses geometric calculations to determine the starting and ending points, and uses a clipping algorithm to ensure that the filling lines are within the contour boundary. It is suitable for dynamic filling requirements of complex shapes;

[0186] By calculating the direction vector of the fill line, ensure that the fill line is generated along the specified fill angle direction, and accurately calculate the start and end point coordinates according to the contour boundary B. The fill content can strictly meet the boundary requirements of the marking area to avoid data redundancy and incomplete filling.

[0187] By dynamically calculating the starting and ending points of each fill line, combined with the boundary conditions of the contour and the fill spacing, the algorithm can adapt to contour areas of any complex shape, ensuring that the fill content is evenly distributed and meeting various industrial marking needs;

[0188] The filling lines that exceed the outline boundary are adjusted to the boundary through the clipping algorithm to ensure that the filling content fully meets the requirements of the processing area, improve the marking accuracy, avoid error accumulation in the processing area, and ensure the marking quality;

[0189] By calculating the optimal starting and ending points of the fill lines and cropping the range, the calculation accuracy and efficiency of the fill content are improved, reducing redundant calculations and invalid filling, making the galvanometer marking process faster and more stable, thereby improving the processing efficiency of the entire production line.

[0190] In summary, this filling algorithm can generate filling lines accurately, flexibly and efficiently, and dynamically adapt to changes in filling parameters and contour data in real time, ensuring the quality of the marking content and processing efficiency, while reducing memory overhead and processing errors, and providing reliable technical support for the efficient processing of large filling files in continuous motion mode.

[0191] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An optimized processing method for large filling files in continuous motion mode, characterized in that: The steps include: Step 1: File separation: Divide the filling file into contour data and filling parameters; The contour data includes the geometric path information of the processing content, which is used to describe the basic shape of the marking content; Filling parameters include spacing, angle, and filling method, which are used to define the generation rules of fill lines; After the files are separated, the outline data and filling parameters are stored in sequence. The outline data is used for editing and display, and the filling parameters are called when the filling content is dynamically generated later. Step 2: Content Grouping: Based on the contour data separated in step 1, the processing contents are grouped in the X-axis direction according to the movement direction of the assembly line; The X-axis range is divided according to the moving step length of the assembly line, and each group of X-axis range matches the galvanometer scanning range; The contents of each group are stored in memory to facilitate intra-group sorting and path optimization in subsequent steps; Step 3: Sorting within the group: According to the content grouping completed in step 2, sort the content of each group along the Y axis direction; Arrange the contents of each group in the order of top to bottom, bottom to top, and top to bottom according to their spatial positions to obtain the sorting result; Prioritize marking the content with adjacent spatial positions to reduce the jump distance of the galvanometer; The sorting results are used to optimize path planning and serve as input data for subsequent real-time filling generation and grouping downloading; Step 4: Real-time filling generation: Based on the filling parameters in step 1 and the sorting results in step 3, dynamically generate a filling line in front of the content adjacent to the marking space position; Read the outline data of the corresponding content and call the properties of the spacing and angle in the filling parameters; Generate the corresponding filling lines through the filling algorithm and temporarily store them in the memory; Combine the generated fill lines with the outline data to provide fill content for subsequent group downloading; Step 5: Download in groups: The filling content generated by the real-time filling in step 4 is transmitted to the processing equipment at one time according to the content grouping result in step 2; The filling results of fixed content are generated and cached in advance and directly transferred to the device; Variable content is dynamically generated and filled with results and then transmitted separately; Ensure the integrity of each group of content during the download process to avoid transmitting the same group of data multiple times; Step 6: Dynamic content update: Replace the variable content in step 5 in real time; Extract the contour data of the variable content and replace the corresponding numerical part; Regenerate the filled lines based on the replaced data, using the filling algorithm in step 4; The updated filling content is transmitted to the device; Step 7: Path optimization marking: According to the sorting results in step 3 and the content of each group downloaded in step 5, the jump path of the galvanometer is optimized and the marking is completed in sequence; Generate an initial annotation path based on the location of the current group content; Calculate the jump distance of the galvanometer in the path, and prioritize the order of the minimum jump distance; Dynamically adjust the marking path during the actual marking process to adapt to changes in the marking area; Step 8: Parallel task processing: While the marking process of the current group of contents is being carried out in step 7, the real-time filling generation and group downloading of the next group of contents are completed; Start an independent thread to handle the real-time filling generation of the next set of content; Prepare and download the real-time fill generation results to the device in group order; Ensure that the marking of the current group is seamlessly connected with the preparation process of the next group.

2. The optimization processing method of large filling files in continuous motion mode according to claim 1 is characterized in that: The outline data and filling parameters in step 1 are stored in sequence as independent data structures, wherein the outline data is stored in vector format for fast loading and editing; and the filling parameters are stored in the form of attribute key-value pairs for subsequent calls.

3. The optimization processing method of large filling files in continuous motion mode according to claim 1 is characterized in that: The X-axis range in step 2 The following relationship is satisfied: , in, is the X-axis range of each group of content, N is the moving step of the pipeline, and S is the scanning width of the galvanometer.

4. The optimization processing method of large filling files in continuous motion mode according to claim 1 is characterized in that: The intra-group sorting process in step 3 includes: a. According to the Y-axis position of the content Conduct a preliminary sorting of the content; b. According to the distance between adjacent contents Optimize sorting to meet the following requirements: , in, , is the coordinate of the ith content, , is the coordinate of the jth content, is the distance between content i and content j.

5. The optimization processing method of large filling files in continuous motion mode according to claim 1 is characterized in that: The real-time filling generation in step 4 includes the following operations: Generates fill lines based on the spacing and angle of the fill parameters; Calculate the start and end coordinates of the fill line according to the boundary conditions of the outline data.

6. The optimization processing method of large filling files in continuous motion mode according to claim 1, characterized in that: The fixed content and variable content in step 5 are transmitted in the following manner: For fixed content, the filling results are cached in advance and transmitted directly; For variable content, real-time filling is generated and transmitted to the device in groups in sequence. The transmission order is consistent with the grouping order in step 2.

7. The method for optimizing processing of large filling files in continuous motion mode according to claim 1, characterized in that: The dynamic content update in step 6 is implemented by the following operations: Extracting the corresponding variable content in the contour data; Replace variable values; Call the fill parameter to regenerate the fill lines and replace them into memory.

8. The method for optimizing processing of large filling files in continuous motion mode according to claim 1, characterized in that: In step 7, the initial marking path of the galvanometer is calculated according to the sorting result, and the total distance of the path jump is reduced by adjusting the order during the marking path optimization process.

9. The method for optimizing processing of large filling files in continuous motion mode according to claim 1, characterized in that: The parallel task processing in step 8 is implemented through a multi-threaded architecture, including: Marking thread: responsible for marking the current group content; Filling generation process: responsible for the real-time filling generation of the next set of content; Data download thread: responsible for downloading content to the device in group order.

10. The method for optimizing processing of large filling files in continuous motion mode according to claim 1, characterized in that: In step 4, the filling algorithm is used to dynamically generate filling lines according to the outline data and the filling parameters. The generation of the filling lines is achieved by the following formula: Let the boundary of the contour be B and the spacing of the fill lines be , the filling angle is , the formula for generating the fill line is as follows: Calculate the direction vector of the fill line: , Where d represents the direction vector of the fill line. is the fill angle specified in the fill parameters, Indicates the extent of the fill line in the X-axis direction. Indicates the extent of the fill line in the Y-axis direction; Generate the starting point of the fill line: , in, is the starting point of the i-th filled line; is the initial point of the filling area, which is the lower left corner of contour B; is the fill spacing; is a unit vector perpendicular to the direction of the fill line; Calculate the end point of the filled line: for each filled line starting point , by extending in the direction of boundary B, determine the intersection point , in, is the end point of the i-th filled line; L is the length of the fill line, which is determined by the intersection of the fill line and the contour boundary B; Limit the range of the fill line: If the start and end points of the fill line exceed boundary B, the start and end points are adjusted to within the contour boundary through the clipping algorithm.

Citation Information

Patent Citations

  • Robot machining path generation method and system for laser cladding

    CN117021095A

  • Self-adaptive filling and filling line sorting processing method and device and storage medium

    CN117610889A