基于LabVIEW和單片機(jī)的PLC設(shè)計
發(fā)布時間:2018-03-01 07:50
本文關(guān)鍵詞: ATMEGA16 LabVIEW 可編程控制器 LabVIEW報表 出處:《燕山大學(xué)》2014年碩士論文 論文類型:學(xué)位論文
【摘要】:可編程控制器(Programmable Controller,PLC)的廣泛應(yīng)用是工業(yè)自動化的重要標(biāo)志。為了彌補(bǔ)國產(chǎn)PLC市場的不足,克服國外PLC價格昂貴的缺點(diǎn),本文綜合運(yùn)用單片機(jī)技術(shù)和通信技術(shù),結(jié)合當(dāng)今熱門的虛擬儀器技術(shù),設(shè)計了基于ATMEGA16單片機(jī)和LabVIEW的工業(yè)通用可編程控制器系統(tǒng)。該系統(tǒng)在完成傳統(tǒng)PLC功能的同時,還增加了人性化的報表功能,具有性能好、成本低等優(yōu)點(diǎn)。 本論文的主要內(nèi)容包括PLC的總體設(shè)計、硬件設(shè)計和軟件設(shè)計三大部分。首先,本文在研究PLC結(jié)構(gòu)和工作原理的基礎(chǔ)上,提出了以ATMEGA16為核心,結(jié)合LabVIEW技術(shù)的PLC設(shè)計方案。其次,在硬件部分,集成了通用的輸入輸出端口,設(shè)計了模擬量輸入通道;系統(tǒng)在通信設(shè)計的時候引入了485總線,提高了系統(tǒng)的通信距離和通信可靠性。接著,軟件設(shè)計包含了兩個部分,分別是硬件系統(tǒng)軟件設(shè)計和上位機(jī)設(shè)計。為了保證硬件系統(tǒng)的良好運(yùn)行,本文提出了1ms時間節(jié)點(diǎn)輪詢的編程思想,該方法有效的增加了系統(tǒng)運(yùn)行效率和穩(wěn)定性;上位機(jī)由LabVIEW編寫,利用VISA節(jié)點(diǎn)實現(xiàn)了串口通信;上位機(jī)界面包含三個部分,用戶操作主界面、單個設(shè)備管理界面和報表界面;通過報表生成界面,用戶可以十分方便的生成Html、Word和Excel三種不同形式的報表。最后,,本論文完成硬件電路板的制作,進(jìn)行了系統(tǒng)性的測試,驗證了設(shè)計方法的合理性。
[Abstract]:The wide application of Programmable Controller (PLC) is an important symbol of industrial automation. In order to make up for the shortage of domestic PLC market and overcome the disadvantages of expensive foreign PLC, this paper uses the technology of single chip computer and communication technology synthetically. Combined with the popular virtual instrument technology, the industrial universal programmable controller system based on ATMEGA16 single chip computer and LabVIEW is designed. The system not only completes the traditional PLC function, but also adds the humanized report form function, which has good performance. Low cost and other advantages. The main contents of this paper include the overall design of PLC, hardware design and software design. Firstly, based on the study of the structure and working principle of PLC, this paper proposes a PLC design scheme based on ATMEGA16 and LabVIEW technology. In the hardware part, the general input and output ports are integrated, the analog input channel is designed, the 485 bus is introduced in the communication design, which improves the communication distance and the communication reliability of the system. The software design includes two parts: hardware system software design and host computer design. In order to ensure the good operation of the hardware system a 1ms time node polling programming idea is proposed in this paper. The method effectively increases the efficiency and stability of the system; the upper computer is written by LabVIEW and the serial communication is realized by using the VISA node; the upper computer interface consists of three parts: the user operation main interface, the single device management interface and the report interface. Through the report generation interface, the user can easily generate three different forms of reports: HtmlU word and Excel. Finally, the hardware circuit board is made in this paper, and the system test is carried out, which verifies the rationality of the design method.
【學(xué)位授予單位】:燕山大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TM571.61
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 胡吉朝;王定遠(yuǎn);安素方;傅s
本文編號:1551058
本文鏈接:http://sikaile.net/kejilunwen/dianlilw/1551058.html
最近更新
教材專著