基于xPC的實(shí)時(shí)仿真及控制系統(tǒng)的開發(fā)
本文關(guān)鍵詞: 虛機(jī)實(shí)控 HIL xPC 實(shí)時(shí)仿真 Linux CNC EtherCAT 出處:《天津大學(xué)》2016年碩士論文 論文類型:學(xué)位論文
【摘要】:隨著多體動(dòng)力學(xué)、有限元分析、計(jì)算機(jī)圖形學(xué)等技術(shù)的發(fā)展,虛擬樣機(jī)技術(shù)被廣泛應(yīng)用于機(jī)電產(chǎn)品的開發(fā),它能極大減少實(shí)體樣機(jī)修改工作,縮短產(chǎn)品開發(fā)周期,降低產(chǎn)品研發(fā)成本,提高產(chǎn)品性能。但目前的大部分虛擬樣機(jī)技術(shù)主要面向樣機(jī)設(shè)計(jì)階段的性能預(yù)估和優(yōu)化,信息采集與反饋滯后,具有非實(shí)時(shí)性,無法有效評(píng)估樣機(jī)測(cè)試與運(yùn)行等產(chǎn)品實(shí)現(xiàn)階段的性能。虛擬樣機(jī)的實(shí)時(shí)仿真與測(cè)試技術(shù)能夠有效解決上述問題,它通過硬件在環(huán)(HIL,Hardware in the Loop)等半物理仿真實(shí)驗(yàn),獲得所測(cè)試的機(jī)電產(chǎn)品運(yùn)行時(shí)的性能數(shù)據(jù),從而指導(dǎo)產(chǎn)品的優(yōu)化和升級(jí);趪(guó)內(nèi)外研究控制系統(tǒng)在環(huán)仿真的現(xiàn)狀,本文提出了一種基于xPC的實(shí)時(shí)仿真及控制系統(tǒng)的設(shè)計(jì)方案。重點(diǎn)研究了多體系統(tǒng)的動(dòng)力學(xué)建模、xPC實(shí)時(shí)仿真技術(shù)、EtherCAT主從站開發(fā)、EtherCAT周期性過程通信等內(nèi)容。該方案利用Robotran等構(gòu)建多體系統(tǒng)動(dòng)力學(xué)模型,使模型能夠在xPC實(shí)時(shí)仿真平臺(tái)實(shí)時(shí)運(yùn)行,并通過EtherCAT實(shí)時(shí)通信技術(shù),使仿真模型能夠與真實(shí)數(shù)控系統(tǒng)LinuxCNC之間完成實(shí)時(shí)的數(shù)據(jù)交換,從而實(shí)現(xiàn)數(shù)控系統(tǒng)的在環(huán)仿真。本文提出的方案是一套完備的 虛機(jī)實(shí)控‖解決方案。首先,利用Robotran的動(dòng)力學(xué)建模特性,構(gòu)建出真實(shí)度較高的仿真模型,并與Simulink一起進(jìn)行協(xié)同實(shí)時(shí)仿真,實(shí)現(xiàn) 虛機(jī)‖的要求。其次,利用EtherCAT技術(shù)的特點(diǎn),構(gòu)建出實(shí)時(shí)通信的主從站。在運(yùn)行x PC的目標(biāo)機(jī)上添加帶有ESC的KPA卡,使目標(biāo)機(jī)成為從站;在運(yùn)行Linux CNC的工控機(jī)上安裝EtherCAT主站軟件,使工控機(jī)成為主站。再次,開發(fā)EtherCAT主從站程序。在LinuxCNC中利用comp工具構(gòu)建EtherCAT的HAL(Hardware Abstract Layer)通信模塊,模擬主站;在Simulink中編寫C語言的S函數(shù),驅(qū)動(dòng)從站工作。最后,編寫PDO(Process Data Obeject)通信代碼,實(shí)現(xiàn)了EtherCAT主從站之間的周期性PDO通信,符合數(shù)控系統(tǒng)與伺服驅(qū)動(dòng)之間的通信要求。同時(shí),本文還成功地進(jìn)行了多體系統(tǒng)單軸的位置環(huán)控制試驗(yàn)。研究結(jié)果表明,本文開發(fā)的基于xPC的實(shí)時(shí)仿真及控制系統(tǒng),能夠用于多體系統(tǒng)和控制系統(tǒng)的開發(fā)與測(cè)試,實(shí)現(xiàn)了“虛機(jī)實(shí)控”。
[Abstract]:With the development of multi-body dynamics, finite element analysis, computer graphics and other technologies, virtual prototyping technology is widely used in the development of mechanical and electrical products. However, most of the virtual prototyping technologies are mainly oriented to the performance prediction and optimization of the prototype design stage, the information collection and feedback lag behind, and the virtual prototyping technology is non-real-time. The real-time simulation and test technology of virtual prototyping can effectively solve the above problems, and it can be solved effectively by semi-physical simulation experiments such as hardware in the Loop. etc. The performance data of the tested electromechanical products are obtained to guide the optimization and upgrading of the products. In this paper, a design scheme of real-time simulation and control system based on xPC is proposed. The dynamic modeling of multi-body system and the real-time simulation technology of EtherCAT are emphatically studied. The main and slave stations of EtherCAT develop the periodic process communication of EtherCAT. The dynamic model of multi-body system is constructed by using Robotran and so on. The model can run in real time on the xPC real-time simulation platform, and through the EtherCAT real-time communication technology, the simulation model can complete the real-time data exchange between the simulation model and the real NC system LinuxCNC. In order to realize in loop simulation of NC system, the scheme proposed in this paper is a set of complete solution of virtual machine real control. Firstly, the simulation model with high fidelity is constructed by using the dynamic modeling characteristics of Robotran. And with Simulink to carry out collaborative real-time simulation to meet the requirements of the virtual machine. Secondly, using the characteristics of EtherCAT technology, the master and slave station of real-time communication is constructed. The KPA card with ESC is added to the target computer running x PC to make the target machine become slave station. The software of EtherCAT master station is installed on the industrial control computer running LinuxCNC, so that the industrial control computer becomes the master station. Thirdly, the EtherCAT master station program is developed. In LinuxCNC, the HAL(Hardware Abstract layer communication module of EtherCAT is constructed by using the comp tool, and the main station is simulated, and the S function of C language is written in Simulink. Finally, the PDO(Process Data object) communication code is written to realize the periodic PDO communication between the master and slave stations of EtherCAT, which conforms to the communication requirements between CNC system and servo drive. The research results show that the real-time simulation and control system based on xPC can be used in the development and test of multi-body system and control system. Realized "virtual machine real control".
【學(xué)位授予單位】:天津大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2016
【分類號(hào)】:TP391.9;TP273
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 段新會(huì),姜萍,佟振聲;用混合語言編程技術(shù)開發(fā)實(shí)時(shí)仿真軟件[J];華北電力大學(xué)學(xué)報(bào);2001年03期
2 廖良才,陳英武;實(shí)時(shí)仿真器設(shè)計(jì)與實(shí)現(xiàn)[J];計(jì)算機(jī)仿真;2001年02期
3 劉永文,張會(huì)生,蘇明,翁史烈;分布式實(shí)時(shí)仿真平臺(tái)的實(shí)現(xiàn)策略[J];計(jì)算機(jī)仿真;2002年03期
4 常青,邢超,李言俊;基于Matlab/Simulink的交互式實(shí)時(shí)仿真[J];計(jì)算機(jī)工程與應(yīng)用;2003年24期
5 ;從離線仿真到實(shí)時(shí)仿真的連續(xù)平臺(tái)[J];CAD/CAM與制造業(yè)信息化;2006年11期
6 付志紅;馬靜;謝品芳;陳清禮;;基于高速數(shù)字信號(hào)處理平臺(tái)的實(shí)時(shí)仿真技術(shù)[J];系統(tǒng)仿真學(xué)報(bào);2007年16期
7 任傳俊;蔣志文;;Real-Time Workshop實(shí)時(shí)仿真研究與應(yīng)用[J];計(jì)算機(jī)仿真;2007年08期
8 王濤;鄒毅軍;年曉紅;胡毅;;并網(wǎng)雙饋風(fēng)力發(fā)電實(shí)時(shí)仿真控制方案研究[J];系統(tǒng)仿真學(xué)報(bào);2009年14期
9 潘玉林;姚新宇;陳勇;黃柯棣;;并行分布實(shí)時(shí)仿真的高精度時(shí)間管理[J];系統(tǒng)仿真學(xué)報(bào);2009年S2期
10 李國(guó)岫,王磊;實(shí)時(shí)仿真技術(shù)及其在發(fā)動(dòng)機(jī)電控系統(tǒng)開發(fā)中的應(yīng)用[J];車用發(fā)動(dòng)機(jī);1998年06期
相關(guān)會(huì)議論文 前10條
1 廖良才;陳英武;;實(shí)時(shí)仿真器設(shè)計(jì)與實(shí)現(xiàn)[A];'2000系統(tǒng)仿真技術(shù)及其應(yīng)用學(xué)術(shù)交流會(huì)論文集[C];2000年
2 劉永文;;分布式實(shí)時(shí)仿真環(huán)境的系統(tǒng)結(jié)構(gòu)設(shè)計(jì)[A];2000年上海市系統(tǒng)仿真學(xué)會(huì)學(xué)術(shù)年會(huì)論文專輯[C];2000年
3 洪淑月;施曉鐘;;耦合雙回路中點(diǎn)故障的數(shù)字實(shí)時(shí)仿真[A];第二屆全國(guó)信息獲取與處理學(xué)術(shù)會(huì)議論文集[C];2004年
4 李新洪;張育林;曾國(guó)強(qiáng);;航天器編隊(duì)協(xié)同控制實(shí)時(shí)仿真[A];第25屆中國(guó)控制會(huì)議論文集(中冊(cè))[C];2006年
5 鮑春波;王博亮;;生物膜組織交互實(shí)時(shí)仿真研究[A];第十二屆全國(guó)圖象圖形學(xué)學(xué)術(shù)會(huì)議論文集[C];2005年
6 邵捷;王堅(jiān);馬云龍;;城市高架道路交通實(shí)時(shí)仿真及預(yù)測(cè)[A];先進(jìn)制造技術(shù)高層論壇暨第六屆制造業(yè)自動(dòng)化與信息化技術(shù)研討會(huì)論文集[C];2007年
7 黃超超;吳曉迪;楊星;楊華;;基于支持向量回歸機(jī)的紅外熱像實(shí)時(shí)仿真[A];中國(guó)計(jì)算機(jī)圖形學(xué)進(jìn)展2008--第七屆中國(guó)計(jì)算機(jī)圖形學(xué)大會(huì)論文集[C];2008年
8 高振興;顧宏斌;李鵬;;大型飛機(jī)飛行實(shí)時(shí)仿真系統(tǒng)建模研究[A];大型飛機(jī)關(guān)鍵技術(shù)高層論壇暨中國(guó)航空學(xué)會(huì)2007年學(xué)術(shù)年會(huì)論文集[C];2007年
9 肖民;姚壽廣;甘霏斐;;船用主機(jī)動(dòng)態(tài)過程實(shí)時(shí)仿真模型研究[A];第九屆全國(guó)內(nèi)河船舶及航運(yùn)技術(shù)學(xué)術(shù)交流會(huì)論文集[C];2004年
10 王彥愷;高立娥;張金濤;;基于UDP通信協(xié)議的實(shí)時(shí)仿真網(wǎng)絡(luò)數(shù)據(jù)傳輸[A];中國(guó)造船工程學(xué)會(huì)電子技術(shù)學(xué)術(shù)委員會(huì)2006學(xué)術(shù)年會(huì)論文集(下冊(cè))[C];2006年
相關(guān)重要報(bào)紙文章 前2條
1 北京 趙潔;美化XPC準(zhǔn)系統(tǒng)面板[N];電腦報(bào);2004年
2 通訊員續(xù)豐收特約記者王握文;成功用于航天運(yùn)載火箭仿真試驗(yàn)[N];科技日?qǐng)?bào);2002年
相關(guān)博士學(xué)位論文 前5條
1 丁承第;基于FPGA的有源配電網(wǎng)實(shí)時(shí)仿真方法研究[D];天津大學(xué);2014年
2 楊子輝;大規(guī)模輻射場(chǎng)景三維實(shí)時(shí)仿真關(guān)鍵技術(shù)研究[D];中國(guó)科學(xué)技術(shù)大學(xué);2016年
3 張光雨;鉛基實(shí)驗(yàn)堆熱工水力實(shí)時(shí)仿真及動(dòng)態(tài)特性分析[D];中國(guó)科學(xué)技術(shù)大學(xué);2017年
4 潘玉林;多層次并行與分布實(shí)時(shí)仿真平臺(tái)關(guān)鍵技術(shù)研究[D];國(guó)防科學(xué)技術(shù)大學(xué);2010年
5 余楓;海上搜救模擬器中近海溢油的實(shí)時(shí)仿真與可視化研究[D];大連海事大學(xué);2010年
相關(guān)碩士學(xué)位論文 前10條
1 楊帆;基于xPC的實(shí)時(shí)仿真及控制系統(tǒng)的開發(fā)[D];天津大學(xué);2016年
2 郝盛鋒;基于XPE船舶動(dòng)力電力系統(tǒng)建模與實(shí)時(shí)仿真[D];大連海事大學(xué);2015年
3 董建政;基于RT-LAB的風(fēng)電場(chǎng)無功電壓控制仿真分析[D];上海交通大學(xué);2015年
4 史高建;導(dǎo)彈彈道設(shè)計(jì)及其3D實(shí)時(shí)仿真[D];哈爾濱工業(yè)大學(xué);2015年
5 夏麗;核動(dòng)力裝置化學(xué)與容積控制系統(tǒng)動(dòng)態(tài)特性仿真研究[D];浙江大學(xué);2015年
6 何思武;基于PCS-C型實(shí)驗(yàn)裝置的先進(jìn)控制策略實(shí)時(shí)仿真研究[D];河北科技大學(xué);2015年
7 陳燕;基于OpenGL的任意衣物和人體的3D試穿實(shí)時(shí)仿真[D];南京大學(xué);2014年
8 鄧廷芝;地鐵牽引主電路實(shí)時(shí)仿真實(shí)現(xiàn)[D];西南交通大學(xué);2016年
9 黃霞;飛行實(shí)時(shí)仿真關(guān)鍵技術(shù)的研究與實(shí)現(xiàn)[D];電子科技大學(xué);2016年
10 周凱;基于Agent的實(shí)時(shí)仿真時(shí)間管理機(jī)制的研究與設(shè)計(jì)[D];國(guó)防科學(xué)技術(shù)大學(xué);2014年
,本文編號(hào):1545490
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/1545490.html