資源描述:
《本科基于labview串口的現(xiàn)場實時多通道溫度采集測量與實現(xiàn)_畢設(shè)論文.doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
1、摘要溫度是機(jī)械加工中最基本的參數(shù)之一,在生產(chǎn)過程中常需要對溫度進(jìn)行檢測和監(jiān)控。數(shù)控機(jī)床加工中,常需要對數(shù)控機(jī)床進(jìn)行熱誤差計算并實現(xiàn)熱誤差補償,通過熱誤差補償技術(shù)來達(dá)到提高數(shù)控機(jī)床加工精度的目的。因此,研究一種基于串行通信的多路溫度采集和實時監(jiān)控系統(tǒng),對提高工業(yè)控制性能、提高數(shù)控機(jī)床的加工精度以及提高生產(chǎn)效率有著重要的意義。本文設(shè)計了一種數(shù)控機(jī)床多點溫度采集電路,可以同時對四路溫度進(jìn)行實時的采集和顯示,通過設(shè)定溫度的報警范圍對其進(jìn)行預(yù)警,并且利用串口實現(xiàn)單片機(jī)和計算機(jī)的通信,使用上位機(jī)完成數(shù)據(jù)處理和溫度
2、的顯示等。溫度的測量精度低于0.5℃。設(shè)計中使用STC89C52作為下位機(jī)的主控芯片,并使用LCD1602液晶屏進(jìn)行溫度的顯示,采用溫度傳感器TC1047進(jìn)行溫度采集。將溫度傳感器輸出的電壓通過RC濾波電路以及運放OP07組成的放大電路,然后通過A/D轉(zhuǎn)換,最后將A/D轉(zhuǎn)換的數(shù)字量通過RS232串口發(fā)送到LABVIEW編寫的上位機(jī)進(jìn)行數(shù)據(jù)處理和顯示。通過上位機(jī)設(shè)置溫度的采集速率以及設(shè)定報警溫度上限,將采集到的數(shù)據(jù)以TXT或XLS格式存儲到電腦中。硬件電路采用低成本的設(shè)計思想,軟件設(shè)計采用模塊化的設(shè)計方
3、法,最后進(jìn)行實物的制作和調(diào)試,驗證了設(shè)計的設(shè)計穩(wěn)定性和可行性,實現(xiàn)了設(shè)計的預(yù)期結(jié)果。關(guān)鍵詞:串口通信;LABVIEW;數(shù)控機(jī)床;熱誤差;多通道溫度采集AbstractTemperatureisoneofthemostbasicparametersinthemachiningandtemperaturedetectionandmonitoringiscommonlyfoundintheproduction.InCNCmachining,thermalerrorofCNCmachineneedtobeca
4、lculated,andthermalerrorcompensationisimplemented.ThroughthethermalerrorcompensationtechniquestoachievethepurposeoftheimprovementofprecisionCNCmachining.Sothestudyofamulti-channeltemperatureacquisitionandreal-timemonitoringsystembasedonserialcommunicati
5、onhasanimportantsignificancetoimprovetheperformanceofindustrialcontrolandproductionefficiency.Thisarticledesignamulti-channeltemperatureacquisitioncircuitofCNCmachine.Itcanacquirefourchanneltemperaturedataatthesametime,alsothedisplayofthesedataisreal-ti
6、me.Themethodalsocansettemperaturealarmingrangeandifthedataexceedtherangethesystemwillwarn.Andusingtheserialporttorealizethesinglechipmicrocomputerandcomputercommunication,usinguppercomputertocompletedataprocessinganddisplayoftemperature,etc.Temperaturem
7、easuringprecisionlessthan0.5℃.STC89C52isthemaincontrolchipofthedesign,andLCD1602isusedtodisplaythetemperaturevalue,andtemperaturesensorTC1047isusedfortemperatureacquisition.TemperaturesensoroutputvoltagewillbyRCfiltercircuitandamplifiercircuitwhichiscom
8、posedofoperationalamplifierOP07,andthenthroughtheA/Dconversion.finally,throughtheRS232serialportsentthedigitalquantitytouppercomputerfordataprocessinganddisplay,andtheuppercomputeriswrotebyLABVIEW.Cansetthetemperaturedataacquisit