CN115302776A - 3D printing method, device, equipment and storage medium - Google Patents

3D printing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115302776A
CN115302776A CN202210783929.0A CN202210783929A CN115302776A CN 115302776 A CN115302776 A CN 115302776A CN 202210783929 A CN202210783929 A CN 202210783929A CN 115302776 A CN115302776 A CN 115302776A
Authority
CN
China
Prior art keywords
printing
instruction
motion algorithm
motion
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210783929.0A
Other languages
Chinese (zh)
Inventor
廖继盛
郑顺昌
卢松柏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shengma Youchuang Technology Co ltd
Original Assignee
Shenzhen Shengma Youchuang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shengma Youchuang Technology Co ltd filed Critical Shenzhen Shengma Youchuang Technology Co ltd
Priority to CN202210783929.0A priority Critical patent/CN115302776A/en
Publication of CN115302776A publication Critical patent/CN115302776A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/10Processes of additive manufacturing
    • B29C64/106Processes of additive manufacturing using only liquids or viscous materials, e.g. depositing a continuous bead of viscous material
    • B29C64/118Processes of additive manufacturing using only liquids or viscous materials, e.g. depositing a continuous bead of viscous material using filamentary material being melted, e.g. fused deposition modelling [FDM]
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • B29C64/393Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y10/00Processes of additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • B33Y50/02Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes

Landscapes

  • Chemical & Material Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Materials Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Optics & Photonics (AREA)

Abstract

本发明公开了一种3D打印方法、装置、设备及存储介质,该方法包括在处于快速打印模式时,基于打印指令获得目标轨迹指令,基于目标轨迹指令确定运动算法,基于运动算法进行3D打印,获得目标模型。由于本发明是通过在快速打印模式下从打印指令中获取的目标轨迹指令确定运动算法,并根据该运动算法控制3D打印机的速度参数来进行3D打印,相较于现有技术3D打印机在运动过程中采用固定的速度进行打印的方式,导致在提高打印速度时,会因为步进电机初始速度和结束速度太快,大大增加打印失败的概率的问题,本发明上述3D打印方法有效避免了上述问题,降低了打印失败的概率,提高了打印的效果。

Figure 202210783929

The invention discloses a 3D printing method, device, equipment and storage medium. The method includes, when in a fast printing mode, obtaining a target trajectory instruction based on a printing instruction, determining a motion algorithm based on the target trajectory instruction, and performing 3D printing based on the motion algorithm, Get the target model. Because the present invention determines the motion algorithm through the target trajectory instruction obtained from the print instruction in the fast printing mode, and controls the speed parameter of the 3D printer according to the motion algorithm to perform 3D printing, compared with the prior art 3D printer in the motion process The method of printing at a fixed speed in the 3D printing method leads to the problem that when the printing speed is increased, the initial speed and the end speed of the stepping motor are too fast, which greatly increases the probability of printing failure. The above-mentioned 3D printing method of the present invention effectively avoids the above problem. , reducing the probability of printing failure and improving the printing effect.

Figure 202210783929

Description

3D打印方法、装置、设备及存储介质3D printing method, device, equipment and storage medium

技术领域technical field

本发明涉及快速成型技术领域,尤其涉及一种3D打印方法、装置、设备及存储介质。The invention relates to the technical field of rapid prototyping, in particular to a 3D printing method, device, equipment and storage medium.

背景技术Background technique

工艺熔融沉积制造(Fused Deposition Modeling,FDM)3D打印机是通过高温将材料熔化流入精细的喷嘴,然后再根据导入的三维图纸自下而上逐层将需要的模型打印出来。Fused Deposition Modeling (FDM) 3D printers use high temperature to melt materials into fine nozzles, and then print out the required model layer by layer according to the imported 3D drawings.

目前,FDM 3D打印机是通过驱动步进电机来实现打印,步进电机采用的速度大都是固定一个较低的速度左右,如30mm/s,FDM 3D打印机采用30mm/s的速度打印一个10cm模型需要2小时左右,特别是200cm高度的大型模型,大多都要40小时左右,对用户来说时间上比较长,若单纯提高打印速度,在运动过程中会因为步进电机初始速度和结束速度太快,大大增加打印失败的概率。At present, FDM 3D printers realize printing by driving stepping motors. The speed of stepping motors is mostly fixed at a lower speed, such as 30mm/s. FDM 3D printers use 30mm/s to print a 10cm model. About 2 hours, especially for large models with a height of 200cm, most of them will take about 40 hours, which is relatively long for users. If you simply increase the printing speed, the initial speed and end speed of the stepping motor will be too fast during the movement. , greatly increasing the probability of printing failure.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.

发明内容Contents of the invention

本发明的主要目的在于提供了一种3D打印方法、装置、设备及存储介质,旨在解决现有技术3D打印机在运动过程中提高打印速度时,会因为步进电机初始速度和结束速度太快,大大增加打印失败的概率的技术问题。The main purpose of the present invention is to provide a 3D printing method, device, equipment and storage medium, aiming to solve the problems caused by the initial speed and end speed of the stepping motor when the 3D printer in the prior art increases the printing speed during the movement process. , a technical problem that greatly increases the probability of printing failure.

为实现上述目的,本发明提供了一种3D打印方法,所述方法包括以下步骤:In order to achieve the above object, the present invention provides a 3D printing method, said method comprising the following steps:

在处于快速打印模式时,基于打印指令获得目标轨迹指令;When in the fast printing mode, obtain the target trajectory instruction based on the printing instruction;

基于所述目标轨迹指令确定运动算法;determining a motion algorithm based on the target trajectory instruction;

基于所述运动算法进行3D打印,获得目标模型。3D printing is performed based on the motion algorithm to obtain a target model.

可选地,所述在处于快速打印模式时,基于打印指令获得目标轨迹指令的步骤,包括:Optionally, when in the fast printing mode, the step of obtaining the target trajectory instruction based on the printing instruction includes:

在处于快速打印模式时,解析接收到的打印指令,获得预处理打印指令;When in the fast printing mode, parse the received printing command to obtain the pre-processing printing command;

读取所述预处理打印指令中的目标轨迹指令。Read the target trajectory instruction in the preprocessing print instruction.

可选地,所述在处于快速打印模式时,解析接收到的打印指令,获得预处理打印指令的步骤之前,还包括:Optionally, before the step of parsing the received printing instruction and obtaining the preprocessing printing instruction when in the fast printing mode, the method further includes:

基于接收到的打印指令进行打印,生成打印模型;Print based on the received print command to generate a print model;

在所述打印模型的高度达到预设高度时,切换打印模式为快速打印模式。When the height of the printed model reaches a preset height, the printing mode is switched to the fast printing mode.

