【正文】
在軟件方面,除了保持其原有的邏輯運(yùn)算、計(jì)時、計(jì)數(shù)等功能以外,還增加了算術(shù)運(yùn)算、數(shù)據(jù)處理和傳送、通訊、自診斷等功能。其中PLC 特有的編程語言—梯形圖一直沿用至今。裝置中的器件主要采用分立元件和中小規(guī)模集成電路,存儲器采用磁芯存儲器。關(guān)鍵詞:PLC,交通燈,倒計(jì)數(shù),顯示 Abstract PLC programmable logic controller is a microprocessorbased, integrated puter technology, automatic control technology and munication technologies developed from a new type of industrial control devices. It has a simple structure, easy programming, high reliability, has been widely used for industrial process and location of the automatic control. According to statistics, PLC, robotics, CAD / CAM will be the three pillars of industrial production. The use of the PLC has the characteristics of environmental adaptability, while its internal timer resources are very rich, the current widespread use of the progressive signal for precise control, particularly control of multifork can be easily achieved. Therefore, the PLC is now increasingly used in traffic lights system. The design is based on PLC control as the core of the traffic lights, use of Siemens S7200 series CPU226type host, 5 EM222 (DO8 DC 24V) digital expansion modules, and use regular, routine counting counter, LED seven segment Used as a digital time display. Using CPU226 of the two input points as the start button and stop button, and 16 output points and an EM222 expansion module39。本設(shè)計(jì)是以PLC控制為核心的交通燈,選用西門子S7200系列CPU226型主機(jī),5個EM222 (DO8直流24V)型數(shù)字量擴(kuò)展模塊,并利用定時、計(jì)數(shù)器作定時計(jì)數(shù)用,LED七段數(shù)碼管作為計(jì)時顯示用。它具有結(jié)構(gòu)簡單、編程方便、可靠性高等優(yōu)點(diǎn),已廣泛用于工業(yè)過程和位置的自動控制中。據(jù)統(tǒng)計(jì),PLC、機(jī)器人、CAD/CAM將成為工業(yè)生產(chǎn)的三大支柱。利用CPU226的2個輸入點(diǎn)作為啟動按鈕和停止按鈕,16個輸出點(diǎn)和一個EM222擴(kuò)展模塊的輸出點(diǎn)作為東西方向和南北方向的左轉(zhuǎn)、右轉(zhuǎn)、直行的紅、黃、綠燈。s output points as the direction of eastwest and north and south turn left, turn right, go straight red, yellow, green. EM222 using 4 output points, respectively, of 28 eastwest and northsouth direction as the digital control a tenbit display output. The traffic light system is simple, practical, low cost, easy maintenance, software function