The invention provides a method for generating drilling point teaching according to a track by a point drilling
machine. The method comprises the following steps of: 1, creating a curve drawing instruction in a CAD (
Computer Aided Design) module of point drilling
software; 2, adding a curve drawing instruction; enabling a CAD module of the
software interface to draw a curve track according to the contour of the position to be subjected to spot drilling in the workpiece picture, and obtaining image coordinate data of the corresponding
point location on the curve track; 3, returning image coordinate data to an
image processing module of the
software by using a CAD (
Computer Aided Design) module, converting the image coordinate data into mechanical coordinate data, and transmitting the mechanical coordinate data to a
motion control module of the software; 4, inputting the drilling distance d; 5, carrying out geometric operation through the data interaction process in the
motion control module according to the mechanical coordinate data in the step 3 and the step 4, and forming coordinates of all point positions; 6, setting the attribute of each
point location; and 7, and finishing teaching. The method has the characteristics that the operation is simple and quick, the teaching time of a customer is greatly shortened, and the production efficiency and the product quality are improved.