The invention discloses a complex surface on-
machine test method of a five-axis
machining center. The complex surface on-
machine test method includes the following steps that the detection point is planned through a
solid modeling technology based on
commercial software UG NX8.0, and the coordinates, the normal vector and the tangential vector of the surface detection point are obtained; the coordinates, the normal vector and the tangential vector of the detection point are
read through commercial visual digital
software, and the detection path is planned; the surface is detected through the detection path, and a corresponding on-
machine detection code is generated according to the type of the five-axis
machining center. By means of the method, when a workpiece is machined, the workpiece does not need to be conveyed to a detection device from a
machine tool, and the quality of the workpiece can be detected at any time in the
machining process; meanwhile, by means of obtained results, positioning and machining correction of the workpiece are guided, production efficiency of the
machining process is improved, occurring errors are detected in real time as early as possible at low
time cost, and the
scrap rate of the workpiece is reduced.