可选地,所述基于所述目标轨迹指令确定运动算法的步骤,包括:Optionally, the step of determining a motion algorithm based on the target trajectory instruction includes:

确定所述目标轨迹指令中的运动轨迹;determining the motion trajectory in the target trajectory instruction;

在所述运动轨迹符合预设轨迹条件时,确定运动算法为S形运动算法。When the motion track meets the preset track condition, it is determined that the motion algorithm is an S-shape motion algorithm.

可选地,所述确定所述目标轨迹指令中的运动轨迹的步骤之后,还包括:Optionally, after the step of determining the motion trajectory in the target trajectory instruction, it further includes:

在所述运动轨迹不符合预设轨迹条件时,确定运动算法为梯形运动算法。When the motion track does not meet the preset track condition, it is determined that the motion algorithm is a trapezoidal motion algorithm.

可选地,所述基于所述运动算法进行3D打印,获得目标模型的步骤,包括:Optionally, the step of performing 3D printing based on the motion algorithm to obtain the target model includes:

通过所述S形运动算法控制步进电机;Control the stepper motor through the S-shaped motion algorithm;

基于所述步进电机进行3D打印,获得目标模型。3D printing is performed based on the stepping motor to obtain a target model.

可选地,所述通过所述S形运动算法控制步进电机的步骤,包括:Optionally, the step of controlling the stepper motor through the S-shaped motion algorithm includes:

通过所述S形运动算法基于预设电机参数控制步进电机的步速,以使所述步进电机根据所述步速进行工作。The pace of the stepper motor is controlled based on the preset motor parameters through the S-shaped motion algorithm, so that the stepper motor works according to the pace.

此外,为实现上述目的,本发明还提出一种3D打印装置,所述装置包括:In addition, in order to achieve the above purpose, the present invention also proposes a 3D printing device, which includes:

目标轨迹指令模块,用于在处于快速打印模式时,基于打印指令获得目标轨迹指令;The target trajectory instruction module is used to obtain the target trajectory instruction based on the printing instruction when in the fast printing mode;

运动算法确定模块,用于基于所述目标轨迹指令确定运动算法;A motion algorithm determination module, configured to determine a motion algorithm based on the target trajectory instruction;

3D打印模块,用于基于所述运动算法进行3D打印,获得目标模型。The 3D printing module is used to perform 3D printing based on the motion algorithm to obtain the target model.

此外,为实现上述目的,本发明还提出一种3D打印设备,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的3D打印程序,所述3D打印程序配置为实现如上文所述的3D打印方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a 3D printing device, which includes: a memory, a processor, and a 3D printing program stored in the memory and operable on the processor, the 3D The printing program is configured to implement the steps of the 3D printing method as described above.

此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有3D打印程序,所述3D打印程序被处理器执行时实现如上文所述的3D打印方法的步骤。In addition, to achieve the above object, the present invention also proposes a storage medium, on which a 3D printing program is stored, and when the 3D printing program is executed by a processor, the steps of the 3D printing method as described above are realized.

本发明通过在处于快速打印模式时,基于打印指令获得目标轨迹指令,然后基于目标轨迹指令确定运动算法,最后基于运动算法进行3D打印,获得目标模型。由于本发明是通过在快速打印模式下从打印指令中获取的目标轨迹指令确定运动算法,并根据该运动算法控制3D打印机的速度参数来进行3D打印,相较于现有技术3D打印机在运动过程中采用固定的速度进行打印的方式,导致在提高打印速度时,会因为步进电机初始速度和结束速度太快,大大增加打印失败的概率的问题,本发明上述3D打印方法有效避免了上述问题,降低了打印失败的概率,提高了打印的效果。In the present invention, when in the fast printing mode, the target trajectory instruction is obtained based on the printing instruction, then the motion algorithm is determined based on the target trajectory instruction, and finally the target model is obtained by performing 3D printing based on the motion algorithm. Since the present invention determines the motion algorithm through the target trajectory command obtained from the printing command in the fast printing mode, and controls the speed parameters of the 3D printer according to the motion algorithm to perform 3D printing, compared with the prior art 3D printer in the motion process The method of printing at a fixed speed leads to the problem that when the printing speed is increased, the probability of printing failure will be greatly increased because the initial speed and end speed of the stepping motor are too fast. The above-mentioned 3D printing method of the present invention effectively avoids the above-mentioned problems , which reduces the probability of printing failure and improves the printing effect.

附图说明Description of drawings

图1是本发明实施例方案涉及的硬件运行环境的3D打印设备的结构示意图;Fig. 1 is a schematic structural diagram of a 3D printing device in a hardware operating environment involved in the solution of an embodiment of the present invention;

图2为本发明3D打印方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the 3D printing method of the present invention;

图3为本发明3D打印设备的打印主板功能框图;Fig. 3 is the functional block diagram of the print mainboard of the 3D printing device of the present invention;

图4为本发明3D打印方法第二实施例的流程示意图;4 is a schematic flow chart of the second embodiment of the 3D printing method of the present invention;

图5为本发明3D打印方法第三实施例的流程示意图;5 is a schematic flow chart of a third embodiment of the 3D printing method of the present invention;

图6为本发明3D打印方法S形运动算法的速度曲线图;Fig. 6 is a speed curve diagram of the S-shaped motion algorithm of the 3D printing method of the present invention;

图7为本发明3D打印方法梯形运动算法的速度曲线图;Fig. 7 is a velocity curve diagram of the trapezoidal motion algorithm of the 3D printing method of the present invention;

图8为本发明3D打印方法梯形运动算法状态切换原理图;8 is a schematic diagram of the state switching principle of the trapezoidal motion algorithm of the 3D printing method of the present invention;

图9为本发明3D打印装置第一实施例的结构框图。Fig. 9 is a structural block diagram of the first embodiment of the 3D printing device of the present invention.

附图标号说明:Explanation of reference numbers:

标号label 名称name 标号label 名称name I S加速阶段S acceleration stage II S匀加速阶段S uniform acceleration stage III S加速阶段S acceleration stage IV S匀速阶段S constant speed stage S减速阶段S deceleration stage S匀减速阶段S uniform deceleration stage VII S减速阶段S deceleration stage VIII 梯形匀减速阶段Trapezoidal uniform deceleration stage 梯形匀速阶段trapezoidal constant velocity stage 梯形匀减速阶段Trapezoidal uniform deceleration stage

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

参照图1,图1为本发明实施例方案涉及的硬件运行环境的3D打印设备的结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a 3D printing device in a hardware operating environment involved in an embodiment of the present invention.

如图1所示,该3D打印设备可以包括:处理器1001,例如中央处理器(CentralProcessing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,Wi-Fi)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM),也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the 3D printing device may include: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

