| With the development of micro-electronics,automatic control and microcomputor application technology,the open electromechanical product of "PC + motion control boad + stepper motor" is becoming the ideal choice of high precision and nicety motion control increasingly.The open motion control board is based upon PC bus,and it uses DSP as its core processor.It can control the calculational function of DSP sufficiently,doing complicated programming, implement high speed multi-axis interpolation in real-time. High precision,high speed and steady movement make this kind of motion control board be the dominant orientation nowadays.This thesis takes a motion control board as research object.The board is based on 16-bit fixed point DSP chip TMS320LF2407A,which was produced by company TI. After making a brief introduction of its hardware structure,the article expatiates on the software design.The software design of motion control system includes two parts:PC software design and DSP software design.There are various application situations of motion control. Compiling library function of motion control in PC,then users could use the library function to control DSP.The whole details of motion control are realized in DSP,including position control,velocity control,interpolation algorithm,etc. Using dual-port RAM to realize the communication between PC and DSP,and we need to make a bottom planning at first. The interface of this communication mode is simple and it is able to make a great data exchange.It also enhance the real-time data exchange.According to the control demands,software designing is divided into four module:bottom planning both in dual-port RAM and DSP; library function designing in PC;velocity control algorithm designing;interpolation algorithm designing.With the emulator,the motion control board could realize T-mode speed-up and speed-down controlling,S-mode speed-up and speed-down controlling,beeline interpolation and arc interpolation.The motion control board has a good performance,and it indicates that the software design scheme is feasible. |