Next Article in Journal
Simulation Based Prediction of Compliance Induced Shape Deviations in Internal Traverse Grinding
Next Article in Special Issue
A Multiaxis Tool Path Generation Approach for Thin Wall Structures Made with WAAM
Previous Article in Journal
Dual-Axial Tool Servo Diamond Turning of Hierarchical Micro-Nano-Structured Surfaces
Previous Article in Special Issue
Influence of Tool Length and Profile Errors on the Inaccuracy of Cubic-Machining Test Results
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Generation of Efficient Iso-Planar Printing Path for Multi-Axis FDM Printing

Department of Mechanical and Aerospace Engineering, The Hong Kong University of Science and Technology, Hong Kong, China
*
Author to whom correspondence should be addressed.
J. Manuf. Mater. Process. 2021, 5(2), 59; https://doi.org/10.3390/jmmp5020059
Submission received: 23 April 2021 / Revised: 2 June 2021 / Accepted: 3 June 2021 / Published: 7 June 2021
(This article belongs to the Special Issue Advances in Multi-Axis Machining)

Abstract

:
The emerging multi-axis fused deposition modeling (FDM) printing process is a powerful technology for fabricating complicated 3D models that otherwise would require extensive support structures or suffer the severe stair-case effect if printed on a conventional three-axis FDM printer. However, because of the addition of two rotary axes which enables the printing nozzle to change its orientation continuously, and the fact that the printing layer is now curved, determining how a nozzle printing path to cover the layer becomes a non-trivial issue, since the rotary axes of the printer in general have a much worse kinematic capacity than the linear axes. In this paper, specifically targeting robotic printing, we first propose an efficiency indicator called the material deposition rate which considers both the local geometry of the layer surface and the kinematic capacities of the printer. By maximizing this indicator globally, a best drive plane direction is found, and then the classic iso-planar method is adopted to generate the printing path for the layer, which not only upholds the specified printing quality but also strives to maximize the kinematic capacities of the printer to minimize the total printing time. Preliminary experiments in both computer simulation and physical printing are carried out and the results give a positive confirmation on the proposed method.

1. Introduction

Fused deposition modeling (FDM) is one of the most popular types of additive manufacturing (AM), wherein a nozzle mechanically extrudes molten thermoplastic or metal materials layer by layer to generate three-dimensional surfaces or objects. Owing to its simplicity and flexibility, FDM printing has been widely used in various fields such as mechanical engineering, aerospace, and even biological engineering [1]. Traditionally, three-axis AM systems with three degree-of-freedom (DOF) are used for printing simple-featured objects, in which the part is accumulated in planar layers along a fixed nozzle orientation. This feature leads to an easy-handle fabrication process, while it also brings problems such as the stair-case effect, the need for support for overhang features, weak mechanical strength, and restriction of printing motions [2]. The advent multi-axis AM provides a considerably significant solution to resolve these problems. In general, for the multi-axis AM with additional DOFs, the nozzle axis does not have to align with the z-axis, and neither do adjacent printing paths have to lie in a same plane [3]. By carefully adjusting the nozzle orientation with respect to the surface normal, the defects such as the stair-case effect, local gouging problem, and the need for support that existed in three-axis printing can be eliminated, at least in theory.
Research in FDM AM is primarily focused on the following three principal issues: (1) the deposited materials, (2) the mechanism of hardware, and (3) the tool path planning and process control. Among the three, tool path planning/process control can be regarded as the most important module in terms of popularizing the AM technology. In the multi-axis case, efficient printing process planning, especially path planning, has always been a bottleneck due to the involvement of the additional rotary axes and the greatly increased complexity of the design models. Accordingly, specifically for 6-DOF robotic FDM printing, this paper presents an algorithm to automatically generate printing paths for efficiently printing an arbitrary freeform layer surface.
Due to the newness of multi-axis printing, there are few published research works about the multi-axis curved layer printing path generation. Dai et al. [4] proposed to use Fermat spiral curves as a printing path to cover a given curved surface; however, as evidently illustrated in [5], there exist uneven fills between filaments which may be detrimental to the attachment between the filaments and decreasing the strength of the printed object. Hence, such a pattern is much more suitable for a surface that is geometrically within holes and has a low requirement on filling quality. Chen et al. [6] adopted the iso-parametric method to plan a tool path in the parametric domain of the surface, which though does not consider the printing efficiency issue and may generate a skewed and poor-quality tool path if the parametrization or transformation are inappropriate. Recently, Li et al. [7] proposed using iso-geodesic distance contours as filling paths where a constant step-over between adjacent paths is ensured. However, this method by nature is specially designed to be boundary-conformal and, thus, does not consider the printing efficiency issue. Some prior studies [8,9,10,11] indeed have already attempted to improve the printing performance from different aspects, such as geometric accuracy, mechanical characteristics, and printing efficiency; nevertheless, they mainly considered these problems from the perspective of the workpiece, but not the printing system used for execution (e.g., the robotic manipulator) which though is directly related to the printing efficiency.
Targeting the aforementioned caveats, in this paper, an iso-planar type printing path planning method is proposed to improve the printing efficiency in consideration of the kinematical capacities of the printing system, as inspired by the well-known similar ideas in the realm of computer numerical control (CNC) machining. For instance, the machining potential field (MPF) method was first introduced by Chiou and Lee [12] for tool path generation. By constructing the potential field on the sculptured surface, it is dedicated to improving the machining efficiency by finding the optimal feed direction maximizing the feasible machining strip width. Extended from this idea, several studies [13,14,15] offered new optimal feed direction identification strategies, such as the work of Hu and Tang [15], which defined a vector field on the workpiece surface that encapsulates the relationship between the material removal rate and the feed direction, considering both the local geometry and the machine axes’ physical limits. However, these works in tool path generation are only suitable for machining, which is a material removal process, while printing is a material buildup process which is exactly opposite to machining in terms of how the final shape of a workpiece is formed. Therefore, in the proposed method, we focused on seeking an efficiency-optimized feed direction to generate a multi-axis printing path. Specifically, we first propose a printing efficiency indicator called the material deposition rate which considers both the local geometry of the printing layer surface and the kinematical capacities of the robotic FDM printer. By maximizing this indicator globally, the best drive plane direction is found next, based on which the classic iso-planar method is then employed to generate the printing paths for the layer surface.
The paper proceeds following the steps outlined as shown in Figure 1. First, in Section 2, we introduce a sampling-based indicator that encapsulates both the effective printing width and the kinematics-constrained feed rate. Then, in Section 3, we present the details of our iso-planar printing path generation method based on the proposed indicator. The results of the experiments and discussion are reported in Section 4, followed by the conclusion in Section 5.

