| Motion control algorithm is the core of five-axis CNC machine tools, and a high quality performance of CNC machine tools and if the workpiece can be processed into high-precision is mainly determined by the system of the motion control algorithms. Before the motion control algorithm is applied to the machine, you need to verify accuracy and reliability of the algorithm by simulation. Numerical simulation technology is to simulate the actual process by computer graphics technology. In this paper, mathematical model and geometric model were founded which simulated five-axis motion control system. It simulates motion control process by numerical and geometry simulation, then observe if the motion characteristics, the displacement curves, velocity curves and acceleration curves meet the theoretical requirements. Observe the cutting action and the state by three-dimensional solid geometry simulation, at the same time it simulates intuitively the whole process of CNC motion control. It will help us verify and optimize the processing track, processing speed and acceleration to improve CNC machining quality and efficiency. In this paper, making five-axis dual-turntable machine tools as the study object and five-axis motion control algorithm as the theory, it focuses on mathematical simulation and geometric motion simulation of the five-axis control process, the main work is as follows:1. Summarize the acceleration and deceleration speed control strategy, and regional track speed continuous turning point acceleration and deceleration control, five-axis interpolation algorithm and other algorithms. The NC code for input and the servo axis motion control information for output, a five-axis motion control model is established. The NC code for input and the servo axis motion control information for output,2. Matlab as the simulation platform, it calculates the rate of five-axis machining process planning, acceleration and deceleration control interpolation algorithm and draws the machine tool-workpiece kinematics curve, then simulates five-axis interpolation control process. Synthesis displacement, synthesis rate, synthesis jerk meet the requirements of the machine tool, and corresponding to the five-axis displacement curve, velocity curves and acceleration curves also meet the requirements of the machine tool.3. Based on kinematics of the machine tool structure and five-axis machine tool double rotary-tables as a research object, a geometric simulation model is created in the 3D parametric CAD system by the movements of the machine axes and constraints.4. By high-level language development, the motion parameters are extracted from the five-axis NC program, then are transferred T-Flex CAD system parameter table by the OLE mechanism the T-Flex CAD system provides, to drive five-axis machine tool geometric motion model and achieve the three-dimensional motion animation.NC motion control algorithms have been successfully simulated by mathematical and geometric simulation. Judging from the simulation, the five-axis linear interpolation can be completed continuously, curves can be transited smoothly, and the accuracy can meet the requirements. In the all, it achieves the expected results and demonstrates the feasibility of the algorithm. |