自動(dòng)售貨機(jī)控制系統(tǒng)設(shè)計(jì).doc
約32頁(yè)DOC格式手機(jī)打開(kāi)展開(kāi)
自動(dòng)售貨機(jī)控制系統(tǒng)設(shè)計(jì),1萬(wàn)字32頁(yè) 有電路圖和程序代碼摘 要本論文設(shè)計(jì)的是由微機(jī)—plc構(gòu)成的自動(dòng)售貨機(jī)監(jiān)控系統(tǒng),本文闡述了自動(dòng)售貨機(jī)的來(lái)源與發(fā)展,以及它在國(guó)內(nèi)外發(fā)展的現(xiàn)狀,對(duì)自動(dòng)售貨機(jī)的方案進(jìn)行了論證,介紹了plc的基本組成、特點(diǎn)以及工作原理,對(duì)由微機(jī)—plc構(gòu)成的自動(dòng)售貨機(jī)系統(tǒng)整體設(shè)計(jì)過(guò)程進(jìn)行較為細(xì)致的論述。在設(shè)計(jì)中選擇pc機(jī)作為主工作...
內(nèi)容介紹
此文檔由會(huì)員 郭躍 發(fā)布
1萬(wàn)字 32頁(yè) 有電路圖和程序代碼
摘 要
本論文設(shè)計(jì)的是由微機(jī)—PLC構(gòu)成的自動(dòng)售貨機(jī)監(jiān)控系統(tǒng),本文闡述了自動(dòng)售貨機(jī)的來(lái)源與發(fā)展,以及它在國(guó)內(nèi)外發(fā)展的現(xiàn)狀,對(duì)自動(dòng)售貨機(jī)的方案進(jìn)行了論證,介紹了PLC的基本組成、特點(diǎn)以及工作原理,對(duì)由微機(jī)—PLC構(gòu)成的自動(dòng)售貨機(jī)系統(tǒng)整體設(shè)計(jì)過(guò)程進(jìn)行較為細(xì)致的論述。
在設(shè)計(jì)中選擇PC機(jī)作為主工作站的上位機(jī),下位機(jī)采用PLC作控制器,每個(gè)PLC控制器控制一個(gè)售貨機(jī)子系統(tǒng),三臺(tái)PLC控制器分別為從工作站1,從工作站2,從工作站3,文中詳盡地介紹了自動(dòng)售貨機(jī)的各硬件組成,并完成了PLC外部接線圖。文中制作了上位機(jī)用戶管理界面,應(yīng)用VB6.0軟件對(duì)上位機(jī)用戶管理界面的程序以及主工作站的通信程序進(jìn)行編寫(xiě)并調(diào)試;在PLC梯形圖的編寫(xiě)時(shí),文中采用的是西門(mén)子PLC梯形圖專用編譯軟件STEP7來(lái)進(jìn)行編寫(xiě)。
本論文的重點(diǎn)放在PLC各硬件部分的設(shè)計(jì)和介紹、PLC梯形圖的編寫(xiě)及諸工作站程序的編寫(xiě)上。在整體設(shè)計(jì)過(guò)程中按照“提出問(wèn)題,分析問(wèn)題,解決問(wèn)題”的主導(dǎo)思想,對(duì)整個(gè)系統(tǒng)的設(shè)計(jì)工作做出了細(xì)致的闡述。
關(guān)鍵詞:可編程控制器(PLC);自動(dòng)售貨機(jī);梯形圖;VB
Abstract
The present paper design was by the microcomputer - PLC constitution automat supervisory system, this article elaborated automat and the development, as well as it in the domestic and foreign development present situation, has carried on the proof to automat plan, introduced PLC composed, the characteristic as well as the principle of work basically, to carried on a more careful elaboration by the microcomputer - PLC constitution vending machine system overall design process.
Chooses PC machine in the design to take the host workstation on position machine, the lower position machine uses PLC to make the controller, each PLC controller controls a automat subsystem, three PLC controllers respectively be from the workstation 1, from the workstation 2, from the workstation 3, in the article exhaustively introduced the automat various hardware composition, and has completed the PLC exterior wiring diagram. In the article has manufactured on the position machine user management contact surface, applies the VB6.0 software carries on to on position machine user management contact surface procedure as well as the host workstation signal procedure compiles and debugs; When PLC trapezoidal chart compilation, in the article uses is Siemens PLC trapezoidal chart special-purpose translation software STEP7 carries on the compilation.
The present paper key point places the PLC various hardware part the design and the introduction, the PLC trapezoidal chart compilation and in the various workstation procedure compilation. Defers to in the overall design process “asks the question, the analysis question, solves the problem” the guiding ideology, has made the careful elaboration to the overall system design work.
Key words:PLC; Automat; Ladder logic diagram; VB
目 錄
第1章 緒 論 1
第2章 基于PLC技術(shù)的自動(dòng)售貨機(jī)的方案論證 2
2.1 自動(dòng)售貨機(jī)簡(jiǎn)介 2
2.2 自動(dòng)售貨機(jī)控制方案選擇 3
2.2.1 基于單片機(jī)的自動(dòng)售貨機(jī)控制系統(tǒng) 3
2.2.2 本設(shè)計(jì)方案選擇 4
2.3 本系統(tǒng)組成 4
第3章 硬件設(shè)計(jì) 6
3.1 PLC控制的特點(diǎn) 6
3.1.1 PLC的產(chǎn)生 6
3.1.2 PLC的工作原理 6
3.1.3 PLC應(yīng)用的特點(diǎn) 6
3.1.4 PLC的內(nèi)部組成 7
3.2 系統(tǒng)的輸入/輸出信號(hào) 7
3.3 PLC選型 9
3.4 I/O地址分配 9
3.5 PLC外部接線設(shè)計(jì) 10
3.6 硬件電路設(shè)計(jì) 10
3.6.1 硬幣的識(shí)別原理 10
3.6.2 加熱控制電路的設(shè)計(jì) 11
3.6.3 制冷裝置的設(shè)計(jì) 11
3.6.4 咖啡、果珍出口控制 12
3.6.5 出杯、制動(dòng)控制 13
第4章 軟件設(shè)計(jì) 14
4.1 上位機(jī)監(jiān)控管理程序 14
4.2 主工作站通信程序 16
4.2.1 通信協(xié)議 16
4.2.2 串行通信程序設(shè)計(jì) 16
4.3 PLC控制程序 20
4.3.1 識(shí)幣檢測(cè)、出杯、制動(dòng)梯形圖的設(shè)計(jì) 20
4.3.2 咖啡、果珍出口控制梯形圖的設(shè)計(jì) 21
4.3.3 加熱、制冷梯形圖的設(shè)計(jì) 22
4.3.4 PLC通信程序 22
第5章 結(jié)論 23
參考文獻(xiàn) 24
致 謝 26
附 錄Ι 27
附 錄ΙΙ 39
附 錄ΙΙΙ 40
摘 要
本論文設(shè)計(jì)的是由微機(jī)—PLC構(gòu)成的自動(dòng)售貨機(jī)監(jiān)控系統(tǒng),本文闡述了自動(dòng)售貨機(jī)的來(lái)源與發(fā)展,以及它在國(guó)內(nèi)外發(fā)展的現(xiàn)狀,對(duì)自動(dòng)售貨機(jī)的方案進(jìn)行了論證,介紹了PLC的基本組成、特點(diǎn)以及工作原理,對(duì)由微機(jī)—PLC構(gòu)成的自動(dòng)售貨機(jī)系統(tǒng)整體設(shè)計(jì)過(guò)程進(jìn)行較為細(xì)致的論述。
在設(shè)計(jì)中選擇PC機(jī)作為主工作站的上位機(jī),下位機(jī)采用PLC作控制器,每個(gè)PLC控制器控制一個(gè)售貨機(jī)子系統(tǒng),三臺(tái)PLC控制器分別為從工作站1,從工作站2,從工作站3,文中詳盡地介紹了自動(dòng)售貨機(jī)的各硬件組成,并完成了PLC外部接線圖。文中制作了上位機(jī)用戶管理界面,應(yīng)用VB6.0軟件對(duì)上位機(jī)用戶管理界面的程序以及主工作站的通信程序進(jìn)行編寫(xiě)并調(diào)試;在PLC梯形圖的編寫(xiě)時(shí),文中采用的是西門(mén)子PLC梯形圖專用編譯軟件STEP7來(lái)進(jìn)行編寫(xiě)。
本論文的重點(diǎn)放在PLC各硬件部分的設(shè)計(jì)和介紹、PLC梯形圖的編寫(xiě)及諸工作站程序的編寫(xiě)上。在整體設(shè)計(jì)過(guò)程中按照“提出問(wèn)題,分析問(wèn)題,解決問(wèn)題”的主導(dǎo)思想,對(duì)整個(gè)系統(tǒng)的設(shè)計(jì)工作做出了細(xì)致的闡述。
關(guān)鍵詞:可編程控制器(PLC);自動(dòng)售貨機(jī);梯形圖;VB
Abstract
The present paper design was by the microcomputer - PLC constitution automat supervisory system, this article elaborated automat and the development, as well as it in the domestic and foreign development present situation, has carried on the proof to automat plan, introduced PLC composed, the characteristic as well as the principle of work basically, to carried on a more careful elaboration by the microcomputer - PLC constitution vending machine system overall design process.
Chooses PC machine in the design to take the host workstation on position machine, the lower position machine uses PLC to make the controller, each PLC controller controls a automat subsystem, three PLC controllers respectively be from the workstation 1, from the workstation 2, from the workstation 3, in the article exhaustively introduced the automat various hardware composition, and has completed the PLC exterior wiring diagram. In the article has manufactured on the position machine user management contact surface, applies the VB6.0 software carries on to on position machine user management contact surface procedure as well as the host workstation signal procedure compiles and debugs; When PLC trapezoidal chart compilation, in the article uses is Siemens PLC trapezoidal chart special-purpose translation software STEP7 carries on the compilation.
The present paper key point places the PLC various hardware part the design and the introduction, the PLC trapezoidal chart compilation and in the various workstation procedure compilation. Defers to in the overall design process “asks the question, the analysis question, solves the problem” the guiding ideology, has made the careful elaboration to the overall system design work.
Key words:PLC; Automat; Ladder logic diagram; VB
目 錄
第1章 緒 論 1
第2章 基于PLC技術(shù)的自動(dòng)售貨機(jī)的方案論證 2
2.1 自動(dòng)售貨機(jī)簡(jiǎn)介 2
2.2 自動(dòng)售貨機(jī)控制方案選擇 3
2.2.1 基于單片機(jī)的自動(dòng)售貨機(jī)控制系統(tǒng) 3
2.2.2 本設(shè)計(jì)方案選擇 4
2.3 本系統(tǒng)組成 4
第3章 硬件設(shè)計(jì) 6
3.1 PLC控制的特點(diǎn) 6
3.1.1 PLC的產(chǎn)生 6
3.1.2 PLC的工作原理 6
3.1.3 PLC應(yīng)用的特點(diǎn) 6
3.1.4 PLC的內(nèi)部組成 7
3.2 系統(tǒng)的輸入/輸出信號(hào) 7
3.3 PLC選型 9
3.4 I/O地址分配 9
3.5 PLC外部接線設(shè)計(jì) 10
3.6 硬件電路設(shè)計(jì) 10
3.6.1 硬幣的識(shí)別原理 10
3.6.2 加熱控制電路的設(shè)計(jì) 11
3.6.3 制冷裝置的設(shè)計(jì) 11
3.6.4 咖啡、果珍出口控制 12
3.6.5 出杯、制動(dòng)控制 13
第4章 軟件設(shè)計(jì) 14
4.1 上位機(jī)監(jiān)控管理程序 14
4.2 主工作站通信程序 16
4.2.1 通信協(xié)議 16
4.2.2 串行通信程序設(shè)計(jì) 16
4.3 PLC控制程序 20
4.3.1 識(shí)幣檢測(cè)、出杯、制動(dòng)梯形圖的設(shè)計(jì) 20
4.3.2 咖啡、果珍出口控制梯形圖的設(shè)計(jì) 21
4.3.3 加熱、制冷梯形圖的設(shè)計(jì) 22
4.3.4 PLC通信程序 22
第5章 結(jié)論 23
參考文獻(xiàn) 24
致 謝 26
附 錄Ι 27
附 錄ΙΙ 39
附 錄ΙΙΙ 40