【正文】
啟動 南北綠燈 南北黃燈 南北紅燈 東 西綠燈 東西黃燈 東西紅燈 圖 3 時序波形圖 3S 30S 25S 30S 2S 3S 25S 下一周期略去 11 3 硬件介紹和選取 ( 1) PLC 的類型 PLC 按結(jié)構(gòu)分為整體型和模塊型兩類,按應(yīng)用環(huán)境分為現(xiàn)場安裝和控制室安裝兩類;按 CPU 字長分為 1 位、 4 位、 8 位、 16 位、 32 位、 64 位等。內(nèi)存主要用于存儲程序及數(shù)據(jù),是 PLC 不可缺少的組成單元。 I/O 模塊集成 了 PLC的 I/O電路,其輸入暫存器反映輸入信號狀態(tài),輸出點(diǎn)反映輸出鎖存器狀態(tài)。不同的負(fù)載選用不同的輸出方式,對系統(tǒng)的穩(wěn)定運(yùn)行是很重要的??紤]經(jīng)濟(jì)性時,應(yīng)同時考慮應(yīng)用的可擴(kuò)展性、可操作性、投入產(chǎn)出比等因素,進(jìn)行比較和兼顧,最終選出較滿意的產(chǎn)品。 另外, PLC 的 CPU 單元必須接地,若使用了 I/O 擴(kuò)展單元等,則 CPU 單元應(yīng)與它們具有共同的接地體,而且從任一單元的保護(hù)接地端到地的電阻都不能大于100Ω。 ( 2)用 STEP 7Micro/WIN 軟件編制系統(tǒng)的梯形圖程序,將編制無誤的程序下載到 PLC 中,并將模式選擇開關(guān)撥至 RUN 狀態(tài)。借助于 STEP 7Micro/WIN 軟件的監(jiān)控功能可以檢查哪些線圈和觸點(diǎn)該通電時沒通電,從而為進(jìn)一步修改程序提供幫助。 圖 7 STEP 7Micro/WIN編程軟件運(yùn)行界面 ( 3)調(diào)試運(yùn)行。 本設(shè)計(jì)決定選用 S7200 系列 PLC。每增加一塊輸入輸出卡件就需增加一定的費(fèi)用。電源輸入電壓一般根據(jù)現(xiàn)場的實(shí)際需要而 定。 I/O分為開關(guān)量輸入( DI),開關(guān)量輸 出( DO),模擬量輸入( AI),模擬量輸出( AO)等模塊。 CPU的控制器控制 CPU工作,由它讀取指令、解釋指令及執(zhí)行指令。例如對輸入模塊,應(yīng)考慮信號電平、信號傳輸距離、信號隔離、信號供電方式等應(yīng)用要 求。當(dāng)啟動開關(guān)接同時,信號燈系統(tǒng)開始工作,先南 北綠燈亮,后東西綠燈亮。以適應(yīng)不同類型的自動控制系統(tǒng)的需要。這些數(shù)據(jù)可以與存儲在存儲器中的參考值比較。 ( 3)運(yùn)動控制 PLC 可以用于圓 周運(yùn)動或直線運(yùn)動的控制。 CPU 在每個掃描周期的開始掃描輸入模塊的信號狀態(tài),并將其狀態(tài)送入到輸入映像寄存器區(qū)域; CPU 根據(jù)用戶程序中的程序指令來處理傳感器信號,并將其處理的結(jié)果送到輸出映像寄存器 。它能夠存儲和執(zhí)行命令,進(jìn)行邏輯運(yùn)算、順序控制、定時、計(jì)數(shù)和算術(shù)運(yùn)算等操作,并通過數(shù)字式和模擬式的輸入、輸出,控制各種類型的機(jī)械或生產(chǎn)過程。 關(guān)鍵詞 交通燈控制系統(tǒng);可編程控制器( PLC);十字路口;科學(xué)化管理;穩(wěn)定性;可靠性 3 ABSTRACT The traditional traffic control system is mostly by digital circuit, traffic control system stability reliability and antiinterference ability is bad, With the development of society and economy, and digital circuit traffic lights to meet the growing traffic pressure, therefore, must seek a new method to replace the plex and working stability of the control system. With the development of science and technology, the programmable logic controller (PLC) function, the programmable controller has, as a kind of microputer technology as the core in automatic control equipment, has been widely used in mechanical manufacturing, metallurgy, chemical, energy, etc. It has high reliability, plete functions, strong antijamming capability, with simple structure, light weight, it is a kind of process control for industrial environment and the number of operating system. PLC control traffic lights, mainly is for use with the consideration of the characteristics of strong adaptability to environment, and its internal timer resources are very rich, but for now the widespread use of progressive light accurately control, particularly easily realize more control of the crossroads. Because of PLC work munication function, has the same path can be posed of a LAN for signal unified dispatching management, can shorten