本领域技术人员可以理解,图1中示出的结构并不构成对3D打印设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation to the 3D printing device, and may include more or less components than shown in the illustration, or combine some components, or arrange different components.

如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及3D打印程序。As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module and a 3D printing program.

在图1所示的3D打印设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本发明3D打印设备中的处理器1001、存储器1005可以设置在3D打印设备中,所述3D打印设备通过处理器1001调用存储器1005中存储的3D打印程序,并执行本发明实施例提供的3D打印方法。In the 3D printing device shown in Figure 1, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the 3D printing device of the present invention can be Set in a 3D printing device, the 3D printing device invokes the 3D printing program stored in the memory 1005 through the processor 1001, and executes the 3D printing method provided by the embodiment of the present invention.

本发明实施例提供了一种3D打印方法,参照图2,图2为本发明3D打印方法第一实施例的流程示意图。An embodiment of the present invention provides a 3D printing method. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first embodiment of the 3D printing method of the present invention.

本实施例中,所述3D打印写入方法包括以下步骤:In this embodiment, the 3D printing writing method includes the following steps:

步骤S10:在处于快速打印模式时,基于打印指令获得目标轨迹指令。Step S10: Obtain the target trajectory instruction based on the printing instruction when in the fast printing mode.

需要说明的是,本实施例方法的执行主体可以是具有数据处理、网络通信以及程序运行功能的计算服务设备,例如手机、平板电脑、个人电脑等,还可以是能够实现相同或相似功能的其他电子设备。此处以上述3D打印设备(简称打印设备)对本实施例和下述各实施例提供的3D打印方法进行具体说明。It should be noted that the execution subject of the method in this embodiment may be a computing service device with data processing, network communication and program running functions, such as a mobile phone, a tablet computer, a personal computer, etc., or other devices capable of realizing the same or similar functions. Electronic equipment. Here, the above-mentioned 3D printing device (printing device for short) is used to describe the 3D printing method provided in this embodiment and the following embodiments in detail.

可理解的是,快速打印模式可以是在需要缩短打印时间,提高打印效率时所选取的模式。在该模式下,打印设备可作快速参数处理,以加大最大打印速度,同时也可加大挤出比,避免高速打印虚料,也可增加打印温度,避免耗材融化不及时导致的堵料,也可强制打开模型风扇,使模型成型更及时。It is understandable that the fast printing mode may be a mode selected when it is necessary to shorten the printing time and improve the printing efficiency. In this mode, the printing device can perform fast parameter processing to increase the maximum printing speed, and at the same time increase the extrusion ratio to avoid high-speed printing of virtual materials, and also increase the printing temperature to avoid material blocking caused by untimely melting of consumables , you can also forcibly turn on the model fan to make the model more timely.

需要说明的是,打印指令可以是用于控制3D打印机的移动、进给、启动以及停止等操作的数控编程指令,如G-code,该指令一般存储在相应的指令文件中,如G-code文件,该文件中的每一行指令都是3D打印机所能理解的命令。It should be noted that the printing instruction can be a CNC programming instruction used to control the movement, feed, start and stop of the 3D printer, such as G-code, which is generally stored in a corresponding instruction file, such as G-code file, each line of instructions in the file is a command that the 3D printer can understand.

可理解的是,目标轨迹指令可以是打印指令中用于控制3D打印机XYZ三轴移动的运动轨迹对应的指令,以G-code指令中的G1 X3 Y7 Z9 F100命令为例,G1表示按照指定的进给速度从当前位置直线移动到参数指定位置,X3Y7 Z9是结束点的位置参数,G1 X3 Y7Z9 F100命令表示以当前位置为起点,以X3 Y7 Z9对应的坐标为重点,在这条直线上以设定的进给速度100mm/min移动到终点,该移动路径即为目标轨迹。It is understandable that the target trajectory instruction can be the instruction corresponding to the motion trajectory used to control the XYZ three-axis movement of the 3D printer in the printing instruction. Take the G1 X3 Y7 Z9 F100 command in the G-code instruction as an example. G1 means that according to the specified The feed speed moves from the current position to the position specified by the parameter in a straight line. X3Y7 Z9 is the position parameter of the end point. The G1 X3 Y7Z9 F100 command means that the current position is the starting point, and the coordinates corresponding to X3 Y7 Z9 are the focus. The set feed speed is 100mm/min to move to the end point, and the moving path is the target trajectory.

在具体实现中,打印设备可通过USB串口连接电脑接收打印指令,如G-code指令,并获取该指令中3D打印机运动的目标轨迹所对应的指令。In a specific implementation, the printing device can be connected to a computer through a USB serial port to receive a printing command, such as a G-code command, and obtain the command corresponding to the target trajectory of the 3D printer in the command.

应理解的是,打印设备可根据其内部的主控MCU通过USB串口与外部电脑端连接,以获得打印指令,同时主控MCU也可连接其他单元,以实现后续打印操作。It should be understood that the printing device can be connected to an external computer through a USB serial port according to its internal main control MCU to obtain printing instructions, and the main control MCU can also be connected to other units to implement subsequent printing operations.

为了便于理解,参考图3进行说明,但并不对本方案进行限定。图3为本发明3D打印设备的打印主板功能框图,图中,打印主板包括主控MCU、以及与主控MCU接口所连接的各加热单元和风扇控制单元、步进电机驱动单元、USB串口单元、断电检测单元、LCD触摸屏、板载存储单元、SD卡座、WIFI接口单元、温度采集单元和限位开关。For ease of understanding, description is made with reference to FIG. 3 , but this solution is not limited. Fig. 3 is the functional block diagram of the printing motherboard of the 3D printing device of the present invention, in the figure, the printing motherboard includes a main control MCU, and each heating unit and fan control unit connected to the interface of the main control MCU, a stepper motor drive unit, and a USB serial port unit , power failure detection unit, LCD touch screen, onboard storage unit, SD card holder, WIFI interface unit, temperature acquisition unit and limit switch.

需要说明的是,主控MCU用于解析G-code生成运动控制数据、3D打印机的所有外设控制和信号的读取以及数据通信;It should be noted that the main control MCU is used to analyze the G-code to generate motion control data, all peripheral control and signal reading of the 3D printer, and data communication;

加热单元和风扇控制单元用于控制喷头和热床的加热单元的开关和功率,使温度达到设定值,同时用于控制吹喉管和吹模型风扇的开关和速度;The heating unit and fan control unit are used to control the switch and power of the heating unit of the nozzle and the hot bed, so that the temperature reaches the set value, and are used to control the switch and speed of the blowing pipe and blowing model fan;

