Method and apparatus for resuming printing after power failure, and electronic device and storage medium
By acquiring printing parameters and nozzle component position information during the 3D printing process, the target continuous printing information is determined, solving the problem of misalignment of printing connection points after the 3D printing equipment is powered off, and achieving precise connection and efficient continuous printing.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2026-04-02
AI Technical Summary
When a 3D printing machine restarts after a power outage, the printing progress is lost, causing misalignment of the printing connection points between the model before and after the power outage, resulting in defects.
During the printing process, printing parameter information is acquired at preset intervals. When power is restored after a power outage, the position of the nozzle assembly and the original printing information are acquired to determine the target printing information and control the 3D printing equipment to accurately connect the printing process.
Ensuring precise alignment of printing joints before and after a power outage improves the accuracy of 3D printing equipment's ability to resume printing after a power outage and avoids additional costs.
Smart Images

Figure CN2025108531_02042026_PF_FP_ABST
Abstract
Description
Power-off continuous printing method and device, electronic equipment and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202411366644.2, filed on September 27, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD
[0002] The present application relates to the field of 3D printing technology, in particular to a power-off continuous printing method and device, electronic equipment and storage medium. BACKGROUND
[0003] Three Dimension Printing (3D printing) is a kind of rapid prototyping technology, also known as additive manufacturing. It is a technology that uses digital model files as the basis, and uses powder-like metal or plastic and other materials that can be bonded to construct objects through layer-by-layer printing.
[0004] During the 3D printing process of a to-be-printed model, if the 3D printer abnormally powers off, the printing progress will be lost. When the power is turned on 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 to-be-printed model before and after power failure to be misaligned, thereby causing defects in the to-be-printed model. TECHNICAL PROBLEM
[0005] Therefore, the present application provides a power-off continuous printing method and device, electronic equipment and storage medium, which can improve the accuracy of power-off continuous printing of 3D printing equipment and achieve accurate connection of the printing connection points of the to-be-printed model before and after power failure. TECHNICAL SOLUTION
[0006] A power-off continuous printing method is provided for the first aspect of the present application, applied to a 3D printing device including a nozzle assembly. The method includes: during printing, acquiring printing parameter information of a to-be-printed model every predetermined time, wherein the printing parameter information is used to instruct the 3D printing device to perform 3D printing work; if it is detected that the 3D printing device is powered off during printing and then powered on again, acquiring original continuous printing information and position information of the nozzle assembly before power failure, wherein the original continuous printing information is the printing parameter information last acquired by the 3D printing device before power failure; determining target continuous printing information according to the position information and the original continuous printing information, wherein the target continuous printing information is target printing parameter information of a target slice layer being printed by the 3D printing device before power failure; determining a starting continuous printing position of the to-be-printed model according to the position information, and controlling the 3D printing device to start continuous printing after being powered on again according to the target continuous printing information.
[0007] In an embodiment, the determining the target continuation printing information according to the position information and the original continuation printing information comprises: determining a region position of an original slice layer corresponding to the original continuation printing information according to the original continuation printing information; detecting whether the region position matches the position information; when it is detected that the region position matches the position information, taking the original continuation printing information as the target continuation printing information; when it is detected that the region position does not match the position information, determining a new region position of a next slice layer corresponding to the printing parameter information of the next slice layer according to the original slice layer; detecting again whether the new region position matches the position information until a new region position matching the position information is detected, wherein the slice layer corresponding to the last detected new region position is the target slice layer.
[0008] In an embodiment, the original continuation printing information comprises a plurality of printing instructions, and the original slice layer comprises a plurality of to-be-printed line segments, each of the to-be-printed line segments corresponding to a printing instruction; the determining the region position of the original slice layer corresponding to the original continuation printing information according to the original continuation printing information comprises: determining a plurality of coordinate ranges of the plurality of to-be-printed line segments according to the plurality of printing instructions, wherein one to-be-printed line segment corresponds to one coordinate range; the detecting whether the region position matches the position information comprises: detecting whether there is a target coordinate range including the position information in the plurality of coordinate ranges; and the taking the original continuation printing information as the target continuation printing information when it is detected that the region position matches the position information comprises: taking the printing instruction of the to-be-printed line segment corresponding to the target coordinate range as the target continuation printing information when it is detected that there is the target coordinate range.
[0009] In an embodiment, the printing instruction comprises a start point coordinate and an end point coordinate of the to-be-printed line segment, and the region position of the to-be-printed line segment in a plane rectangular coordinate system is obtained through the start point coordinate and the end point coordinate, and the region position is the coordinate range of the to-be-printed line segment.
[0010] In an embodiment, the 3D printing device comprises a hot bed and a fan, the target resume printing information comprises a first temperature of the hot bed, a second temperature of the nozzle assembly, and a target rotating speed of the fan; before the 3D printing device starts to resume printing according to the target resume printing information, the method further comprises: respectively restoring states of the hot bed, the fan, and the nozzle assembly, and respectively detecting states of the hot bed, the fan, and the nozzle assembly during the state restoration; the 3D printing device starts to resume printing according to the target resume printing information, comprising: after detecting that the temperature of the hot bed is restored to the first temperature, the temperature of the nozzle assembly is restored to the second temperature, and the rotating speed of the fan is restored to the target rotating speed, the 3D printing device starts to resume printing according to the target resume printing information.
[0011] In an embodiment, the detecting states of the hot bed, the fan, and the nozzle assembly during the state restoration comprises: detecting whether the temperature of the hot bed is restored to the first temperature within a first preset time length; detecting whether the temperature of the nozzle assembly is restored to the second temperature within the first preset time length; detecting whether the rotating speed of the fan is restored to the target rotating speed within the first preset time length; the 3D printing device starts to resume printing according to the target resume printing information, comprising: after detecting that the temperature of the hot bed is restored to the first temperature, the temperature of the nozzle assembly is restored to the second temperature, and the rotating speed of the fan is restored to the target rotating speed within the first preset time length, the 3D printing device starts to resume printing according to the target resume printing information after being powered on again; the method further comprises: after detecting that at least one of the hot bed, the fan, and the nozzle assembly is not restored to the target state within the first preset time length, sending an alarm information.
[0012] In an embodiment, the printing parameter information comprises a temperature of the hot bed, a temperature of the nozzle assembly, and a rotating speed of the fan required for printing each slice layer.
[0013] In an embodiment, the alarm information comprises voice reminding or text reminding.
[0014] In an embodiment, the position information is obtained according to the following manner: after detecting that the 3D printing device is powered on again after being powered off during printing, recording a moving direction of the nozzle assembly and a moving distance in the moving direction; obtaining the position information according to the moving direction and the moving distance.
[0015] In an embodiment, before the recording the moving direction of the nozzle assembly and the moving distance in the moving direction, further comprising: detecting whether the original point signal is found within a second preset time length; and the recording the moving direction of the nozzle assembly and the moving distance in the moving direction comprises: after the original point signal is found within the second preset time length, recording the moving direction of the nozzle assembly relative to the original point signal and the moving distance in the moving direction.
[0016] In an embodiment, if the 3D printing device does not find the original point signal within a second preset time length, the 3D printing device sends an alarm information.
[0017] In an embodiment, the alarm information comprises a voice reminder or a text reminder.
[0018] In an embodiment, the original point signal is a high-level signal or a low-level signal.
[0019] In an embodiment, after detecting that the 3D printing device is powered on again after power failure during printing, the recording the moving direction of the nozzle assembly and the moving distance in the moving direction comprises:
[0020] The to-be-printed model is located in a space rectangular coordinate system, when the 3D printing device is powered off during printing, the nozzle assembly stops at the printing position at the power failure moment, after the 3D printing device is powered on again, the nozzle assembly moves towards the direction close to the X-axis and the Y-axis until the nozzle assembly returns to the original point position in the plane A where the nozzle assembly is located, by recording the moving distance of the nozzle assembly towards the X-axis and the Y-axis, the mechanical coordinates of the nozzle assembly in the plane A at the power failure moment can be obtained, and the mechanical coordinates obtain the position information of the nozzle assembly.
[0021] In an embodiment, the to-be-printed model comprises a plurality of slice layers, and each slice layer corresponds to a printing parameter information.
[0022] In an embodiment, the printing parameter information of the 3D printing device is obtained from a gcode file.
[0023] In an embodiment, the printing parameter information comprises a motion parameter and an extrusion flow parameter of the 3D printing device.
[0024] The second aspect of the application discloses a power-off continuous printing device applied to a 3D printing equipment, the 3D printing equipment comprising a nozzle assembly, the power-off continuous printing device comprising 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 configured to acquire printing parameter information of a to-be-printed model every preset time during printing, wherein the printing parameter information is used to instruct the 3D printing equipment to perform 3D printing work; the second data acquisition module is configured to acquire original continuous printing information and position information of the nozzle assembly before power-off when detecting that the 3D printing equipment is powered on again after power-off during printing, wherein the original continuous printing information is the printing parameter information last stored by the 3D printing equipment before power-off; the first determination module is configured to determine target continuous printing information according to the position information and the original continuous printing information, wherein the target continuous printing information is the printing parameter information of a slice layer being printed by the 3D printing equipment before power-off; the second determination module is configured to determine a start continuous printing position of the to-be-printed model according to the position information; and the control module is configured to control the 3D printing equipment to start continuous printing according to the target continuous printing information.
[0025] The third aspect of the application discloses an electronic device, comprising a processor and a memory, the memory is configured to store instructions, and the processor is configured to call the instructions in the memory, so that the electronic device executes the power-off continuous printing method described above.
[0026] The fourth aspect of the application discloses a storage medium comprising computer instructions, when the computer instructions run on an electronic device, the electronic device executes the power-off continuous printing method described above.
[0027] 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, and therefore the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be described here again. Beneficial effects
[0028] Compared with the related art, the embodiments of the present application have at least the following advantages: in the printing process of the to-be-printed model, the printing parameter information of the to-be-printed model is acquired every preset time, so as to know the printing progress of the to-be-printed model according to the printing parameter information; when it is detected that the 3D printing device is powered on again after power-off in the middle of printing, the position information of the nozzle assembly before power-off is acquired, so that the position of the nozzle assembly at the moment of power-off of the 3D printing device can be known, that is, the start resuming printing position. Since the original resuming printing information is the printing parameter information acquired by the 3D printing device last time before power-off, that is, the slice layer corresponding to the original resuming printing information is not necessarily the target slice layer being printed by the 3D printing device before power-off, therefore, the target resuming printing information is determined by the position information of the nozzle assembly and the original resuming printing information, so that the target printing parameter information of the target slice layer being printed by the 3D printing device before power-off can be accurately known, and finally, the 3D printing device is controlled to start resuming printing based on the target resuming printing information, so as to ensure the accurate connection of the printing connection point before power-off and after power-off of the to-be-printed model, and improve the accuracy of resuming printing of the 3D printing device after power-off. BRIEF DESCRIPTION OF DRAWINGS
[0029] 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 as follows, and it should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0030] Fig. 1 is a flowchart of the power-off resuming printing method provided by an embodiment of the present application;
[0031] Fig. 2 is a flowchart of the power-off resuming printing method provided by an embodiment of the present application;
[0032] Fig. 3 is a flowchart of the power-off resuming printing method provided by an embodiment of the present application;
[0033] Fig. 4 is a functional module schematic diagram of the power-off resuming printing device provided by an embodiment of the present application;
[0034] Fig. 5 is a hardware structure schematic diagram of an electronic device according to an embodiment of the present application. Embodiments of the present application
[0035] In order to more clearly illustrate the above-mentioned purposes, features and advantages of the present application, the present application will be described in detail below in combination with the drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0036] Many specific details are set forth in the following description in order to provide a thorough understanding of the present application. The described embodiments are merely part of the total embodiments of the present application.
[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description herein is for describing particular embodiments only and is not intended to be limiting of the present application.
[0038] It is further noted that the terms "comprise", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0039] In the present application, "at least one" means one or more, and "multiple" means two or more than two. The "and / or" describes the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural.
[0040] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the exemplary or example embodiments are presented as a means of explanation so as to enable the reader to understand the concepts being presented.
[0041] In the related art, an additional power supply module is usually provided to supply power to 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.
[0042] Specifically, at the moment of power-off of the 3D printing device, the power supply module supplies power to the 3D printing device for more than 2 seconds and sends a power-off signal to the 3D printing device. After receiving the power-off signal, the 3D printing device closes all heating devices, closes the motor, saves the current printing data, and then actively hangs up.
[0043] However, this method needs to additionally provide a power supply module, resulting in high cost of the 3D printing device to realize the power-off and printing function.
[0044] In view of the above, the embodiments of the present application provide a power-off continuous printing method and device, electronic equipment and storage medium, which can realize accurate connection of the printing connection points before and after the power-off of the printing model without a power continuation module, thereby improving the accuracy of the power-off continuous printing of the 3D printing equipment without increasing the additional cost of the 3D printing equipment.
[0045] For ease of understanding, exemplary descriptions of some concepts related to the embodiments of the present application are given for reference.
[0046] The 3D printing equipment, also known as a three-dimensional printer or a stereoscopic printer, is a rapid prototyping device, which is usually realized by printing materials by using digital technology. The 3D printing equipment is often used for manufacturing models or parts in the fields of mold manufacturing and industrial design.
[0047] Please refer to FIG. 1, which is a flowchart of a power-off continuous printing method provided by an embodiment of the present application. The embodiment is applied to a 3D printing equipment, which includes a nozzle assembly. The method includes the following steps:
[0048] Step 101: In the printing process, the printing parameter information of the to-be-printed model is obtained every preset time, wherein the printing parameter information is used to instruct the 3D printing equipment to perform 3D printing work.
[0049] In some embodiments, the to-be-printed model includes a plurality of slice layers, and each slice layer corresponds to a printing parameter information.
[0050] In some embodiments, the printing parameter information of the 3D printing equipment is obtained from a gcode file.
[0051] Specifically, the printing parameter information in the gcode file can be read by using a programming language such as Python. The gcode file is used to command the 3D printing work. In order to print a three-dimensional model in the computer by using the 3D printing equipment, the model (commonly in.stl and.obj formats) needs to be input into a 3D slicing software (for example, Cura) for planar slicing, and then a gcode file is generated. The gcode file is sent to the 3D printing equipment for reading, and then the nozzle assembly of the 3D printing equipment fills each layer according to the planned path, and finally the 3D model is formed by layer-by-layer stacking.
[0052] In some embodiments, the printing parameter information includes the motion parameter and the extrusion flow parameter of the 3D printing equipment. Specifically, the 3D printing equipment needs to control the nozzle assembly to move in the XYZ axis direction and extrude the printing material in the printing process. The motion parameter of the 3D printing equipment is the movement distance of the nozzle assembly in the XYZ axis, and the extrusion flow parameter is the flow rate of the printing material extruded by the nozzle assembly.
[0053] In some embodiments, the preset time is not specifically limited in size, and can be set according to actual needs. For example, the preset time can be set to 1S, 2.5S or 5S, etc.
[0054] In step 102, if it is detected that the 3D printing device is powered on again after power failure during printing, the original printing continuation information and the position information of the nozzle assembly before power failure are acquired, wherein the original printing continuation information is the printing parameter information acquired by the 3D printing device last time before power failure.
[0055] In some embodiments, the position information can be acquired by recording the moving direction of the nozzle assembly and the moving distance in the moving direction, and acquiring the position information according to the moving direction and the moving distance.
[0056] Specifically, the to-be-printed model is located in a space rectangular coordinate system, the nozzle assembly stops at the printing position at the moment of power failure when the 3D printing device is powered off during printing, and the nozzle assembly moves towards the direction close to the X axis and the Y axis until the nozzle assembly returns to the original position in the plane A where the nozzle assembly is located after the 3D printing device is powered on again. By recording the moving distance of the nozzle assembly towards the X axis and the Y axis, the mechanical coordinates of the nozzle assembly in the plane A at the moment of power failure can be obtained, that is, the position information of the nozzle assembly is acquired.
[0057] In some embodiments, before recording the moving direction of the nozzle assembly and the moving distance in the moving direction, it further includes detecting whether the original point signal is found within a second preset time length; and recording the moving direction of the nozzle assembly and the moving distance in the moving direction includes: after the original point signal is found within the second preset time length, recording the moving direction of the nozzle assembly relative to the original point signal and the moving distance in the moving direction.
[0058] It can be understood that after the 3D printing device is powered on again, the original point signal needs to be found, and then the nozzle assembly is controlled to move based on the found original point signal, so that the nozzle assembly moves to the original position matched with the original point signal.
[0059] Specifically, the original point signal is a high-level signal or a low-level signal, and the 3D printing device detects whether the level of the original point signal changes to determine whether the original point signal is found. For example, the original point signal is a high-level signal, and the 3D printing device determines that the original point signal is found after detecting that the high-level signal is converted into a low-level signal.
[0060] In some embodiments, the size of 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.
[0061] In an embodiment, if the 3D printing device does not find the original point signal within the second preset time length, the 3D printing device sends an alarm information to remind the user that the original point 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.
[0062] In some embodiments, the type of alarm information includes but is not limited to voice reminder, text reminder, etc., and the user can set the type of alarm information according to actual needs.
[0063] Step 103: determining target resume printing information according to the position information and the original resume printing information, wherein the target resume printing information is target printing parameter information of a target slice layer being printed before the 3D printing device is powered off.
[0064] It should be noted that how to determine the target resume printing information is described in detail in subsequent embodiments, and to avoid repetition, it will not be described here.
[0065] Step 104: determining a start resume printing position of the to-be-printed model according to the position information, and controlling the 3D printing device to start resume printing after being re-powered according to the target resume printing information.
[0066] Compared with the related art, the embodiments of the present application have at least the following advantages: in the printing process of the to-be-printed model, the printing parameter information of the to-be-printed model is obtained every pre-set time, so as to know the printing progress of the to-be-printed model according to the printing parameter information; when it is detected that the 3D printing device is re-powered after being powered off in the middle of printing, the position information of the nozzle assembly before being powered off is obtained, so that the position of the nozzle assembly at the moment of being powered off of the 3D printing device, i.e., the start resume printing position, can be known. Since the original resume printing information is the printing parameter information last obtained by the 3D printing device before being powered off, that is, the slice layer corresponding to the original resume printing information is not necessarily the target slice layer being printed by the 3D printing device before being powered off, therefore, by determining the target resume printing information according to the position information of the nozzle assembly and the original resume printing information, the target printing parameter information of the target slice layer being printed by the 3D printing device before being powered off can be accurately known, and finally, the 3D printing device is controlled to start resume printing based on the target resume printing information, so as to ensure the accurate connection of the printing connection point before being powered off and after being powered off of the to-be-printed model, and improve the accuracy of the resume printing of the 3D printing device after being powered off.
[0067] Please refer to FIG. 2, which is a flowchart of a power-off resume printing method provided by an embodiment of the present application. The order of steps in the flowchart can be changed, and some steps can be omitted according to different needs. The power-off resume printing method can be applied to a 3D printing device, but is not limited thereto, and the embodiments of the present application do not limit this.
[0068] The embodiment is a specific description of the foregoing embodiment, and mainly illustrates a manner for determining target continuation printing information. Through this manner, the target slice layer being printed before the 3D printing device is powered off can be accurately found, so as to further improve the accuracy of the 3D printing device power-off continuation printing.
[0069] The specific process of the embodiment is shown in FIG. 2, including the following steps:
[0070] Step 201: In the printing process, print parameter information of a to-be-printed model is acquired every preset time, wherein the print parameter information is used to instruct the 3D printing device to perform 3D printing work.
[0071] Step 202: If it is detected that the 3D printing device is powered on again after being powered off in the middle of printing, original continuation printing information and position information of the nozzle assembly before being powered off are acquired, wherein the original continuation printing information is the print parameter information acquired by the 3D printing device last time before being powered off.
[0072] Step 203: The area position of the original slice layer corresponding to the original continuation printing information is determined according to the original continuation printing information.
[0073] In some embodiments, the print parameter information includes a plurality of print instructions, the slice layer includes a plurality of to-be-printed line segments, and each to-be-printed line segment corresponds to a print instruction; determining the area position of the original slice layer corresponding to the original continuation printing information according to the original continuation printing information includes: determining a plurality of coordinate ranges of the plurality of to-be-printed line segments according to the plurality of print instructions, wherein one to-be-printed line segment corresponds to one coordinate range.
[0074] Specifically, assuming that the original slice layer includes 100 to-be-printed line segments, the original continuation printing information includes 100 print instructions, and each to-be-printed line segment corresponds to a print instruction. It can be understood that in the printing process of the 3D printing device, the print instructions are transmitted from the gcode file to the instruction buffer of the 3D printing device, the controller of the 3D printing device extracts the print instructions from the instruction buffer, and commands the 3D printing device to perform 3D printing work based on the print instructions.
[0075] Step 204: It is detected whether the area position matches the position information, and when it is detected that the area position matches the position information, step 205 is performed; otherwise, step 206 is performed.
[0076] Step 205: The original continuation printing information is taken as target continuation printing information.
[0077] In some embodiments, the method further comprises: detecting whether a target coordinate range including the position information exists in the plurality of coordinate ranges; and when it is detected that the region position matches the position information, taking the original continuation printing information as target continuation printing information, comprising: when it is detected that the target coordinate range exists, taking the printing instruction of the to-be-printed line segment corresponding to the target coordinate range as the target continuation printing information.
[0078] Specifically, the printing instruction includes the start point coordinate and the end point coordinate of the to-be-printed line segment, and the region position of the to-be-printed line segment in the plane rectangular coordinate system can be obtained through the start point coordinate and the end point coordinate, that is, the coordinate range of the to-be-printed line segment. As known from the foregoing description, the position information of the nozzle assembly is the mechanical coordinate of the nozzle assembly in the plane A at the moment of power-off, and thus, whether the coordinate range is the target coordinate range can be known by detecting whether the mechanical coordinate is in the coordinate range.
[0079] Step 206: determining a new region position of a lower slice layer according to the printing parameter information corresponding to the lower slice layer of the original slice layer.
[0080] Step 207: detecting whether the new region position matches the position information, and when it is detected that the new region position matches the position information, performing step 208; otherwise, taking the lower slice layer as the original slice layer and performing step 206.
[0081] Step 208: taking the slice layer corresponding to the new region position as a target slice layer, and taking the target printing parameter information of the target slice layer as target continuation printing information.
[0082] Step 209: determining a start continuation printing position of the to-be-printed model according to the position information, and controlling the 3D printing device to start continuation printing after being re-powered according to the target continuation printing information.
[0083] For ease of understanding, how to determine the target continuation printing information in the embodiment is specifically described as follows:
[0084] 1. Assuming that the original slice layer corresponding to the original continuation printing information is the 220th slice layer, the coordinate ranges of all the to-be-printed line segments in the original slice layer are obtained, and whether the mechanical coordinate of the nozzle assembly is in the coordinate ranges is detected.
[0085] 2. If the mechanical coordinate is not in the coordinate ranges of all the to-be-printed line segments in the original slice layer, the printing parameter information of the lower slice layer of the original slice layer, that is, the 221st slice layer, is obtained, the coordinate ranges of all the to-be-printed line segments of the 221st slice layer are obtained according to the printing parameter information, and whether the mechanical coordinate of the nozzle assembly is in the coordinate ranges is detected.
[0086] 3, if the mechanical coordinate is not within the coordinate range of all the to-be-printed line segments of the 221st slice layer, continue to obtain the printing parameter information of the 222nd slice layer, repeat the step of detecting whether the mechanical coordinate is within the coordinate range of all the to-be-printed line segments of the 222nd slice layer, until the 474th to-be-printed line segment of the 227th slice layer is detected, and the coordinate range of the 474th to-be-printed line segment of the 227th slice layer includes the mechanical coordinate, and the printing instruction corresponding to the 474th to-be-printed line segment is taken as the target resume printing information.
[0087] It should be noted that, since the nozzle assembly may be at the middle position of the 474th to-be-printed line segment at the moment of power failure of the 3D printing device, that is, part of the 474th to-be-printed line segment has been printed, therefore, the embodiment preferably generates a new printing instruction for the remaining unprinted part of the 474th to-be-printed line segment, and takes the new printing instruction as the target resume printing information. In this way, the accuracy of the 3D printing device resume printing after power failure can be further ensured.
[0088] It should be further noted that, after the printing instruction of the 474th to-be-printed line segment is transmitted to the instruction buffer, the printing instructions of the subsequent to-be-printed line segments of the 474th to-be-printed line segment are also transmitted to the instruction buffer, for example, the printing instructions of the 475th to 480th to-be-printed line segments are transmitted to the instruction buffer, so as to ensure the continuity of the 3D printing device during printing.
[0089] The steps 201, 202 and 209 of the embodiment are similar to the steps 101, 102 and 104 of the foregoing embodiment, and are not described herein again to avoid repetition.
[0090] Compared with the related art, the embodiment of the present application has at least the following advantages: during the printing of the to-be-printed model, the printing parameter information of the to-be-printed model is obtained every pre-set time, so as to know the printing progress of the to-be-printed model according to the printing parameter information; when it is detected that the 3D printing device is powered on again after power failure during printing, the position information of the nozzle assembly before power failure is obtained, so as to know the position of the nozzle assembly at the moment of power failure of the 3D printing device, that is, the start resume printing position. Since the original resume printing information is the printing parameter information last obtained by the 3D printing device before power failure, that is, the slice layer corresponding to the original resume printing information is not necessarily the target slice layer being printed by the 3D printing device before power failure, therefore, by determining the target resume printing information according to the position information of the nozzle assembly and the original resume printing information, the target printing parameter information of the target slice layer being printed by the 3D printing device before power failure can be accurately known, finally, the 3D printing device is controlled to start resume printing based on the target resume printing information, so as to ensure the accurate connection of the printing connection point before and after power failure of the to-be-printed model, and improve the accuracy of the 3D printing device resume printing after power failure.
[0091] Please refer to FIG. 3, which is a flowchart of the power-off continuous printing method provided by an embodiment of the present application. The order of the steps in the flowchart can be changed according to different requirements, and some steps can be omitted. The power-off continuous printing method can be applied to a 3D printing device, but is not limited thereto, and embodiments of the present application do not limit this.
[0092] The present embodiment is a further improvement of the foregoing embodiments, and the main improvement is that in the present embodiment, before controlling the 3D printing device to start continuous printing, the state of part of the structure of the 3D printing device is also restored, and the 3D printing device is controlled to start continuous printing after the state is restored to the expected state. In this way, the reliability of the power-off continuous printing of the 3D printing device can be improved, thereby further improving the user experience.
[0093] The specific process of the present embodiment is shown in FIG. 3, which includes the following steps:
[0094] Step 301: During printing, print parameter information of a to-be-printed model is obtained every pre-set time, wherein the print parameter information is used to instruct the 3D printing device to perform 3D printing work.
[0095] Step 302: If it is detected that the 3D printing device is powered on again after power-off during printing, original continuous printing information and position information of the nozzle assembly before power-off are obtained, wherein the original continuous printing information is the print parameter information last obtained by the 3D printing device before power-off.
[0096] Step 303: Target continuous printing information is determined according to the position information and the original continuous printing information, wherein the target continuous printing information is target print parameter information of a target slice layer being printed by the 3D printing device before power-off.
[0097] Step 304: The state of the hot bed, the fan and the nozzle assembly is restored respectively, and the state of the hot bed, the fan and the nozzle assembly in the state restoration process is detected respectively.
[0098] In some embodiments, the detecting the states of the hot bed, the fan and the nozzle assembly during the state recovery process respectively comprises: detecting whether the temperature of the hot bed is recovered to the first temperature within a first preset time length; detecting whether the temperature of the nozzle assembly is recovered to the second temperature within the first preset time length; and detecting whether the rotating speed of the fan is recovered to the target rotating speed within the first preset time length. The controlling the 3D printing device to start the resuming printing according to the target resuming printing information comprises: after detecting that the temperature of the hot bed is recovered to the first temperature, the temperature of the nozzle assembly is recovered to the second temperature, and the rotating speed of the fan is recovered to the target rotating speed within the first preset time length, controlling the 3D printing device to start the resuming printing according to the target resuming printing information. The method further comprises: sending an alarm information when it is detected that at least one of the hot bed, the fan and the nozzle assembly is not recovered to the target state within the first preset time length.
[0099] Specifically, the printing parameter information comprises the temperature of the hot bed, the temperature of the nozzle assembly and the rotating speed of the fan required for printing each slice layer. Therefore, the 3D printing device can obtain the first temperature, the second temperature and the target rotating speed by reading the printing parameter information.
[0100] In some embodiments, the size of the first preset time length is not specifically limited and can be set according to actual needs. For example, the first preset time length can be set to 5S, 10S, 15S, etc.
[0101] In some embodiments, the alarm information is used to remind the user of the equipment abnormality. For example, when the hot bed is not recovered to the first temperature within the first preset time length, the nozzle assembly is recovered to the second temperature within the first preset time length, and the fan is recovered to the target rotating speed within the first preset time length, the alarm information is used to represent the abnormality of the hot bed.
[0102] In some embodiments, the type of the alarm information includes but is not limited to voice reminding, text reminding, etc. The user can set the type of the alarm information according to actual needs.
[0103] Step 305: After detecting that the temperature of the hot bed is recovered to the first temperature, the temperature of the nozzle assembly is recovered to the second temperature, and the rotating speed of the fan is recovered to the target rotating speed, controlling the 3D printing device to start the resuming printing according to the target resuming printing information after being powered on again.
[0104] It is worth noting that in this way, the temperatures of the hot bed and the nozzle assembly can be ensured to be at the optimal printing temperature, and the fan can effectively cool 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 the printing work from the power-off breakpoint.
[0105] Steps 301 and 303 of this embodiment are similar to steps 101 and 103 of the foregoing embodiment, and thus are not described again here to avoid repetition.
[0106] Compared with the related art, the embodiments of the present application have at least the following advantages: in the printing process of the to-be-printed model, the printing parameter information of the to-be-printed model is acquired every preset time, so as to know the printing progress of the to-be-printed model according to the printing parameter information; when it is detected that the 3D printing device is powered on again after power-off in the middle of printing, the position information of the nozzle assembly before power-off is acquired, so that the position of the nozzle assembly at the moment of power-off of the 3D printing device can be known, that is, the start resuming printing position. Since the original resuming printing information is the printing parameter information acquired by the 3D printing device last time before power-off, that is, the slice layer corresponding to the original resuming printing information is not necessarily the target slice layer being printed by the 3D printing device before power-off, therefore, by determining the target resuming printing information according to the position information of the nozzle assembly and the original resuming printing information, the target printing parameter information of the target slice layer being printed by the 3D printing device before power-off can be accurately known, and finally, the 3D printing device is controlled to start resuming printing based on the target resuming printing information, so as to ensure the accurate connection of the printing connection points before and after power-off of the to-be-printed model, and improve the accuracy of resuming printing of the 3D printing device after power-off.
[0107] Based on the same idea as the power-off resuming printing method in the above embodiments, the present application also provides a power-off resuming printing device, which can be used to execute the above power-off resuming printing method. For the convenience of description, only the parts related to the embodiments of the present application are shown in the structural schematic diagram of the power-off resuming printing device, and it can be understood by those skilled in the art that the illustrated structure does not constitute a limitation on the device, and can include more or fewer components than the illustrated, or combine certain components, or different component arrangements.
[0108] Please refer to FIG. 4, which is a functional module schematic diagram of the power-off resuming printing device provided by the embodiments of the present application. The power-off resuming printing device 100 includes 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.
[0109] The first data acquisition module 1 is configured to acquire the printing parameter information of the to-be-printed model every preset time during the printing process, wherein the printing parameter information is used to instruct the 3D printing device 100 to perform 3D printing work; the second data acquisition module 2 is configured to acquire the original printing resuming information and the position information of the nozzle assembly before power-off when it is detected that the 3D printing device 100 is powered on again after power-off during printing, wherein the original printing resuming information is the printing parameter information stored by the 3D printing device 100 for the last time before power-off; the first determination module 3 is configured to determine target printing resuming information according to the position information and the original printing resuming information, wherein the target printing resuming information is the printing parameter information of the slice layer being printed by the 3D printing device 100 before power-off; the second determination module 4 is configured to determine the starting printing resuming position of the to-be-printed model according to the position information; and the control module 5 is configured to control the 3D printing device 100 to start printing resuming according to the target printing resuming information.
[0110] Referring to FIG. 5, a hardware structure schematic diagram of the electronic device 1000 is provided. As shown in FIG. 5, the electronic device 1000 can include a processor 1001 and a memory 1002. The memory 1002 is configured 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 that can be used to implement the power-off printing resuming method described above in the electronic device 1000.
[0111] It can be understood that the structure illustrated in the embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 can include more or fewer components than those shown, or combine certain components, or split certain components, or different arrangement of components.
[0112] The processor 1001 can include one or more processing units. For example, the processor 1001 can 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 can be independent devices or integrated into one or more processors.
[0113] The processor 1001 can 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 can hold instructions or data that the processor 1001 has just used or is using repeatedly. If the processor 1001 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 1001, thus improving the efficiency of the system.
[0114] In some embodiments, the processor 1001 can include one or more interfaces. The interfaces can 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.
[0115] In some embodiments, the memory 1002 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one disk storage device, a flash memory device, or other volatile solid-state memory device.
[0116] The embodiments also provide a computer-readable storage medium, which stores computer instructions, and when the instructions run on an electronic device, the electronic device executes the above-mentioned related method steps to implement the power-off and continuous printing method in the above-mentioned embodiments.
[0117] In practical applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above-described functions.
[0118] In several embodiments provided in the present application, the disclosed apparatus and method can be implemented in other manners. For example, the division of the apparatus embodiments is merely illustrative, and the division of the modules or units can be changed according to actual needs. For example, two or more units or components can be combined or integrated into one unit, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0119] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or multiple physical units, i.e., can be located in one place or distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0120] In addition, each functional unit in the embodiments of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0121] When 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 solutions of the embodiments of the present application essentially or the parts that make contributions to the prior art, or all or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, and includes several instructions for causing an apparatus (which can be a single chip machine, a chip, etc.) or a processor to perform all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0122] The above description is merely a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A power fail continuation method wherein, Applied to a 3D printing device, the 3D printing device comprising a nozzle assembly, the method comprising: During printing, obtaining printing parameter information of a to-be-printed model every preset time, wherein the printing parameter information is used to instruct the 3D printing device to perform 3D printing work; If it is detected that the 3D printing device is powered on again after power failure in the middle of printing, obtaining original resuming printing information and position information of the nozzle assembly before power failure, wherein the original resuming printing information is the printing parameter information last obtained by the 3D printing device before power failure; Determining target resuming printing information according to the position information and the original resuming printing information, wherein the target resuming printing information is target printing parameter information of a target slice layer being printed by the 3D printing device before power failure; Determining a starting resuming printing position of the to-be-printed model according to the position information, and controlling the 3D printing device to start resuming printing after being powered on again according to the target resuming printing information.
2. The power-on resume printing method of claim 1, wherein, The determining target resuming printing information according to the position information and the original resuming printing information comprises: Determining an area position of an original slice layer corresponding to the original resuming printing information according to the original resuming printing information; Detecting whether the area position matches the position information; When it is detected that the area position matches the position information, taking the original resuming printing information as the target resuming printing information; When it is detected that the area position does not match the position information, determining a new area position of a next slice layer according to the printing parameter information corresponding to the next slice layer of the original slice layer; Again detecting 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 last detected new area position is the target slice layer.
3. The power-through method of claim 2 wherein, The original resuming printing information comprises a plurality of printing instructions, and the original slice layer comprises a plurality of to-be-printed line segments, each of which corresponds to a printing instruction. The determining an area position of an original slice layer corresponding to the original resuming printing information according to the original resuming printing information comprises: Determining a plurality of coordinate ranges of the plurality of to-be-printed line segments according to the plurality of printing instructions, wherein one to-be-printed line segment corresponds to one coordinate range. The detecting whether the area position matches the position information comprises: Detecting whether there is a target coordinate range including the position information in the plurality of coordinate ranges. The taking the original resuming printing information as the target resuming printing information when it is detected that the area position matches the position information comprises: When it is detected that there is the target coordinate range, taking the printing instruction of the to-be-printed line segment corresponding to the target coordinate range as the target resuming printing information.
4. The power-on resume method of claim 2, wherein, The printing instruction comprises a start point coordinate and an end point coordinate of the to-be-printed line segment, and the area position of the to-be-printed line segment in a plane rectangular coordinate system is obtained through the start point coordinate and the end point coordinate, and the area position is the coordinate range of the to-be-printed line segment.
5. The power-through method of claim 1, wherein, The 3D printing device comprises a hot bed and a fan, and the target continuous printing information comprises a first temperature of the hot bed, a second temperature of the nozzle assembly and a target rotating speed of the fan. Before the 3D printing device starts continuous printing according to the target continuous printing information, the method further comprises: restoring the state of the hot bed, the fan and the nozzle assembly respectively, and detecting the state of the hot bed, the fan and the nozzle assembly during the state restoration respectively; controlling the 3D printing device to start continuous printing according to the target continuous printing information comprises: controlling the 3D printing device to start continuous printing according to the target continuous printing information after detecting that the temperature of the hot bed is restored to the first temperature, the temperature of the nozzle assembly is restored to the second temperature and the rotating speed of the fan is restored to the target rotating speed.
6. The power-through method of claim 5 wherein, The method further comprises: sending an alarm information after detecting that at least one of the hot bed, the fan and the nozzle assembly is not restored to the target state within the first preset time length. The printing parameter information comprises the temperature of the hot bed, the temperature of the nozzle assembly and the rotating speed of the fan required for printing each slice layer. The alarm information comprises voice reminding or text reminding. The position information is obtained according to the following manner: after detecting that the 3D printing device is powered on again after power-off during printing, recording the moving direction of the nozzle assembly and the moving distance in the moving direction; obtaining the position information according to the moving direction and the moving distance. Before recording the moving direction of the nozzle assembly and the moving distance in the moving direction, the method further comprises:
7. The power-through method of claim 6 wherein, detecting whether the original point signal is found within a second preset time length; 8. The power-through method of claim 6 wherein, recording the moving direction of the nozzle assembly and the moving distance in the moving direction comprises:
9. The power-through method of claim 1 wherein, after the original point signal is found within the second preset time length, recording the moving direction of the nozzle assembly relative to the original point signal and the moving distance in the moving direction. If the 3D printing device does not find the original point signal within the second preset time length, the 3D printing device sends an alarm information. The alarm information comprises voice reminding or text reminding.
10. The power-on resume method of claim 9, wherein, The original point signal is a high-level signal or a low-level signal. 11. The power-on resume method of claim 10, wherein, 12. The power-on resume method of claim 11, wherein, 13. The power-on resume method of claim 10, wherein, 14. The power-on resume printing method of claim 9, wherein, The recording the moving direction of the nozzle assembly and the moving distance in the moving direction after detecting that the 3D printing device is re-powered after power failure in the middle of printing comprises: The to-be-printed model is located in a space rectangular coordinate system, the nozzle assembly stops at the printing position at the power failure moment when the 3D printing device is powered off in the middle of printing, and the nozzle assembly moves towards the direction close to the X-axis and the Y-axis until the nozzle assembly returns to the original position in the plane A where the nozzle assembly is located, and the mechanical coordinates of the nozzle assembly in the plane A at the power failure moment can be obtained by recording the moving distance of the nozzle assembly towards the X-axis and the Y-axis, and the position information of the nozzle assembly is obtained by the mechanical coordinates.
15. The power-through method of claim 1 wherein, The to-be-printed model comprises a plurality of slice layers, and each slice layer corresponds to a printing parameter information.
16. The power-through method of claim 1, wherein, The printing parameter information of the 3D printing device is obtained from a gcode file.
17. The power-through method of claim 1 wherein, The printing parameter information comprises a motion parameter and an extrusion flow parameter of the 3D printing device.
18. A power fail catch-up device, wherein, The 3D printing device comprises a nozzle assembly, and the power failure resume printing device comprises 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 configured to acquire the printing parameter information of the to-be-printed model every preset time during the printing process, wherein the printing parameter information is used to command the 3D printing device to perform 3D printing work. The second data acquisition module is configured to acquire original resume printing information and position information of the nozzle assembly before power failure when it is detected that the 3D printing device is re-powered after power failure in the middle of printing, wherein the original resume printing information is the printing parameter information stored by the 3D printing device for the last time before power failure. The first determination module is configured to determine target resume printing information according to the position information and the original resume printing information, wherein the target resume printing information is the printing parameter information of the slice layer being printed before power failure of the 3D printing device. The second determination module is configured to determine a start resume printing position of the to-be-printed model according to the position information. The control module is configured to control the 3D printing device to start resume printing according to the target resume printing information.
19. An electronic device, comprising: The electronic device comprises a processor and a memory, the memory is configured to store instructions, and the processor is configured to call the instructions in the memory, so that the electronic device executes the power failure resume printing method in any one of claims 1 to 17.
20. A storage medium, wherein, The computer instructions, when executed on an electronic device, cause the electronic device to execute the power failure resume printing method in any one of claims 1 to 17.
Citation Information
Patent Citations
3D printer capable of printing continuously at outage and method for controlling 3D printer to continue printing at outage
CN103921446A
Method for enabling 3D (three-dimensional) printer to restore printing after printing interruption
CN104015367A
3D printer and power-off continuous printing control method thereof
CN105711092A
Interrupt recovery system and method for FDM3D printer
CN106313563A
Control system and method for power-off reset continuous printing of FDM 3D printer
CN110039767A