【正文】
目前,應(yīng)用最多的還是工程整定法:如經(jīng)驗法、衰減曲線法、臨界比例帶法和反應(yīng)曲線法。微分控制具有超前作用,它能猜測誤差變化的趨勢 , 避免較大的誤差出現(xiàn) 。 與原有的繼電器邏輯控制技術(shù)的不同點是 :梯形圖中的能流 (Power FLow)不是實際意義的電流,內(nèi)部的繼電器也不是實際存在的繼電器,因此應(yīng)用時需與原有繼電器邏輯控制技術(shù)的有關(guān)概念區(qū)別對待 。梯形圖語言和布爾助記符語言是基本程序設(shè)計語言,它通常由一系列指令組成,用這些指令可以完成大多數(shù)簡單的控制功能,例如,代替繼電器、計數(shù)器、計時器完成順序控制和邏輯控制等。 為了提高 PLC 的可靠性,減少外界對 PLC 運行的干擾,同時根據(jù) PLC 的輸入 要求,采用光耦芯片 TLP521 制作輸入電路。 DS18B20 內(nèi)部結(jié)構(gòu)主要由四部分組成: 64 位光刻 ROM、溫度傳感器、非揮發(fā)的溫度報警觸發(fā)器 TH和 TL、配置寄存器。C 。 變送器輸出信號與溫度變量之間有一給定的連續(xù)函數(shù)關(guān)系(通常為線性函數(shù)),早期生產(chǎn)的變送器其輸出信號與溫度傳感器的電阻值(或電壓值)之間呈線性函數(shù)關(guān)系。由于輸入繼電器( X)為輸入映象寄存器中的狀態(tài),所以其觸點的使用次數(shù)不限。線圈型由用戶程序驅(qū)動線圈后 PLC 執(zhí)行特定的動作。 輔助繼電器采用 M 與十進制數(shù)共同組成編號(只有輸入輸出繼電器才用八進制數(shù))。這類定時器是對 100ms 時鐘累積計數(shù),設(shè)定值為 1~ 32767,所以其定時范圍為 ~ 。如掃描時間、電池電壓等。中斷用指針有以下三種類型 。 陜西理工學院畢業(yè)設(shè)計 第 4 頁 共 40 頁 控制 方案的選擇 第一種方案 采用模糊控制的溫度控制 設(shè)計其優(yōu)點是, 控制原理簡單、思路清晰 ,能夠滿足一般的 控制精度 。 S7400 的 三個 H CPU,支持硬件同步 , 功能強大的解決方案,不會發(fā)生任何信息損失,且可對工程任務(wù)提供高級支持,無需額外的編程費用 , 可以為安全應(yīng)用輕松擴展 H 系統(tǒng)。高速處理三菱系列 PLC 可以實現(xiàn)高速處理, FX 系列可編程控制器內(nèi)置的高速計數(shù)器,對來自特定的輸入繼電器的高速脈沖進行中斷處理,因此與掃描時間無關(guān),可以進行高達 60kHz/h 的高速脈沖。在硬件實現(xiàn)上, 我們要解決外圍電路與 PLC 的連接,解決好各種輸入輸出設(shè)備的協(xié)調(diào)工作。 [關(guān)鍵詞 ]PLC 溫度控制 PID 陜西理工學院畢業(yè)設(shè)計 PLCbased temperature control to achieve Liao zhong lin (Grade 07,Class2,Major Automation , Department of Electrical Engineering, Shaanxi University of Technology, Hanzhong 723003, Shaanxi) Tutor: Liu pei [Abstract] According to the existing water temperature in the industry and agriculture production control system reliability, low cost, high control precision poor shortings. We use mitsubishi FX0N60 MR type PLC has constructed a water temperature control system for this problem is studied. In the whole control system to resistance furnace as controlled object to water temperature as controlled variables, the mitsubishi FX0N60MR type PLC as the controller, input part plus photoelectric couplers, buttons and digital tube and constructing the manmachine interface set target temperature。 The choice of control algor ithm based on fuzzy control and PID algorithm experimental, finally choosing PID. PLC program use ladder diagram programming language to write. After the pletion of the structures in the system we use trailanderror, through a large number of experiments of PID controller parameters are optimized, the test system can meet the design requirements. Besides this system also has the hardware structure is simple, system reliability high, production cost is low, and the controller parameters is easy to debug, etc. Can use small PLC to control the water temperature higher accuracy. [Key words] PLC temperature control PID 陜西理工學院畢業(yè)設(shè)計 目 錄 緒論 ................................................................................................................... 1 1.設(shè)計方案的論證 ........................................................................................ 2 PLC 的選型 ............................................................................................... 2 常用 PLC 的特點比較 ........................................................................ 2 本設(shè)計 PLC 的選型 ............................................................................ 3 控制方案的選擇 ....................................................................................... 3 采用模糊控制的溫度控制 .................................................................. 3 采用 PID 算法的溫度控制 ................................................................. 3 控制方案的選擇 ................................................................................ 4 2.硬件電路的設(shè)計 ........................................................................................ 5 PLC 硬件資源分配設(shè)計 ........................................................................... 5 溫度傳感器 .............................................................................................. 8 利用溫度變送器采集 ........................................................................ 8 利用 DS18B20 采集 ........................................................................... 8 輸入部分電路設(shè)計 ................................................................................ 10 設(shè)置輸入部分電路設(shè)計 .................................................................. 10 AD 轉(zhuǎn)換結(jié)果輸入部分電路設(shè)計 .................................................. 10 輸出部分電路設(shè)計 ................................................................................. 10 3.系統(tǒng)軟件的設(shè)計 ...................................................................................... 13 PLC 編程語言簡介 ............................................................................... 13 輸入 部分程序設(shè)計 ................................................................................. 15 顯示部分程序 ........................................................................................ 15 PID 運算部分程序設(shè)計 .......................................................................... 15 4.系統(tǒng)的調(diào)試 .............................................................................................. 19 硬件調(diào)試 ................................................................................................. 19 軟件調(diào)試 ................................................................................................. 19 軟硬件聯(lián)合調(diào)試 ..................................................................................... 19 實驗數(shù)據(jù) ................................................................................................. 19 參考文獻 ........................................................................................................ 20 英語科技文獻翻譯 ........................................................................................ 21 陜西理工學院畢業(yè)設(shè)計 附錄 ................................................................................................................. 34 附錄 A:源程序 ........................................................................................... 34 附錄 B:元器件清單 ................................................................................... 37