步进电机驱动单元用于分别控制X、Y、Z、E0和E1五个轴的电机转动方向、电机使能和电机转速;The stepper motor drive unit is used to control the motor rotation direction, motor enable and motor speed of the five axes of X, Y, Z, E0 and E1 respectively;

USB串口单元用于外接电脑,通过电脑端查看打印信息以及发送指令;The USB serial port unit is used to connect to an external computer, to view printing information and send instructions through the computer;

断电检测单元用于检测开关电源瞬间断电的瞬间,并通过板载电容供电,做断电处理;The power-off detection unit is used to detect the moment when the switching power supply is powered off instantly, and supplies power through the on-board capacitor for power-off processing;

LCD触摸屏用于与用户交互,实现3D打印机状态查询,以及本地打印、打印模型预览和参数配置;The LCD touch screen is used to interact with users to realize 3D printer status query, as well as local printing, print model preview and parameter configuration;

板载存储单元用于存储3D打印机的打印参数、功能设定值、打印信息,以及大容量屏幕UI资源;The onboard storage unit is used to store printing parameters, function setting values, printing information, and large-capacity screen UI resources of the 3D printer;

SD卡座用于通过SD卡升级固件、更新配置参数和本地打印模型;SD card holder is used to upgrade firmware, update configuration parameters and print models locally through SD card;

WIFI接口单元通过WIFI远程控制3D打印机打印,无线传输打印文件;The WIFI interface unit remotely controls the 3D printer to print through WIFI, and transmits the printing files wirelessly;

温度采集单元用于采集主控以及打印设备的温度;The temperature acquisition unit is used to acquire the temperature of the main control and printing equipment;

限位开关用于作XYZ三轴归零时的触发限位,以及接断料时在无耗材的情况下缺料检测。The limit switch is used as the trigger limit when the XYZ three-axis returns to zero, and the lack of material detection when there is no consumable when the material is disconnected.

步骤S20:基于所述目标轨迹指令确定运动算法。Step S20: Determine a motion algorithm based on the target trajectory instruction.

需要说明的是,目标轨迹指令中的运动轨迹可以是直线也可以是曲线,并记录有运动轨迹的长度。It should be noted that the motion trajectory in the target trajectory instruction can be a straight line or a curve, and the length of the motion trajectory is recorded.

可理解的是,运动算法可以是用于控制打印设备中步进电机的工作速度的算法,以使步进电机控制打印设备中挤出头运动,实现打印,如梯形运动算法。It is understandable that the motion algorithm may be an algorithm used to control the working speed of the stepping motor in the printing device, so that the stepping motor controls the movement of the extrusion head in the printing device to realize printing, such as the trapezoidal motion algorithm.

在具体实现中,可根据目标根据指令中的轨迹类型(直线或曲线)和轨迹长度选取相应的运动算法以控制步进电机工作,从而实现打印。In a specific implementation, according to the target, the corresponding motion algorithm can be selected according to the trajectory type (straight line or curve) and the trajectory length in the instruction to control the stepping motor to work, so as to realize printing.

步骤S30:基于所述运动算法进行3D打印,获得目标模型。Step S30: Perform 3D printing based on the motion algorithm to obtain a target model.

需要说明的是,目标模型可为用户所需的模型,可预先将其模型数据构建值打印指令文件中传输给打印设备。It should be noted that the target model may be a model required by the user, and its model data construction value printing instruction file may be transmitted to the printing device in advance.

在具体实现中,打印设备确定好运动算法后,可根据该运动算法驱动步进电机,再由步进电机控制3D打印机挤出头运动,实现打印,从而获得目标模型。In the specific implementation, after the printing device has determined the motion algorithm, it can drive the stepper motor according to the motion algorithm, and then the stepper motor controls the movement of the extrusion head of the 3D printer to achieve printing and obtain the target model.

本实施例通过在处于快速打印模式时,基于打印指令获得目标轨迹指令,然后基于目标轨迹指令确定运动算法,最后基于运动算法进行3D打印,获得目标模型。由于本实施例是通过在快速打印模式下从打印指令中获取的目标轨迹指令确定运动算法,并根据该运动算法控制3D打印机的速度参数来进行3D打印,相较于现有技术3D打印机在运动过程中采用固定的速度进行打印的方式,导致在提高打印速度时,会因为步进电机初始速度和结束速度太快,大大增加打印失败的概率的问题,本发明上述3D打印方法有效避免了上述问题,降低了打印失败的概率,提高了打印的效果。In this embodiment, when in the fast printing mode, the target trajectory instruction is obtained based on the printing instruction, then the motion algorithm is determined based on the target trajectory instruction, and finally the target model is obtained by performing 3D printing based on the motion algorithm. Since this embodiment determines the motion algorithm through the target trajectory command obtained from the print command in the fast printing mode, and controls the speed parameters of the 3D printer according to the motion algorithm to perform 3D printing, compared with the prior art 3D printer in motion The method of printing at a fixed speed in the process leads to the problem that when the printing speed is increased, the probability of printing failure will be greatly increased because the initial speed and end speed of the stepping motor are too fast. The above-mentioned 3D printing method of the present invention effectively avoids the above-mentioned problems, reducing the probability of printing failure and improving the printing effect.

参考图4,图4为本发明3D打印方法第二实施例的流程示意图。基于上述各实施例,提出本发明3D打印方法的第二实施例。Referring to FIG. 4 , FIG. 4 is a schematic flowchart of a second embodiment of the 3D printing method of the present invention. Based on the above-mentioned embodiments, a second embodiment of the 3D printing method of the present invention is proposed.

在第二实施例中,所述步骤S10之前,还包括:In the second embodiment, before the step S10, it also includes:

步骤S01:基于接收到的打印指令进行打印,生成打印模型。Step S01: Print based on the received printing instruction, and generate a printing model.

需要说明的是,在部分情况下,如打印模型高度较低时,选用快速打印模式反而会造成设备能耗过剩,因此,可增加预设条件,如预设高度,在满足条件时选取快速打印模式,以提高打印模式选取的精准性,有效利用设备的能耗。It should be noted that in some cases, such as when the height of the printed model is low, choosing the fast printing mode will cause excess energy consumption of the equipment. Therefore, you can increase the preset conditions, such as the preset height, and select the fast printing mode when the conditions are met. mode to improve the accuracy of printing mode selection and effectively utilize the energy consumption of the device.

可理解的是,打印模型可为3D打印机根据导入的三维图纸所对应的打印指令自下而上逐层将打印出来的模型。It is understandable that the print model may be a model that the 3D printer prints layer by layer from bottom to top according to the printing instruction corresponding to the imported 3D drawing.

