【正文】
er (PLC) can improve the efficiency and stability, and easy to operate and easy maintenance. In this design, due to my use of the design of the input into two, six output, input and output is relatively small, by parison, I designed the traffic lights can choose CPU222 the PLC host, the input and output to meet The design requirements, but also from an economic point of view is suitable. The design of the subperiods using the timer time, set six regular work, time for the 4s, 2s, 2s, 4s, 2s, 2s, where each timer work, the work contains the middle of the next relay , conduction current works, its string in the previous work normally closed switch off, on a work disconnect, the program so the cycle. Time in the middle of the six relay work status through the short, control the brightness of the light off. . I believe this design will be able to meet current traffic demand. Key words: traffic lights, PLC, timer 1 1 PLC 概述 PLC的定義 PLC 是一種專門為在工業(yè)環(huán)境下應(yīng)用而設(shè)計(jì)的數(shù)字運(yùn)算操作的電子裝置。 。 本次設(shè)計(jì)的 利用定時(shí)器分時(shí)段定時(shí),設(shè)定了六個(gè)定時(shí)網(wǎng)絡(luò),定時(shí)為 4s、 2s、 2s、 4s、 2s、2s,每個(gè)定時(shí)器所在的網(wǎng)絡(luò)中,都含有下個(gè)網(wǎng)絡(luò)中間繼電器,當(dāng)下個(gè)網(wǎng)絡(luò)導(dǎo)通后,其串在之前網(wǎng)絡(luò)中的常閉開關(guān)斷開,上一個(gè)網(wǎng)絡(luò)斷開,程序如此循環(huán)。傳統(tǒng)的交通燈使用的是繼電器控制,其缺點(diǎn)十分明顯,線路復(fù)雜,維護(hù)繁瑣,而且穩(wěn)定性差易受外界影響,而選用可編程控制器( PLC)就可以提高效率和穩(wěn)定性,且操作簡(jiǎn)單 ,易維護(hù)。 I 基于 PLC 的交通燈控制系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn) 目 錄 摘 要 ................................................................................................................................... II 1 PLC 概述 .......................................................................................................................... 1 PLC 的定義 ............................................................................................................. 1 PLC 的基本組成 ..................................................................................................... 1 PLC 工作原理 ......................................................................................................... 8 PLC 的編程語(yǔ)言 ..................................................................................................... 9 PLC 的分類及性能指標(biāo) ....................................................................................... 10 PLC 的特點(diǎn) ........................................................................................................... 12 PLC 定時(shí)器指令的介紹 ....................................................................................... 13 2 S7200 編程軟件 STEP 7 Micro/ ................................................................. 15 如何控制程序作業(yè) .............................................................................................. 15 STEP7 程序的使用 ............................................................................................... 16 Step 7 MicroWin 文件的新建 ................................................................. 17 PLC 程序的下載 ................................................................................................... 18 3 程序的設(shè)計(jì) ..................................................................................................................... 21 交通燈時(shí)序圖 ....................................................................................................... 21 I/O 分配表與外部接線圖 ................................................................................... 21 PLC 主機(jī)的選擇 ................................................................................................... 22 本設(shè)計(jì)流程圖 ...................................................................................................... 24 程序梯形圖 ........................................................................................................... 25 程序的調(diào)試和