【正文】
PLC based on single chip processor control module, signal input requirements have 8 mouth (photoelectric isolation), 8 output ports (6 relay 2 groups of twoway silicon controlled rectifier), 2 groups of 2 timer, counter, temperature detecting port 1, imitate quantity examination mouth 1, PWM pulse width modulation of mouth 1, a forced reset port 1, interrupt control port 1, high speed pulse output port 2, with input and output status indication. Singlechip PLC control board is characterized by: from start to finish and small system, easy to use, simple, construction, environmental requirements is not high, only the use of general rectifier。 its function from weak to strong, realizes the digital control logic to control the progress of its application fields。 關(guān)鍵詞 單片機(jī); PLC;工業(yè)控制 華北科技學(xué)院畢業(yè)設(shè)計(jì)(論文) III Based on the MCU PLC control module research and design Summary The programmable controller in the control relay is generated based on a new type of industrial control is a miniature puter, automation technology and munication technology ., applied to the industrial control field of a high reliable the development of modern social production development and technical progress, modern industrial production automation level increasing and the rapid development of microelectronic technology, programmable logic controller has bee the important pillar of contemporary industrial production automation, PLC device has bee the basic unit of automation the logic control of the controller, with its high reliability, strong logic functions, small size, can be online repair procedures, easy to interface with the puter, can for analog control system has been widely used in various industrial production automation control field. At present, whether it is from the introduction of automated production lines, or its own production design of the automatic control system。 單片機(jī) plc 工控板特點(diǎn)是 : 從小系統(tǒng)做起 盡量精而小 、 容易上手 ,、 施工簡單 、對環(huán)境要求不高 ,; 電源僅需使用一般整流濾波電源既可 , 范圍在 9V32V, 使用感性負(fù)載 , 如繼電器或是電磁閥 ( 油壓或是氣壓 )動作電流在 , 僅需使用 ”一般電阻 ” 既可隨意從既有電源取用電源 . ( 可參考 I/O 說明 ), 可 帶電拔插 , 不會損壞 , 方便省工 ,以一片單片機(jī)為核心, 構(gòu)建一個簡單、實(shí)用、易用、可靠的單片機(jī)的工控硬件平臺。 單片機(jī) plc 工控板 功能強(qiáng)大,可取代復(fù)雜的繼電器組合,也可作為 PLC 市場的另一種選擇,還可頂替 PLC 控制不是非常復(fù)雜的運(yùn)動過程 ,非常適合于作小型控制(如機(jī)床、樓宇控制、小型機(jī)械、廣告霓虹燈等),不但減省了產(chǎn)品的空間 也控制了產(chǎn)品的成本。第一,解決了 PLC 的開放性的難題, PLC 缺點(diǎn)之一就是它的軟、硬件體系結(jié)構(gòu)是封閉而不是開基于單片機(jī)的 PLC 工控模塊的研究設(shè)計(jì) II 放的,如專用總線、通信網(wǎng)絡(luò)及協(xié)議、 I/O 模塊更互不通用,幾乎各公司的 PLC 均互不兼容 ,同時,每一個 PLC 的生產(chǎn) 廠家都有自己的 PLC 控制編寫語言,這讓可以科研人員在處理不同廠家的 PLC 控制器時都頭痛不已,但是利用單片機(jī)生產(chǎn)的 PLC 工控板則不會遇到此類問題,由于 大部分科研人員都已熟練掌握了 C語言、 VB等編程語言, 不存在修改編寫程序的障礙,因此,可以順利的調(diào)試下位機(jī)使其達(dá)到自己的控制要求,第二,解決了 PLC 價格昂貴的問題, 一些科研項(xiàng)目的建設(shè)完全沒有必要采用 PLC、 DCS 等動輒幾萬甚至幾十萬元的控制系統(tǒng)作為一次性的試驗(yàn)投入, 在一些小的控制項(xiàng)目,完全可以用基于單片機(jī)的 PLC 工控模塊來代替,而且花費(fèi)只是幾百元左右。當(dāng)檢測電路完成一次測量后,單片機(jī)讀取測量數(shù)據(jù),進(jìn)行必要的加工、計(jì)算、變換等處理,最后以各種方式輸出, 例如 輸出給繼電器 、 輸出 給系統(tǒng)的主控制器等。 與此同時 ,以單片機(jī)為核心構(gòu)成的控制器以各種各樣的形式滲透到人們的生產(chǎn)、生活、科研等各個領(lǐng)域,為人類帶來了滲透到各個領(lǐng)域的“智能”。另一方面, PLC 還必須依靠其他新技術(shù)來面對市場份額逐漸縮小所帶來的沖擊,尤其是工業(yè) PC 所帶來的沖擊??删幊炭刂破饕殉蔀楣I(yè)控制領(lǐng)域的主流控制設(shè)備 長期以來, PLC 始終處于工業(yè)自動化控制 領(lǐng)域的主戰(zhàn)場,為各種各樣的自動化控制設(shè)備提供了非??煽康目刂茟?yīng)用。 目前,無論是從國外引進(jìn)的自動化生產(chǎn)線,還是自行生產(chǎn)設(shè)計(jì)的自動控制系統(tǒng);無論是新建工程項(xiàng)目,還是舊設(shè)備的技術(shù)改造,都可以看到 PLC 的身影。隨著現(xiàn)代社會生產(chǎn)的發(fā)展和技術(shù)進(jìn)步,現(xiàn)代工業(yè)生產(chǎn)自動化水平的日益提高及微電子技術(shù)的飛速發(fā)展,可編程序控制器已成為當(dāng)代工業(yè)生產(chǎn)自動化的重要支柱, PLC 裝置已成為自動化系統(tǒng)的基本裝置。華北科技學(xué)院畢業(yè)設(shè)計(jì)(論文) I 基于單片機(jī)的 PLC 工控模塊的研究設(shè)計(jì) 綜述 可編程序控制器是在繼電器控制的基礎(chǔ)上產(chǎn)生的一種新型的工業(yè)控制裝置。它是將微型計(jì)算機(jī)、自動化技術(shù)及通信技術(shù)融為一體,應(yīng)用到工業(yè)控制領(lǐng)域的一種高可靠控制器。作為邏輯控制的控制器,它以其高可靠性 ,邏輯功能強(qiáng)大、體積小,可在線修程序,易于與計(jì)算機(jī)接口,能對模擬量進(jìn)行控制等 特點(diǎn)已廣泛應(yīng)用于各種工業(yè)生產(chǎn)的自動化控制領(lǐng)域。作為通用工業(yè)控制計(jì)算機(jī), 30 多年來, PLC 從無到有,實(shí)現(xiàn)了工業(yè)控制領(lǐng)域接線邏輯到存儲邏輯的飛躍;其功能從弱到強(qiáng),實(shí)現(xiàn)了邏輯控制到數(shù)字控制的進(jìn)步;其應(yīng)用領(lǐng)域從小到大,實(shí)現(xiàn)了單體設(shè)備簡單控制到勝任運(yùn)動控制、過程控制及集散控制等各種任務(wù)的跨越。其主要原因,在于它能夠?yàn)樽詣踊刂茟?yīng)用提供安全可靠和比較完善的解決方案,適合于當(dāng)前工業(yè)企業(yè)對自動化的需要。 PLC 需要解決的問題依然是新技術(shù)的采用、系統(tǒng)開放性和價格 。 單片機(jī)是整個智能控制器的核心,檢測和控制電路是 單片機(jī)的外圍設(shè)備,單片機(jī)通過接口發(fā)出各種控制信息給檢測電路,以規(guī)定功能、啟動測量、改變工作方式等。 利用單片機(jī)的生產(chǎn) PLC 工控模塊,可以解決 PLC 工業(yè)控制上的幾大問題。 基于單片機(jī) 的 PLC 控制器 能執(zhí)行邏輯控制、順序控制、定時、記數(shù)等操作指令 .與標(biāo)準(zhǔn) PLC 的不同點(diǎn)是它屬于較直視操作的 PLC,一般 PLC 在編程時常以號碼代替, 單片機(jī) plc 工控板則以 C 語言或匯編語言進(jìn)行編程 方式導(dǎo)。 此次設(shè)計(jì) 任務(wù) 是設(shè)計(jì)一個基于單片機(jī)的 PLC 工控模塊,要求有 信號輸入 8個口(光電隔 離) , 8 個輸出口( 6 組繼電器 2 組雙向可控硅) , 定時器 2 組 , 計(jì)數(shù)器 2 個 , 溫度檢測口 1個 , 模擬量檢測口 1 個 , PWM 脈寬調(diào)制口 1 個 , 強(qiáng)制復(fù)位口 1 個 , 中斷控制口1 個 , 高速脈沖輸出口 2 個 ,具有輸入輸出狀態(tài)指示。滿足哪些具有單片機(jī)基礎(chǔ)的工控技術(shù)人員使用,適用于哪些輸入輸點(diǎn)數(shù)小的控制場合,在小的應(yīng)用場合完全可以代替小型的 PLC,同時也具有 PLC 的一樣的靈活。 whether it is new or old project, the technical reformation of equipment, can see the figure of general industrial control puter, for over 30 years, PLC from scratch, to achieve the industrial control field of logical connection to the storage logical leap。 from small to large, the realization of a single simple equipment control to do motion control, process control and distributed control and other the task programmable controller has bee the mainstream of control equipment in industrial control field Longterm since, PLC has always been in the field of industrial automation control of the main battlefield, for various automation control equipment provides a very reliable control main reason, lies in its ability to provide automatic control application to provide safe and reliable and relatively perfect solution, suitable to the current industrial business needs for the other hand, PLC also must rely on other new 基于單片機(jī)的 PLC 工控模塊的研究設(shè)計(jì) IV technology to face the market share gradually reduce the impact, especially the impact of industrial needs to solve the problem still is the adoption of new technology, open system and price. At the same time, the singlechip microputer as the core controller formed by various form perated into people39。 power supply power supply filtering can, in the range of 9V32V, the use of inductive load, such as a relay or solenoid valve (hydraulic or pneumatic) action current in or less, only the use of general resistance can move from both power and power. (see I/O), can be charged and, without damage, convenient and labor, to a single chip as the core, to construct a simple, practical, easy to use, reliable singlechip puter hardware which has microcontroller based con