在具体实现中,打印设备提高USB串口单元接收到打印指令后,解析指令中的各操作命令,依据各操作命令控制3D打印机内部的器件(如步进电机、挤出头等)工作进行打印,生成打印模型。In the specific implementation, after the printing device improves the USB serial port unit to receive the printing instruction, it analyzes each operation command in the instruction, and controls the internal devices (such as stepping motor, extrusion head, etc.) of the 3D printer to work and print according to each operation command, and generates Print the model.

步骤S02:在所述打印模型的高度达到预设高度时,切换打印模式为快速打印模式。Step S02: When the height of the printed model reaches a preset height, switch the printing mode to the fast printing mode.

需要说明的是,预设高度可用于判断打印模型是否为高度超过常规标准的高度,可设置为3mm、5mm等,可依据用户需求或3D打印机性能进行设置。It should be noted that the preset height can be used to judge whether the height of the printed model exceeds the conventional standard, and can be set to 3mm, 5mm, etc., and can be set according to user needs or 3D printer performance.

在具体实现中,若打印模型超过预设高度,表明所打印的模型需要较长时间,因此需要更改未快速打印模式,来对3D打印机的速度进行调整,以减少打印所需时间和3D打印机的性能损耗。否则,若打印模型未超过预设高度,则表明所打印的模型能在较短时间内完成,无需更改为快速打印模式,相反,若此时更改为快速打印模式,反而会使打印设备能量过剩,导致不必要的损耗。In the specific implementation, if the printed model exceeds the preset height, it indicates that the printed model will take a long time, so it is necessary to change the non-fast printing mode to adjust the speed of the 3D printer to reduce the time required for printing and the 3D printer. performance loss. Otherwise, if the printed model does not exceed the preset height, it means that the printed model can be completed in a short period of time, and there is no need to change to the fast printing mode. On the contrary, if you change to the fast printing mode at this time, it will cause excess energy in the printing device , resulting in unnecessary losses.

本实施例通过预设高度来判断打印设备是否选择快速打印模式,在所打印的模型高度达到预设高度时,才选取快速打印模式,有效提高了打印模式选取的精确性,避免了3D打印机性能损耗。This embodiment judges whether the printing device selects the fast printing mode through the preset height, and only selects the fast printing mode when the height of the printed model reaches the preset height, which effectively improves the accuracy of the printing mode selection and avoids the 3D printer performance. loss.

参考图5,图5为本发明3D打印方法第三实施例的流程示意图。基于上述各实施例,提出本发明3D打印方法的第三实施例。Referring to FIG. 5 , FIG. 5 is a schematic flowchart of a third embodiment of the 3D printing method of the present invention. Based on the above-mentioned embodiments, a third embodiment of the 3D printing method of the present invention is proposed.

在第三实施例中,所述步骤S10可包括:In the third embodiment, the step S10 may include:

步骤S101:在处于快速打印模式时,解析接收到的打印指令,获得预处理打印指令。Step S101: When in the fast printing mode, analyze the received printing instruction to obtain a pre-processing printing instruction.

需要说明的是,打印指令中的操作命令较多,无法精准选取所需的轨迹指令,因此,可通过解析的方式精准读取所需的轨迹指令,以提高目标轨迹指令获取的效果。It should be noted that there are many operation commands in the print command, and it is impossible to accurately select the required trajectory command. Therefore, the required trajectory command can be accurately read through analysis to improve the effect of obtaining the target trajectory command.

在具体实现中,在处于快速打印模式时,可对获取到的打印指令进行解析,获得打印指令中的各操作指令,以G-code指令为例,打印设备可对G-code指令进行解析,获得G-code指令中的各运动指令,如G0/G1直线移动指令或G2/G3圆弧移动指令、G4暂停移动、G20/G21设置距离单位以及G28归零等,上述各运动指令即为预处理打印指令。In a specific implementation, when in the fast printing mode, the obtained print command can be parsed to obtain each operation command in the print command. Taking the G-code command as an example, the printing device can parse the G-code command, Obtain each motion command in the G-code command, such as G0/G1 linear movement command or G2/G3 arc movement command, G4 pause movement, G20/G21 set distance unit and G28 return to zero, etc., the above-mentioned movement commands are preset Handle print commands.

步骤S102:读取所述预处理打印指令中的目标轨迹指令。Step S102: Read the target trajectory instruction in the preprocessing printing instruction.

在具体实现中,可读取上述预处理打印指令中的G0/G1指令作为目标轨迹指令。In a specific implementation, the G0/G1 instruction in the above-mentioned preprocessing printing instruction may be read as the target trajectory instruction.

应理解的是,在快速打印模式下,通过解析接收到的打印指令,并读取解析后得到的预处理打印指令中的目标轨迹指令,有效提高了目标轨迹指令获取的效果。It should be understood that, in the fast printing mode, by analyzing the received print command and reading the target track command in the preprocessed print command obtained after analysis, the effect of acquiring the target track command is effectively improved.

在第三实施例中,所述步骤S20,包括:In the third embodiment, the step S20 includes:

步骤S201:确定所述目标轨迹指令中的运动轨迹。Step S201: Determine the motion trajectory in the target trajectory instruction.

需要说明的是,打印设备在打印时,若使用同一种算法,无法兼容所有运动轨迹,因此,本实施例中可根据3D打印机的运动根据确定不同的运动算法。It should be noted that if the printing device uses the same algorithm during printing, it cannot be compatible with all motion trajectories. Therefore, in this embodiment, different motion algorithms can be determined according to the motion of the 3D printer.

在具体实现中,打印设备解析打印指令,并读取所解析后打印指令中的目标根据指令,根据该目标轨迹指令确定3D打印机挤出头的运动轨迹。In a specific implementation, the printing device parses the print command, reads the target instruction in the parsed print command, and determines the movement track of the extrusion head of the 3D printer according to the target track command.

步骤S202:在所述运动轨迹符合预设轨迹条件时,确定运动算法为S形运动算法。Step S202: When the motion track meets the preset track condition, determine that the motion algorithm is an S-shape motion algorithm.

需要说明的是,预设轨迹条件可以是用于确定运动轨迹长度的条件,即该预设轨迹条件可以是预设长度值,在运动轨迹达到预设长度时,表示该运动轨迹为长距离的运动轨迹,反之,则表示该运动轨迹为短距离的运动轨迹。It should be noted that the preset trajectory condition may be a condition for determining the length of the motion trajectory, that is, the preset trajectory condition may be a preset length value, and when the motion trajectory reaches the preset length, it means that the motion trajectory is long-distance Motion track, on the contrary, it means that the motion track is a short-distance motion track.

可理解的是,S形运动算法是一种加速度渐变的运动算法。It can be understood that the S-shape motion algorithm is a motion algorithm with gradual acceleration.

