Power-off continuous printing method and device, electronic equipment and storage medium
By obtaining printing parameter information at preset times in the 3D printing device, and using the position information of the nozzle assembly and the original relay information to determine the target relay information, the problem of misalignment of the printing connection point after power outage is solved, and the power outage is improved Accuracy and model quality of the continuation.
Patent Information
- Application Number
- CN202411366644.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-09-27
AI Technical Summary
When the 3D printing device restarts after power outage, it is easy to cause the printing progress to be lost and the connection points are misaligned, resulting in defects in the model to be printed.
During the printing process, the printing parameter information is obtained at a preset time, and after the power is cut off, the target information is determined through the position information of the nozzle assembly and the original relay information to ensure the accurate connection of the printing connection points.
It improves the accuracy of power-off and continuous printing of 3D printing equipment, avoids misalignment of printing connection points, and ensures the quality of the model to be printed.
Smart Images

Figure CN119058093A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of 3D printing technology, and in particular to a method, device, electronic device and storage medium for continuing printing after power failure. Background Art
[0002] Three Dimension Printing (3D printing) is a type of rapid prototyping technology, also known as additive manufacturing. It is a technology that uses digital model files as the basis and uses powdered metal or plastic and other bondable materials to construct objects by printing layer by layer.
[0003] During the 3D printing process of the model to be printed, if the 3D printer has an abnormal power outage, its printing progress will be lost. When the power is connected again, the 3D printer will restart and re-read the relevant files to start printing from the beginning. This method can easily cause the printing connection points of the model to be printed before and after the power outage to be misaligned, which in turn causes defects in the model to be printed. Summary of the invention
[0004] In view of this, the present application provides a method, device, electronic device and storage medium for resuming printing after a power outage, which can improve the accuracy of resuming printing after a power outage of a 3D printing device and achieve precise connection of the printing connection points of the printed model before and after power outage.
[0005] A first aspect of the present application provides a method for resume printing after power failure, which is applied to a 3D printing device, wherein the 3D printing device includes a nozzle assembly, and the method includes: during a printing process, obtaining printing parameter information of a model to be printed at preset intervals, wherein the printing parameter information is used to instruct the 3D printing device to perform a 3D printing job; if it is detected that the 3D printing device is powered on again after being powered off in the middle of printing, obtaining original resume printing information and position information of the nozzle assembly before power failure, wherein the original resume printing information is the printing parameter information acquired by the 3D printing device for the last time before power failure; determining target resume printing information based on the position information and the original resume printing information, wherein the target resume printing information is the target printing parameter information of a target slice layer being printed before the 3D printing device is powered off; determining a start resume printing position of the model to be printed based on the position information, and controlling the 3D printing device to start resume printing after power failure based on the target resume printing information.
[0006] Compared with the related art, the embodiment of the present application has at least the following advantages: in the printing process of the model to be printed, the printing parameter information of the model to be printed is obtained at preset intervals, so that the printing progress of the model to be printed can be known according to the printing parameter information; when it is detected that the 3D printing device is powered on again after power failure in the middle of printing, the position information of the nozzle assembly before the power failure is obtained, so that the position of the nozzle assembly at the moment of power failure of the 3D printing device can be known, that is, the position of the start of the continuous printing. Since the original continuous printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure, that is, the slice layer corresponding to the original continuous printing information is not necessarily the target slice layer being printed by the 3D printing device before the power failure, the target continuous printing information is determined by the position information of the nozzle assembly and the original continuous printing information, so that the target printing parameter information of the target slice layer being printed by the 3D printing device before the power failure can be accurately known. Finally, the 3D printing device is controlled to start the continuous printing based on the target continuous printing information, which ensures the accurate connection of the printing connection points before and after the power failure of the model to be printed, and improves the accuracy of the continuous printing of the 3D printing device after the power failure.
[0007] In some possible implementations, determining the target continuation printing information based on the position information and the original continuation printing information includes: determining the regional position of the original slicing layer corresponding to the original continuation printing information based on the original continuation printing information; detecting whether the regional position matches the position information; when it is detected that the regional position matches the position information, using the original continuation printing information as the target continuation printing information; when it is detected that the regional position does not match the position information, determining a new regional position of the next slicing layer based on the printing parameter information corresponding to the next slicing layer of the original slicing layer; detecting again whether the new regional position matches the position information until a new regional position matching the position information is detected, wherein the slicing layer corresponding to the new regional position finally detected is the target slicing layer.
[0008] In some possible implementations, the original continuation information includes multiple printing instructions, and the original slicing layer includes multiple line segments to be printed, each of which corresponds to a printing instruction; determining the regional position of the original slicing layer corresponding to the original continuation information according to the original continuation information includes: determining multiple coordinate ranges of the multiple line segments to be printed according to the multiple printing instructions, wherein one line segment to be printed corresponds to one coordinate range; detecting whether the regional position matches the position information includes: detecting whether there is a target coordinate range including the position information in the multiple coordinate ranges; when it is detected that the regional position matches the position information, taking the original continuation information as the target continuation information includes: when it is detected that the target coordinate range exists, taking the printing instruction of the line segment to be printed corresponding to the target coordinate range as the target continuation information.
[0009] In some possible implementations, the 3D printing device includes a hot bed and a fan, and the target continued printing information includes a first temperature of the hot bed, a second temperature of the nozzle assembly, and a target rotational speed of the fan; before controlling the 3D printing device to start continued printing according to the target continued printing information, it also includes: respectively restoring the states of the hot bed, the fan, and the nozzle assembly, and respectively detecting the states of the hot bed, the fan, and the nozzle assembly during the state recovery process; controlling the 3D printing device to start continued printing according to the target continued printing information includes: after detecting that the temperature of the hot bed has recovered to the first temperature, the temperature of the nozzle assembly has recovered to the second temperature, and the rotational speed of the fan has recovered to the target rotational speed, controlling the 3D printing device to start continued printing according to the target continued printing information.
[0010] In some possible implementations, the respectively detecting the states of the hot bed, the fan, and the nozzle assembly during the state recovery process includes: detecting whether the temperature of the hot bed recovers to the first temperature within a first preset time period; detecting whether the temperature of the nozzle assembly recovers to the second temperature within the first preset time period; detecting whether the speed of the fan recovers to the target speed within the first preset time period; controlling the 3D printing device to start continued printing according to the target continued printing information includes: after detecting that the temperature of the hot bed recovers to the first temperature, the temperature of the nozzle assembly recovers to the second temperature, and the speed of the fan recovers to the target speed within the first preset time period, controlling the 3D printing device to start continued printing after powering on again according to the target continued printing information; the method also includes: sending an alarm message when detecting that at least one of the hot bed, the fan, and the nozzle assembly has not recovered to the target state within the first preset time period.
[0011] In some possible implementations, the position information is obtained in the following manner: after detecting that the 3D printing device is powered on again after being powered off in the middle of printing, recording the moving direction of the nozzle assembly and the moving distance in the moving direction; and obtaining the position information based on the moving direction and the moving distance.
[0012] In some possible implementations, before recording the moving direction of the nozzle assembly and the moving distance in the moving direction, it also includes: detecting whether an origin signal is found within a second preset time length; recording the moving direction of the nozzle assembly and the moving distance in the moving direction includes: after the origin signal is found in the second preset time length, recording the moving direction of the nozzle assembly relative to the origin signal and the moving distance in the moving direction.
[0013] The second aspect of the present application discloses a power-off resume printing device, which is applied to a 3D printing device. The 3D printing device includes a nozzle assembly. The power-off resume printing device includes: a first data acquisition module, a second data acquisition module, a first determination module, a second determination module and a control module; the first data acquisition module is used to acquire printing parameter information of a to-be-printed model at preset intervals during the printing process, wherein the printing parameter information is used to command the 3D printing device to perform the 3D printing work; the second data acquisition module is used to acquire the original resume printing information when it is detected that the 3D printing device is powered on again after being powered off in the middle of printing. The first determining module is used to determine the target continued printing information according to the position information and the original continued printing information, wherein the target continued printing information is the printing parameter information of the slice layer being printed before the 3D printing device is powered off; the second determining module is used to determine the start continued printing position of the model to be printed according to the position information; and the control module is used to control the 3D printing device to start continued printing according to the target continued printing information.
[0014] The third aspect of the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned power-off resume printing method.
[0015] A fourth aspect of the present application discloses a storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned power-off resume printing method.
[0016] It can be understood that the device of the second aspect, the electronic device of the third aspect, and the storage medium of the fourth aspect provided above all correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flow chart of a method for resuming printing after a power outage provided in one embodiment of the present application.
[0019] Figure 2 A flow chart of a method for resuming printing after a power outage provided in one embodiment of the present application.
[0020] Figure 3 A flow chart of a method for resuming printing after a power outage provided in one embodiment of the present application.
[0021] Figure 4 A schematic diagram of the functional modules of a power-off resume printing device provided in one embodiment of the present application.
[0022] Figure 5 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0026] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0027] In this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
[0028] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0029] In the related art, an additional power-on module is usually provided to renew the power of the 3D printing device and provide a power-off signal, so as to save the data information of the 3D printing device at the moment of power off.
[0030] Specifically, at the moment when the 3D printing device is powered off, the power continuation module will continue to power the 3D printing device for more than 2 seconds and send a power-off signal to the 3D printing device. After receiving the power-off signal, the 3D printing device turns off all heating devices, turns off the motor, saves the current printing data and then actively hangs up.
[0031] However, this method requires an additional power-on module, which results in a high cost for the 3D printing device to realize the power-off resume function.
[0032] In view of the above, the embodiments of the present application provide a method, device, electronic device and storage medium for resuming printing after a power outage, which can achieve accurate connection of the printing connection points of the printed model before and after power outage without the need for a power resumption module, thereby improving the accuracy of resuming printing after a power outage of the 3D printing device without increasing the additional cost of the 3D printing device.
[0033] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given by way of example for reference.
[0034] 3D printing equipment, also known as three-dimensional printers, is a rapid prototyping process equipment, usually using digital technology to print materials. 3D printing equipment is often used to manufacture models or parts in the fields of mold manufacturing, industrial design, etc.
[0035] Please refer to Figure 1 , is a flow chart of a method for resuming printing after power failure provided in an embodiment of the present application. This embodiment is applied to a 3D printing device, the 3D printing device includes a nozzle assembly, and the method includes the following steps:
[0036] Step 101: During the printing process, printing parameter information of the model to be printed is obtained at preset intervals, wherein the printing parameter information is used to instruct a 3D printing device to perform a 3D printing task.
[0037] In some embodiments, the model to be printed includes multiple slice layers, and each slice layer corresponds to a printing parameter information.
[0038] In some embodiments, printing parameter information of a 3D printing device is obtained from a gcode file.
[0039] Specifically, the printing parameter information in the gcode file can be read through programming languages such as Python. The gcode file is used to command 3D printing. In order to print the three-dimensional model in the computer with a 3D printing device, you first need to input the model (commonly in .stl and .obj formats) into the 3D slicing software (such as Cura) for plane slicing, and then generate a gcode file. The gcode file is sent to the 3D printing device for reading, and the nozzle assembly of the 3D printing device will fill each layer according to the planned path, and then stack them layer by layer to finally form a 3D model.
[0040] In some embodiments, the printing parameter information includes motion parameters and extrusion flow parameters of the 3D printing device. Specifically, during the printing process, the 3D printing device needs to control the nozzle assembly to move in the direction of the XYZ axis and extrude the printing material. The motion parameter of the 3D printing device is the movement distance of the nozzle assembly in the XYZ axis, and the extrusion flow parameter is the flow rate of the nozzle assembly extruding the printing material.
[0041] In some embodiments, the preset time is not specifically limited and can be set according to actual needs. For example, the preset time can be set to 1S, 2.5S or 5S.
[0042] Step 102: If it is detected that the 3D printing device is powered on again after being powered off during printing, original resume printing information and position information of the nozzle assembly before the power failure are obtained, wherein the original resume printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure.
[0043] In some embodiments, the position information may be obtained by: recording the moving direction of the nozzle assembly and the moving distance in the moving direction; and obtaining the position information according to the moving direction and the moving distance.
[0044] Specifically, the model to be printed is located in a spatial rectangular coordinate system. When the 3D printing device is powered off in the middle of printing, the nozzle assembly stops at the printing position at the moment of power failure. After the 3D printing device is powered on again, the nozzle assembly will move in a direction close to the X-axis and the Y-axis until the nozzle assembly returns to the origin position in plane A where the nozzle assembly is located. By recording the movement distance of the nozzle assembly toward the X-axis and the Y-axis, the mechanical coordinates of the nozzle assembly in plane A at the moment of power failure can be obtained, that is, the position information of the nozzle assembly can be obtained.
[0045] In some embodiments, before recording the moving direction of the nozzle assembly and the moving distance in the moving direction, it also includes: detecting whether the origin signal is found within a second preset time length; recording the moving direction of the nozzle assembly and the moving distance in the moving direction, including: after the origin signal is found within the second preset time length, recording the moving direction of the nozzle assembly relative to the origin signal and the moving distance in the moving direction.
[0046] It is understandable that after the 3D printing device is powered on again, it is necessary to find the origin signal, and then control the movement of the nozzle assembly based on the found origin signal, so that the nozzle assembly moves to the origin position that matches the origin signal.
[0047] Specifically, the origin signal is a high level signal or a low level signal, and the 3D printing device determines whether the origin signal is found by detecting whether the level of the origin signal changes. For example, if the origin signal is a high level signal, the 3D printing device determines that the origin signal is found after detecting that the high level signal is converted into a low level signal.
[0048] In some embodiments, the second preset time length is not specifically limited and can be set according to actual needs. For example, the second preset time length can be set to 5S, 10S, 15S, etc.
[0049] Furthermore, if the 3D printing device fails to find the origin signal within the second preset time, the 3D printing device sends an alarm message to remind the user that the origin signal is abnormal so that the user can handle it in time, thereby improving the stability of the 3D printing device and the user's experience.
[0050] In some embodiments, the types of alarm information include but are not limited to voice reminders, text reminders, etc. The user can set the type of alarm information according to actual needs.
[0051] Step 103: determining target continued printing information according to the position information and the original continued printing information, wherein the target continued printing information is target printing parameter information of the target slice layer being printed before the 3D printing device is powered off.
[0052] It should be noted that how to determine the target continued printing information is described in detail in subsequent embodiments, and in order to avoid repetition, it will not be repeated here.
[0053] Step 104: Determine the start position of the model to be printed according to the position information, and control the 3D printing device to start the printing after powering on again according to the target printing information.
[0054] Compared with the related art, the embodiment of the present application has at least the following advantages: in the printing process of the model to be printed, the printing parameter information of the model to be printed is obtained at preset intervals, so that the printing progress of the model to be printed can be known according to the printing parameter information; when it is detected that the 3D printing device is powered on again after power failure in the middle of printing, the position information of the nozzle assembly before the power failure is obtained, so that the position of the nozzle assembly at the moment of power failure of the 3D printing device can be known, that is, the position of the start of the continuous printing. Since the original continuous printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure, that is, the slice layer corresponding to the original continuous printing information is not necessarily the target slice layer being printed by the 3D printing device before the power failure, the target continuous printing information is determined by the position information of the nozzle assembly and the original continuous printing information, so that the target printing parameter information of the target slice layer being printed by the 3D printing device before the power failure can be accurately known. Finally, the 3D printing device is controlled to start the continuous printing based on the target continuous printing information, which ensures the accurate connection of the printing connection points before and after the power failure of the model to be printed, and improves the accuracy of the continuous printing of the 3D printing device after the power failure.
[0055] Please refer to Figure 2 , is a flow chart of a method for continuing to print after power failure provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for continuing to print after power failure can be applied to 3D printing equipment, but is not limited thereto, and the embodiments of the present application do not limit this.
[0056] This embodiment is a specific description of the above embodiment, mainly describing a method for determining target resume printing information. In this way, the target slice layer being printed before the 3D printing device is powered off can be accurately found, thereby further improving the accuracy of the 3D printing device power-off resume printing.
[0057] The specific process of this embodiment is as follows Figure 2 As shown, the following steps are included:
[0058] Step 201: During the printing process, printing parameter information of the model to be printed is obtained at preset intervals, wherein the printing parameter information is used to instruct a 3D printing device to perform a 3D printing task.
[0059] Step 202: If it is detected that the 3D printing device is powered on again after being powered off during printing, original resume printing information and position information of the nozzle assembly before the power failure are obtained, wherein the original resume printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure.
[0060] Step 203: Determine the region position of the original slice layer corresponding to the original continued printing information according to the original continued printing information.
[0061] In some embodiments, the printing parameter information includes multiple printing instructions, the slicing layer includes multiple line segments to be printed, and each line segment to be printed corresponds to a printing instruction; the area position of the original slicing layer corresponding to the original continuation information is determined according to the original continuation information, including: according to the multiple printing instructions, determining multiple coordinate ranges of the multiple line segments to be printed, wherein one line segment to be printed corresponds to one coordinate range.
[0062] Specifically, assuming that the original slice layer includes 100 line segments to be printed, the original continued printing information includes 100 printing instructions, and each line segment to be printed corresponds to a printing instruction. It can be understood that during the printing process of the 3D printing device, the printing instructions are transmitted from the gcode file to the instruction buffer of the 3D printing device, and the controller of the 3D printing device extracts the printing instructions from the instruction buffer and commands the 3D printing device to perform the 3D printing work based on the printing instructions.
[0063] Step 204: Detect whether the regional position matches the position information. When it is detected that the regional position matches the position information, execute step 205; otherwise, execute step 206.
[0064] Step 205: Use the original continued printing information as the target continued printing information.
[0065] In some embodiments, it is detected whether there is a target coordinate range including position information among multiple coordinate ranges; when it is detected that the regional position matches the position information, the original continuation printing information is used as the target continuation printing information, including: when it is detected that there is a target coordinate range, the printing instruction of the line segment to be printed corresponding to the target coordinate range is used as the target continuation printing information.
[0066] Specifically, the print instruction includes the starting point coordinates and the end point coordinates of the line segment to be printed, and the starting point coordinates and the end point coordinates can be used to know the area position of the entire line segment to be printed in the plane rectangular coordinate system, that is, the coordinate range of the line segment to be printed. It can be seen from the above description that the position information of the nozzle assembly is the mechanical coordinates of the nozzle assembly in plane A at the moment of power failure. Therefore, by detecting whether the mechanical coordinates are within the coordinate range, it can be known whether the coordinate range is the target coordinate range.
[0067] Step 206: determining a new area position of the next slice layer according to the printing parameter information corresponding to the next slice layer of the original slice layer.
[0068] Step 207: Detect whether the new area position matches the position information. When it is detected that the new area position matches the position information, execute step 208; otherwise, take the next slice layer as the original slice layer and execute step 206.
[0069] Step 208: taking the slice layer corresponding to the new area position as the target slice layer, and taking the target printing parameter information of the target slice layer as the target continued printing information.
[0070] Step 209: determining the starting position of the model to be printed according to the position information, and controlling the 3D printing device to start the printing after powering on again according to the target printing information.
[0071] For ease of understanding, the following is a detailed description of how to determine the target continued printing information in this embodiment:
[0072] 1. Assuming that the original slice layer corresponding to the original continued printing information is the 220th layer, obtain the coordinate range of all line segments to be printed in the original slice layer, and detect whether the mechanical coordinates of the nozzle assembly are within the coordinate range.
[0073] 2. If the mechanical coordinates are not within the coordinate range of all the line segments to be printed in the original slice layer, obtain the printing parameter information of the next slice layer of the original slice layer, that is, the 221 slice layer, obtain the coordinate range of all the line segments to be printed in the 221 slice layer according to the printing parameter information, and detect whether the mechanical coordinates of the nozzle assembly are within the coordinate range.
[0074] 3. If the mechanical coordinates are not within the coordinate range of all the line segments to be printed in the 221th slicing layer, continue to obtain the printing parameter information of the 222th slicing layer, and repeat the above steps of detecting whether the mechanical coordinates are within the coordinate range of all the line segments to be printed in the 222th slicing layer, until at the 227th slicing layer, it is detected that the coordinate range of the 474th line segment to be printed in the 227th slicing layer includes the mechanical coordinates, and the printing instruction corresponding to the 474th line segment to be printed is used as the target continuation information.
[0075] It is worth noting that, at the moment of power failure of the 3D printing device, the nozzle assembly may stay in the middle of the 474th line segment to be printed, that is, part of the 474th line segment to be printed has been printed. Therefore, in this embodiment, it is preferred to generate a new printing instruction for the remaining unprinted part of the 474th line segment to be printed, and use the new printing instruction as the target resume printing information. In this way, the accuracy of the 3D printing device's resume printing after power failure can be further ensured.
[0076] It should also be noted that after the printing instruction of the 474th line segment to be printed is transmitted to the instruction buffer, the printing instructions of the subsequent line segments to be printed after the 474th line segment to be printed will also be transmitted to the instruction buffer, for example, the printing instructions of the 475th to 480th line segments to be printed will be transmitted to the instruction buffer together, thereby ensuring the continuity of the 3D printing device during printing.
[0077] Step 201 , step 202 and step 209 of this embodiment are similar to step 101 , step 102 and step 104 of the aforementioned embodiment, and will not be described again here to avoid repetition.
[0078] Compared with the related art, the embodiment of the present application has at least the following advantages: in the printing process of the model to be printed, the printing parameter information of the model to be printed is obtained at preset intervals, so that the printing progress of the model to be printed can be known according to the printing parameter information; when it is detected that the 3D printing device is powered on again after power failure in the middle of printing, the position information of the nozzle assembly before the power failure is obtained, so that the position of the nozzle assembly at the moment of power failure of the 3D printing device can be known, that is, the position of the start of the continuous printing. Since the original continuous printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure, that is, the slice layer corresponding to the original continuous printing information is not necessarily the target slice layer being printed by the 3D printing device before the power failure, the target continuous printing information is determined by the position information of the nozzle assembly and the original continuous printing information, so that the target printing parameter information of the target slice layer being printed by the 3D printing device before the power failure can be accurately known. Finally, the 3D printing device is controlled to start the continuous printing based on the target continuous printing information, which ensures the accurate connection of the printing connection points before and after the power failure of the model to be printed, and improves the accuracy of the continuous printing of the 3D printing device after the power failure.
[0079] Please refer to Figure 3 , is a flow chart of a method for continuing to print after power failure provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for continuing to print after power failure can be applied to 3D printing equipment, but is not limited thereto, and the embodiments of the present application do not limit this.
[0080] This embodiment is a further improvement of the above embodiment, and the main improvement is that: in this embodiment, before controlling the 3D printing device to start to continue printing, the state of some structures of the 3D printing device will be restored, and the 3D printing device will be controlled to start to continue printing after the state is restored to meet the expected state. In this way, the reliability of the 3D printing device to continue printing after power failure can be improved, thereby further improving the user experience.
[0081] The specific process of this embodiment is as follows Figure 3 As shown, the following steps are included:
[0082] Step 301: During the printing process, printing parameter information of the model to be printed is obtained at preset intervals, wherein the printing parameter information is used to instruct a 3D printing device to perform a 3D printing task.
[0083] Step 302: If it is detected that the 3D printing device is powered on again after being powered off during printing, original resume printing information and position information of the nozzle assembly before the power failure are obtained, wherein the original resume printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure.
[0084] Step 303 determines target continued printing information according to the position information and the original continued printing information, wherein the target continued printing information is target printing parameter information of the target slice layer being printed before the 3D printing device is powered off.
[0085] Step 304: Recover the status of the heated bed, the fan and the nozzle assembly respectively, and detect the status of the heated bed, the fan and the nozzle assembly during the recovery process respectively.
[0086] In some embodiments, the respectively detecting the states of the hot bed, the fan and the nozzle assembly during the state recovery process includes: detecting whether the temperature of the hot bed recovers to the first temperature within a first preset time period; detecting whether the temperature of the nozzle assembly recovers to the second temperature within the first preset time period; detecting whether the speed of the fan recovers to the target speed within the first preset time period; controlling the 3D printing device to start continued printing according to the target continued printing information includes: after detecting that the temperature of the hot bed recovers to the first temperature, the temperature of the nozzle assembly recovers to the second temperature, and the speed of the fan recovers to the target speed within the first preset time period, controlling the 3D printing device to start continued printing according to the target continued printing information; the method also includes: sending an alarm message upon detecting that at least one of the hot bed, the fan and the nozzle assembly has not recovered to the target state within the first preset time period.
[0087] Specifically, the printing parameter information includes the temperature of the hot bed, the temperature of the nozzle assembly, and the fan speed required to print each slice layer. Therefore, the 3D printing device can obtain the first temperature, the second temperature, and the target speed by reading the printing parameter information.
[0088] In some embodiments, there is no specific limitation on the size of the first preset time length, and it can be set according to actual needs. For example, the first preset time length can be set to 5S, 10S, 15S, etc.
[0089] In some embodiments, the alarm information is used to remind the user of equipment abnormality. For example, when the heated bed does not recover to the first temperature within the first preset time, and the nozzle assembly recovers to the second temperature within the first preset time and the fan recovers to the target speed within the first preset time, the alarm information is used to indicate that the heated bed is abnormal.
[0090] In some embodiments, the types of alarm information include but are not limited to voice reminders, text reminders, etc. The user can set the type of alarm information according to actual needs.
[0091] Step 305: After detecting that the temperature of the hot bed returns to the first temperature, the temperature of the nozzle assembly returns to the second temperature, and the speed of the fan returns to the target speed, the 3D printing device is controlled to start continuous printing after powering on again according to the target continuous printing information.
[0092] It is worth noting that, through this method, it is possible to ensure that the temperature of the hot bed and the nozzle assembly is at the optimal printing temperature, and ensure that the fan can effectively dissipate the heat of the hot bed and the nozzle assembly during the printing process of the 3D printing device, thereby improving the printing effect of the 3D printing device and enabling the 3D printing device to better continue printing from the power-off point.
[0093] Step 301 and step 303 of this embodiment are similar to step 101 and step 103 of the above embodiment, and will not be described again to avoid repetition.
[0094] Compared with the related art, the embodiment of the present application has at least the following advantages: in the printing process of the model to be printed, the printing parameter information of the model to be printed is obtained at preset intervals, so that the printing progress of the model to be printed can be known according to the printing parameter information; when it is detected that the 3D printing device is powered on again after power failure in the middle of printing, the position information of the nozzle assembly before the power failure is obtained, so that the position of the nozzle assembly at the moment of power failure of the 3D printing device can be known, that is, the position of the start of the continuous printing. Since the original continuous printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure, that is, the slice layer corresponding to the original continuous printing information is not necessarily the target slice layer being printed by the 3D printing device before the power failure, the target continuous printing information is determined by the position information of the nozzle assembly and the original continuous printing information, so that the target printing parameter information of the target slice layer being printed by the 3D printing device before the power failure can be accurately known. Finally, the 3D printing device is controlled to start the continuous printing based on the target continuous printing information, which ensures the accurate connection of the printing connection points before and after the power failure of the model to be printed, and improves the accuracy of the continuous printing of the 3D printing device after the power failure.
[0095] Based on the same idea as the power-off resume printing method in the above embodiment, the present application also provides a power-off resume printing device, which can be used to execute the above power-off resume printing method. For ease of explanation, the structural schematic diagram of the power-off resume printing device embodiment only shows the parts related to the embodiment of the present application. It can be understood by those skilled in the art that the illustrated structure does not constitute a limitation on the device, and it can include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.
[0096] Please refer to Figure 4 , is a functional module diagram of the power-off resume printing device provided in an embodiment of the present application. The power-off resume printing device 100 comprises: a first data acquisition module 1, a second data acquisition module 2, a first determination module 3, a second determination module 4 and a control module 5.
[0097] The first data acquisition module 1 is used to acquire the printing parameter information of the model to be printed at preset intervals during the printing process, wherein the printing parameter information is used to command the 3D printing device 100 to perform the 3D printing work; the second data acquisition module 2 is used to acquire the original continuation information and the position information of the nozzle assembly before the power failure when it is detected that the 3D printing device 100 is powered on again after a power failure in the middle of printing, wherein the original continuation information is the printing parameter information stored for the last time by the 3D printing device 100 before the power failure; the first determination module 3 is used to determine the target continuation information according to the position information and the original continuation information, wherein the target continuation information is the printing parameter information of the slice layer being printed before the 3D printing device 100 is powered off; the second determination module 4 is used to determine the start continuation position of the model to be printed according to the position information; the control module 5 is used to control the 3D printing device 100 to start the continuation according to the target continuation information.
[0098] Please refer to Figure 5 , is a schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Figure 5 As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above power-off resume printing method in the electronic device 1000.
[0099] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.
[0100] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0101] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.
[0102] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0103] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0104] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the power-off resume printing method in the above-mentioned embodiment.
[0105] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0106] In several embodiments provided in the present application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0107] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0108] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0109] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0110] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A method for continuing to print after power failure, characterized in that: Applied to a 3D printing device, the 3D printing device includes a nozzle assembly, and the method includes: During the printing process, the printing parameter information of the model to be printed is obtained at preset intervals, wherein the printing parameter information is used to instruct the 3D printing device to perform the 3D printing work; If it is detected that the 3D printing device is powered on again after being powered off in the middle of printing, original resume printing information and position information of the nozzle assembly before the power failure are obtained, wherein the original resume printing information is the printing parameter information obtained by the 3D printing device for the last time before the power failure; Determine target continued printing information according to the position information and the original continued printing information, wherein the target continued printing information is target printing parameter information of the target slice layer being printed before the 3D printing device is powered off; The starting position of the to-be-printed model is determined according to the position information, and the 3D printing device is controlled to start the continued printing after the power is turned on again according to the target continued printing information.
2. The power-off resume printing method according to claim 1, characterized in that: The determining the target continued printing information according to the position information and the original continued printing information includes: Determine, according to the original continued printing information, a region position of an original slice layer corresponding to the original continued printing information; Detecting whether the regional location matches the location information; When it is detected that the area position matches the position information, the original continued printing information is used as the target continued printing information; When it is detected that the region position does not match the position information, determining a new region position of the next slice layer according to the printing parameter information corresponding to the next slice layer of the original slice layer; It is detected again whether the new area position matches the position information, until a new area position matching the position information is detected, wherein the slice layer corresponding to the new area position detected last is the target slice layer.
3. The power-off resume printing method according to claim 2, characterized in that: The original printing information includes a plurality of printing instructions, the original slice layer includes a plurality of line segments to be printed, and each of the line segments to be printed corresponds to one printing instruction; The determining, according to the original continued printing information, the area position of the original slice layer corresponding to the original continued printing information comprises: Determine multiple coordinate ranges of multiple line segments to be printed according to the multiple printing instructions, wherein one line segment to be printed corresponds to one coordinate range; The detecting whether the regional position matches the position information includes: Detecting whether there is a target coordinate range including the position information in the plurality of coordinate ranges; When it is detected that the area position matches the position information, taking the original continued printing information as the target continued printing information includes: When the existence of the target coordinate range is detected, the printing instruction of the to-be-printed line segment corresponding to the target coordinate range is used as the target continued printing information.
4. The power-off resume printing method according to claim 1, characterized in that: The 3D printing device includes a heated bed and a fan, and the target continuous printing information includes a first temperature of the heated bed, a second temperature of the nozzle assembly, and a target rotation speed of the fan; Before controlling the 3D printing device to start continued printing according to the target continued printing information, the method further includes: Recovering the states of the heated bed, the fan and the nozzle assembly respectively, and detecting the states of the heated bed, the fan and the nozzle assembly during the recovery process respectively; The controlling the 3D printing device to start continued printing according to the target continued printing information includes: After detecting that the temperature of the hot bed recovers to the first temperature, the temperature of the nozzle assembly recovers to the second temperature, and the rotation speed of the fan recovers to the target rotation speed, the 3D printing device is controlled to start continued printing according to the target continued printing information.
5. The power-off resume printing method according to claim 4, characterized in that: The respectively detecting the states of the hot bed, the fan and the nozzle assembly during the state recovery process includes: Detecting whether the temperature of the heated bed recovers to the first temperature within a first preset time period; Detecting whether the temperature of the nozzle assembly recovers to the second temperature within the first preset time period; Detecting whether the rotation speed of the fan is restored to the target rotation speed within the first preset time period; The controlling the 3D printing device to start continued printing after powering on again according to the target continued printing information comprises: After detecting that the temperature of the hot bed recovers to the first temperature, the temperature of the nozzle assembly recovers to the second temperature, and the speed of the fan recovers to the target speed within the first preset time, controlling the 3D printing device to start continuous printing according to the target continuous printing information; The method further comprises: When it is detected that at least one of the heated bed, the fan and the nozzle assembly has not recovered to the target state within the first preset time period, an alarm message is sent.
6. The power-off resume printing method according to claim 1, characterized in that: The location information is obtained in the following manner: After detecting that the 3D printing device is powered on again after being powered off during printing, recording the moving direction of the nozzle assembly and the moving distance in the moving direction; The location information is acquired according to the moving direction and the moving distance.
7. The power-off resume printing method according to claim 6, characterized in that: Before recording the moving direction of the nozzle assembly and the moving distance in the moving direction, the method further includes: Detecting whether the origin signal is found within a second preset time period; The recording of the moving direction of the nozzle assembly and the moving distance in the moving direction includes: After the origin signal is detected within the second preset time period, the moving direction of the nozzle assembly relative to the origin signal and the moving distance in the moving direction are recorded.
8. A power-off resume device, characterized in that: Applied to 3D printing equipment, the 3D printing equipment includes a nozzle assembly, and the power-off resume printing device includes: a first data acquisition module, a second data acquisition module, a first determination module, a second determination module and a control module; The first data acquisition module is used to acquire printing parameter information of the model to be printed at preset intervals during the printing process, wherein the printing parameter information is used to command the 3D printing device to perform the 3D printing work; The second data acquisition module is used to acquire original resume printing information and position information of the nozzle assembly before power failure when detecting that the 3D printing device is powered on again after power failure in the middle of printing, wherein the original resume printing information is the printing parameter information stored for the last time by the 3D printing device before power failure; The first determination module is used to determine target continued printing information according to the position information and the original continued printing information, wherein the target continued printing information is the printing parameter information of the slice layer being printed before the 3D printing device is powered off; The second determining module is used to determine the starting position of the to-be-printed model according to the position information; The control module is used to control the 3D printing device to start continuous printing according to the target continuous printing information.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the power-off resume printing method described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The invention comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the power-off resume printing method as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Continuous type 3D printing forming method
CN109664495A
3D printing device and resume printing method thereof
US20180272624A1
Cited By
Method and apparatus for resuming printing after power failure, and electronic device and storage medium
WO2026066534A1
