1. Introduction
Most currently conventional optical devices from 2D optical design methods are usually rotationally symmetric. While systems with such optics perform well in numerous applications, the requirement of high energy efficiency or aberration correction often cannot be satisfied with the same optics because of its inherent symmetry limitations on geometry. In order to meet those kinds of demand, 3D optical design methods have been developed, such as the simultaneous multiple surface (SMS) 3D method [
1], supporting the quadric method [
2]. In general, the results of a 3D design method are nonrotational, nonlinear asymmetric surfaces, known as freeform surfaces. With the development of 3D optical design methods, large aperture freeform optics are increasingly used in both non-imaging and imaging optical systems due to its capacity of improving optical performance [
3,
4,
5,
6]. There are three ultra-precision machining processes, namely fast tool servo (FTS), slow tool servo (STS) and diamond milling frequently used to produce optical freeform surfaces. STS machining has the advantages of fast setting-up and a large degree of freedom in processing, especially for freeform surfaces with large deviation [
7,
8]. However, the tool path generation and tool shape compensation must be conducted carefully for efficiently producing contoured surface with submicron form accuracy and nano-scale roughness or less.
Over the past decades, much research work has been conducted on tool path generation for diamond turning of freeform optics, including angle sampling strategy, spiral path and tool radius compensation. Fang et al. [
9] used non-uniform rational basis spline (NURBS) surface to represent a freeform surface, and carried out the compensation and optimized values for tool geometry. Gong et al. [
10] calculated the non-zero rake angle tool position directly from symbolic computation. In addition, the authors [
11] projected space Archimedean spiral onto freeform surface along the normal direction of the base surface to get the diamond tool path. Wang et al. [
12] machined a toric surface by generating a spiral tool path with the constant-angle method, and analyzed the different entrance parameters algorithm on Position–Velocity–Time (PVT) interpolation. Zhu et al. [
13] proposed the adaptive tool servo (ATS) mode that the sampling angle and feedrate were actively adjusted at any cutting point to adapt shape variation of the desired surface.
During the conventional multi-axis computerized numerical control (CNC) milling of freeform surfaces, it is crucial to adapt the side-feeding motion and forward sampling of tool motions to surface shape variations to achieve uniform surface quality with maximum efficiency [
13]. Koren et al. [
14] used a non-constant offset of the previous tool path to guarantee the cutter moving in an un-machined area and without redundant machining. However, this method is not suitable for STS because the non-constant offset of the spiral path will lead to additional motion of the lateral feeding axis (
x-axis) when it follows the
c-axis. Due to the limitation of the dynamic response of the servo axis, this will lead to the following error and vibration.
Generally, the following problems exist in tool path generation algorithm for slow tool servo diamond turning of large aperture freeform optics:
Current angle sampling strategies are still constant-angle and constant arc-length methods [
15,
16], which are aimed at path generation of axisymmetric surfaces. However, the curvature of a freeform surface is not uniform on the whole part and the strategy of constant-angle or constant arc-length cannot adapt to the change of freeform surface shape. Therefore, the uniform sampling will inevitably lead to an uneven distribution of surface accuracy [
11,
17]. Especially for large aperture optical surfaces, when the constant-angle method is applied, the surface quality of central region is better than that of the outer region due to the fact that the point density of outer region is relatively sparser than those on the central region. Therefore, in order to ensure the allowable interpolation error on the outer region, a large number of sampling points are needed on the outer region of the surface, which results in redundant control points on the center region. Moreover, the volume of points generated by this method probably exceeds the storage capacity of CNC system.
The cutting residual is caused by the tool radius envelope along the feeding direction, which is regarded as surface roughness. Kwok et al. [
18] and Yu et al. [
19] developed the model for predicting the residual error in STS, indicating that the residual error is not only dominated by the tool nose radius and feedrate, but also highly dependent on local surface curvature. Currently, the commonly adopted constant feed in STS leads to a heterogeneous distribution of the cutting residual error, especially for freeform optics with large curvature variation. To guarantee the cutting residual within a tolerance level, machining of the entire whole surface is required to maintain the minimum feedrate, which is not necessary for other regions and significantly reduces the machining efficiency.
Current tool path generation methods do not consider the dynamic performance of machine tools. In traditional machining of rotational symmetrical surfaces, the feed axis and spindle are independent, so the dynamic performance of machine tool is not considered. However, when a freeform surface is machined by STS diamond turning, the feed axis and the spindle should maintain a strict spatial position relationship. Therefore, an optimal tool path is very important. Although the ATS method proposed by Zhu [
13] can produce control points with a uniform distribution of surface profile errors, and much CAM software used in milling which could be ported to turning can output a constant load or constant scallop height tool path [
20,
21]. However, because they produce irregular spiral paths, this will bring additional fluctuations to the feed axis, reducing the machining surface quality.
In this paper, a novel path generation of STS diamond turning for large aperture freeform optics; namely, adaptive tool path generation (ATPG) is proposed. Firstly, the principle of the novel generation method is introduced and the path generation algorithm is presented in detail with analysis of the motion characteristics of machine tools. The results show that, on the premise of satisfying the machining accuracy, the proposed algorithm can reduce the volume of control points, and improve the dynamic characteristics of machine tools and machining efficiency. Finally, both theoretical analysis and experimental comparison of the algorithm are conducted.
2. Basic Principle of Adaptive Tool Path Generation
The principle of diamond tool turning freeform optics is that the diamond tool contours the complex surface along the spiral path as shown in
Figure 1a. The stroke of the diamond tool is synchronized to the angle and radial position of freeform surface on the machine’s spindle. The forward and reverse motion is achieved by
z-axes of machine tools (STS).
There are two intrinsic errors in STS machining, namely interpolation error and cutting residual as shown in
Figure 1b,c [
22]. In the forward cutting direction, the deviation between the desired surface and the tool trajectory leads to the interpolation error and the error is highly dependent on the distance
Lθ between the two consecutive control points as well as the local surface profile. Generally, most diamond machine tools offer PVT spline interpolation for STS, which creates a path known as a cubic Hermite Spline. Therefore, for a given interpolation tolerance ε
f, the algorithm adaptively adjusts the angle interval
Lθ according to the error of Hermite interpolation to ensure that the error is within the range [−ε
f, + ε
f], so that the error is homogeneously distributed in the whole cutting direction.
In the feeding direction, in order to improve the machining efficiency, the feedrate should be adjusted with surface curvature. Because the curvature of a freeform surface not only changes with radius, but also changes with polar angles, as shown in
Figure 2. The curvature of a freeform surface at the polar angle θ
1 and θ
2 of the same radius is different, so the calculated feedrate
f1 and
f2 on the same radius are different, which leads to the position of diamond tool changing with spindle angle in the process of feeding. As a result, micro-fluctuations are generated in the process of machining, which would deteriorate the surface quality of machining, just as shown in
Figure 3a. The dash line denotes the feedrate calculated by the surface shape (In fact, it is the feedrate in ATS). In contrast, ATPG sets the feedrate to a constant equal to the minimum value of this revolution, which can restrain the fluctuations of feedrate with angles. Therefore, the final feedrate only changes with radial position. Furthermore, if the feedrate varies dramatically along the radius, the feedrate will be re-fitted with a smooth curve to suppress the vibration in the feeding direction, just as shown by the red solid line in
Figure 3b. It should be noted that the blue dash dot line donates the feedrate in the traditional machining mode, which maintains the minimum feedrate to guarantee the cutting residual on the whole surface.
Although the feedrate in ATPG is slightly smaller than ATS, it is still larger than the traditional settings. The advantages of this setting are that it not only improves the machining efficiency, but also suppresses the micro-fluctuation caused by surface shape. Although this will result in a slight heterogeneous distribution of interpolation error at different angles on the same radius, it is almost negligible, and the advantage is to increase the stability of the machine tool.
3. Tool Path Generation for STS Diamond Turning
In the traditional STS diamond turning, the machined surfaces have to be evaluated after the machining process which gives a high risk of the machined surface failing to meet the contour accuracy. The surface generation algorithm is not only the generation of a diamond tool path, but also a predictive method to analyze the contour accuracy by using different cutting strategies.
Figure 4 shows the general process of ATPG, including five steps to generate the final control points: (1) Tool interference check; (2) Determination of the feedrate for every revolution of the spiral path; (3) Determination of smooth curve fitting the relationship between feedrate and radius; (4) Determination of control points in the cutting direction with the constraint of interpolation error; (5) Tool radius compensation.
3.1. Tool Interference Check
Due to the geometrical complexity of freeform surfaces, it is necessary to check tool interference, and the sectional curve method [
9] is used to check the tool parameters before machining, which decomposes the whole surface into two-dimensional sectional curves and integrated the tool parameters from curves.
3.2. Determination of the Feedrate for Every Revolution of the Spiral Path
The coordinate system of the workpiece for STS machining is shown in
Figure 1a. The desired surface can be expressed as
z =
f(
x,
y), which can be also expressed as
z =
g(θ,ρ) by coordinate transformation.
Let’s suppose that the radius corresponding to the
Ni-th revolution of the spiral path is ρ
i at the angle θ
i = 2π
i, so the corresponding curvature at this revolution can be defined as [
23]:
where
Ki means the minimum curvature of the cross-sectional profile passing through the rotation center over the whole revolution.
By approximating the local profile as a segment of arc, the distance
Li (
Figure 1c) between the two consecutive revolutions
Ni and
Ni+1 on the desired surface with respect to a given cutting residual error tolerance ε
t (
Figure 1c) can be estimated by [
14]:
where
Rt denotes the nose radius of a diamond tool.
At the same time, we define the slope of the cross-sectional profile
dzi (
Figure 1c) at the radius ρ
i as:
As shown in
Figure 1c, the feedrate
fi for the
Ni-th revolution in the projected tool path and radius ρ
i+1 corresponding to the
Ni+1-th revolution in the projected tool path can be approximately expressed as:
The first revolution can be set as:
where
d is the inner diameter of the desired surface, and if the desired surface is started from the center,
d = 0.
Since there is only one parameter ρi+1 unknown, it can be calculated by numerical iteration solving Equations (1), (2) and (6). Thus, we can sequentially obtain series of number pairs (Ni,ρi).
3.3. Determination of Smooth Curve about the Relationship between Feedrate and Radius
Obviously, the curve of series of number pairs (
Ni,ρ
i) is related to the characteristics of side-feeding motion of machine tool, especially for the machine tool whose spindle is mounted on the
x-axis. The drastic fluctuations in the curve may cause the side-feeding acceleration of the machine tool to exceed the allowable range, which may result in the failure of the machining process. Therefore, some drastic fluctuations of the number pairs (
Ni,ρ
i) should be limited, if necessary. Hence, we use a continuous and smooth curve to approximate the curve of number pairs (
Ni,ρ
i) and the feedrate obtained by fitting should not be greater than number pairs (
Ni,ρ
i), just as shown by the red solid line in
Figure 3b. After that, we can obtain the functional relationship between the radius ρ and revolution number
N, which can be expressed as:
where
N denotes revolution of spiral, and it is not necessary to be an integer.
3.4. Determination of the Control Points in Cutting Direction
Let us assume that the
k-th cutting point
Pk(θ
k,ρ
k,
zk) in the
Nk-th revolution of the spiral path, so the corresponding angle θ
k can be expressed by
where [∙] denotes rounding operation.
Because the spiral radius increment and angle increment are very small between the two consecutive control points in the actual tool path, an arc can approximate the segment spiral path. Hence, the tool spiral path that passes through the point
Pk(θ
k,ρ
k,
zk) can be approximated by the curve
z =
g(θ,ρ
k), and the parameter ρ
k is already known, so the curve is a function of one variable, which can be expressed approximately as:
where δ is a small number, and ϕ(∙) denotes the operator notation of one variable function.
PVT mode provides an excellent contouring capability because it takes the interpolated commanded path exactly through the control points. It generates a path known as a Hermite spline. Hence, according to the error of piecewise cubic Hermite interpolation, the relationship between the interpolation error tolerance ε
f and angle increment
Lθ between the two consecutive control points
Pk(θ
k,ρ
k,
zk) and
Pk+1(θ
k+1,ρ
k+1,
zk+1) can be constructed by [
24]:
where the curve
z = ϕ(θ) is supposed ϕ(θ) ∈
C4[θ
k − δ, θ
k + δ], and ϕ
(4)(∙) denotes the 4th derivative.
The following relation is also established as:
so the unknown parameters
Lθ and θ
k+1 be derived from Equations (10) and (11) by numerical calculation.
The corresponding revolution
Nk+1 for
Pk+1 can be obtained by:
The other parameters ρ for
Pk+1 can be obtained by:
Thus, the coordinate of point Pk+1(θk+1,ρk+1,zk+1) can be obtained by combining the equations from Equation (8) to Equation (14). By conducting the iterative steps with respect to N1 = 0, the whole toolpath can be adaptively resampled.
3.5. Tool Radius Compensation
Traditionally, there are two methods of tool nose radius compensation for diamond turning,
xz-direction compensation [
9,
25] and
z-direction compensation [
10]. Generally, the
xz-direction tool compensation is accomplished by the normal vector of the machined surface and cutting plane; however, the direction of normal vector of the freeform in the cutting plane periodically changes with angle, resulting in a slight periodic displacement of the tool in side-feeding motion. Especially for the machine tool whose spindle is mounted on the
x-axis, the stability of side-feeding motion is particularly important to surface quality. Thus, we adopt the
z-direction compensation in ATPG as shown in
Figure 5.
Without loss of generality,
Pi(θ
i,ρ
i,
zi) is the control point, and
Pi′(θ
i,ρ
i,
zi′) is the corresponding coordinate of tool edge center, where
zi′ is the only unknown parameter. The curve that is a cross-sectional profile passing through the rotation center
O and
Pi can be expressed as:
Pti(θ
i,ρ
ti,
zti) is assumed as the corresponding foot point on the curve
z = Θ(ρ) of the
Pi′(θ
i,ρ
i,
zi′), where ρ
ti, zti are the unknown parameters as shown in
Figure 5. According to the geometric constraint, assuming that a round edged diamond tool with a zero rake angle is adopted, the following relations can be obtained:
where‖∙‖ denotes the Euler distance between any two points, and
ni is the normal vector of the curve
z = Θ(ρ) at the point
Pti(θ
i,ρ
ti,
zti), which can be expressed as:
where
nti is the tangent vector of the curve
z = Θ(ρ) at the point
Pti(θ
i,ρ
ti,
zti), which can be expressed as:
Thus, according to Equations (15), (17) and (18), Equation (16) can be solved by Newton’s iteration method.
After the tool radius compensation, the whole tool path control points are generated.
5. Experimental Results and Discussion
5.1. Experimental Setup
The astigmatic (AST) surface was machined for investigating the performances. Considering the testing ability of the interferometer, the aperture of the workpiece was 50 mm, the amplitude was set as 4.8 μm, respectively. To have a comparison, the tool path was generated by both ATPG and DiffSys, and DiffSys follows the constant-angle strategy that was based on the interpolation tolerance and the minimum radius of curvature of the part. The feedrate in DiffSys was set as f = 8.9 μm/rev, which was based on the surface finish specification and the maximum slope of the part, and the tool radius compensation in DiffSys was set along the z-direction as well.
In order to validate the performance of ATPG for large aperture optical surfaces, an off-axis paraboloid (OAP) with an aperture of 213 mm was also machined, where the vertex curvature radius R was 915 mm and off-axis magnitude was 915 mm. We compared the programs generated both by ATPG and Diffsys for the same setting rule.
The cutting experiments were performed on a CNC ultra-precision lathe (Precitech Nanoform
® 250 ultra, Keene, NH, USA). The configurations of this experiment were shown in
Figure 11 and
Figure 12a. A natural single crystal diamond tool with a nose radius of 1.04 mm and a zero rake angle (Contour Fine Tooling, Hertfordshire, UK) was used in this experiment. Before machining, the diamond tool parameters have been checked according to the sectional curve method. The workpiece materials are brass and oxygen-free high-conductivity copper (OFHC), respectively.
After turning, a laser Interferometer (Zygo, MST, Middlefield, CT, USA) was employed to measure the machined surface form error. The AST surface was tested directly by the interferometer and the OAP was tested though optical properties of quadric surfaces as shown in
Figure 12b. A white light interferometer (Bruker, ContourGT-K1, Madison, WI, USA) was employed to measure surface roughness.
5.2. Results and Discussion
After subtracting the design surface, the form errors for the two machined surfaces (AST) are respectively shown in
Figure 13a,b. The roughness was measured by a white light interferometer and shown in
Figure 13e,f, respectively. More details of the experimental results are summarized in
Table 1. The total volume of control points for ATPG was 23,581, while that for DiffSys was 35,053. As shown in
Table 1, it can be seen that the surface machined by ATPG is slightly better, but considering the fabrication and metrology uncertainty, there is no significant difference between the two methods for surface quality. Nevertheless, the number of control points generated by ATPG is 32.7% less than by DiffSys in this case. The machining efficiency is also improved, which is particularly important for large-aperture optical surfaces.
The machined OAP surfaces were measured through optical properties of quadric surfaces as shown in
Figure 12b and further shown in
Figure 13c,d; the roughness was shown in
Figure 13g,h. Comparing the data in
Table 1, the number of control points generated by ATPG is 52.5% less than by DiffSys in this case, and the roughness is still keeping the same level; this is very significant for large aperture optics to reduce the volume of NC program. Although the form errors exceed the preset value, it is mainly caused by low frequency components from the test data, which should be caused by clamping deformation. This is not the subject of this paper.
Generally speaking, more control points mean higher interpolation accuracy. However, as the number of points increases, the number of points is no longer the bottleneck for machining accuracy. Furthermore, because the new tool path makes the axis speed variation very small, the machine tool can adapt to a higher spindle speed. Hence, the comparison verifies the high machining efficiency of the ATPG for achieving the same surface quality. It is noted that the PV value of the form error and roughness is higher than the preset theoretical one. The reason is that, besides the accuracy of interpolation, factors that determine the surface form and roughness still include machine tool vibration, tool wear, lubrication and clamping deformation, etc.