(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发

上传人:zhuma****mei1 文档编号:54238474 上传时间:2018-09-10 格式:DOC 页数:89 大小:1.57MB
返回 下载 相关 举报
(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发_第1页
第1页 / 共89页
(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发_第2页
第2页 / 共89页
(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发_第3页
第3页 / 共89页
(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发_第4页
第4页 / 共89页
(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发_第5页
第5页 / 共89页
点击查看更多>>
资源描述

《(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发》由会员分享,可在线阅读,更多相关《(毕业论文)-基于PCI_和USB总线的开放式运动控制器开发(89页珍藏版)》请在金锄头文库上搜索。

1、-基于基于 PCI 和和 USB 总线的开放式运动控制器开发总线的开放式运动控制器开发 摘摘 要要 开放式数控系统已成为当今数控技术的发展方向,目前的开放式数控系统 多以 PC 机为基础,配上各种开放式运动控制器。运动控制器的应用已走出机 械加工行业,越来越多地应用于其它工业自动化设备控制,如机器人控制、电 子机械、木工机械、纺织机械、印刷机械等诸多行业。 基于 PC 总线的以 DSP 和 CPLD/FPGA 作为核心处理器的开放式运动控制 器将 PC 机的信息处理能力和开放式的特点与运动控制器的运动轨迹控制能力 有机地结合在一起,具有信息处理能力强、开放程度高、运动轨迹控制准确、 通用性好等

2、优点,因此发展迅速。今后基于计算机标准总线的开放式运动控制 器仍然是市场发展的主流。PCI 总线解决了 ISA 总线的响应速度较慢的瓶颈, 近几年,基于 USB 总线的设备也因其优点而得以迅速发展。 针对国内外开放式运动控制器存在的一些缺点,诸如国外产品价格太高、 技术支持相对较差,国内产品不支持 USB 总线、存在一些技术上的不足等, 本文以 DSP 芯片 TMS320LF2407 作为处理器,分别基于 PCI 和 USB 总线开发 了多轴开放式运动控制器,并采用 PCI 9052 和 ISP-1581 作为接口芯片构建 PC-DSP 通讯电路,利用 CPLD 器件 EPM7128 构建两路

3、 QEP 信号处理电路并 辅助完成译码等功能,同时开发了接口卡负责完成控制卡与外部器件的互联并进行光电隔离和电平转换。 DSP 除了完成与上位机的通讯,内部还嵌入了许多控制算法,包括基于前 馈补偿的 PID 控制算法、参数曲线的自适应时间分割插补算法、直线/圆弧 /NURBS 插补算法等。同时,提供了丰富的动态链接库函数供用户调用,并在 此基础上开发了测试软件。实验和仿真结果表明,系统设计合理,具有实时性 好,跟随误差小,加工精确度高等优点。关键词关键词 开放式运动控制器;USB 2.0 协议;PCI 总线;NURBS 插补;DSP -I-Development of Open-Type Mo

4、tion Controller Based on PCI and USB Bus AbstractThe open-type numerical control system has become the development trend of NC technology nowadays, and the present NC systems are mainly based on PCs (personal computers) with various motion controllers. The application of motion controllers has exten

5、ded out of the machine-processing field; more and more are applied in control of other industrial automation devices, such as robot control, electronic machinery, woodworking machinery, textile machinery, printing mechanism, and so on. The open-type motion controller has developed rapidly, which use

6、s DSP and CPLD/FPGA as core processors and combines the information-handling capacity and the open-type characteristic of PC with the controllers motion path control ability, having many advantages such as strong information-handling capacity, good open- type characteristic, precise motion path, goo

7、d versatility. From now on, the development of open-type motion controllers based on computer standard bus is still the market mainstream. The PCI bus solves the problem of low response velocity of ISA bus, and in recent years, equipments based on USB bus have also developed rapidly because of the m

8、erits of USB.Aiming at the shortcomings of domestic and foreign open-type motion controllers, for example, the overseas product price is high, the technical support is relatively weak, and the domestic product does not support USB bus, existing some technical flaws. this thesis develops multi-axis m

9、otion controllers based on PCI bus and USB bus respectively with TMS320LF2407 as their processors. PCI 9052 and ISP-1581 chips are adopted to construct the PC-DSP communication channel; CPLD component EMP7128 is used to achieve the functions of two groups of QEP signal processing and address decodin

10、g; at the same time, the auxiliary I/O card is also developed to connect the controller and external components after photo-electricity isolation and level transformation. Besides the communicating with PCs, the DSP has also been embedded many control algorithms, including the PID control algorithm

11、with feed-forward -II-compensation, the parameter curve auto-adapted time-division interpolation algorithm, the line/circle /NURBS interpolation algorithm, etc. A lot of dynamic link library functions are also provided for the users, and test software is developed with the functions. Experiment and

12、simulation result indicates that the system is designed reasonably, with many advantages such as good real-time performance, little following error and high processing precision.Key words open-type motion controller; USB 2.0 protocol; PCI bus; NURBS interpolation; DSP目目 录录摘要.I AbstractII第 1 章 绪论 1 1

13、.1 开放式运动控制技术概述 .1 1.1.1 开放式数控系统 1 1.1.2 基于 PC 机的开放式运动控制器 .2 1.2 开放式运动控制器研究现状、不足及发展趋势 .4 1.2.1 运动控制器的分类 4 1.2.2 国内外开放式运动控制器的研究现状 5 1.2.3 目前基于 PC 的运动控制器存在的不足 .6 1.2.4 基于 PC 的开放式运动控制器的发展趋势 .7 1.3 课题来源及主要研究内容 .8 第 2 章 伺服系统控制关键技术研究 9 2.1 运动系统的控制技术概述 .9 2.2 伺服电机控制原理 .9 2.2.1 交流伺服电机介绍 9 2.2.2 交流伺服电机的控制模式 1

14、02.2.3 伺服电机的 PID 调节方案11 2.3 参数曲线的时间分割插补算法 .14 2.3.1 时间分割插补原理 14 2.3.2 参数曲线自适应插补算法 14 2.4 NURBS 插补原理17 2.4.1 NURBS 插补介绍.17 2.4.2 三次 NURBS 曲线的数学描述.17 2.4.3 NURBS 曲线插值原理.19 2.5 本章小结 .21 第 3 章 PCI 和 USB 总线规范与操作 .22 3.1 PCI 总线.22 3.1.1 PCI 总线的基本概念223.1.2 PCI 总线的特点22 3.1.3 PCI 局部总线信号定义23 3.1.4 PCI 总线协议基础2

15、4 3.2 USB 总线27 3.2.1 USB 的优点.27 3.2.2 USB 系统的分层结构.27 3.2.3 USB 数据通讯结构.29 3.2.4 USB 的控制传输与中断传输.30 3.2.5 USB 软件编程基础.33 3.3 本章小结 34 第 4 章 PC 机与 DSP 通讯电路设计.35 4.1 运动控制器硬件电路总体设计方案 .35 4.2 DSP 芯片 TMS320LF2407 介绍36 4.3 PCI 总线与 DSP 通讯电路设计37 4.3.1 PCI 总线接口电路实现方法37 4.3.2 PCI 总线接口芯片选择38 4.3.3 PCI 9052 的主要特点.38

16、 4.3.4 PCI 9052 的工作原理.39 4.3.5 E2PROM 的配置.40 4.3.6 PCI-DSP 通讯电路 .41 4.4 USB 总线与 DSP 通讯电路设计434.4.1 USB 接口芯片选择.43 4.4.2 ISP-1581 的特性.43 4.4.3 ISP-1581 的引脚介绍.44 4.4.4 ISP-1581 相关寄存器简介.45 4.4.5 USB-DSP 通讯电路设计47 4.5 本章小结 .48 第 5 章 运动控制器硬件电路设计 49 5.1 DSP 辅助电路49 5.1.1 JTAG 测试接口电路.49 5.1.2 供电电路 50 5.1.3 时钟电路 50 5.2 存储器扩展电路 .515.3 控制电压转换电路 .51 5.4 CPLD 处理电路.52 5.4.1 地址译码 53 5.4.2 正交编码脉冲处理及计数 53 5.4.3 中断逻辑 56 5.5 接口卡电路分析 .56 5.5.1 差分信号处理电路 56 5.5.2 输入输出信号处理

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 毕业论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号