| As a tool for spiral bevel gear processing,the six-axis CNC gear milling machine has significant advantages such as fast processing speed,high accuracy and reliability.However,as the “ brain ” of machine tools,the development of CNC system function has always been a major problem.This paper analyzes the structure of each axis and CNC system of gear milling machine,puts forward the development function of CNC system according to the actual needs of enterprises,and designs the functional test platform.Based on the open architecture of "IPC+PMAC",the CNC system functions are researched and developed,and the CNC system function test platform is built.The main research content of this topic is as follows.(1)Research and development of system function.In the study of electronic gear,the function of electronic gear in PMAC is redeveloped by master-slave electronic gear algorithm,and a synchronous position algorithm is proposed.In view of the research of power backoff,the equipment with energy storage module is selected to design the power supply module of gear milling machine,and the backoff action after power failure is completed in the soft PLC program.The modular idea is adopted to divide the panel functions,focusing on the development of handwheel mode,manual mode,program mode and zero-return mode.For the NC code interpreter,it is developed in the corresponding subroutine section of PMAC,and the NC instruction is translated into the grammatical form that PMAC can identify.According to the functional requirements of the milling machine spindle in the machining process,the package idea is used to develop it with a subroutine.(2)Design and construction of test platform.Based on the functional test requirements,two test platforms is designed: one is a six-axis test platform,which uses six compact servo drives and servo motors to simulate the six axes of the machine tool;the other is the electronic gear test platform,which uses the same servo drive and motor as the gear milling machine to test the function of electronic gear.The test platform uses the Ether CAT industrial Ethernet protocol for precise control of the servo module,and the PMAC controller is used as the master with position control algorithms.The servo module is used as a slave and the position,speed and current loops are placed in the servo module.(3)Function testing.After the CNC system is built,its function is tested.Firstly,the PMAC project is reconstructed,and the development functions are written into PLC program and subroutine respectively.Secondly,the debugging and configuration of the driver are carried out,and the PID parameters of the three loops are adjusted.Finally,the development function is tested on the test platform.Through the detection of the test platform,the function of this project meets the technical requirements of the enterprise. |