为了便于理解,参考图6进行说明,但并不对本方案进行限定。图6为本发明3D打印方法S形运动算法的速度曲线图,图中,S形运动算法的加减速过程为7段加减速过程,形成S字形,S形曲线由S加速阶段Ⅰ、S匀加速阶段Ⅱ、S加速阶段Ⅲ、S匀速阶段Ⅳ、S减速阶段Ⅴ、S匀减速阶段Ⅵ和减速阶段Ⅶ组成。For ease of understanding, description is made with reference to FIG. 6 , but this solution is not limited. Fig. 6 is a speed curve diagram of the S-shaped motion algorithm of the 3D printing method of the present invention. In the figure, the acceleration and deceleration process of the S-shaped motion algorithm is a 7-stage acceleration and deceleration process, forming an S-shaped curve. Acceleration phase II, S acceleration phase III, S constant speed phase IV, S deceleration phase V, S uniform deceleration phase VI and deceleration phase VII.

进一步地,由于S型算法使步进电机工作的加速度是随时变化的,产生的能耗较多,在长距离时能满足需求,但在运动轨迹的长度为短距离,且运动轨迹为曲线时,该能耗会出现过剩的情况,因此在这种情况下可选用加速度匀速变化的梯形运动算法可满足需求,合理利用步进电机的能耗。因此,本实施例中,在所述步骤S201之后,还包括:Furthermore, due to the S-type algorithm, the acceleration of the stepper motor changes at any time, resulting in more energy consumption, which can meet the demand when the distance is long, but when the length of the trajectory is short and the trajectory is a curve , the energy consumption will be excessive, so in this case, the trapezoidal motion algorithm with uniform acceleration change can be used to meet the demand and make reasonable use of the energy consumption of the stepping motor. Therefore, in this embodiment, after the step S201, it also includes:

步骤S202’:在所述运动轨迹不符合预设轨迹条件时,确定运动算法为梯型运动算法。Step S202': When the motion trajectory does not meet the preset trajectory conditions, determine that the motion algorithm is a trapezoidal motion algorithm.

可理解的是,梯形运动算法是一种在加速过程和减速过程加速度不变的匀变速控制算法。It can be understood that the trapezoidal motion algorithm is a uniform speed control algorithm with constant acceleration during acceleration and deceleration.

为了便于理解,参照图7进行说明,但并不对本方案进行限定。图7为本发明3D打印方法梯形运动算法的速度曲线图,图中,梯形运动算法的加减速过程为三段加减速过程,形成梯形,梯形曲线由梯形匀加速阶段Ⅷ、梯形匀速阶段Ⅸ和梯形匀减速阶段Ⅹ组成。For ease of understanding, description is made with reference to FIG. 7 , but this solution is not limited. Fig. 7 is a speed curve diagram of the trapezoidal motion algorithm of the 3D printing method of the present invention. In the figure, the acceleration and deceleration process of the trapezoidal motion algorithm is a three-stage acceleration and deceleration process, forming a trapezoid. The trapezoidal curve consists of trapezoidal uniform acceleration stage VIII, trapezoidal constant velocity stage IX and The trapezoidal uniform deceleration stage X is composed.

为了便于理解,参照图8进行说明,但并不对本方案进行限定。图8为本发明3D打印方法梯形运动算法状态切换原理图,图中,在步进电机的步数为1时,步进电机直接进入减速状态然后到停止状态,在步进电机的步数大于1,且会加到最大速度时,步进电机会经过加速状态至匀速状态至减速状态至停止状态这一过程,在步进电机的步数大于1,且不会加到最大速度时,步进电机会经过加速状态至减速状态至停止状态这一过程。For ease of understanding, description is made with reference to FIG. 8 , but this solution is not limited. Fig. 8 is the principle diagram of state switching of the trapezoidal motion algorithm of the 3D printing method of the present invention. In the figure, when the number of steps of the stepping motor is 1, the stepping motor directly enters the deceleration state and then stops, and when the number of steps of the stepping motor is greater than 1, and will increase to the maximum speed, the stepper motor will go through the process of acceleration state to constant speed state to deceleration state to stop state. The motor will go through the process from acceleration state to deceleration state to stop state.

需要说明的是,基于上述图7,梯形运动算法因其加减速值固定,算法实现简单,在运动轨迹为曲线和短距离时所需速度较小,速度变化的曲线折点可以忽略,能产生较好的打印效果。It should be noted that, based on the above figure 7, the trapezoidal motion algorithm is easy to implement because of its fixed acceleration and deceleration values. When the motion trajectory is a curve and short distance, the required speed is small, and the curve point of speed change can be ignored, which can produce Better printing effect.

可理解的是,基于上述图6和图7,在运动轨迹为长距离时,所需速度较大,速度变化的曲线折点不能忽略,如在梯形匀加速阶段Ⅷ的趋势突然变成梯形匀速阶段Ⅸ,会因为惯性产生较大的冲击力和噪声,造成步进电机丢不或堵转,最终导致打印模型错层,打印失败。而S形运动算法的加减速过程则很好的避免了这一问题,如在S减速阶段Ⅲ变为S匀速阶段Ⅳ时,速度曲线的阶段变化的衔接较好,变化对步进电机造成较大的影响。It is understandable that, based on the above Figures 6 and 7, when the trajectory is long distance, the required speed is relatively large, and the inflection point of the speed change curve cannot be ignored, for example, the trend in the trapezoidal uniform acceleration stage VIII suddenly becomes a trapezoidal constant velocity In stage Ⅸ, there will be a large impact force and noise due to inertia, which will cause the stepper motor to fail or stall, which will eventually lead to wrong layers of the printed model and printing failure. The acceleration and deceleration process of the S-shaped motion algorithm avoids this problem very well. For example, when the S deceleration phase III changes to the S constant speed phase IV, the phase changes of the speed curve are well connected, and the change has a greater impact on the stepping motor. big impact.

在第三实施例中,步所述步骤S30,包括:In the third embodiment, step S30 includes:

步骤S301:通过所述S形运动算法控制步进电机。Step S301: Control the stepper motor through the S-shape motion algorithm.

在具体实现中,打印设备可根据上述S形运动算法,依据上述S形速度曲线驱动步进电机。In a specific implementation, the printing device may drive the stepper motor according to the above-mentioned S-shaped motion algorithm according to the above-mentioned S-shaped speed curve.

进一步地,为了提高步进电机的工作效率,所述步骤S301,包括:Further, in order to improve the working efficiency of the stepping motor, the step S301 includes:

通过所述S型运动算法基于预设电机参数控制步进电机的步速,以使所述步进电机根据所述步速进行工作。The pace of the stepping motor is controlled based on the preset motor parameters through the S-type motion algorithm, so that the stepping motor works according to the pace.