2. Material Deposition Rate

Similar to five-axis milling, when planning a multi-axis printing path, both the nozzle location (NL) curves and the associated nozzle orientation need to be properly determined. In this section, we described in detail how to determine the effective printing width and the kinematic-constrained feed rate, which subsequently leads to the proposed indicator to evaluate the printing efficiency, i.e., the material deposition rate as a function of the feed direction θ .

2.1. Effective Printing Width

As shown in Figure 2, numerically, a single NL curve (e.g., C P ( θ ) ) identifies the nozzle movement during a printing process, which typically is represented as a series of sample points { p 1 ,   p 2 ,   ,   p m } with respect to the workpiece coordinate system (WCS) wherein the workpiece (i.e., the layer surface S) is defined. At the same time, a standard local frame f p - n p - k p is naturally defined at each point p on C P ( θ ) where θ is an angular parameter that determines the drive plane of this NL curve (see Section 2.3), while f p and n p are the feed direction and normal direction of the surface at p , respectively, and k p is the cross product of the former two.
In the realm of FDM printing, some previous research [16,17,18,19] studied various characteristics of the FDM process, and many mathematical models were proposed for the modeling of the geometry of the deposed material. Of all the proposed methods for modeling the cross-sectional shape of the deposited filaments, the ellipse model, which was originally proposed by Ahn et al. [17] and subsequently extended by Angelo1 et al. [19] with experimental validation, is commonly adopted. Therefore, the ellipse model is also adopted by us in this paper, which represents the cross-section of adjacent NL curves by two intersected ellipses. It should be mentioned that, for a genuine curved layer, both concave and convex cases should be assumed, thus the two different scenarios of adjacent filaments as shown in Figure 3. Considering that the modeling ellipse is very small while the printing layer is sufficiently smooth, the curve intersected by the n p - k p plane of point p and the layer surface can be approximated as an arc passing through p . The same approximation can also be applied to the intersection with the previous layer. Thus, the cross-sectional ellipse can be parametrically formulated in the n p - k p plane as:
[   k p   n p ] = [   s 2 c o s ( ρ ) h 2 ( s i n ( ρ ) 1 )   ]
where ρ is the angular parameter measured from the k p -axis, with s and h being the major-axis length and minor-axis length, respectively. In this paper, we assume that s is equal to the nozzle diameter and h is the layer thickness at p.
Referring to [11,15], to determine how far away the two adjacent printing paths should be placed, we recall that the cusp height is commonly used for gauging the surface accuracy in CNC machining. However, considering the unique characteristics of FDM, we instead opt to adopt a cusp-area criterion for a better measurement of printing quality, based on the observation that, when the melted material is extruded, it will be squeezed as its shape is bounded by its neighbor’s re-solidified filaments. Therefore, there is a cusp-area between the two adjacent ellipses, which is denoted as the overlapping area Ao(p) (i.e., the region shaded in black in Figure 3). Besides, there are also two enclosed gap areas Ag(p) (the shaded in blue in Figure 3) that are sandwiched between the adjacent ellipses and the previous layer surface as well as between the ellipses and the current layer surface, respectively. As such, the cusp-area equilibrium criterion—Ag(p) = Ao(p)—is thus proposed to help determine the effective printing width w e f f which is the distance between the two intersection points between an ellipse and its two neighboring ellipses. The intersection position satisfying the cusp-area equilibrium criterion can be numerically obtained by applying the Gauss–Green formula to the segmented area of ellipses [20], which will be designated by the angle ρ   * (see Figure 3). By combining with Equation (1), the effective printing width w e f f at point p can then be expressed as:
w e f f = s   c o s   ρ   *
It can be seen that w e f f is highly related to the local curvature at point p in the n p - k p plane; along a different feed direction θ, the value of w e f f will change accordingly to satisfy the cusp-area equilibrium criterion. This implies that w e f f is a function of θ, which can be written as w e f f ( θ ) .

2.2. Kinematic-Constrained Feed Rate

To better determine the nozzle feed rate for upholding the printing quality, not only should the printing path be carefully designed, but so should the motion of the robotic manipulator. During the transformation from a printing task defined in the Cartesian space to the configuration space of the robotic manipulator, the kinematic redundancy can be solved by taking the printing task as the priority over the degree redundancy of the robotic manipulator. In this sub-section, we will first introduce the classic kinematic redundancy problem and the singularity avoidance problem, and then describe in detail how to optimize the nozzle feed rate of printing.

2.2.1. Kinematic Redundancy and Singularity Avoidance

