A set of functions of the host computer software system for motion control is projected,it is Combined with the practical use of a scientific research institute in China.It is an open CNC system,the hardware core is made up of 9030 motion control cards with USB communication interface.The software system is easy to use,flexible and friendly interface,and its main functions are as follows: firstly,the communication between the slave and the slave computer is completed through the call of DLL,including the control of motion control card and servo motor and information feedback,Secondly,the magnetic field data of the magnetic field detection instrument is collected by serial communication,and the text document is saved,finally,the detection path planning can be completed in three ways according to the rectangle,arc and custom G code.According to the characteristics of the matrix and the arc,in the path planning is divided into X direction and Y direction priority and angle and radial priority.Path planning can not only be based on the size of the size of the input graphics,but also to the extent of the different segments to complete the transformation of the G code.Graphical size and degree of subdivision can be set on the user interface.The program instead of motion control card to complete the G code can be directly executed.Due to the conversion of G code,the theory of linear and circular interpolation is studied.On the basis of the principle of interpolation,combined with the actual use of the description of the transformation of the interpolation steps,a detailed description of the arc interpolation in the NURBS curve interpolation,in order to improve the accuracy of circular interpolation.According to the practical application,it is very necessary to develop this software,which not only complete the basic function,but also integrate the data communication between the motion control card and the magnetic field detector two main hardware.And the software has a strong commonality,open CNC system has been gradually localization,but in general its own control software are generally easy to function,but not open source,can not be customized to add functionality.Serial communication and path planning,for example.Finally,the software can complete the detection of relevant information,such as the detection time,the instrument model and so on,as well as in accordance with the form of detection point to save the point of the magnetic flux,easy to form a detection report. |