Interrupted engraving recovery method for laser engraving machine

By using the spiffs file system and synchronization information table in the laser engraving machine to update the engraving status information in real time, the problem of inaccurate recovery after laser engraving is solved, achieving efficient recovery of interrupted engraving and avoiding material waste and low production efficiency.

CN118964299APending Publication Date: 2024-11-15SHENZHEN AOFENUO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000643.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Interruptions during laser engraving result in material waste and low production efficiency, especially the inability to accurately and efficiently resume engraving from the point of interruption.

Method used

The CarvingRecords.esf file is created using the spiffs file system to save carving status information in real time. The coordinates of the breakpoints are updated in real time through the synchronization information table and status detection tasks. An interruption recovery selection interface is established, and the breakpoints are located by quickly preprocessing according to the carving file type.

Benefits of technology

This technology enables laser engraving machines to quickly and accurately resume engraving after an interruption, avoiding resource waste and ensuring the continuity of engraving and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964299A_ABST
    Figure CN118964299A_ABST
Patent Text Reader

Abstract

The invention discloses an interrupted engraving recovery method for a laser engraving machine. Comprising the following steps of: S1, creating a CarvingRechards.esf file; s2, establishing a synchronization information table; s3, updating the current motion state in real time in the state detection task, storing the current motion state in the interrupt information file, closing the interrupt record file after the current motion state is successfully maintained, and waiting for calling; s4, establishing an interrupt recovery selection interface; s5, the information of the CarvingRechards.esf file is checked, and the information of the CarvingRechards.esf file is checked; s6, positioning the position information of an engraving interruption point, and moving to the interruption point to continuously finish engraving; and S7, after the carving is finished successfully, deleting the carving record file CarvingRecords.esf, and after the file is deleted, indicating that the whole carving process is finished successfully. According to the method, the position of interruption can be quickly and accurately positioned, the continuity and consistency of engraving after recovery from the breakpoint are ensured, and resource waste and low production efficiency are effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of engraving machines, in particular to a method for restoring interrupted engraving of a laser engraving machine. Background Art

[0002] Laser engraving is a high-precision and high-efficiency process that has been widely used in various industrial fields. However, in actual operation, the engraving process is often unexpectedly interrupted due to power outages, equipment failures, or operational errors. After the interruption, the work must be resumed from the interruption point. At this time, if the engraving cannot be accurately and efficiently resumed from the interruption point, it will not only lead to material waste, but also greatly reduce production efficiency and affect the product engraving quality. Summary of the invention

[0003] In view of the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a method for recovering interrupted engraving of a laser engraving machine.

[0004] In order to achieve the above object, the present invention adopts the following technical solution: A method for recovering interrupted engraving of a laser engraving machine comprises the following steps: S1. After the engraving work starts, the spiffs file system is used to ensure that the CarvingRecords.esf file is successfully created in the flash, and the engraving state timer starts working, saving the engraving state information every 10 seconds, and saving the data in the engraving state information in the CarvingRecords.esf file; S2. Establish a synchronization information table, start a state detection task, and update the current motion state in real time in the task. When the machine is in motion, the linear interpolation algorithm will update the current motion coordinate information and the gcode line number currently processed to the cache variable in real time, and add the cached line number and position information to the synchronization information table at the same time. The synchronization information table is mainly used to find the accurate interruption point coordinates by looking up the table after the interruption; S3. Update the current motion state in real time in the state detection task. If there is an abnormal interruption, send a command to the synchronization information table, match the interruption coordinate information through the gcode line number, find the interruption coordinate information, update the coordinate information to the interruption cache information, and save it to the interruption information file. After the success, close the interruption record file and wait for the call; S4. Establish an interruption recovery selection interface, and select to enter the engraving recovery process according to the user's needs; S5. After selecting the recovery option in the interruption recovery selection interface, the device enters the engraving interruption interface. In the engraving interruption interface, check whether there is a CarvingRecords.esf file handle. If the interruption is caused by power failure, check the CarvingRecords.esf file information when the device is turned on and enters the main interface; S6. If there is CarvingRecords.esf file information, the user is reminded to perform engraving recovery operation. When the user chooses to resume after interruption, the file data is read and parsed. According to the parsed data of the engraving file type, different engraving file processing functions are called respectively. Then, the source file is quickly pre-processed according to the line number and interruption point of the engraving interruption, the position information of the engraving interruption point is located, and the engraving is continued to be completed at the interruption point. S7. After waiting for the carving to be successfully completed, delete the carving record file CarvingRecords.esf. After deleting the file, it means that the entire carving process has been successfully completed.

[0005] Preferably, in step S1, the engraving status information includes the project name, engraving file type, file size, number of lines of engraving operation, engraving progress, and number of completions. Depending on the type of the engraving project file, if it is a picture file, then the relevant parameters of the picture setting need to be saved. If it is a GCode file of relative motion, the coordinate value when it is interrupted also needs to be recorded so as to find the interruption position by cumulative calculation.

[0006] Preferably, in step S6, after locating the position information of the engraving interruption point, the device is first returned to the zero point and then quickly moved to the interruption point to avoid the device losing its own position information after an abnormal interruption. If it does not return to the zero point, it may cause azimuth deviation.

[0007] Due to the adoption of the above scheme, the present invention provides an efficient recovery basis after an abnormal interruption based on the detection of various states during the engraving work and when the engraving is interrupted, and the establishment of data files, and can quickly and accurately locate the interruption position, and ensure the continuity and consistency of the engraving after recovery from the breakpoint, effectively avoiding waste of resources and low production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 The figure is a flow chart of creating a recovery file according to an embodiment of the present invention.

[0009] Figure 2 It is a flowchart of engraving engineering restoration according to an embodiment of the present invention.

