【正文】
僅是由于PLC 掃描工作方式造成,更主要是 PLC 輸入接口的濾波環(huán)節(jié)帶來的輸入延遲,以及輸出接口中驅(qū)動器件的動作時間帶來輸出延遲,同時還與程序設(shè)計有關(guān)。 在用戶程序中如果對輸出結(jié)果多次賦值則最后一次有效。若程序用梯形圖來表示,則總是按先上后下,先左后右的順序進(jìn)行。 在通信服務(wù)階段, PLC 與其它智能裝置實(shí)現(xiàn)通信,響應(yīng)編程器鍵入的命令,更新編程器的顯示內(nèi)容等。 PLC 的掃描工作方式與電器控制的工作原理明顯不同。 圖 PLC 邏輯結(jié)構(gòu)圖 PLC 的工作原理 PLC 實(shí)質(zhì)上是一類工業(yè)控制專用的計算機(jī),它的結(jié)構(gòu)原理與微型計算機(jī)相似,皆由軟件系統(tǒng)和硬件系統(tǒng)兩 部分組成,所以它的工作原理也是建立在計算機(jī)的工作原理基礎(chǔ)上。它作為 PLC 系統(tǒng)的一個模塊通過總線與 PLC相連,進(jìn)行數(shù)據(jù)交換并在 PLC 的協(xié)調(diào)管理下獨(dú)立地進(jìn)行工作。 15%的范圍內(nèi)波動。常用的開關(guān)量輸出接口按輸出開關(guān)器件不同有三種類型:繼電器輸出、晶體管輸出和雙向晶閘管輸出。 由于系統(tǒng)程序及工作數(shù)據(jù)與用戶無直接 聯(lián)系,所以在 PLC 產(chǎn)品樣本或使用手冊中所列存儲器的形式及容量是指用戶程序存儲器。 用戶程序是隨 PLC 的控制對象而定的,由用戶根據(jù)對象生產(chǎn)工藝的控制要求而編制的應(yīng)用程序。對于整體式,所有部件都裝在同一機(jī)殼內(nèi);對于模塊式 PLC,各部件獨(dú)立封裝成模塊,各模塊通過總線連接,安 裝在機(jī)架或?qū)к壣稀8邫n PLC 機(jī)具有更強(qiáng)的通信聯(lián)網(wǎng)功能,可用于大規(guī)模過程控制或構(gòu)成分布式網(wǎng)絡(luò)控制系統(tǒng),實(shí)現(xiàn)工廠自動化 [14]。疊裝式 PLC 其 CPU、電源、 I/O 接口等也是各自獨(dú)立的模塊,但它們之間是靠電纜進(jìn)行聯(lián)接,并且各模塊可以一層層地疊裝?;締卧蛿U(kuò)展單元之間一般用扁平電纜連接。新近生產(chǎn)的都具有通信接口,通信非常方便。大中型都有 PID 模塊,目前許多小型也具有此功能模塊。為了使可編程控制器處理模擬量,必須實(shí)現(xiàn)模擬量( Analog)和數(shù)字量( Digital)之間的 A/D 轉(zhuǎn)換及 D/A 轉(zhuǎn)換廠家都生產(chǎn)配套的 A/D 和 D/A 轉(zhuǎn)換模塊,使可編程控制器用于模擬量控制。系統(tǒng)的設(shè)計、建造工作量小,維護(hù)方便,容易改造用存儲邏輯代替接線邏輯,大大減少了控制設(shè)備外部的接線,使控制系統(tǒng)設(shè)計及建造的周期大為縮短,同時維護(hù)也變得容易起來。配套齊全,功能完善,適用性強(qiáng)發(fā)展到今天,已經(jīng)形成了大、中、小各種規(guī)模的系列化產(chǎn)品。及其有關(guān)的外圍設(shè)備都按易于與工業(yè)控制系統(tǒng)形成一個整體,易于擴(kuò)展其功能的原則而設(shè)計” PLC 特點(diǎn)及應(yīng)用 PLC 的特點(diǎn) ( 1)可靠性高,抗干 擾能力強(qiáng)高可靠性是電氣控制設(shè)備的關(guān)鍵性能。 1968 年美國 GM(通用汽車)公司提出取代繼電氣控制裝置的要求, 第二年,美國數(shù)字公司研制出了基于集成電路和電子技術(shù)的控制裝置,使得電氣控制功能實(shí)現(xiàn)程序化,這就是第一代可編程序控制器,英文名字叫 Programmable Controller( PC)。 most of the water supply system and a small number of information collection, processing slow, late delivery, difficult to achieve between devices and systems and the exchange of information between the outside world, has seriously hampered enterprise information integration and the realization of integrated automation business. Computer and automatic control technology makes highperformance continuous improvement of the water supply system for possible. This paper presents a programmable logic controller C20PPLC with an inverter at the core of the control system and realized the water towers on the remote control and achieved a low warning level of alarm. In this paper, its control principle, the choice of hardware, software design, focus on alarm circuits, software programs simplify the design, hardware interface simple and feasible, in particular, to improve the stability of the entire system and antijamming capabilities. To the traditional water supply system reform and effective solution before the water pressure fluctuations, the system failure rate is high and the serious waste of energy, such as a series of problems. At the same time, the system has both automatic and manual control mode, the system for maintenance repairs, and through the application of the water supply system for remote monitoring and control, improve efficiency, automated water supply. Key Words: PLC, Frequency Converter, Automatically Control 目錄 1 緒論 ................................................ 1 研 究 現(xiàn) 狀 及 發(fā) 展 趨勢 ............................................... 1 供水方式的發(fā)展 .................................... 1 國內(nèi)外供水監(jiān)控系統(tǒng) 的現(xiàn)狀及發(fā)展趨勢 ........................ 2 課題研究意義 ............................................. 3 課題研究內(nèi)容 ............................................ 4 論文內(nèi)容結(jié)構(gòu)安排 ...................................... 4 2 PLC 的概述 ........................................... 5 PLC 的來源及概念 ....................................... 5 PLC 的來源 .............................................. 5 PLC 的定義 ............................................ 5 PLC 特點(diǎn)及應(yīng)用 .......................................... 6 PLC 的特點(diǎn) ........................................... 6 PLC 的應(yīng)用 ......................................... 7 PLC 的分類及組成 ........................................ 8 PLC 的分類 ...................................... 8 PLC 的組成 .............................................. 9 PLC 的其它組 成部分 .....................................12 PLC 的 邏 輯 結(jié)構(gòu) ................................................ 13 PLC 的工作原理 ............................................... 14 PLC 控制系統(tǒng)一般設(shè)計步驟 ........................... 17 2 小結(jié) ................................................... 19 3 水位控制系統(tǒng)中 PLC 硬件電路設(shè)計 ........................... 20 系統(tǒng)控制要求 ................................ 20 PLC 選型 ................................................ 20 系統(tǒng)硬件配置 ............................................ 21 歐姆龍 C20P 系 統(tǒng)硬件配置 .................................. 22 變頻器的選擇 ............................................. 24 系統(tǒng)工作原理 ...................................... 26 小結(jié) ........................................... 29 4 水塔水位控制系統(tǒng)外圍電路的設(shè)計 .................... 30 水位測量系統(tǒng)設(shè)計 ....................................... 30 鍵盤電路設(shè)計 ............................................ 31 鍵盤的結(jié)構(gòu) ............................................. 31 鍵盤的電路設(shè)計 ........................................ 32 顯示電路的設(shè)計 ....................................... 33 報警電路的設(shè)計 ....................................... 33 水泵控制電路設(shè)計 .................................... 34 小結(jié) ..................................................... 34 5 系統(tǒng)軟件設(shè)計 .......................................... 35 編程軟件的構(gòu)成 .................................. 35 編程軟件的選擇 ............................... 35 系統(tǒng)流程圖 ............................... 36 編程說明 .................................... 37 小結(jié) ............................................... 40 6 總 結(jié) ................