基于PCIe总线的EtherCAT从站设计
发布时间:2018-02-17 04:34
本文关键词: EtherCAT网络 数据采集系统 同步性控制 PCIe FPGA 出处:《大连理工大学》2015年硕士论文 论文类型:学位论文
【摘要】:在海洋工程模型的研究试验中,测量系统受自身的封闭性、独立性等条件限制,各类测量仪器单独运行,独立采集、存储及上传实验数据,从而影响到了整个测试系统的实时同步控制、观测与处理。为了提高数据传输的实时性和同步性,将EtherCAT实时以太网技术引入数据采集系统,将各个独立的从站统一连接,为高速实时的现代化数据采集系统提供了理想平台。本文介绍了网络化数据采集系统的研究现状和发展前景,针对没有EtherCAT网络接口的数据采集系统从站类型,设计了一款基于PCIe总线的从站通信卡。本设计实现了一种新的EtherCAT从站设计形式,通过这款具有EtherCAT网络从站功能的PCIe通信卡,将需要计算机独立管理的数据采集系统从站成功接入到EtherCAT网络。该方案改变并拓宽了EtherCAT从站实现形式,提高了数据采集系统从站的整体性能,为研究和应用EtherCAT技术提供了一种新的途径。该通信卡包括三大核心芯片:FPGA.STM32和ET1100。从站设备将采集的数据通过PCIe,总线传输到FPGA, FPGA将数据转化后通过SPI总线传送到STM32单片机,单片机将数据进行编码、映射后借助于从站控制器芯片ET1100将数据成功传输至EtherCAT网络。本文将从系统从站的整体设计方案、系统从站硬件的的设计及实现、系统从站软件的设计与实现等几个方面展开论述。首先详细介绍了系统从站硬件电路的设计,包括PCIe接口设计、FPGA器件选型及电路设计、EtherCAT通信模块电路设计和电源电路设计,然后介绍EtherCAT网络从站软件程序设计包括STM32程序设计、FPGA程序设计以及系统从站驱动程序的开发,最后对整个EtherCAT网络化数据采集系统从站进行调试和性能测试。首先在QuartusⅡ 11.0软件开发环境下,利用Signal TapII在线逻辑分析仪测试了PCIe总线数据传输时序和FPGA内部数据传输时序,然后利用倍福公司的TwinCAT软件进行网卡整体传输性能测试,最后利用实验室自主研发的系统主站软件进行从站网卡的数据传输性能测试。实验表明,基于PCIe,总线的EtherCAT网络化数据采集系统从站性能良好,满足了数据传输的实时性、同步性、准确性的要求。
[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
本文链接:https://www.wllwen.com/kejilunwen/haiyang/1517226.html