As the self-rotation of the nozzle-axis is irrelevant to printing, a general printing task normally requires five DOFs with 3-DOF for positioning and 2-DOF for identifying the orientation of the nozzle. As a result, when an industrial 6-DOF robotic manipulator is applied for printing, such as the frequently used UR5 manipulator shown in Figure 4, the extra DOF will result in a functional redundancy in robotic motion planning (for more details about the kinematic redundancy, please refer to [21,22,23]).
By default, the printing path is firstly defined in the WCS. According to the geometry information of the workpiece, each NL point on the printing path can be expressed as a vector ( x w , y w , z w ,   i ,   j ,   k ) defining its point location and the associated orientation. In addition, another two frames are introduced to specify the coordinate transformation: the nozzle coordinate system (NCS) and the base coordinate system (BCS) of the manipulator. As shown in Figure 4, the NCS is defined at the tip of the nozzle, while the WCS is fixed on the end-effector of the manipulator. Since the central point of the nozzle is taken as the origin of NCS and its z n -axis is set exactly coincident with the NL orientation (see the auxiliary graph in Figure 4), the NCS can thus be expressed as ( x n , y n , z n ,   α ,   β ,   γ ) where the Euler angles α ,   β ,   and   γ indicate the axle rotation with respect to the WCS. The transformation from WCS to NCS can be identified by a homogeneous transformation matrix T W N as:
T W N = t r a n s ( x n , y n , z n ) r o t ( z , α ) r o t ( x , β ) r o t ( z , γ )
where t r a n s () and r o t () are the standard translation and rotation matrices, respectively. Thanks to the consistency of nozzle orientation defined in the NCS and WCS, a simplified relation between ( i ,   j ,   k ) and ( α ,   β ,   γ ) can be extracted from Equation (3) as:
O w T = ( i j k ) T = [ s i n α s i n β c o s α s i n β c o s β ] T
This relation reveals the fact that the angle parameter γ [ π ,   π ] in NCS can be arbitrary, which is the cause of kinematic redundancy.
To facilitate the kinematic analysis of robot manipulators, the configuration Θ is used to denote the joint variables of the manipulator with respect to BCS. Now that the redundant γ implies infinite joint solutions for the end-effector posture, it can be capitalized for a better planning of the joint configuration under certain specific constraints, e.g., to avoid the singularities. As it is well known in robotic path planning, a good path should not only bypass any singularities but also preferably stay away from them, as near a singular configuration, even a small change in the operational space on the printing path would cause a drastic change in the joint motion in the configuration space in order to maintain the desired trajectory [16]. Therefore, singularity avoidance is chosen by us as one objective to optimize the kinematic performance. To evaluate a singular state of manipulator configuration, Huo and Baron [24] proposed a manipulation performance index w P S , called the parameter of singularity (PS), which is a function of angle γ and defined as:
w P S ( γ ) = σ 1 σ 2 σ m σ 1 / σ m ,             γ [ π ,   π ]
where scalars σ 1 , σ 2 , , σ m are the eigenvalues of the geometric Jacobian matrix sorted in the descending order (more details can be found in [24]). As w P S varies with angle γ , different configurations will lead to different w P S ’s, and the smaller it is, the better conditioning is the manipulator. Therefore, this measure is chosen by us as the criterion for evaluating and, thus, to effectively avoid the singularities. For all possible configurations, the optimization objective aims at minimizing w P S to physically place the manipulator as far away as possible from any singular state. Specifically, for a single nozzle posture ( x w , y w , z w ,   i ,   j ,   k ) defined by its position and orientation, a minimized singularity parameter w P S ,   m i n can be resolved by solving the minimization problem of the following form:
w P S ,   m i n ( γ   * ) = m i n { w P S ( γ 1 ) ,   w P S ( γ 2 ) , w P S ( γ k ) } , γ i [ π ,   π ] ,     γ 1 = π ,     γ k = π .
With γ   * identifying the posture of the end-effector ( x n , y n , z n ,   α ,   β ,   γ * ) , we can then finally determine the joint configuration Θ * expressed as a set of six joint angles ( q 1 ,   q 2 ,   q 3 ,   q 4 , q 5 ,   q 6 ) by the inverse kinematic transformation (IKT) which is a standard computation procedure in robotics [25].

2.2.2. Kinematic-Constrained Feed Rate Optimization