[0010] Figure 3 It is a flow chart of interruption position information recording according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0012] like Figures 1 to 3 As shown, this embodiment provides a method for restoring interrupted engraving of a laser engraving machine, comprising the following steps: S1. After the engraving work starts, the spiffs file system is used to ensure that the CarvingRecords.esf file is successfully created in the flash, and the engraving state timer starts working, saving the engraving state information every 10 seconds, and saving the data in the engraving state information in the CarvingRecords.esf file; S2. It is troublesome to confirm the specific coordinate value corresponding to the number of engraving lines, because our motion parser uses a 64k cache to record the motion GCODE information. To accurately locate which line of GCODE is called at the stop moment, a large cache is also needed to synchronize and save the used GCODE information. Therefore, it is necessary to first establish a synchronization information table, start a state detection task, and update the current motion state in real time in the task. When the machine is in motion, the linear interpolation algorithm will update the coordinate information of the current motion and the GCODE line number currently processed to the cache variable in real time, and add the cached line number and position information to the synchronization information table at the same time. The synchronization information table is mainly used to find the accurate coordinates of the interruption point by looking up the table after the interruption; S3. Update the current motion state in real time in the state detection task. If there is an abnormal interruption, send a command to the synchronization information table, match the interruption coordinate information through the gcode line number, find the interruption coordinate information, update the coordinate information to the interruption cache information, and save it to the interruption information file. After the success, close the interruption record file and wait for the call; S4. Establish an interruption recovery selection interface, and select to enter the engraving recovery process according to the user's needs; S5. After selecting the recovery option in the interruption recovery selection interface, the device enters the engraving interruption interface. In the engraving interruption interface, check whether there is a CarvingRecords.esf file handle. If the interruption is caused by power failure, check the CarvingRecords.esf file information when the device is turned on and enters the main interface; S6. If there is CarvingRecords.esf file information, the user is reminded to perform engraving recovery operation. When the user chooses to resume after interruption, the file data is read and parsed. According to the parsed data of the engraving file type, different engraving file processing functions are called respectively. Then, the source file is quickly pre-processed according to the line number and interruption point of the engraving interruption, the position information of the engraving interruption point is located, and the engraving is continued to be completed at the interruption point. S7. After the carving is successfully completed, delete the carving record file CarvingRecords.esf. After the file is deleted, it means that the entire carving process is successfully completed.

[0013] Furthermore, in step S1, the engraving status information includes the project name, engraving file type, file size, number of lines of engraving operation, engraving progress, and number of completions. Depending on the type of the engraving project file, if it is a picture file, then the relevant parameters of the picture setting need to be saved. If it is a GCode file of relative motion, the coordinate value at the time of interruption needs to be recorded so as to find the interruption position by cumulative calculation.

[0014] Furthermore, in step S6, after locating the position information of the engraving interruption point, the device is first returned to the zero point and then quickly moved to the interruption point to avoid the device losing its own position information after an abnormal interruption. If it does not return to the zero point, it may cause azimuth deviation.

[0015] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for restoring interrupted engraving of a laser engraving machine, characterized in that: The following steps are involved: S1. After the engraving work starts, the spiffs file system is used to ensure that the CarvingRecords.esf file is successfully created in the flash, and the engraving state timer starts working, saving the engraving state information every 10 seconds, and saving the data in the engraving state information in the CarvingRecords.esf file; S2. Establish a synchronization information table, start a state detection task, and update the current motion state in real time in the task. When the machine is in motion, the linear interpolation algorithm will update the current motion coordinate information and the gcode line number currently processed to the cache variable in real time, and add the cached line number and position information to the synchronization information table at the same time. The synchronization information table is mainly used to find the accurate interruption point coordinates by looking up the table after the interruption; S3. Update the current motion state in real time in the state detection task. If there is an abnormal interruption, send a command to the synchronization information table, match the interruption coordinate information through the gcode line number, find the interruption coordinate information, update the coordinate information to the interruption cache information, and save it to the interruption information file. After the success, close the interruption record file and wait for the call; S4. Establish an interruption recovery selection interface, and select to enter the engraving recovery process according to the user's needs; S5. After selecting the recovery option in the interruption recovery selection interface, the device enters the engraving interruption interface. In the engraving interruption interface, check whether there is a CarvingRecords.esf file handle. If the interruption is caused by power failure, check the CarvingRecords.esf file information when the device is turned on and enters the main interface; S6. If there is CarvingRecords.esf file information, the user is reminded to perform engraving recovery operation. When the user chooses to resume after interruption, the file data is read and parsed. According to the parsed data of the engraving file type, different engraving file processing functions are called respectively. Then, the source file is quickly pre-processed according to the line number and interruption point of the engraving interruption, the position information of the engraving interruption point is located, and the engraving is continued to be completed at the interruption point. S7. After the carving is successfully completed, delete the carving record file CarvingRecords.esf. After the file is deleted, it means that the entire carving process is successfully completed.

2. A method for recovering interrupted engraving of a laser engraving machine as claimed in claim 1, characterized in that: In step S1, the engraving status information includes the project name, engraving file type, file size, number of lines of engraving operation, engraving progress, and number of completions. Depending on the type of the engraving project file, if it is a picture file, it is also necessary to save the relevant parameters of the picture setting. If it is a GCode file of relative motion, it is also necessary to record the coordinate value when it is interrupted, so as to find the interruption position by cumulative calculation.

3. A method for recovering interrupted engraving of a laser engraving machine as claimed in claim 2, characterized in that: In step S6, after locating the position information of the engraving interruption point, the device is first returned to the zero point and then quickly moved to the interruption point to avoid the device losing its own position information after an abnormal interruption. If it does not return to the zero point, it may cause azimuth deviation.