彈性製造系統控制器之設計,關係整廠物料的製程運作,良好控制器之設計能減少製程時間、提升機台使用率及避免原物料的衝突;不良的控制器之設計,嚴重會造成機台設備的損壞。為設計良好控制器,需事先建構出能夠模擬製造現場運作情形的模式,再經由控制器之設計,收集模擬的各項數據,修正控制器,達到良好控制器設計之目的。為了快速建構出能夠模擬製造現場的模式,本研究使用彩色裴氏網(Colored Petri Net, CPN)為建構與分析工具,彩色裴氏網為一種兼具數學基礎及狀態導向圖形化的系統分析與發展工具,主要是應用於事件間因果關係的描述。對製造系統皆採階層化分散式的控制,將控制系統分成單元層與工作站層,單元層有單元控制器(Cell Controller);而工作站層有各個群組控制器;群組內再分成數各控制模組,減少主控制器的控制負擔。 引入模組化概念,建構出各類型機台設備模組模式,來模擬各類型機台運作,如無線射頻辨識(Radio Frequency Identification, RFID)模組、電腦數值控制機(Computer Numerically Controlled, CNC)模組、物料處理系統(Material Handling System, MHS)模組…等,將來有新系統需設計時,只需套用已建置好的模組,再經過一些修正便可達到製造系統模式之建構。透過建置好的製造系統模式,對製造系統進行分析,確認沒有錯誤後,再以高階程式語言Visual Basic撰寫控制器程式,期能在較短時間內建構出製造系統的控制器,來監控整廠的運作,做為線上即時監控系統。
Design of Flexible Manufacturing System’s controller is important for whole factory’s operation. The good design of the controller makes production time reduce, machine’s utilization promote and parts’ conflict avoid. In order to design the good controller, it is necessary to build the modules which can simulate the manufacturing situation and configure them according to real state. In order to build the modules that can simulate the manufacturing situation, this research adopts Colored Petri Net as the construction and analysis tools. Colored Petri Net has mathematics foundation and system analysis abilities, mainly applying to the description of the cause-effect relationships among the events. The Manufacturing systems adopt the distributed control, and the control system was divided into cell level and workstation level. The cell level has the Cell Controller, and the workstation level has many group controllers. Every group was divided into many control modules to reduce the workload of the main controller. Petri Net models of many kinds of machines, such as Radio Frequency Identification module, Computer Numerically Controlled module, Material Handling System module…etc are contructed firstly. When new systems are need to design in the future, we can use the modules which have already been constructed, refine and use them to simulate the behaviors of new system. After analyzing the behaviors of systems, we can design control program based on the Logic of Petri Nets. In this paper, Visual Basic is adopted as the high-level program language to design the control program.