基于PCIe總線的EtherCAT從站設計
發(fā)布時間:2018-02-17 04:34
本文關鍵詞: EtherCAT網絡 數據采集系統(tǒng) 同步性控制 PCIe FPGA 出處:《大連理工大學》2015年碩士論文 論文類型:學位論文
【摘要】:在海洋工程模型的研究試驗中,測量系統(tǒng)受自身的封閉性、獨立性等條件限制,各類測量儀器單獨運行,獨立采集、存儲及上傳實驗數據,從而影響到了整個測試系統(tǒng)的實時同步控制、觀測與處理。為了提高數據傳輸的實時性和同步性,將EtherCAT實時以太網技術引入數據采集系統(tǒng),將各個獨立的從站統(tǒng)一連接,為高速實時的現代化數據采集系統(tǒng)提供了理想平臺。本文介紹了網絡化數據采集系統(tǒng)的研究現狀和發(fā)展前景,針對沒有EtherCAT網絡接口的數據采集系統(tǒng)從站類型,設計了一款基于PCIe總線的從站通信卡。本設計實現了一種新的EtherCAT從站設計形式,通過這款具有EtherCAT網絡從站功能的PCIe通信卡,將需要計算機獨立管理的數據采集系統(tǒng)從站成功接入到EtherCAT網絡。該方案改變并拓寬了EtherCAT從站實現形式,提高了數據采集系統(tǒng)從站的整體性能,為研究和應用EtherCAT技術提供了一種新的途徑。該通信卡包括三大核心芯片:FPGA.STM32和ET1100。從站設備將采集的數據通過PCIe,總線傳輸到FPGA, FPGA將數據轉化后通過SPI總線傳送到STM32單片機,單片機將數據進行編碼、映射后借助于從站控制器芯片ET1100將數據成功傳輸至EtherCAT網絡。本文將從系統(tǒng)從站的整體設計方案、系統(tǒng)從站硬件的的設計及實現、系統(tǒng)從站軟件的設計與實現等幾個方面展開論述。首先詳細介紹了系統(tǒng)從站硬件電路的設計,包括PCIe接口設計、FPGA器件選型及電路設計、EtherCAT通信模塊電路設計和電源電路設計,然后介紹EtherCAT網絡從站軟件程序設計包括STM32程序設計、FPGA程序設計以及系統(tǒng)從站驅動程序的開發(fā),最后對整個EtherCAT網絡化數據采集系統(tǒng)從站進行調試和性能測試。首先在QuartusⅡ 11.0軟件開發(fā)環(huán)境下,利用Signal TapII在線邏輯分析儀測試了PCIe總線數據傳輸時序和FPGA內部數據傳輸時序,然后利用倍福公司的TwinCAT軟件進行網卡整體傳輸性能測試,最后利用實驗室自主研發(fā)的系統(tǒng)主站軟件進行從站網卡的數據傳輸性能測試。實驗表明,基于PCIe,總線的EtherCAT網絡化數據采集系統(tǒng)從站性能良好,滿足了數據傳輸的實時性、同步性、準確性的要求。
[Abstract]:In the research and test of ocean engineering model, the measurement system is restricted by its own closure and independence, and all kinds of measuring instruments run alone, collect, store and upload the experimental data independently. In order to improve the real-time and synchronicity of data transmission, EtherCAT real-time Ethernet technology is introduced into the data acquisition system, and each independent slave station is connected uniformly, so that the real-time synchronization control, observation and processing of the whole test system are affected, and in order to improve the real-time and synchronization of data transmission, the EtherCAT real-time Ethernet technology is introduced into the data acquisition system. It provides an ideal platform for modern data acquisition system with high speed and real time. This paper introduces the research status and development prospect of networked data acquisition system, aiming at the slave station type of data acquisition system without EtherCAT network interface. A slave station communication card based on PCIe bus is designed. This design realizes a new EtherCAT slave station design form, through this PCIe communication card which has the function of EtherCAT network slave station, The data acquisition system which needs computer independent management is successfully connected to the EtherCAT network. The scheme changes and widens the realization form of the EtherCAT slave station and improves the overall performance of the slave station of the data acquisition system. This communication card includes three core chips: FPGA.STM32 and ET1100.The data collected by slave equipment is transmitted to FPGA via PCI, and transferred to FPGA by FPGA, and then transferred to STM32 microcontroller by FPGA bus, and the communication card is composed of three core chips: FPGA.STM32 and ET1100. The MCU encodes the data and transmits the data successfully to the EtherCAT network by means of the slave controller chip ET1100. In this paper, the whole design scheme of the slave station and the hardware design and implementation of the slave station are introduced. The system is discussed from several aspects, such as the design and realization of the station software. Firstly, the hardware circuit design of the system slave station is introduced in detail, including the PCIe interface design, FPGA device selection and circuit design, and the circuit design of EtherCAT communication module and power supply circuit. Then the software design of EtherCAT network slave station includes STM32 program design and the development of system slave station driver. Finally, the slave station of the whole EtherCAT network data acquisition system is debugged and its performance is tested. Firstly, in the Quartus 鈪,
本文編號:1517226
本文鏈接:http://sikaile.net/kejilunwen/haiyang/1517226.html
最近更新
教材專著