文档介绍:南京航空航天大学硕士学位论文
摘要
运动控制是数控技术的核心,近年来,随着开放式数控系统的发展,开放式
运动控制器也得到了前所未有的发展。运动控制器作为一个独立的工业自动化控
制类标准部件,已经被越来越多的产业领域接受,并形成了令人瞩目的市场规模。
由于DSP将超强的高速实时处理能力和丰富的外设功能集于一身,目前,以DSP
为核心的嵌入式运动控制器已经成为开放式运动控制器的发展主流,并获得广泛
的应用。
本文通过对运动控制器基本功能的研究,在分析、消化已有的基于DSP的运
动控制器硬件资源基础上,开发了运动控制器的软件系统,利用比较积分法和线
性加减速控制算法实现了系统的运动轨迹和速度控制,满足了单板式和插卡式两
种应用的功能需求。
针对单板式应用需求,设计开发了基于 USB 总线的加工程序下载功能、基
于串口通信的 DNC 功能以及断点续传功能。详细论述了其中 USB 通信的固件程
序、驱动程序和应用程序的开发方法,以及 DNC 在线加工功能的实现方法。
面向插卡式应用,讨论了利用 PCI9052 接口芯片和 IDT7024 双口 RAM 芯片
实现 PC 机与 DSP 的通信方法,着重阐述了利用 WinDriver 作为开发工具,实现
PCI 驱动程序的开发过程。
最后,本文从提高工程应用软件可靠性的角度,介绍了本运动控制器软件的
开发与调试方法及注意事项,并将设计开发的系统软件脱离仿真环境,成功应用
于实际加工控制,系统的功能和性能达到预期设计目标。
关键词:DSP,运动控制,USB,PCI,WinDriver,软件开发
i
基于 DSP 的运动控制器的软件开发
ABSTRACT
Motion control is a key technology C systems. In recent years,
open-architecture motion controllers have been developed to a new phase with the
progress of open-C systems. As independent automation products,
motion controllers have been wildly used in many industries, and also form a
remarkable market. Nowadays, motion controllers based on DSP are ing the
main trend of open-architecture motion controllers because DSP has the advantage of
powerful real-time processing capability and abundant peripherals.
By analyzing the functions of several typical motion controllers and the hardware
of existing motion controller based on DSP, the software of the motion controller is
designed. parative integral interpolator assisted with linear accelerating and
decelerating algorithm is used for the control of track and speed. The motion
controller has two kinds of application: as a stand-alone controller or a plug-in
controller.
As a stand-alone controller, NC codes can be downloaded by USB and DNC
can run by means of RS-232. For that, the programs for firmware, driver and
application of USB device, and for DNC are designed in the thesis.
For the plug-in application, the controller municate with PC by PCI bus,
which