摘要
为克服Windows系统对并口直接访问的限制,提出了一种直接利用计算机并行接口来控制步进电机的新方法。通过采用PortTalk静态连接库,利用MicrosoftVisualC++语言,在WindowsXP平台上实现了通过计算机并行接口进行步进电机转速、转向的精确控制,并在手动单色仪改造中实现了从600~1700nm波长范围的20s快速扫描以及瞬间起停,利用该方法还实现了计算机直接控制精密位移平台,步进距离约为1μm,与直接购买自动仪器相比可节省大量资金,并减少测试系统软件二次开发的难度。该方法可用于实验室及工业新旧仪器的改造与设计。
There are many methods to control stepper motors using personal computer. However, most of those are to control stepper motors through additional plug communication card or computer serial ports.A new low-cost and simple method of controlling stepper motors through personal computer's parallel port directly on WindowsXP has been proposed. The soft package of parallel ports I/O accessing used in this method is PortTalk in a user defined static link library, which overcomes the restriction of Windows parallel ports accessing. The program was developed using Microsoft Visual C++ 6.0. This method also can be applied to Windows2000/XP or NT. And it has been used in automation reconstructing of a manual operating monochrometer and precision displacement plate. 20 sec of scan from 600~1700 nm wavelength and instantaneous run or stop have been achieved for the former and 1 μm move step can be obtained for the latter. Compared with purchasing automation instruments, it can save much more expenses and can be used in new and old laboratorial or industrial instruments reconstruction and design.
出处
《吉林大学学报(信息科学版)》
CAS
2004年第5期481-484,共4页
Journal of Jilin University(Information Science Edition)
基金
吉林大学新世纪教育教学改革基金资助项目(450011024274)