【正文】
3。 16 模糊 PID 控制的 PLC 實現(xiàn) .......................................................................................... 17 4 程序設(shè)計流程 17 輸入量等級量化的梯形圖設(shè)計 18 模糊控制表程序 19 反模糊化程序 20 參數(shù)可調(diào)的 PID 運算程序 21 5 組態(tài)軟件設(shè)計以及系統(tǒng)分析 23 組態(tài)王軟件概述 ............................................................................................................. 23 監(jiān)控系 統(tǒng)功能設(shè)計 ......................................................................................................... 23 組態(tài)軟件的設(shè)計要求 23 組態(tài)功能設(shè)計 23 組態(tài)界面設(shè)計 ................................................................................................................. 24 組態(tài)測試 ...................................................................................................................... 25 曲線分析 ...................................................................................................................... 25 6 總結(jié)與展望 27 致謝 28 參考文獻 29 附錄 I 基于 PLC的自整定 PID溫度控制設(shè)計 摘 要 溫度是各種工業(yè)生產(chǎn)和科學(xué)實驗中最普遍、也是最重要的熱工參數(shù)之一。溫度控制的精度對產(chǎn)品或?qū)嶒灲Y(jié)果會產(chǎn)生重大的影響。溫度控制的模式多樣,而 PLC可靠性高,抗干擾能力強 , 易學(xué)易用 ,采用 PLC控制是其中一種比較優(yōu)越的控制。 本文首先分析了目前溫度的控制方法,找出傳統(tǒng) PID控制的不足 ,針對 PID固定參數(shù)在非線性環(huán)境下難以保證系統(tǒng)性能的缺陷,提出采用模糊策略增強 PID控制在非線性系統(tǒng)中的有效性,即采用模糊推理的方式自整定 PID控制參數(shù) ,基于對溫度的結(jié)構(gòu)特點和控制性能要求,論文提出了模糊 PID控制的基本框架和模糊規(guī)則、論域等相關(guān)參數(shù)的整定方法,設(shè)計了模糊 PID溫度控制器的控制策略 , 在此基礎(chǔ)上以西門子 S7200 PLC為處理器實現(xiàn)了具有自整定功能的 PID溫度控制系統(tǒng)。論文將該模糊 PID控制器用于溫度控制系統(tǒng),提出了 PLC的程序?qū)崿F(xiàn)方法,從而完成了模糊 PID控制的應(yīng)用。 人機界面采用的是國內(nèi)的一個比較流行的組態(tài)王軟件。組態(tài)王可以實現(xiàn)在線監(jiān)控。組態(tài)項目中制作了曲線畫面和監(jiān)控畫面,用戶可方便地查詢 PLC的運行情況、數(shù)據(jù)采集和在線控制 。 最后設(shè)計并實現(xiàn)了基于自整定模糊 PID控制器的溫度控制系統(tǒng)的主要程序。 關(guān)鍵詞 :溫度控制 ,PLC,模糊控制 ,PID參數(shù)整定 ,組態(tài)王 II Study of selftuning PID controller in Temperature Control System Based on PLC ABSTRACT Temperature is the most universal and important industrial parameter in all kinds of technical produce and scientific experiment. The manipulative precision of temperature will take a great effect on production or experimental result. The mode of temperature control is various. The programmable logic controller (PLC) is Reliable not easily to be jamming and easily to be learned and used , weled by workers and widely used in industry. The thesis analyzes the control strategy currently used, in order to find out the Shortages about traditional PID control. Considering the bad Performance of the Sintering Process brought by fixed PID Parameters, a fuzzy control method is developed to enhance PID control, in which fuzzy inference is used to modify PID control Parameters . Based on the requirements of sintering fumace and control performance, some key issues, such as framework of fuzzy PID control, based on this PLC implementation with control system of the function of selftuning PID temperature, the methods of adjustment of the fuzzy rules and the parameters, are presented