For the robotic arm, it is physically constrained by its configuration limits, such as the velocity, acceleration and jerk, which are also called the kinematic capacities. To make the robotic arm operate within its kinematic capacities, motion planning considering the kinematic constraints is important, as a stable end-effector with less vibration is crucial for maintaining a smooth and steady nozzle path. For this purpose, the feed rate, i.e., the sweeping speed of the nozzle tip, should be adjusted/controlled carefully to assure that the motion of robotic manipulator is always within its kinematic capacities.
Specifically, to calculate the joint velocity, acceleration and jerk at a single NL point that lies on an NL curve, the continuous feed rate scheduling problem is first converted to a discrete form by sampling the NL curve into equal-spaced sample points. The arc length between each pair of adjacent sample points is approximated by the chord-length l c , which is assumed to be sufficiently small. As aforementioned, for any sample NL point p, its corresponding configuration can be determined by choosing from appropriate angle parameters according to the stipulated secondary criterion: the singularity avoidance. Let p 0 and {   p 1 , p 2 } be the preceding and succeeding sample points of p, respectively, and Θ 0 ,   Θ ,   Θ 1 ,   and   Θ 2 their corresponding joint configurations, with each configuration represented by six joint angles ( q 1 ,   q 2 ,   q 3 ,   q 4 , q 5 ,   q 6 ) . Referring to [26], for each point p , its velocity, acceleration and jerk of those corresponding six joints can be numerically derived by:
{ V = f ( θ ) ( Θ 1 Θ ) l c , V = ( v 1 , v 2 ,     v 6 ) A = f ( θ ) 2 ( Θ 0 2 Θ + Θ 1 ) l c 2 , A = ( a 1 , a 2 ,     a 6 ) J = f ( θ ) 3 ( Θ 0 3 Θ + 3 Θ 1 Θ ) l c 3 , J = ( j 1 , j 2 ,     j 6 )
where f ( θ ) is the feed rate at point p , which is a function of feed direction θ with respect to the local geometry, and l c denotes the chord-length. To satisfy the physical constraints, each joint should be constrained by its maximum values:
{ v j   v j , m a x ,     v j V a j   a j , m a x ,     a j A j j   j j , m a x ,     j j J
where v j , m a x , a j , m a x ,   and   j j , m a x denote respectively the maximum (angular) velocity, acceleration, and jerk of joint j , all of which are constants. Combining Equation (7) with Equation (8), the maximized feed rate under the velocity, acceleration and jerk constraints along feed direction θ i can then be identified, which will be denoted as f m a x ,   v ( θ i ) , f m a x ,   a ( θ i ) , and f m a x ,   j ( θ i ) respectively. Naturally, the most restrictive of the above three should be regarded as the maximum allowed feed rate at p in the θ i direction, i.e., f * ( θ i ) :
f * ( θ i ) = m i n { f m a x ,   v ( θ i ) ,     f m a x ,   a ( θ i )   a n d   f m a x ,   j ( θ i ) } ,     θ i [ 0 ,   π ]
By now, the most conservative feed rate under the physical constraints of the robotic manipulator considering the singularity-avoidance has been established. Furthermore, combining with the effective printing width constraint (Section 2.1), we next proposed an indicator of printing efficiency that will synthesize on both these two feed-direction sensitive functions.

2.3. Indicator-Determined Preferable Feed Direction

From the perspective of printing, as the surface layer to be printed is given with a specific geometry and thickness, it naturally leads to a fixed volume to be filled by the deposited material. Then, if the volume deposited per unit time is larger, a shorter time will be needed to infill this volume. Since the cross-section of a filament is regarded as an ellipse, the printed volume along a single printing path is thus that of an elliptic cylinder. Considering this fact, an indicator named the material deposition rate v e ( θ ) is proposed here to evaluate the printing efficiency, which represents the printed volume per unit time. Explicitly, v e ( θ i ) at any NL point is defined as:
v e ( θ i ) = π h w e f f ( θ i ) f * ( θ i ) ,           θ i [ 0 ,   π ]
where h is the thickness of the current printing layer, w e f f ( θ i ) is the effective width, and f * ( θ i ) is the most conservative feed rate determined by the physical constraints and singularity avoidance along the feed direction θ i .
To construct the indicators of the sample points on the layer surface S and find out the representative optimal feed directions for the whole surface, we propose a sampling-based strategy. For any sample point on S, the potential feed direction in the range of [ 0 ,   π ] is first discretized into n equal interval radians, i.e., O = { θ 1 = 0 ,   θ 2 ,   , θ n = π } . Assuming that S is given as a triangulated mesh, its vertices are chosen as the sampling points for evaluation by the proposed indicator and collectively called the sampling point set V = { s 1 ,   s 2 , ,   s m } . At each sample point s i , the effective printing width w e f f ( θ i ) and the optimized feed rate f * ( θ i ) for any θ i   [ 0 ,   π ] can be found as described in the previous sections. Then, by Equation (10), the material deposition rate on S is uniquely defined as a continuous scalar function of the feed direction θ i at point s i . However, although there is an optimal feed direction θ i * and the corresponding maximum v e ( θ i   * ) for each s i , our objective is to find a single feed direction (as associated with a single drive plane) that will maximize the total material deposition rate for the entire S. For this purpose, the following discrete optimization formula is proposed:
v e ( θ   * ) = m a x {   1 m   ( j = 1 m v e ( θ 1 )   , j = 1 m v e ( θ 2 ) , ,   j = 1 m v e ( θ n )   } ,   θ i [ 0 ,   π ]
where 1 m j = 1 m v e ( θ i ) denotes the average material deposition rate at θ i among m sampling points. The single solution to Equation (11), i.e., θ * , will then be taken as the preferred printing direction for the entire layer surface S. Below, Algorithm 1 gives the pseudo-codes of this procedure for finding angle θ * .
Algorithm 1 Optimized feed direction determination
Input: A triangulated mesh surface S with vertices set V
Output: Optimized feed angle θ *
              
//* Refer to Section 2.1 and Section 2.2
1 for  s i V and θ [ 0 ,   π ]   do
2    w e f f ( θ i ) E f f P r i n t i n g W i d t h ( s i ,   r k , i , δ h * ) by Equation (2)
3    γ * w P S ( γ * ) R e d u n d a n c y A v o i d a n c e ( s i ,   T W N ,   w P S ( γ ) ) by Equation (6)
4    Θ * IKT ( x n , y n , z n ,   α ,   β ,   γ * ) referring to [25]
5    f * ( θ i ) E f f F e e d R a t e ( s i , Θ * , v m a x ,   a m a x ,   j m a x ) by Equation (9)
6 end
              
//* Refer to Section 2.3
7 v e ( θ i ) Material   Deposition   Rate ( w e f f ( θ i ) , f * ( θ i ) ,   h ,   s ) by Equation (10)
8 θ * m a x   { 1 / m ( j = 1 m v e , j ( θ i ) )   } by Equation (11)
9 return θ *
With the drive plane direction found (as identified by the single angle θ * from Equation (11)), we next proceed to describe how to generate an iso-planar nozzle path to print the entire S.

3. Optimized Iso-Planar Path Generation

Figure 5 gives an illustration of NL curve generation based on the iso-planar method. Basically, the NL curves C P , i ( θ * ) are the intersections between the layer surface S and a series of parallel driving planes. For each drive plane Q, it is perpendicular to the plane x w o w y w and with a normal ( s i n ( θ * ) , c o s ( θ * ) ,   0 ) in x w y w z w .
Let Q 1 , Q 2 Q k denote these yet-to-be-determined successive drive planes, each inducing an NL path, e.g., C P , i ( θ * ) in Figure 5, which is sampled into a discrete form. The very first drive plane Q 1 is readily defined—it is simply an extreme plane of S with a normal vector of ( s i n ( θ * ) , c o s ( θ * ) ,   0 ) . The approximation as introduced in [6] provides a way to determine the sample density of an NL curve, i.e., the forward step l f between any two adjacent points p i and p i + 1 is approximated by the chord length satisfying the chord-error constraint δ c * , which can be explicitly expressed as:
l f = p i p i + 1 ¯ = 8 δ c * r f 4 ( δ c * ) 2
where r f is the curvature radius of S along the direction of θ * at point p i and δ c * is the specified maximal chord-error.
For the feed-material flow, it is achieved by the mechanics of the motor controllers of the 3D printer. In our experiment setting, the motor control of the extrusion system works by using piecewise linear segments to approximate a smooth curve. As shown in Figure 6, to synchronize the nozzle motion with the material extrusion, the volume-equilibrium between the deposited material and the feed material is used to determine the feed step l m . Specifically, this volume equilibrium, of which the left side is the volume of the deposited material from p i to p i + 1 and the right one represents the cylinder volume of feed material from e i to e i + 1 , is given as:
π 4 s h l f = π r m 2 l m
where the nozzle diameter s , the layer thickness h , and the radius of feed material r m are user-determined and l f is the forward step computed by Equation (12). Accordingly, the feed step of the supplied filament l m is fully decided.
As for the nozzle orientation assignment, we enforce that the nozzle axis should align with the surface normal at the NL point, lest the local gouging between the printed layer and the nozzle may occur. In such a way, a single NL curve containing the nozzle location and the orientation can be well determined.
After the initial NL curve is decided, its adjacent path can be expanded accordingly. Akin to carefully controlling the sampling density of an individual NL curve, to uphold the printing quality, the density of NL curves should also be strictly controlled. Let w s denote the side-step distance between two arbitrary adjacent drive planes. As discussed in Section 2.1, each point on an NL curve C P ( θ * ) has a corresponding w e f f value, even along the same printing direction. To determine the side-step w s for the current NL curve, the minimal one w s * among all the m sample points on the NL curve will be taken as the most conservative side-step, i.e.,
w s * ( θ * ) = min { w e f f 1 ( θ * ) ,   w e f f 2 ( θ * ) ,   w e f f m ( θ * ) }
Starting from the first drive plane Q 1 and its corresponding NL curve, by applying Equation (14), we obtained the second drive plane Q 2 and its NL curve, then the third Q 3 and its NL curve, …., until the last one Q k and its NL curve when the opposite extreme edge of S was reached. As the side-step w s * ( θ * ) is adaptively decided, the material deposition becomes more even and regular, which is opposite to the conventional equal-distance side-step approach. Algorithm 2, given below, summarizes this procedure.
Algorithm 2 Efficiency optimized iso-planar printing path generation
Input: (1) A triangulated mesh surface S with vertices set V
   (2) Drive planes Q
   (3) Optimized feed direction θ *
Output: The computed NL paths C P ( θ * ) (both nozzle location p and orientation n)
              
1 for  Q j Q  do
2      { P j } Q j S
    //* Single NL path determination
3   for  p i P j  do
4        [ f p , i , n p , i , k p , i ] L C S ( p i )
5        l f F o r w a r d S t e p ( p i , f p , i ,   δ c * ,   r f ) by Equation (12)
6       if   p i p i + 1 >   l f
7          p i + 1   = p i + l f
8       else
9          p i + 1   = p i + 1  
10       end
11        n i + 1   N o r m a l ( p i + 1   ,   V ,   E )
12  end
13    C P , j ( θ * ) = [ p ,   n ]
    //* Next driving plane with side-step determination
14      w s * ( θ * )   m i n   { E f f P r i n t i n g W i d t h ( h , s ,   r k , C P , j ( θ * )   ) } by Equation (14)
15    P l a n e P a r a m ( Q j + 1 ) = P l a n e P a r a m ( Q j ) + w s * ( θ * )
16 end
              
//* Output all the computed NL paths
17  return  C P ( θ * )

4. Results and Discussion

To validate the proposed multi-axis nozzle path planning methodology, the prescribed algorithms have been implemented by us using MATLAB. In addition to computer simulation, as shown in Figure 7, for carrying out physical printing experiments, we built a prototype of a robotic manipulator-based multi-axis FDM printing system which integrates a popular 6-DOF UR5 robotic manipulator with a nozzle extruder. The processing parameters used in the experiments are listed in the following Table 1:
In total, there are four printing surfaces selected for testing the proposed algorithms, i.e., a saddle surface (Figure 8a), a bicycle seat surface (Figure 8b), and two freeform surfaces with concave and convex regions (Figure 8c,d). For these test surfaces, which are originally given in CAD NURBs format, they are first discretized into triangulated meshes with the help of the software HyperMesh. During the process of triangulation, the specified maximal chord-error δ c * is used as a control variable of point sampling, so to ensure the accuracy of the mesh models. Then, the triangulated meshes as shown in Figure 8 are used as the input to the proposed algorithms, and the vertices of the meshes are used to calculate the material deposition rate.
After running Algorithm 1 using the parameters of Table 1, the v e ( θ ) among different feed angle θ for the four test models are computed and displayed in Figure 9, with both the optimized angle and its corresponding deposition rate annotated. For S1, as shown in Figure 9a, the indicator indicates several distinct local maxima, and the best of which occurs at θ * = 158 ° ( 0.878 π   rad ) with a maximum v e ( θ * ) = 0.599 mm3/s. For the second model, S2 shown in Figure 9b, since the surface is symmetric about the x-axis, the indicator v e ( θ ) shows a symmetry about θ = 90 ° (barring the inaccuracy due to the meshing and numerical errors), and a global maximum v e ( 39 °   ( 0.217 π   r a d ) ) is identified. For the two freeform surfaces S 3 and S 4 (Figure 9c,d), the optimized angles are 22 ° and 158 ° , respectively, while there is little difference between the deposition rates with various angles, especially for S 4 . This is because, for these two surfaces, for any direction, the intersection curve between the corresponding drive plane and the surface always has portions of large curvature, which makes it difficult for Algorithm 1 to find a distinguishingly better direction angle.
With the optimal angle θ * found by Algorithm 1, Algorithm 2 (see Section 3) is then executed, which iteratively generates the NL paths for the given curved surfaces. Finally, these NL curves are connected in a zig-zag pattern to form the continuous printing paths, as shown in Figure 10.
Among the four surface models, two are selected further for physical printing tests, i.e., the saddle surface S 1 and the bicycle seat surface S 2 . For these two surfaces, the printing paths generated from Algorithm 2 are first converted into the G-codes of the homebuilt multi-axis FDM printing system and then executed. For comparison purposes, a benchmark printing path is also executed for each of the two surfaces. To facilitate the printing, a support-base is pre-fabricated beforehand for each of the two surfaces. Figure 11 displays some snapshots of the two printing processes, wherein the red surfaces are the partially printed layers while the support-bases are in black.
Figure 12 displays the final printed surfaces S 1 and S 2 , respectively, using both ours and the benchmarking method. In Figure 12a,d which show the printed parts using the proposed method, the black lines mark the optimized feed directions of the printing paths, with the optimized angles tagged by θ * , and w s denoting the side step between the two involved adjacent NL curves. For a more detailed examination, the regions circled in green are magnified, as shown Figure 12b,e, respectively. As a whole, the re-solidified material is well deposited and evenly arranged onto the support-base, which owes much to the adaptive determination of both the side step and forward step. However, the zoomed pictures also indicate that over-extrusion or under-extrusion of the deposited material may not be fully eliminated, for which we offer the following explanations. First, as aforementioned in Section 3, the motor control of the extrusion system in our setup is based on the piecewise linear approximation of a smooth NL curve, which may induce certain inaccuracy. Secondly, the current adaptive side-step decision is based on a simplified ellipse model, which may incur inaccuracy in the actual amount of the deposited material. Thirdly, the controller of the UR5 arm may automatically alter the scheduled feed rate during the printing process whenever it deems necessary, which also affects the deposition rate. Regarding the comparison, Figure 12c,f shows photos of the printed S1 and S2 using the benchmarking method which is still the iso-planar method except that the drive plane direction is arbitrary. Note that, except for the different directions of the drive planes, both the proposed method and the benchmarking method use the identical method to determine the side-step w s and the feed rate. Therefore, as the photos show, both the proposed method and the benchmarking method are similar in terms of printing quality.
The real printing time and the total printing length have been recorded by the controller of our homebuilt multi-axis printer and they are listed in Table 2. The results indicate that the proposed method has reduced the total printing time against the benchmarking method by 10.8% and 35.5%, respectively, for S 1 and S 2 . For these improvements, we offer several plausible explanations. The first and also the primary one is that, by considering the effective printing volume as a global optimization objective, the proposed method has effectively determined an optimized drive plane angle to minimize the total printing time. Secondly, as revealed by the total path length data shown in Table 2, the printing paths generated by the proposed method are shorter than that by the benchmark method, which is chiefly due to the fact that, as the proposed indicator involves the effective printing width which is related to the local curvature of the printing layer, a higher deposition rate is always sought locally, which in turn will reduce the total printing length (since the total printing volume is fixed). Finally, it is noted that the proposed indicator considers not only the local curvature of the printing layer but also the kinematic capacities of the robot arm. Altogether, these factors contribute to a significant improvement in printing efficiency by the proposed method.

5. Conclusions

The primary objective of this paper is to develop a multi-axis printing path generation algorithm for an arbitrary curved freeform layer, such that the kinematic capacities of the 6-DOF robot arm (which enables the rotation of the nozzle) can be fully utilized while the required printing quality in specific tolerance is upheld. Our solution is to first establish a printing efficiency indicator that considers both the local geometry of the layer surface and the kinematic capacities of the robot arm. The classic iso-planar method is then adopted to generate a printing path; wherein, the normal of the parallel drive planes is exactly the one that globally maximizes the efficiency indicator and the side-step between adjacent drive planes is adaptively adjusted to maintain the required printing quality. We have carried out physical printing experiments of the proposed method and compared with some benchmark printing paths, and the preliminary results give a positive confirmation of the proposed method.
Future work will focus on three topics. First, while the iso-planar type of printing path is prevailing in practice, other types do exist, such as the parallel-contour type and its various variations. Thus, it is natural to inquire if similar ideas of this paper can also be applied or extended to some of those non-iso-planar printing path patterns. Secondly, at present, the nozzle orientation is mechanically assigned—it is simply aligned with the surface normal at the NL point. Since the change of the nozzle orientation has a huge impact on the joint motions of the robot arm, it is plausible to include the nozzle orientation as a variable to optimize, tending to all the constraints such as collision-avoidance. Finally, our proposed printing path generation method is restricted to a given printing layer, while the printing layers are generated independently of how the printing paths are generated on them. Aiming at further improving the printing efficiency, it will be interesting to see if these two processes can be coupled together.

Author Contributions

Conceptualization, D.B.; Methodology, D.B.; Supervision, K.T.; Validation, F.X.; Writing—original draft, D.B.; Writing—review & editing, F.X. and K.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

θ Angle used to indicate the feed direction
C P ( θ ) A single nozzle location curve, a function of θ
f p Feed direction at point p
n p Normal direction of the surface at point p
ρ Angular parameter defined in the n p - k p plane
hMinor-axis length of filament ellipse (equal to the layer thickness)
sMajor-axis length of filament ellipse (equal to the nozzle diameter)
w e f f Effective printing width
Ag(p)Enclosed gap area
Ao(p)Overlapping area
WCSWorkpiece coordinate system
NCSNozzle coordinate system
BCSBase coordinate system of the manipulator
T W N Coordinate transformation from WCS to NCS
( x w , y w , z w ,   i ,   j ,   k ) A single nozzle location point defined by position ( x w , y w , z w ) and its associated orientation ( i ,   j ,   k ) with respect to WCS
( x n , y n , z n ,   α ,   β ,   γ ) NCS frame described with respect to WCS in terms of translation vector ( x n , y n , z n ) and the Euler angles represented rotation vector ( α ,   β ,   γ )
w P S ( γ ) Parameter of singularity, a function of γ
Θ = ( q 1 ,   q 2 ,   q 3 ,   q 4 , q 5 ,   q 6 ) Joint configurations of the robotic manipulator
V = ( v 1 ,   v 2 ,   , v 6 ) Joint velocities of the robotic manipulator
A = ( a 1 ,   a 2 , , a 6 Joint accelerations of the robotic manipulator
J = ( j 1 ,   j 2 ,   , j 6 ) Joint jerks of the robotic manipulator
v e ( θ ) Material deposition rate, a function of θ
f ( θ ) Feed rate, a function of θ
l f Forward step between adjacent NL points
w s Side step between adjacent NL paths
Q Drive plane
S Mesh surface
V Vertices set of the meshed surface

References

  1. Gao, W.; Zhang, Y.; Ramanujan, D.; Ramani, K.; Chen, Y.; Williams, C.B.; Wang, C.C.L.; Shin, Y.C.; Zhang, S.; Zavattieri, P.D. The status, challenges, and future of additive manufacturing in engineering. CAD Comput. Aided Des. 2015, 69, 65–89. [Google Scholar] [CrossRef]
  2. Etienne, J.; Ray, N.; Panozzo, D.; Hornus, S.; Wang, C.C.L.; Martínez, J.; McMains, S.; Alexa, M.; Wyvill, B.; Lefebvre, S. Curvislicer: Slightly curved slicing for 3-axis printers. ACM Trans. Graph. 2019, 38, 1–11. [Google Scholar] [CrossRef] [Green Version]
  3. Chakraborty, D.; Aneesh Reddy, B.; Roy Choudhury, A. Extruder path generation for curved layer fused deposition modeling. CAD Comput. Aided Des. 2008, 40, 235–243. [Google Scholar] [CrossRef]
  4. Dai, C.; Wang, C.C.L.; Wu, C.; Lefebvre, S.; Fang, G.; Liu, Y.J. Support-free volume printing by multi-axis motion. ACM Trans. Graph. 2018, 37, 1–14. [Google Scholar] [CrossRef] [Green Version]
  5. Zhao, H.; Gu, F.; Huang, Q.X.; Garcia, J.; Chen, Y.; Tu, C.; Benes, B.; Zhang, H.; Cohen-Or, D.; Chen, B. Connected fermat spirals for layered fabrication. ACM Trans. Graph. 2016, 35, 1–10. [Google Scholar] [CrossRef]
  6. Chen, L.; Chung, M.F.; Tian, Y.; Joneja, A.; Tang, K. Variable-depth curved layer fused deposition modeling of thin-shells. Robot. Comput. Integr. Manuf. 2019, 57, 422–434. [Google Scholar] [CrossRef]
  7. Li, Y.; He, D.; Wang, X.; Tang, K. Geodesic distance field-based curved layer volume decomposition for multi-axis support-free printing. arXiv 2020, arXiv:2003.05938. [Google Scholar]
  8. Singamneni, S.; Roychoudhury, A.; Diegel, O.; Huang, B. Modeling and evaluation of curved layer fused deposition. J. Mater. Process. Technol. 2012, 212, 27–35. [Google Scholar] [CrossRef]
  9. Zhao, D.; Guo, W.; Gao, F. Research on curved layer fused deposition modeling with a variable extruded filament. J. Comput. Inf. Sci. Eng. 2020, 20, 1–12. [Google Scholar] [CrossRef]
  10. Isa, M.A.; Lazoglu, I. Five-axis additive manufacturing of freeform models through buildup of transition layers. J. Manuf. Syst. 2019, 50, 69–80. [Google Scholar] [CrossRef]
  11. Xie, F.; Bi, D.; Tang, K. A potential field based multi-axis printing path generation algorithm. Int. J. Comput. Integr. Manuf. 2020, 33, 1277–1299. [Google Scholar] [CrossRef]
  12. Chiou, C.J.; Lee, Y.S. A machining potential field approach to tool path generation for multi-axis sculptured surface machining. CAD Comput. Aided Des. 2002, 34, 357–371. [Google Scholar] [CrossRef]
  13. Liu, X.; Li, Y.; Ma, S.; Lee, C.H. A tool path generation method for freeform surface machining by introducing the tensor property of machining strip width. CAD Comput. Aided Des. 2015, 66, 1–13. [Google Scholar] [CrossRef]
  14. Kumazawa, G.H.; Feng, H.Y.; Barakchi Fard, M.J. Preferred feed direction field: A new tool path generation method for efficient sculptured surface machining. CAD Comput. Aided Des. 2015, 67–68, 1–12. [Google Scholar] [CrossRef]
  15. Hu, P.; Tang, K. Five-axis tool path generation based on machine-dependent potential field. Int. J. Comput. Integr. Manuf. 2016, 29, 636–651. [Google Scholar] [CrossRef]
  16. Boschetto, A.; Bottini, L. Roughness prediction in coupled operations of fused deposition modeling and barrel finishing. J. Mater. Process. Technol. 2015, 219, 181–192. [Google Scholar] [CrossRef]
  17. Ahn, D.; Kweon, J.H.; Kwon, S.; Song, J.; Lee, S. Representation of surface roughness in fused deposition modeling. J. Mater. Process. Technol. 2009, 209, 5593–5600. [Google Scholar] [CrossRef]
  18. Boschetto, A.; Giordano, V.; Veniali, F. Modelling micro geometrical profiles in fused deposition process. Int. J. Adv. Manuf. Technol. 2012, 61, 945–956. [Google Scholar] [CrossRef]
  19. Di Angelo, L.; Di Stefano, P.; Marzola, A. Surface quality prediction in FDM additive manufacturing. Int. J. Adv. Manuf. Technol. 2017, 93, 3655–3662. [Google Scholar] [CrossRef]
  20. Hughes, G.B.; Chraibi, M. Calculating ellipse overlap areas. Comput. Vis. Sci. 2012, 15, 291–301. [Google Scholar] [CrossRef]
  21. Seereeram, S.; Wen, J.T. Global approach to path planning for redundant manipulators. In Proceedings of the IEEE International Conference on Robotics and Automation, Atlanta, GA, USA, 2–6 May 1993; Volume 2, pp. 283–288. [Google Scholar]
  22. Marani, G.; Kim, J.; Yuh, J.; Chung, W.K. A real-time approach for singularity avoidance in resolved motion rate control of robotic manipulators. Proc. IEEE Int. Conf. Robot. Autom. 2002, 2, 1973–1978. [Google Scholar]
  23. Huo, L.; Baron, L. The joint-limits and singularity avoidance in robotic welding. Ind. Rob. 2008, 35, 456–464. [Google Scholar] [CrossRef] [Green Version]
  24. Huo, L.; Baron, L. The self-adaptation of weights for joint-limits and singularity avoidances of functionally redundant robotic-task. Robot. Comput. Integr. Manuf. 2011, 27, 367–376. [Google Scholar] [CrossRef]
  25. Kebria, P.M.; Al-Wais, S.; Abdi, H.; Nahavandi, S. Kinematic and dynamic modelling of UR5 manipulator. In Proceedings of the 2016 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Budapest, Hungary, 9–12 October 2016; pp. 4229–4234. [Google Scholar]
  26. Hu, P.; Chen, L.; Tang, K. Efficiency-optimal iso-planar tool path generation for five-axis finishing machining of freeform surfaces. CAD Comput. Aided Des. 2017, 83, 33–50. [Google Scholar] [CrossRef]
Figure 1. Flow chart of the proposed method.
Figure 1. Flow chart of the proposed method.
Jmmp 05 00059 g001
Figure 2. A printing nozzle location (NL) curve defined in WCS and its local frame.
Figure 2. A printing nozzle location (NL) curve defined in WCS and its local frame.
Jmmp 05 00059 g002
Figure 3. Gap-area equilibrium for the concave and convex situations.
Figure 3. Gap-area equilibrium for the concave and convex situations.
Jmmp 05 00059 g003
Figure 4. UR5 robotic manipulator with a nozzle.
Figure 4. UR5 robotic manipulator with a nozzle.
Jmmp 05 00059 g004
Figure 5. Iso-planar pattern NL path generation.
Figure 5. Iso-planar pattern NL path generation.
Jmmp 05 00059 g005
Figure 6. Illustration of material extrusion synchronization.
Figure 6. Illustration of material extrusion synchronization.
Jmmp 05 00059 g006
Figure 7. A homebuilt robotic manipulator-based multi-axis FDM printing system.
Figure 7. A homebuilt robotic manipulator-based multi-axis FDM printing system.
Jmmp 05 00059 g007
Figure 8. Four triangulated mesh surfaces used in the experiment.
Figure 8. Four triangulated mesh surfaces used in the experiment.
Jmmp 05 00059 g008
Figure 9. Material deposition rate v e ( θ ) for: (a) Saddle surface S 1 , (b) Bicycle surface S 2 , (c) Freeform surface 1 S 3 , and (d) Freeform surface 2 S 4 , among θ [ 0 ,   π ] and the found maximum θ * .
Figure 9. Material deposition rate v e ( θ ) for: (a) Saddle surface S 1 , (b) Bicycle surface S 2 , (c) Freeform surface 1 S 3 , and (d) Freeform surface 2 S 4 , among θ [ 0 ,   π ] and the found maximum θ * .
Jmmp 05 00059 g009
Figure 10. Printing NL curves in the zig-zag pattern for: (a) Saddle surface S 1 , (b) Bicycle seat surface S 2 , (c) Freeform surface-1 S 3 , and (d) Freeform surface-2 S 4 .
Figure 10. Printing NL curves in the zig-zag pattern for: (a) Saddle surface S 1 , (b) Bicycle seat surface S 2 , (c) Freeform surface-1 S 3 , and (d) Freeform surface-2 S 4 .
Jmmp 05 00059 g010
Figure 11. Snapshots of the physical printing experiments (a) Saddle surface S 1 and (b) Bicycle seat surface S 2 .
Figure 11. Snapshots of the physical printing experiments (a) Saddle surface S 1 and (b) Bicycle seat surface S 2 .
Jmmp 05 00059 g011
Figure 12. The printed parts by the optimized and non-optimized printing paths.
Figure 12. The printed parts by the optimized and non-optimized printing paths.
Jmmp 05 00059 g012
Table 1. Processing parameters.
Table 1. Processing parameters.
Nozzle diameter = 1 mm
Joint velocity limit v i , m a x = π 6   rad / s
Joint acceleration limit a i , m a x = π 2   r a d / s 2
Joint jerk limit j i , m a x = π   r a d / s 3
Maximal chord-error for forward step δ c *   = 0.5 mm
Major-axis length of filament ellipse s = 1 mm
Minor-axis length of filament ellipse h = 0.75 mm
Table 2. Experimental data.
Table 2. Experimental data.
S1: Saddle SurfaceS2: Bicycle Seat Surface
BenchmarkProposedBenchmarkProposed
Real printing time (s)2683239325541648
Path length (mm)7130.07034.74500.64372.2
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bi, D.; Xie, F.; Tang, K. Generation of Efficient Iso-Planar Printing Path for Multi-Axis FDM Printing. J. Manuf. Mater. Process. 2021, 5, 59. https://doi.org/10.3390/jmmp5020059

AMA Style

Bi D, Xie F, Tang K. Generation of Efficient Iso-Planar Printing Path for Multi-Axis FDM Printing. Journal of Manufacturing and Materials Processing. 2021; 5(2):59. https://doi.org/10.3390/jmmp5020059

Chicago/Turabian Style

Bi, Danjie, Fubao Xie, and Kai Tang. 2021. "Generation of Efficient Iso-Planar Printing Path for Multi-Axis FDM Printing" Journal of Manufacturing and Materials Processing 5, no. 2: 59. https://doi.org/10.3390/jmmp5020059

APA Style

Bi, D., Xie, F., & Tang, K. (2021). Generation of Efficient Iso-Planar Printing Path for Multi-Axis FDM Printing. Journal of Manufacturing and Materials Processing, 5(2), 59. https://doi.org/10.3390/jmmp5020059

Article Metrics

Back to TopTop