需要说明的是,预设电机参数可以是控制步进电机工作的相关参数,如步进电机的工作速度参数和工作时间参数。It should be noted that the preset motor parameters may be related parameters for controlling the operation of the stepping motor, such as the working speed parameter and the working time parameter of the stepping motor.

可理解的是,速度参数可以包括步进电机的起始速度和终止速度(最大速度,与S新曲线匀速阶段的速度对应),时间参数可为步进电机工作的持续时间。It can be understood that the speed parameter can include the start speed and end speed of the stepping motor (maximum speed, corresponding to the speed in the constant speed phase of the new S curve), and the time parameter can be the duration of the stepping motor working.

在具体实现中,打印设备可基于上述速度参数和时间参数确定S形运动算法的起始速度和终止速度,以确定S曲线,从而控制步进电机的每个时间点的步速,以使步进电机根据该步速进行工作。In a specific implementation, the printing device can determine the start speed and end speed of the S-shaped motion algorithm based on the above speed parameters and time parameters to determine the S curve, thereby controlling the step speed of the stepping motor at each time point to make the step The feed motor works according to this pace.

应理解的是,打印设备提高速度参数和时间参数确定S形运动算法的速度曲线,并以该曲线控制步进电机的步速,有效提高步进电机的工作效率。It should be understood that the printing device increases the speed parameter and the time parameter to determine the speed curve of the S-shape motion algorithm, and controls the step speed of the stepping motor according to the curve, so as to effectively improve the working efficiency of the stepping motor.

步骤S302:基于所述步进电机进行3D打印,获得目标模型。Step S302: Perform 3D printing based on the stepping motor to obtain a target model.

在具体实现中,步进电机通过上述步速进行工作,以控制3D打印机的挤出头运动,实现打印从而获得目标模型。In a specific implementation, the stepper motor works at the above pace to control the movement of the extrusion head of the 3D printer to achieve printing and obtain the target model.

本实施例通过在运动轨迹符合预设条件时,根据S形运动算法控制步进电机进行打印,获得目标模型,由于S形运动算法可适用于速度较大的情形,且S形运动算法的加速度为渐变的形式,消除了加速度突变的情况,从而使机器运行更平滑,避免打印速度较快使步进电机丢步或堵转,大大减少了错层概率,实现了快速打印功能。In this embodiment, the target model is obtained by controlling the stepper motor to print according to the S-shaped motion algorithm when the motion trajectory meets the preset conditions. Since the S-shaped motion algorithm can be applied to situations with high speeds, and the acceleration of the S-shaped motion algorithm It is in the form of gradual change, which eliminates the sudden change of acceleration, so that the machine runs more smoothly, avoids the stepping motor from losing steps or stalling due to the high printing speed, greatly reduces the probability of misalignment, and realizes the fast printing function.

此外,本发明实施例还提出一种存储介质,所述存储介质上存储有3D打印程序,所述3D打印程序被处理器执行时实现如上文所述的3D打印方法的步骤。In addition, an embodiment of the present invention also proposes a storage medium, on which a 3D printing program is stored, and when the 3D printing program is executed by a processor, the steps of the above-mentioned 3D printing method are realized.

参照图9,图9为本发明3D打印装置第一实施例的结构框图。Referring to FIG. 9 , FIG. 9 is a structural block diagram of the first embodiment of the 3D printing device of the present invention.

如图9所示,本发明实施例提出的3D打印装置包括:As shown in Figure 9, the 3D printing device proposed by the embodiment of the present invention includes:

目标轨迹指令模块501,用于在处于快速打印模式时,基于打印指令获得目标轨迹指令;A target trajectory instruction module 501, configured to obtain a target trajectory instruction based on the printing instruction when in the fast printing mode;

运动算法确定模块502,用于基于所述目标轨迹指令确定运动算法;A motion algorithm determining module 502, configured to determine a motion algorithm based on the target trajectory instruction;

目标模型打印模块503,用于基于所述运动算法进行3D打印,获得目标模型。The target model printing module 503 is configured to perform 3D printing based on the motion algorithm to obtain the target model.

本实施例通过在处于快速打印模式时,基于打印指令获得目标轨迹指令,然后基于目标轨迹指令确定运动算法,最后基于运动算法进行3D打印,获得目标模型。由于本实施例是通过在快速打印模式下从打印指令中获取的目标轨迹指令确定运动算法,并根据该运动算法控制3D打印机的速度参数来进行3D打印,相较于现有技术3D打印机在运动过程中采用固定的速度进行打印的方式,导致在提高打印速度时,会因为步进电机初始速度和结束速度太快,大大增加打印失败的概率的问题,本发明上述3D打印方法有效避免了上述问题,降低了打印失败的概率,提高了打印的效果。In this embodiment, when in the fast printing mode, the target trajectory instruction is obtained based on the printing instruction, then the motion algorithm is determined based on the target trajectory instruction, and finally the target model is obtained by performing 3D printing based on the motion algorithm. Since this embodiment determines the motion algorithm through the target trajectory command obtained from the print command in the fast printing mode, and controls the speed parameters of the 3D printer according to the motion algorithm to perform 3D printing, compared with the prior art 3D printer in motion The method of printing at a fixed speed in the process leads to the problem that when the printing speed is increased, the probability of printing failure will be greatly increased because the initial speed and end speed of the stepping motor are too fast. The above-mentioned 3D printing method of the present invention effectively avoids the above-mentioned problems, reducing the probability of printing failure and improving the printing effect.

本发明3D打印装置的其他实施例或具体实现方式可参照上述各方法实施例,此处不再赘述。For other embodiments or specific implementations of the 3D printing device of the present invention, reference may be made to the above-mentioned method embodiments, which will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器/随机存取存储器、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of software products in essence or in other words, the part that contributes to the prior art, and the computer software products are stored in a storage medium (such as read-only memory/random access memory, magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) execute the methods described in various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (10)

