F31X303MCPAPG100600燃機卡件主控PC機為標定系統(tǒng)的最上層,可以在線監(jiān)控整車CAN網(wǎng)絡數(shù)據(jù),并對整車控制器標定參數(shù)進行在線修改,從而對系統(tǒng)進行統(tǒng)一控制管理。CAN通信模塊采用NI 9853兩通道高速CAN采集模塊采集整車CAN網(wǎng)絡信號,分辨率達25ns,支持11位和29位任意ID,該方案具有高集成度的特點,節(jié)省了設備投入,并使標定人員的工作環(huán)境得到了簡化。
F31X303MCPAPG100600燃機卡件系統(tǒng)軟件設計混合動力汽車整車標定系統(tǒng)的軟件設計充分考慮了CompactRIO系統(tǒng)的硬件特性,軟件編程主要包括底層FPGA程序、RT程序以及上位機Host程序三個部分。
底層FPGA程序?qū)崿F(xiàn)各個板卡的數(shù)據(jù)采集、各個IO通道的校正系數(shù)的傳遞,數(shù)據(jù)與RT的DMA傳輸?shù)?。RT程序負責與底層FPGA通信,RT系統(tǒng)的指示燈閃爍、用戶開關的控制,與上位機Host的TCP/IP網(wǎng)絡通信、FTP數(shù)據(jù)傳輸以及測試數(shù)據(jù)的標定、解釋以及記錄等功能。上位機Host程序負責配置整體測試系統(tǒng)通道,與RT通信,并可實時監(jiān)控采集板卡的特定通道,查看RT上保存的數(shù)據(jù)等。
整個軟件支持不同的采樣率,支持CAN幀的記錄與轉(zhuǎn)換,以及TDMS文件格式的存儲,控制器的數(shù)據(jù)記錄通過前面板指示燈閃爍顯示,并可通過前面板自定義開關暫停數(shù)據(jù)記錄。系統(tǒng)已經(jīng)擴展U盤,數(shù)據(jù)會自動存儲在U盤中,下電后只需將U盤中的數(shù)據(jù)復制到上位機即可。
在用Labview圖形化語言開發(fā)完運行在FPGA目標上的程序之后,對該程序進行編譯,并將編譯后的文件下載到FPGA芯片上。RT程序可通過Labview Real-Time Application工具下載到NI CompactRIO實時系統(tǒng)中,這樣系統(tǒng)只要一上電,RT程序就會自動運行。
根據(jù)標定系統(tǒng)的基本功能將上位機軟件分為以下幾個模塊:CAN通信控制模塊、整車控制器標定模塊、CAN網(wǎng)絡數(shù)據(jù)監(jiān)測模塊。CAN通信配置模塊的主要作用是配置CAN通道的相關信息,從而驅(qū)動NI 9853CAN卡,進行CAN數(shù)據(jù)的收發(fā);標定的大部分工作都是在整車控制器標定模塊下完成的,該模塊要執(zhí)行的任務總體來說有兩個:讀RAM區(qū)域數(shù)據(jù),并在PC上顯示、以及下載數(shù)據(jù)到RAM區(qū)域。圖2所示為標定界面,標定過程中的各項指令均以控件的形式顯示在前面板,用戶在點擊某項指令時,該模塊應能夠接收用戶的標定指令并起動管理相應線程。CAN網(wǎng)絡數(shù)據(jù)監(jiān)測模塊的主要作用是將CAN卡獲得的整車CAN網(wǎng)絡消息進行處理,最后顯示在監(jiān)測界面上。從CAN卡獲得的CAN消息仍然是數(shù)據(jù)幀的形式,為了給測試人員提供友好的界面,需要在十進制數(shù)據(jù)和控制器中所采用的二進制數(shù)據(jù)之間進行轉(zhuǎn)換,同時在應用程序中需要根據(jù)各控制器發(fā)送的CAN消息的ID號進行相應的數(shù)據(jù)解析
difference is not zero, the eccentricity of axes B and C is one half of the height difference. The measurement method is as follows: first, install the core rod for testing on the main shaft, correct the b axis, and make the core rod (main shaft axis) perpendicular to the XY plane (square method); As shown in Fig. 6, rotate axis B by + 90 ° and - 90 ° respectively to measure the height difference of the lowest point on the side of the mandrel in the two directions. If the height difference is zero, the spatial geometric relationship between the pendulum head and the main shaft conforms to the ideal situation. If the height difference is not zero, the eccentricity of the main shaft and the b-axis is half of the height difference.
First, the eccentricity of the b-axis and the spindle is measured in the same way as that of the single pendulum head milling machine.
Then, measure the eccentricity of axis C and the main shaft. The method is as follows: as shown in the left of Fig. 8,