嵌入式四轴运动控制器的设计与研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
运动控制器是运动控制系统的核心部件,在各行各业中都有着广泛的应用。当前市场上的运动控制器主要是基于PC总线的运动控制卡,需要插入计算机主板的PCI或者ISA插槽,因此难以独立运行和小型化。针对这些问题,本论文提出以“ARM+DSP运动控制器”的模式取代传统的“PC机+运动控制卡”的模式,采用嵌入式CPU和专用DSP运动控制芯片,设计了一种高性能、低成本、体积小、可独立运行的基于PC104总线架构的嵌入式四轴运动控制器,并详细介绍了该控制器的软、硬件平台设计。
     嵌入式四轴运动控制器的硬件包括两个部分:ARM主控板和DSP运动控制板,两块电路板通过PC104总线接口连接在一起。ARM主控板以高性能低功耗的32位嵌入式ARM处理器S3C44B0X为核心,配置有丰富的存储器资源和通用设备接口,负责完成任务的管理、数据接收及处理、数控指令编译、输入输出、LCD显示、控制外部设备等工作;DSP运动控制板以运动控制芯片MCX314As为核心,负责快速的实时插补运算,并发出脉冲控制伺服电机进行高速运动,完成运动轨迹控制。
     本文采用Protel 99 SE绘图软件,完成运动控制器硬件原理图和PCB的设计,制作出硬件电路板。通过对电路板上各个功能模块的调试和验证,得出硬件电路板是可靠的,为后面的软件设计提供了良好的基础。
     在运动控制器的软件设计方面,将嵌入式实时操作系统μC/OS-Ⅱ移植到ARM处理器S3C44B0X上,并编写了系统的启动代码;研究了S3C44B0X对MCX314As的操作方法,设计了嵌入式四轴运动控制器的各个功能模块,编写了运动控制的API函数库。应用程序通过调用API函数库,可设计出各具特色的运动控制系统。
     总之,本文完成了嵌入式四轴运动控制器硬件平台的设计与制作、实时嵌入式操作系统μC/OS-Ⅱ的移植、运动控制API函数库的编写,为今后嵌入式四轴运动控制器的后续开发提供了一个嵌入式平台。
The motion controller is the core of the motion control system, and it has beenused widely in many fields. Currently most of motion controllers on the market aremotion control cards based on PC bus, which need be installed in PCI or ISA slot inthe personal computer (PC), so these controllers depend on computers. The volumeof the system used these controllers is too big to satisfy some applicationrequirements. For solving these problems, this thesis puts forward the mode of"ARM+DSP motion controller" instead of the traditional mode of "PC+motioncontrol card", designs a kind of high performance, low cost, small size and generalpurpose 4-axes embedded motion controller. The controller can work in standalonemode based on embedded ARM processor, special DSP motion control chip andPC104 structure. And this thesis introduces the software and hardware platformdesign of the controller in detail.
     The hardware structure of 4-axes embedded motion controller includes twoparts: The ARM control board and DSP motion control board, two pieces of circuitboards connect together through the PC 104 bus. The kernel of ARM control board isthe 32-bit embedded ARM CPU S3C44B0X with characteristics of highperformance and low power consumption. And it is also equipped with the requiredperipheral modules to be a complete hardware system. ARM control board mainlyrealizes the function of the task manage, data receiving and handling, numericalcontrol instruction editing, I/O control, LCD display and the external equipmentscontrolling. The kernel of DSP motion control board is the DSP CPU MCX314As,which mainly realizes the function of real-time interpolation algorithm; outputtingpulse to control servo motor to carry on high-speed moving, and complete themotion control.
     Using the Protel 99 SE drawing software, this thesis designs the schematic andprinted circuit board (PCB) of 4-axes embedded motion controller, and makes thehardware circuit board. By debugging and validating each function of the hardwareplatform, the result of this hardware platform is dependable, which can provide good foundation for the software design in the next work.
     In the software design, this thesis introduces how to transplant uC/OS-Ⅱreal-time operating system (RTOS) into hardware platform, and discusses how towrite the system boot code. Then this thesis studies the method to operateMCX314As, designs each function of the 4-axes embedded motion controller,develops motion control API functions in order to meet the need of developingapplication software easily. Application program can be designed several kinds ofmotion control system that have special features by using the API functions library.
     In a word, the article has designed and made the hardware of 4-axes embeddedmotion controller, transplanted RTOS uC/OS-Ⅱinto hardware platform, developed amotion control API functions library, in addition to providing an embedded platformfor the subsequence development.
