Composite five-axis printing method and system and control method of composite five-axis printing system
Through the composite five-axis printing method, including determined filling interference, scaling algorithm and variable layer thickness calculation, the filling problem of complex models with internal and external contours in five-axis printing is solved, support-free filling and uniform stress distribution are achieved, and structural deformation is avoided.
Patent Information
- Application Number
- CN202410978483.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing five-axis printing technology is difficult to achieve unsupported infill printing of complex models with internal and external contours, and there are problems with uneven internal stress and structural deformation when printing models with large bending angles.
The composite five-axis printing method is used to determine whether there is filling interference on the inner and outer contours of the model. The scaling algorithm avoids the conflict between the filling path and the contour, calculates the extrusion amount of the filling line segment with variable layer thickness, generates a polygon outline point set suitable for the inner and outer contours, and uses hatching lines. Fill paths to achieve printing with unequal thickness.
It solves the problem of internal and external contour filling interference, supports filling and printing of complex models, avoids structural deformation, and achieves more uniform internal stress distribution.
Smart Images

Figure CN118700537A
Abstract
Description
Technical Field
[0001] The present invention relates to 3D printing, and in particular to a composite five-axis printing method, system and control method thereof. Background Art
[0002] Traditional 3D printing can only print on a plane, and the print head's posture relative to the workpiece remains fixed during the printing process, resulting in a step effect on the printed surface, the need for support for printed overhanging structures, and low surface quality. Five-axis additive printing adds two degrees of freedom to traditional 3D printing, and achieves unsupported three-dimensional printing of models by driving the rotation of three-dimensional objects. Most existing five-axis printing methods can only achieve five-axis path planning and printing for single-contour models, and it is difficult to achieve fill printing for models with complex internal and external contours. Five-axis printing with a segmentation model algorithm can only achieve segmentation and fill printing for models with small bending angles, and it is difficult to perform unsupported fill printing for models with large bending angles. Its essence is still uniform filling printing of three axes in space, and it does not solve the variable layer thickness requirements caused by angle changes in space. The printed model will have problems such as uneven internal stress, and excessive angle changes may even cause structural deformation. For complex multi-contour models based on this, the interference effect of multiple contours on filling is also an even more difficult problem to solve. Summary of the invention
[0003] Purpose of the invention: The first purpose of the present invention is to provide a composite five-axis printing method capable of realizing variable layer thickness filling of inner and outer contours. The second purpose of the present invention is to provide a composite five-axis printing system. The third purpose of the present invention is to provide a control method for the composite five-axis printing system.
[0004] Technical solution: The composite five-axis printing method of the present invention includes STL model input, extraction of model skeleton points, calculation of model cutting plane parameters, model slicing, coordinate transformation of slice data and output of G code, characterized in that the model is a complex model with internal and external contours, and the composite five-axis printing method also includes the following operations between the model slicing and the coordinate transformation of slice data:
[0005] Determine whether there is filling interference between the inner and outer contours of the model: The point data generated by model slicing is used to form a set of point contours based on the principle of minimum adjacent distance. After fitting the point contour set to generate inner and outer contour polygons, the number of intersections between the shadow lines and the inner and outer contour polygons is determined by intersecting the shadow lines. If the number of intersections is greater than 2, there is filling interference between the inner and outer contours.
[0006] The contour edge is scaled by a scaling algorithm to avoid conflicts between the fill path and the contour print extrusion;
[0007] The scaled new model is hatched and the filling path is determined according to the intersection of the hatch and the plane contour. When there is interference between the filling of the inner and outer contours, the part of the filling path located in the inner contour is not extruded and filled.
[0008] Calculation of extrusion amount of model variable layer thickness filling line segment: Calculate the angle change of each layer of filling through the total number of skeleton points, add path points between the paired inner contour intersection points and outer contour intersection points according to a certain length standard, and draw a normal vector perpendicular to the upper adjacent tangent plane for every two adjacent points to form a trapezoid. Determine the extrusion amount of the line segment between the two adjacent points according to the area of the trapezoid to achieve printing of contours of unequal thickness.
[0009] Furthermore, the process of acquiring the set of point contours is as follows: for the first point read by the model, copy an identical point to the point array, use the distance formula between two points to calculate the point with the smallest distance except for its own point and move the first point to the new array; the point with the smallest distance calculates the new array in turn, and the last point is closed with the first point, thereby generating the contour of the polygon; when there are multiple internal and external contour points, there will be points left in the array, and a new round of iteration is performed to generate a set of multiple contour points.
[0010] Furthermore, the contour edge is scaled by a scaling algorithm, including:
[0011] In the scaling algorithm, for each point pm2(x2,y2), take its two adjacent points pm1(x1,y1) and pm3(x3,y3), and pm1 and pm2 form a vector PM2 and PM3 form a vector
[0012] vector Normalized normal vector for:
[0013]
[0014] Two normal vectors The average for:
[0015]
[0016] Calculating vectors The module b:
[0017]
[0018] Pair Vector After normalization, we get the vector
[0019] Calculates two vectors The dot product a = (x1-x2)·(x3-x2)+(y3-y2)·(y1-y2)
[0020] Calculate two vectors The angle α between them:
[0021]
[0022] The actual displacement ratio required delta is the manually set scaling distance;
[0023] The displacement vector of point pm2 is The displaced point pm2' is the scaled point.
[0024] Furthermore, the filling path is configured as follows: the shadow lines are sorted in sequence, and the end endpoints where the adjacent odd-numbered shadow lines intersect with the model contour and the end endpoints where the even-numbered shadow lines intersect with the contour constitute the tail filling path, and the starting endpoints where the adjacent even-numbered shadow lines intersect with the model contour and the starting endpoints where the odd-numbered shadow lines intersect with the contour constitute the filling path.
[0025] Furthermore, the calculation of the extrusion amount of the model variable layer thickness filling line segment includes:
[0026] According to the total number of skeleton points w, calculate the angle change of each layer of filling The slope value of the shadow line of the next layer is replaced by k'=tan(B+bh), where B is the angle between the shadow line and the x-axis;
[0027] The extrusion amount of the line segment between two adjacent points is J=K2·S, where S is the area of the corresponding trapezoid and K2 is the extrusion coefficient, which is set and adjusted according to the accuracy requirements of the model wire.
[0028] The composite five-axis printing system of the present invention comprises a host computer control system and a slave computer five-axis 3D printing execution system, wherein the host computer control system comprises a PC-side CPU control system, a five-axis slicing algorithm module and a Raspberry Pi control system, the five-axis slicing algorithm module is used to obtain G code according to the composite five-axis printing method; the PC-side CPU control system and the Raspberry Pi control system are used to collaboratively control the slave computer five-axis 3D printing execution system, including the transmission of G code, online monitoring of five-axis 3D printing information and real-time control of five-axis 3D printing; the slave computer five-axis 3D printing execution system comprises a display module and a WiFi communication module for communicating with the host computer control system, the display module is integrated by the Raspberry Pi, and is used to display a real-time picture of the printing process captured by a camera, and is also used to display an operation control interface and printing progress of the host computer control system, and can directly issue control instructions to the slave computer five-axis 3D printing execution system in a touch screen manner.
[0029] Furthermore, the lower machine five-axis 3D printing execution system also includes a five-axis linkage motion control module, a limit switch module to avoid stepper motor motion collision, a dual-nozzle extrusion system capable of composite material extrusion printing, and a heating module for pre-treatment heating before printing;
[0030] The five-axis linkage motion control module includes an X-axis stepper motor driver for controlling the direction and speed of the X-axis stepper motor, a Y-axis stepper motor driver for controlling the direction and speed of the Y-axis stepper motor, a Z-axis stepper motor driver for controlling the direction and speed of the Z-axis stepper motor, a U-axis stepper motor driver for controlling the direction and speed of the U-axis stepper motor, and a V-axis stepper motor driver for controlling the direction and speed of the V-axis stepper motor;
[0031] The dual-nozzle extrusion system includes dual wire feed ends, nozzle 1, nozzle 2, extruder 1 stepper motor, extruder 2 stepper motor and a heat dissipation unit. The extruder stepper motor is driven by the corresponding extruder driver. The printing wire enters from the wire feed end and is extruded from the nozzle for additive printing under the drive of the extruder stepper motor. The heat dissipation unit is used to cool the throat of the five-axis printer.
[0032] The heating module includes nozzle 1, nozzle 2 and a hot bed capable of adjusting the temperature;
[0033] The limit switch module includes X-axis limit switch, Y-axis limit switch, Z-axis limit switch, U-axis Hall sensor limit switch and V-axis limit switch, which are used to find the zero position of the X, Y, Z, U, and V axes, and to limit the movement of the X, Y, Z, U, and V axes to the extreme position.
[0034] Furthermore, the heat dissipation unit includes a heat dissipation fan and a fan speed regulator, and the fan speed regulator is used to adjust the rotation speed of the heat dissipation fan.
[0035] Furthermore, the five-axis 3D printing execution system of the lower computer has a USB input port for directly transmitting the G code to the display module to realize the command control of the five-axis 3D printing execution system of the lower computer.
[0036] The control method of the composite five-axis printing system of the present invention comprises:
[0037] S1, modeling in the host computer control system;
[0038] S2. Obtaining G code according to the composite five-axis printing method, and outputting the G code to the PC CPU control system and the Raspberry Pi control system;
[0039] S3, the PC CPU control system or the Raspberry Pi control system sends the G code to the lower computer five-axis 3D printing execution system through the WiFi communication module. According to the processing instructions, the lower computer five-axis 3D printing execution system works and prints the model according to the planned processing trajectory;
[0040] During the processing, the PC CPU control system and the Raspberry Pi control system monitor the printing, and the printing status is displayed through the display module. When the printing environment requirements change, the PC CPU control system or the Raspberry Pi control system can be used for control, and the next step of instructions can be issued according to the printing requirements; after the printing is normal and matches the requirements, it is successfully printed.
[0041] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: The present invention solves the filling interference problem caused by internal and external contours through interference discussion, contour scaling, variable layer thickness filling calculation, etc. of models with complex internal and external contours. It can support filling printing of models with complex internal and external contours, and solves the problem of structural deformation that may be caused by unreasonable filling extrusion in five-axis printing. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flowchart of a composite five-axis printing method provided by an embodiment of the present invention;
[0043] Figure 2 is a schematic diagram of the relationship between point scaling vectors in an embodiment of the present invention;
[0044] Figure 3 is a schematic diagram of the relationship between the hatch intercept and the angle in an embodiment of the present invention;
[0045] Figure 4 Schematic diagram of the relationship between the variable layer thickness extrusion amount trapezoid and the intersection point in the embodiment of the present invention;
[0046] Figure 5 It is a structural schematic diagram of a composite five-axis printing system provided by an embodiment of the present invention;
[0047] Figure 6 It is a flow chart of a control method of a composite five-axis printing system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The present invention will be further described below in conjunction with the accompanying drawings.
[0049] Combination Figure 1 ,The existing five-axis printing method includes STL model input, ,extracting the skeleton points of the model, calculating the ,cutting plane parameters of the model, model slicing, coordinate transformation of ,slicing data and outputting G code, which cannot be applied to complex ,models with internal and external contours.
[0050] To this end, the embodiment of the present invention improves on the existing five-axis printing method and provides a composite five-axis printing method that can be applied to models with complex internal and external contours. Specifically, the embodiment of the present invention performs the following operations between the model slicing and the coordinate transformation steps of the slicing data in the existing five-axis printing method:
[0051] 1) Determine whether there is filling interference between the inner and outer contours of the model
[0052] After slicing the model, the point data generated by the model slicing uses the principle of minimum adjacent distance to form a set of point contours. The process of obtaining the point contour set is as follows: for the first point read by the model, copy an identical point to the point array, use the distance formula between two points to calculate the point with the smallest distance except for its own point, and move the first point to the new array; the point with the smallest distance calculates the new array in turn, and the last point is closed with the first point, thereby generating the contour of the polygon; when there are multiple internal and external contour points, there will be points left in the array, and a new round of iteration is performed to generate a set of multiple contour points.
[0053] Any two points (x i ,y i )、(x j ,y j ) is calculated as:
[0054] At this time, the point data generated by the slice is transformed in space, which is equivalent to the xoy two-dimensional plane in space. After fitting the point contour set to generate the inner and outer contour polygons, the number of intersections between the shadow line and the inner and outer contour polygons is determined by the intersection of the shadow line, and the number of inner and outer contours and whether there is filling interference are determined based on the number of intersections. Specifically, if the number of intersections is greater than 2, there is inner and outer contour filling interference.
[0055] 2) Scale the contour edge through the scaling algorithm to avoid conflicts between the fill path and the contour print extrusion
[0056] In the scaling algorithm, Figure 2 As shown, for each point pm2(x2,y2), take its two adjacent points pm1(x1,y1) and pm3(x3,y3), pm1 and pm2 form a vector PM2 and PM3 form a vector
[0057]
[0058] vector Normalized normal vector for:
[0059]
[0060] Two normal vectors The average for:
[0061]
[0062] Calculating vectors The module b:
[0063]
[0064] Pair Vector After normalization, we get the vector
[0065] Calculates two vectors The dot product a = (x1-x2)·(x3-x2)+(y3-y2)·(y1-y2)
[0066] Calculate two vectors The angle α between them:
[0067]
[0068] The actual displacement ratio required delta is the manually set scaling distance;
[0069] The displacement vector of point pm2 is The displaced point pm2' is the scaled point.
[0070] The displacement vector calculated by the scaling algorithm ensures that the displacement maintains a certain ratio, avoiding excessive or insufficient movement, thereby preventing the problem of point order disorder caused by the close distance when adjacent points are scaled.
[0071] 3) The scaled new model is hatched and the filling path is determined according to the intersection of the hatch and the plane contour. When there is interference between the filling of the inner and outer contours, the part of the filling path located in the inner contour is not extruded and filled;
[0072] like Figure 3 As shown, the intersection point is calculated by intersecting the shadow line y=kx+deltab with the plane contour. The k value of the first layer is given. The tangent point is calculated and the maximum intercept b.max and the minimum intercept b.min of the shadow line and the y-axis can be obtained. At this time, the tangent point between the shadow line that generates the maximum intercept and the contour is B1.
[0073] Calculate the intercept of adjacent shadow lines according to the given gap between adjacent shadow lines The angle A in the figure is 45° (this angle is only exemplary and can be other angles);
[0074] The triangles are tangent to each other and we get A=B, so the angles of the two angles A and B are equal. The given k value can be calculated
[0075] The total shadow line can be further calculated The number of bars is n, rounded to an integer.
[0076] For each hatch line that meets the above constraints, the odd-numbered intersection points and the even-numbered intersection points constitute a filled path, thereby avoiding the interference caused by multiple layers of contours.
[0077] The fill path configuration is as follows: sort the order according to the number of hatches, the end endpoints of the adjacent odd-numbered hatches intersecting with the model contour and the end endpoints of the adjacent even-numbered hatches intersecting with the contour constitute the tail fill path, and the start endpoints of the adjacent even-numbered hatches intersecting with the model contour and the start endpoints of the adjacent odd-numbered hatches intersecting with the contour constitute the fill path. For example, if they are arranged in order, hatch line 1 intersects with the end endpoint of hatch line 2, and hatch line 2 intersects with the start of hatch line 3, but hatch line 1 does not intersect with the start endpoint of hatch line 2, and hatch line 2 does not intersect with the end of hatch line 3. The fill path formed by each pair of points has different lengths due to the variable inner and outer contours.
[0078] 4) Calculation of extrusion volume of model variable layer thickness filling line segment
[0079] The angle change of each layer of filling is calculated through the total number of skeleton points. According to a certain length standard, path points are added between the intersection points of the inner contour and the outer contour in pairs. For every two adjacent points, the normal vector perpendicular to the upper adjacent tangent plane forms a trapezoid. The extrusion amount of the line segment between the two adjacent points is determined according to the area of the trapezoid to realize the printing of contours of unequal thickness.
[0080] Specifically, according to the total number of skeleton points w, the angle change of each layer of filling is calculated The shadow line slope k value of the next layer is replaced by k'=tan(B+bh); the stability of the printed structure is ensured by changing the k value. B is the angle between the shadow line and the x-axis, which can be calculated by the shadow line slope.
[0081] Combination Figure 4 , the intersection points of each hatch line and the contour are arranged in order, and the odd and even points arranged in order form a group in pairs, and there are no identical points in each group of points. Add path points between each group of odd and even points with a length of 1mm. Figure 4 The midpoints H, G, and C are the points inserted between the odd point B and the even point A. Draw a perpendicular line from each two adjacent points to the upper adjacent tangent plane to form a trapezoid, with the intersection of the hatch and the outer contour at B (a1, b1, c1), and the adjacent point H (a2, b2, c2).
[0082] The equation of the above plane is A1(x-x0)+B2(y-y0)+C(z-z0)=0.
[0083] The length of line segment BH
[0084] Draw a normal line perpendicular to the upward plane between point B and point H, and we can get the distance between the two line segments h and i as follows:
[0085]
[0086] According to the formula of the right triangle side, we can get the height of the trapezoid, which is the distance between the J endpoint and the I endpoint:
[0087] We further calculate the area of the trapezoid to be
[0088] Except for the outer contour endpoint and the perpendicular line of the normal vector of the adjacent point, the height distance of the remaining trapezoids is 1mm, which further simplifies the calculation. Figure 2 When the midpoints G, H, K, and J form a trapezoidal area S2, there is no need to calculate the distance between point J and point K, which is the height of the trapezoid.
[0089] The extrusion amount of line segment HB is J=K2·S, where K2 is the extrusion coefficient, which is set and adjusted according to the accuracy requirements of the model wire. By calculating the extrusion amount, it is possible to achieve reasonable extrusion printing of contours of different thicknesses, and finally complete the filling printing of complex models.
[0090] Existing five-axis printers lack data collection and monitoring during the printing process. When the printing environment requirements change, it is difficult for researchers to develop and control their functions, which leads to poor processing adaptability of the printing platform and inability to integrate functions under specific processing requirements in specific occasions, resulting in cumbersome processing technology and increased time costs. In addition, existing five-axis printers often use a single host system control and single material printing, which is cumbersome and unstable.
[0091] To this end, the embodiment of the present invention also provides a composite five-axis printing system, such as Figure 5As shown, it includes a host computer control system and a lower computer five-axis 3D printing execution system, wherein the host computer control system includes a PC-side CPU control system, a five-axis slicing algorithm module and a Raspberry Pi control system, and the five-axis slicing algorithm module is used to obtain G code according to the composite five-axis printing method described in the embodiment of the present invention; the PC-side CPU control system and the Raspberry Pi control system communicate through the communication port to coordinately control the lower computer five-axis 3D printing execution system, including the transmission of G code, online monitoring of five-axis 3D printing information and real-time control of five-axis 3D printing. After receiving the G code transmitted by the five-axis slicing algorithm module, the PC-side CPU control system and the Raspberry Pi control system send control instructions to the lower computer five-axis 3D printing execution system to drive the lower computer five-axis 3D printing execution system to work.
[0092] The lower machine five-axis 3D printing execution system includes a display module, a WiFi communication module, a five-axis linkage motion control module, a limit switch module to avoid stepper motor movement collision, a dual-nozzle extrusion system capable of composite material extrusion printing, a heating module for pre-treatment heating before printing, and a CPU integrated control board.
[0093] The CPU integrated control board includes the CPU main board and the CPU expansion board. The X-axis stepper motor, Y-axis stepper motor, and Z-axis stepper motor are connected to the CPU main board, and the U-axis stepper motor and V-axis stepper motor are connected to the CPU expansion board. The WiFi communication module is integrated on the CPU integrated control board, and the lower computer five-axis 3D printing execution system realizes real-time communication with the Raspberry Pi control system and the PC-side CPU control system through the WiFi communication module.
[0094] The five-axis linkage motion control module includes an X-axis stepper motor driver for controlling the direction and speed of the X-axis stepper motor, a Y-axis stepper motor driver for controlling the direction and speed of the Y-axis stepper motor, a Z-axis stepper motor driver for controlling the direction and speed of the Z-axis stepper motor, a U-axis stepper motor driver for controlling the direction and speed of the U-axis stepper motor, and a V-axis stepper motor driver for controlling the direction and speed of the V-axis stepper motor. The X-axis, Y-axis, Z-axis, U-axis, and V-axis stepper motor drivers are connected to the CPU integrated control board. The stepper drive output end feeds back the operating status signals of the X-axis stepper motor, the Y-axis stepper motor, the Z-axis stepper motor, the U-axis stepper motor, and the V-axis stepper motor to the upper computer through the lower computer. The upper computer makes a judgment based on the fed-back operating status signal and sends a control instruction to the lower computer. The lower computer adjusts the operating status of the X-axis stepper motor, the Y-axis stepper motor, the Z-axis stepper motor, the U-axis stepper motor, and the V-axis stepper motor through the stepper drive input end.
[0095] The display module is integrated by Raspberry Pi, which is used to display the real-time picture of the printing process captured by the camera, and is also used to display the operation control interface and printing progress of the host control system to monitor the printing status. Users can directly issue control instructions to the five-axis 3D printing execution system of the lower computer by touching the screen.
[0096] The dual-nozzle extrusion system includes a dual wire feed end, nozzle 1, nozzle 2, extruder 1 stepper motor, extruder 2 stepper motor and a heat dissipation unit, and the extruder 1 stepper motor and the extruder 2 stepper motor are connected to the CPU motherboard. The extruder stepper motor is driven by the corresponding extruder driver, and the printing wire enters from the wire feed end. Under the drive of the extruder stepper motor, it is extruded by the nozzle for additive printing. In this embodiment, the dual-nozzle extrusion system can print composite materials. The heat dissipation unit is used to cool the throat of the five-axis printer, including a heat dissipation fan and a fan speed regulator, and the fan speed regulator is used to adjust the speed of the heat dissipation fan.
[0097] The heating module includes nozzle 1, nozzle 2 and a heated bed capable of adjusting the temperature. The five-axis printing execution system receives instructions from the host computer control system through the WiFi communication module to adjust the temperature of nozzle 1, nozzle 2 and the heated bed.
[0098] The limit switch module includes X-axis limit switch, Y-axis limit switch, Z-axis limit switch, U-axis Hall sensor limit switch and V-axis limit switch, all of which are connected to the CPU integrated control board and are used for the five-axis printing execution system to find the zero position of the X, Y, Z, U, and V axes, as well as to limit the movement of the X, Y, Z, U, and V axes to the extreme positions.
[0099] The CPU integrated control board is also connected to a USB input port, through which the G code can be directly transmitted to the display module, realizing the command control of the lower computer's five-axis 3D printing execution system, simplifying the operating steps of the PC-side control system and overcoming the closed nature of the traditional five-axis single control system.
[0100] like Figure 6 As shown, the embodiment of the present invention further provides a control method of the composite five-axis printing system according to the embodiment of the present invention, comprising:
[0101] S1, modeling through the host computer control system;
[0102] S2. Obtaining G code according to the composite five-axis printing method described in an embodiment of the present invention, and outputting the G code to the PC CPU control system and the Raspberry Pi control system;
[0103] S3, the PC CPU control system or the Raspberry Pi control system sends the G code to the lower computer five-axis 3D printing execution system through the WiFi communication module. According to the processing instructions, the lower computer five-axis 3D printing execution system works and prints the model according to the planned processing trajectory;
[0104] During the processing, the PC CPU control system and the Raspberry Pi control system monitor the printing, and the printing status is displayed through the display module. When the printing environment requirements change, for example, printing needs to be temporarily stopped, it can be controlled by the PC CPU control system or the Raspberry Pi control system to issue the next instruction according to the printing requirements; after the printing is normal and matches the requirements, it is successfully printed.
[0105] The composite five-axis printing system provided by the present invention supports users to monitor the printing status in real time through the composite control system of "PC online control + Raspberry Pi control system", and controls the five-axis 3D printing execution system in real time according to the changing needs of the printing environment, overcoming the closedness of the single control system of the traditional five-axis printing system, reducing the cumbersome steps of the traditional control system, and having the advantages of openness and portability. The dual-nozzle extrusion system supports the printing of composite material models, and the printing model is scalable.
Claims
1. A composite five-axis printing method, comprising STL model input, extraction of model skeleton points, calculation of model cutting plane parameters, model slicing, coordinate transformation of slicing data and output of G code, characterized in that: The model is a complex model with internal and external contours. The composite five-axis printing method further includes performing the following operations between the steps of model slicing and coordinate transformation of slicing data: Determine whether there is filling interference between the inner and outer contours of the model: The point data generated by model slicing is used to form a set of point contours based on the principle of minimum adjacent distance. After fitting the point contour set to generate inner and outer contour polygons, the number of intersections between the shadow lines and the inner and outer contour polygons is determined by intersecting the shadow lines. If the number of intersections is greater than 2, there is filling interference between the inner and outer contours. The contour edge is scaled by a scaling algorithm to avoid conflicts between the fill path and the contour print extrusion; The scaled new model is hatched and the filling path is determined according to the intersection of the hatch and the plane contour. When there is interference between the filling of the inner and outer contours, the part of the filling path located in the inner contour is not extruded and filled. Calculation of extrusion amount of model variable layer thickness filling line segment: Calculate the angle change of each layer of filling through the total number of skeleton points, add path points between the paired inner contour intersection points and outer contour intersection points according to a certain length standard, and draw a normal vector perpendicular to the upper adjacent tangent plane for every two adjacent points to form a trapezoid. Determine the extrusion amount of the line segment between the two adjacent points according to the area of the trapezoid to achieve printing of contours of unequal thickness.
2. The composite five-axis printing method according to claim 1, characterized in that: The process of obtaining the set of point contours is as follows: for the first point read by the model, copy an identical point to the point array, use the distance formula between two points to calculate the point with the smallest distance except for its own point and move the first point to the new array; the point with the smallest distance calculates the new array in turn, and the last point is closed with the first point to generate the contour of the polygon; when there are multiple internal and external contour points, there will be points left in the array, and a new round of iteration is performed to generate a set of multiple contour points.
3. The composite five-axis printing method according to claim 1, characterized in that: The contour edges are scaled using a scaling algorithm, including: In the scaling algorithm, for each point pm2(x2,y2), take its two adjacent points pm1(x1,y1) and pm3(x3,y3), and pm1 and pm2 form a vector PM2 and PM3 form a vector vector Normalized normal vector for: Two normal vectors The average for: Calculating vectors The module b: Pair Vector After normalization, we get the vector Calculates two vectors The dot product a = (x1-x2)·(x3-x2)+(y3-y2)·(y1-y2) Calculate two vectors The angle α between them: The actual displacement ratio required delta is the manually set scaling distance; The displacement vector of point pm2 is The displaced point pm2' is the scaled point.
4. The composite five-axis printing method according to claim 1, characterized in that: The filling path is configured as follows: sort the lines in sequence according to the number of hatches; the end endpoints where the adjacent odd-numbered hatches intersect with the model contour and the end endpoints where the even-numbered hatches intersect with the contour constitute the tail filling path; the beginning endpoints where the adjacent even-numbered hatches intersect with the model contour and the beginning endpoints where the odd-numbered hatches intersect with the contour constitute the filling path.
5. The composite five-axis printing method according to claim 1, characterized in that: Model variable layer thickness filling line segment extrusion amount calculation, including: According to the total number of skeleton points w, calculate the angle change of each layer of filling The slope value of the shadow line of the next layer is replaced by k'=tan(B+bh), where B is the angle between the shadow line and the x-axis; The extrusion amount of the line segment between two adjacent points is J=K2·S, where S is the area of the corresponding trapezoid and K2 is the extrusion coefficient, which is set and adjusted according to the accuracy requirements of the model wire.
6. A composite five-axis printing system, characterized in that: The invention comprises a host computer control system and a five-axis 3D printing execution system of a lower computer, wherein the host computer control system comprises a PC-side CPU control system, a five-axis slicing algorithm module and a Raspberry Pi control system, wherein the five-axis slicing algorithm module is used to obtain G code according to the composite five-axis printing method described in any one of claims 1 to 5; the PC-side CPU control system and the Raspberry Pi control system are used to collaboratively control the five-axis 3D printing execution system of the lower computer, including the transmission of G code, online monitoring of five-axis 3D printing information and real-time control of five-axis 3D printing; the five-axis 3D printing execution system of the lower computer comprises a display module and a WiFi communication module for communicating with the host computer control system, wherein the display module is integrated by the Raspberry Pi and is used to display a real-time picture of the printing process captured by a camera, and is also used to display an operation control interface and printing progress of the host computer control system, and can directly issue control instructions to the five-axis 3D printing execution system of the lower computer in a touch screen manner.
7. The composite five-axis printing system according to claim 6, characterized in that: The lower machine five-axis 3D printing execution system also includes a five-axis linkage motion control module, a limit switch module to avoid stepper motor movement collision, a dual-nozzle extrusion system capable of composite material extrusion printing, and a heating module for pre-treatment heating before printing; The five-axis linkage motion control module includes an X-axis stepper motor driver for controlling the direction and speed of the X-axis stepper motor, a Y-axis stepper motor driver for controlling the direction and speed of the Y-axis stepper motor, a Z-axis stepper motor driver for controlling the direction and speed of the Z-axis stepper motor, a U-axis stepper motor driver for controlling the direction and speed of the U-axis stepper motor, and a V-axis stepper motor driver for controlling the direction and speed of the V-axis stepper motor; The dual-nozzle extrusion system includes dual wire feed ends, nozzle 1, nozzle 2, extruder 1 stepper motor, extruder 2 stepper motor and a heat dissipation unit. The extruder stepper motor is driven by the corresponding extruder driver. The printing wire enters from the wire feed end and is extruded from the nozzle for additive printing under the drive of the extruder stepper motor. The heat dissipation unit is used to cool the throat of the five-axis printer. The heating module includes nozzle 1, nozzle 2 and a hot bed capable of adjusting the temperature; The limit switch module includes X-axis limit switch, Y-axis limit switch, Z-axis limit switch, U-axis Hall sensor limit switch and V-axis limit switch, which are used to find the zero position of the X, Y, Z, U, and V axes, and to limit the movement of the X, Y, Z, U, and V axes to the extreme position.
8. The composite five-axis printing system according to claim 7, characterized in that: The heat dissipation unit includes a heat dissipation fan and a fan speed regulator, and the fan speed regulator is used to adjust the speed of the heat dissipation fan.
9. The composite five-axis printing system according to claim 7, characterized in that: The lower computer five-axis 3D printing execution system has a USB input port for directly transmitting the G code to the display module to realize the command control of the lower computer five-axis 3D printing execution system.
10. A control method for a composite five-axis printing system according to any one of claims 1 to 9, characterized in that: include: S1, modeling in the host computer control system; S2. Obtaining a G code according to the composite five-axis printing method according to any one of claims 1 to 5, and outputting the G code to a PC CPU control system and a Raspberry Pi control system; S3, the PC CPU control system or the Raspberry Pi control system sends the G code to the lower computer five-axis 3D printing execution system through the WiFi communication module. According to the processing instructions, the lower computer five-axis 3D printing execution system works and prints the model according to the planned processing trajectory; During the processing, the PC CPU control system and the Raspberry Pi control system monitor the printing, and the printing status is displayed through the display module. When the printing environment requirements change, the PC CPU control system or the Raspberry Pi control system can be used for control, and the next step of instructions can be issued according to the printing requirements; after the printing is normal and matches the requirements, it is successfully printed.
Citation Information
Patent Citations
Method of forming a three-dimensional (3D) article
CN112055642A
One-time forming 3D printing device
CN112297422A
Five-axis printing track generation method
CN116945601A
Workflow for layer-less multi-axis material extrusion
WO2021242966A1
