| Motion controller is a fundamental part of electric-mechanic equipments such as CNC machine tools, robots etc. At present, the open capability of various motion controllers is not high, the structure is complex, the reliability is low, and the run speed and the control precision is not high, so the ratio of capability and price is low. Therefore this project designs a motion controller based on PCI bus. The motion controller is by the core of digital signal processor (DSP) TMS320C240 and in-system programmable logic device (ISP). It can control the motion of 1 to 4 axes and can be used in the high-grade precision control system.The hardware of motion controller of this project is divided into bus interface module, signal process module, the feedback signal process module, expand I/O module, D/A transform module. The bus interface module is used to communicate to the host. The signal process module is employed to achieve the control arithmetic. The feedback signal process module receives the feedback signal from the increment encoder, and outputs to the signal process module, and achieves position servo-control. The expand I/O module is used to the spread of the I/O interface that connects with the servo driver. The D/A transform module is employed to transform the digital signal into the analog signal. The paper offers the functions of motion control of motor. The functions make it easy to work out superstratum control programs and shorten the development period. |