引文
[1] 蒋仕龙,吴宏等.通用运动控制技术的现状与发展[J].2003年中国机械工程协会年会论文集.
    [2] 丛爽,李泽湘编著.实用运动控制技术[M].北京:电子工业出版社,2003.
    [3] 魏忠勇,雷红卫编著.嵌入式开发详解[M].北京:电子工业出版社,2003.
    [4] 张连明,霍迎辉.嵌入式系统的设计与开发[J].国外电子元器件,2004,(1):20-21.
    [5] Jack Ganssle. Changes in Embedded Design Methodology[J]. Embedded System Programming, 1999, 9:35-40.
    [6] 王田苗编著.嵌入式系统设计与实例开发[M].清华大学出版社,2002.
    [7] J. E. Coolirg. Software design for real-time Systems[J]. Chapman and Hall World Publishing Crop, 1998:200-221.
    [8] 马登极.基于ARM和DSP的嵌入式轴承故障检测系统[D].浙江大学硕士毕业论文,2006,7.
    [9] 唐其伟.基于ARM与uC/OS-Ⅱ的嵌入式系统研究[D].广东工业大学硕士学位文,2005,5.
    [10] 田泽编著.嵌入式系统开发与应用[M].北京:北京航空航天大学出版社,2005.
    [11] SAMSUNG公司.S3C44BOX_datasheet.pdf[Z], http://www.samsung.com.
    [12] NOVA公司.MCX314As.pdf[Z], http://www.novaelec.com.cn.
    [13] 马忠梅.ARM嵌入式处理器与嵌入式系统[J].电子世界,2003,3:41-42.
    [14] 万晨妍,候颖欣.基于ARM7TDM1的嵌入式系统设计r-5实现[J].计算机工程,2003,29(18):166-168.
    [15] Advanced RISC Machines Ltd (ARM).ARMJTDMI Data Sheet. 1995.
    [16] 叶佩青,汪劲松编著.MCX314As运动控制芯片与数控系统设计[M].北京:北京航空航天大学出版,2002.
    [17] PC104技术手册[S],盛博科技有限公司,2000.
    [18] 胡安平.PC104在工程中的应用[J].电子产品世界.2002,(8):60-61.
    [19] http://blog.sina.com.cn/u/4ae24060010007kz.
    [20] Jack Ganssle, Changes in Embedded Design Methodology Application Design Using a Real-Time OS 36th Design Automation Conference[J]. Proceedings. 1999.
    [21] Robert Richards, Designing RTOS for Embedded Microcontrollers[J]. Embedded systems Programming, May. 1997.
    [22] 郭其一,邹洁.赵艳华工业嵌入式操作系统综述[J].机车电传动,2003,(1):4-5.
    [23] Jean J Labrosse. Micro C/OS-Ⅱ The Real Time Kernel [M]. CMP Books, 2002.
    [24] David E. Simon. An Embedded Software Primer[M].北京:机械工业出版社,2005,9.
    [25] 胥静.嵌入式系统设计与开发实例详解-基于ARM的应用[M].北京:北京航空航天大学出版社,2005,1
    [26] 马春鸣.基于ARM处理器的嵌入式系统实现[D].北京邮电大学硕士学位文,2005,3.
    [27] 周立功等编著.ARM嵌入式系统基础教程[M].北京:北京航空航天大学出版社,2005.
    [28] RTL8019AS DATASHEET [Z]. REALTEK Semiconductor Co., Ltd.
    [29] 金志强.基于ARM的嵌入式控制系统硬件设计[D].中国科学院光电技术研究所硕士学位论文,2003,2.
    [30] D系列中文液晶显示模块使用说明书[S].http://www.gptlcm.cn.
    [31] 王庆斌,刘萍,尤利文等.电磁干扰和电磁兼容技术[M].北京:机械工业出版社,1999.
    [32] T. C. Lun. Designing for Board Level Electromagnetic Compatibility [J]. Motorola Application Notes, AN2321/D.
    [33] 曾峰,侯亚宁,曾凡雨.印刷电路板(PCB)设计与制作[M].北京:电子工业出版社,2002.
    [34] 黄燕平编著.μC/OS-Ⅱ ARM移植要点详解[M].北京:北京航空航天大学出版社,2005.
    [35] 李臣龙.基于S3C44BOX的BootLoader分析与实现[J].电脑编程技巧与维护,2006,11:76-78.
    [36] 单承刚,戴学丰,刘树东等.基于ARM的嵌入式BootLoader设计与启动过程[J].微计算机信息,2006,22:139-142.
    [37] 张萍.uC/OS-Ⅱ在ARM上的移植与系统扩展[D].昆明理工大学硕士学位论文,2004,8.
    [38] Tang zheng, Guo Wei. Embedded system design for MC68332[J]. Proceedings of the CSU-EPSA, 2005, 17(1):88-92.
    [39] Chu. Hongyu, Li. Leimin, Huang. Yuging etc. Implementation of porting RTOS uC/OS-Ⅱ to ARM9[J]. Computer Engineering, 2005, 31(20):226-228.
    [40] 陈小朴.嵌入式技术在铣床数控系统上的应用[D].广东工业大学硕士学位文,2004,5.