Aiming at the problem of low efficiency and inaccurate control of laser engraving machine,an improved design scheme of laser engraving machine control system is proposed.In this paper,to improve high speed machining of small line part,a new machining method based on non-uniform B-spline curve interpolation algorithm and Stype curve acceleration and deceleration with the function of look-ahead algorithm,effectively enhance the computing speed and interpolation accuracy of the whole system.First of all,in view of the problem that slow engraving speed in traditional control system,which can only rely on SCM control and interpolation,this paper proposes adding FPGA and STM32 to control laser engraving.In order to distribute the control task reasonably,the lower computer mainly communicates with PC through STM32 and accomplishes the interpolation calculation.At the same time,it uses FPGA to control the stepper motor drive and the laser power supply start and stop.PC connects with MCU through USB interface,and accomplishes the task of online real-time data transmission.Then it uses non uniform B spline algorithm to fit small segment,S-type curve acceleration and deceleration algorithm to plan engraving speed,and the speed of forward velocity planning model to the small segment turning point.Experimental results show that non uniform B spline curve interpolation parameters of chord error are less than the set value.Compared with the traditional S curve interpolation algorithm without forward function,adding forward function can make prospective feed rate improved significantly.In this way,it improves robustness and real-time performance.Finally,according to the two formats of BMP and PLT,the corresponding carving method is proposed.By improving the feed line track of laser head,the technical requirements of high-speed scanning G code in laser processing are satisfied.It uses geometric transformation,binarization,median filtering and Otsu algorithm to handle image,and design the tool path generating interface and monitoring interface. |