重庆大学本科学生毕业设计(论文)
省线式编码器串行总线接口的设计与实现
学 生:苏玲宏
学 号:20072649
指导教师:严兴春
校外指导教师:唐小琦
专 业:机械设计制造及其自动化
重庆大学机械工程学院
二O一一年六月
Graduation Design(Thesis) of Chongqing University
The Multiplexed Data Line Encoder Serial Bus Interface Design and Implementation
Undergraduate: Su Linghong
Supervisor: Prof. Yan Xingqun
Assistant Supervisor : Prof. Tang Xiaoqi
Major: Mechanical Design and Manufacture and Automation
College of Mechanical Engineering
Chongqing University June 2011
摘 要
本论文围绕全数字交流伺服系统,分析了伺服驱动系统的组成,论述了数控系统和伺服系统的研究现状和发展趋势。重点研究了伺服系统位置反馈装置——编码器。
在吸收和借鉴国内外研究成果的基础上,本文深入研究了省线式编码器与数控伺服系统的串行总线接口。在结合Altera 公司FPGA芯片和光电编码器接口技术的基础上,设计出了省线式编码器串行总线接口装置,该装置由硬件和软件组成。硬件主要由编码器输入接口模块、FPGA模块、编码器上电控制模块以及输出接口模块构成。软件主要由四倍频辨向模块、编码器电影控制模块以及Endat2.2协议模块组成。
通过电路板焊接、调试与程序编写、下载后,该装置能够准确读取省线式编码器输出的相对位置信号,并且用FPGA芯片进行四倍频、辨向、计数以及Endat2.2协议输出等处理,成功地将编码器信号反馈给了交流伺服控制系统,构成了控制系统完整的位置和速度反馈环。
关键词:交流伺服系统,省线式编码器,FPGA,Endat2.2协议
ABSTRACT
Arounding the all-digital AC servo system,the composition of the servo drive system is discussed,the current situation and the developing trend for the study of the CNC system and servo drive system are analyzed in this paper.Especially focuses on the position feedback servo system device--encoder.
This paper focuses on the serial bus interface between the multiplexed data line encode and CNC servo systems,on the basis of research results at home and abroad.This paper focuses on the serial bus interface between the multiplexed data line encode and CNC servo systems,on the basis of research results at home and abroad.We use the FPGA chip of Altera Corporation and optical encoder interface technology to design the multiplexed data line encode serial bus interface device. The device consists of hardware and software.Hardware consists of the encoder input interface module, FPGA module, encoder power control module and output module.Software mainly consists of the following parts:fourfold-frequency direction-judgement module, encoder power control module and Endat2.2 protocol module. After welding the circuit
省线式编码器串行总线接口的设计与实现



