【正文】
I 摘要 自從交通燈誕生以來(lái),其內(nèi)部的電路控制系統(tǒng)就不斷的被改進(jìn) 。 設(shè)計(jì)方法也開(kāi)始多種多樣,從而使交通燈顯得更加智能化。 可編程控制器 (PLC)以微處理器為核心,普遍采用依據(jù)繼電接觸器控制系統(tǒng)電氣原理圖編制的梯形圖語(yǔ)言進(jìn)行程序設(shè)計(jì), 編程容易,功能擴(kuò)展方便,修改靈活 ,而且 結(jié)構(gòu)簡(jiǎn)單,抗干擾能力強(qiáng)。 西門子 可編程控制器指令豐富,可以接各種輸出、輸入擴(kuò)充設(shè)備,有豐富的特殊擴(kuò)展設(shè)備,其中的模擬輸入設(shè)備和通信設(shè)備 更 是 符合交通燈 控制 系統(tǒng)的 要求與特點(diǎn),能夠方便地聯(lián)網(wǎng)通信。 本文 選擇 西門子可編程控制器 S7200 為核心部件 ,著重進(jìn)行 硬件接口設(shè)計(jì),利用梯形圖和語(yǔ)句表進(jìn)行編程,實(shí)現(xiàn)了十字路口交通燈控制系統(tǒng)的自動(dòng)化。 關(guān)鍵詞 PLC;交通控制 ; 自動(dòng)化 II Abstract Since the birth of traffic lights, its internal control system have continually been improved. Also began to design methods varied, so that traffic lights bee more intelligent. The PLC with microprocessor as the core, widely adopt ladder diagram language base on the relay contactor control system electrical schematic in programming, so that they are easy to program , to expand the functions and to amend, they have simple structure and strong antiinterference ability .Siemens PLC rich instruction, can take a variety of exports、 imports expanded, the analog input devices and munications equipment is more in line with the traffic light control system with the characteristics, to facilitate working and munications. This paper chooses Siemens PLC S7200 as the main ponents, focus on the hardware interface design , make use of the ladder diagram and the sentence form to carry out a programming , the realization of the traffic lights at the crossroads automation control system. Keywords: PLC traffic control Automation 目錄 III 摘要 .................................................................................................................................................. I Abstract ...........................................................................................................................................II 第 1 章 緒論 ................................................................................................................................... 1 ..................................................................... 1 ................................................................ 1 ................................................................ 2 第 2 章 可 編程程序控制器( PLC) ............................................................................................ 3 PLC概述 ..................................................................... 3 PLC的發(fā)展歷程 ............................................................................................................ 3 PLC的發(fā)展趨勢(shì) ............................................................................................................ 4 PLC的應(yīng)用 ................................................................................................................... 5 PLC的硬件結(jié)構(gòu) ............................................................... 6 PLC的工作原理 ............................................................... 7 ..................................................................... 8 第 3 章 系統(tǒng)設(shè)計(jì) ........................................................................................................................... 8 ..................................................................... 8 .............................................................. 9 .................................................................... 12 PLC的選型 .............................................................................................................. 12 PLC的 地址分配 ....................................................................................................... 13 PLC的接線形式 ....................................................................................................... 14 系統(tǒng)程序設(shè)計(jì) ................................................................ 15 系統(tǒng)的梯形圖 ............................................................................................................ 15 語(yǔ)句表 ....................................................................................................................... 19 系統(tǒng)程序分析 ............................................................................................................ 20 本章小結(jié) .................................................................... 21 第 4 章 系統(tǒng)檢測(cè)與調(diào)試 ............................................................................................................. 21 .................................................................. 21 .................................................................... 22 結(jié)論 ............................................................................................................................................... 22 致謝 ............................................................................................................................................... 23 參考文獻(xiàn) ....................................................................................................................................... 24 附錄1 S7200PLC 的 CPU 的 I/O 規(guī)范 .................................................................................... 25 附錄2 S7200PLC 的 CPU 的輸入規(guī)范 ................................................................................... 26 附錄3 S7200PLC 的 CPU 的輸出規(guī)范 ................................................................................... 27 1 第 1 章 緒論 課題 背景 1858 年,在英國(guó)倫敦主要街頭安裝了以燃煤氣為光源的紅,藍(lán)兩色的機(jī)械扳手式信號(hào)燈,用以指揮馬車通行。這是世界上最早的交通信號(hào)燈。 1868 年,英國(guó)機(jī)械工程師納伊特在倫敦威斯敏斯特區(qū)的議會(huì)大廈前的廣場(chǎng)上,安裝了世界上最早的煤氣紅綠燈。它由紅綠兩以旋轉(zhuǎn)式方形玻璃提燈組成,紅色表示 “停止 ”,綠色表示 “注意 ”。 1869 年 1 月 2 日,煤氣 燈爆炸,使警察受傷,遂被取消。 1914 年,電氣啟動(dòng)的紅綠燈出現(xiàn)在美國(guó)。這種紅綠燈由紅綠黃三色圓形的投光器組成,安裝在紐約市 5 號(hào)大街的一座高塔上。紅燈亮表示 “停止 ”,綠燈亮表示 “通行 ”。 1918 年,又出現(xiàn)了帶控制的紅綠燈和紅外線紅綠燈。帶控制的紅綠燈,一種是把壓力 探測(cè)器安在地下,車輛一接近紅燈便變?yōu)榫G燈;另一種是用擴(kuò)音器來(lái)啟動(dòng)紅綠燈,司機(jī)遇紅燈時(shí)按一下嗽叭,就使紅燈變?yōu)榫G燈。紅外線紅綠燈當(dāng)行人踏上對(duì)壓力敏感的路面時(shí),它就能察覺(jué)到有人要過(guò)馬路。紅外光束能把信號(hào)燈的紅燈延長(zhǎng)一段時(shí)間,推遲汽車放行,以免發(fā)生交通事故。信號(hào)燈的出現(xiàn),使交通得以有效管制,對(duì)于疏導(dǎo)交通流量、提高道路通行能力,減少交通事故有明顯效果。 196