1. A3D printing method, characterized in that the 3D printing method comprises the following steps:
when the printing device is in a fast printing mode, obtaining a target track instruction based on a printing instruction;
determining a motion algorithm based on the target track instruction;
and 3D printing is carried out based on the motion algorithm to obtain a target model.
2. The 3D printing method according to claim 1, wherein the step of obtaining the target trajectory instructions based on the printing instructions while in the fast printing mode comprises:
when the printer is in a quick printing mode, analyzing the received printing instruction to obtain a preprocessing printing instruction;
and reading a target track instruction in the preprocessing printing instruction.
3. The 3D printing method according to claim 2, wherein before the step of parsing the received print command to obtain the pre-processing print command while in the fast printing mode, the method further comprises:
printing based on the received printing instruction to generate a printing model;
and when the height of the printing model reaches a preset height, switching the printing mode into a quick printing mode.
4. The 3D printing method of claim 1, wherein the step of determining a motion algorithm based on the target trajectory instructions comprises:
determining a motion track in the target track instruction;
and when the motion track meets the preset track condition, determining that the motion algorithm is an S-shaped motion algorithm.
5. The 3D printing method according to claim 4, wherein the step of determining the motion trajectory in the target trajectory instructions is followed by further comprising:
and when the motion track does not accord with the preset track condition, determining the motion algorithm as a trapezoidal motion algorithm.
6. The 3D printing method according to claim 4, wherein the step of performing 3D printing based on the motion algorithm to obtain the target model comprises:
controlling a stepping motor through the S-shaped motion algorithm;
and 3D printing is carried out based on the stepping motor to obtain a target model.
7. The 3D printing method as claimed in claim 6, wherein the step of controlling the stepper motor through the S-shaped motion algorithm comprises:
and controlling the step speed of the stepping motor based on preset motor parameters through the S-shaped motion algorithm so that the stepping motor works according to the step speed.
8. A3D printing apparatus, the apparatus comprising:
the target track instruction module is used for obtaining a target track instruction based on the printing instruction when the printing module is in the fast printing mode;
the motion algorithm determining module is used for determining a motion algorithm based on the target track instruction;
and the 3D printing module is used for performing 3D printing based on the motion algorithm to obtain a target model.
9. A3D printing apparatus, characterized in that the apparatus comprises: memory, a processor and a 3D printing program stored on the memory and executable on the processor, the 3D printing program being configured to implement the steps of the 3D printing method according to any of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a 3D printing program, which 3D printing program, when executed by a processor, implements the steps of the 3D printing method according to any one of claims 1 to 7.
CN202210783929.0A 2022-07-05 2022-07-05 3D printing method, device, equipment and storage medium Pending CN115302776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210783929.0A CN115302776A (en) 2022-07-05 2022-07-05 3D printing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210783929.0A CN115302776A (en) 2022-07-05 2022-07-05 3D printing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115302776A true CN115302776A (en) 2022-11-08

Family

ID=83857042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210783929.0A Pending CN115302776A (en) 2022-07-05 2022-07-05 3D printing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115302776A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116175976A (en) * 2023-04-25 2023-05-30 冀凯河北机电科技有限公司 3D printing data processing method, system, electronic equipment and storage medium
CN116214930A (en) * 2023-02-09 2023-06-06 深圳市纵维立方科技有限公司 3D printing method, printer and medium
CN117984559A (en) * 2024-02-02 2024-05-07 深圳华盛光刻系统有限公司 Method for reducing accumulated error of 3D lithography process

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005454A (en) * 2014-04-15 2015-10-28 上海智位机器人有限公司 Method for 3D printer to print at set height, and 3D printer
WO2020011396A1 (en) * 2018-07-13 2020-01-16 Linde Aktiengesellschaft Method for operating a heat exchanger, arrangement comprising a heat exchanger, and air processing system comprising a corresponding arrangement
CN112677489A (en) * 2021-01-25 2021-04-20 中国科学院空间应用工程与技术中心 Printing path planning method and system and 3D printer
CN112895426A (en) * 2021-01-20 2021-06-04 青岛理工大学 Micro-nano 3D printing method for single-plate electrode electric field driven jet deposition
CN113601833A (en) * 2021-08-04 2021-11-05 温州科技职业学院 FDM three-dimensional printing control system
CN113882677A (en) * 2021-12-06 2022-01-04 中交第一公路勘察设计研究院有限公司 Track control method and system for concrete 3D printing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005454A (en) * 2014-04-15 2015-10-28 上海智位机器人有限公司 Method for 3D printer to print at set height, and 3D printer
WO2020011396A1 (en) * 2018-07-13 2020-01-16 Linde Aktiengesellschaft Method for operating a heat exchanger, arrangement comprising a heat exchanger, and air processing system comprising a corresponding arrangement
CN112895426A (en) * 2021-01-20 2021-06-04 青岛理工大学 Micro-nano 3D printing method for single-plate electrode electric field driven jet deposition
CN112677489A (en) * 2021-01-25 2021-04-20 中国科学院空间应用工程与技术中心 Printing path planning method and system and 3D printer
CN113601833A (en) * 2021-08-04 2021-11-05 温州科技职业学院 FDM three-dimensional printing control system
CN113882677A (en) * 2021-12-06 2022-01-04 中交第一公路勘察设计研究院有限公司 Track control method and system for concrete 3D printing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116214930A (en) * 2023-02-09 2023-06-06 深圳市纵维立方科技有限公司 3D printing method, printer and medium
CN116175976A (en) * 2023-04-25 2023-05-30 冀凯河北机电科技有限公司 3D printing data processing method, system, electronic equipment and storage medium
CN116175976B (en) * 2023-04-25 2023-07-18 冀凯河北机电科技有限公司 3D printing data processing method, system, electronic equipment and storage medium
CN117984559A (en) * 2024-02-02 2024-05-07 深圳华盛光刻系统有限公司 Method for reducing accumulated error of 3D lithography process

Similar Documents

Publication Publication Date Title
CN115302776A (en) 3D printing method, device, equipment and storage medium
EP1258790B1 (en) Method and apparatus for controlling a motor
US9339973B2 (en) Control method for stereolithography structure used in 3-D printing
JP5162847B2 (en) Printer and printer control method
US5822499A (en) Method and apparatus for printing data in accordance with a previously set parameter regardless of currently specified parameters
JP2007316690A (en) Label making device
JPH05318840A (en) Image forming device and formation thereof
CN113741826A (en) A 3D printer control method, system and medium
KR100209509B1 (en) Power saving ink-jet printer
CN211106376U (en) Portable ink-jet printer
JPS63205256A (en) Printer
US20050267626A1 (en) Numerical controller
CN222712870U (en) Color 3D printing control system and color 3D printer
EP3656569B1 (en) Printing system
JP2003076649A (en) Data processor, print control device, interface selecting method, storage medium, and program
JP2002347235A (en) Recorder and its control method
JPH08324043A (en) Method and apparatus for output control
JPH0844516A (en) Print system and host device and printing device constructing the same system
KR20230150504A (en) Machine tool warm-up control apparatus and method
JP2791691B2 (en) Recording device
JP2002283669A (en) Printing equipment
JP2009205634A (en) Label data generation device, program, and recording medium
JPH079707A (en) Printer
JPH0920030A (en) Serial printer
JPH07106659B2 (en) Carriage drive control method for serial printer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination