Engraving and milling machine has the advantages of high speed and high precision,which is widely used in the industrial field,and is favored by the processing market of small parts.With the development of the cutting and milling machine technology and the market demand,the carving mill enters the rapid development stage.At present,the workpiece that is machined by the engraving machine is mainly to locate the tool or fixture,which has disadvantages such as high hardware cost,strict user requirement and low processing efficiency.Therefore,this paper applies machine vision technology to the numerical control system,realizing the rapid and accurate location of the workpiece.The main work of this paper consists of the following parts:Firstly,some common numerical control systems are compared and their openness is analyzed.3 S classic products of the company S-140-m has a high flexible,high degree of secondary development system,has a lot of function calls available advantages,therefore,this article selects the S-140-m as the numerical control system development platform,on the S-140-m development platform for the development of engraving and milling machine system.Secondly,in view of the machine vision technology,the use of binarization filtering,image processing technology,such as canny edge operator to extract the image edge of workpiece,obtained the characteristic points and the workpiece rotation Angle,and complete the workpiece to the development of automatic positioning.Then,C#compiler language is used to develop the system,realize the nc machining function,and complete the system software interface design.The vision positioning system was developed by using the HALCON tool,and the visual positioning system was embedded into the CNC system to complete the development of the whole CNC control system.Using the concentric model checking the camera distortion,by least square method does not need to solve the parameters of the radial and tangential distortion,using the method of lens measurement error were analyzed,and complete the camera calibration.Finally,the test results of the numerical control system and the visual positioning system show that the development system has the advantages of fast and precise machining of the workpiece.On the basis of the development of engraving and milling machine system,combination of machine vision positioning technology and control system,developed a visual positioning of engraving and milling machine,CNC system can realize automatic positioning of workpiece. |