PLC是工業自動化最廣泛使用的設備之一。但PLC的開發環境封閉性,使PLC程式無法在不同品牌PLC之間移植使用,也導致異質性自動化產品間整合的困難,同時也提高的重覆投入的人力成本和開發時間。本研究為了解決此問題,因此基於開放性的PLC標準語言PLCopen研發一個PLCopen XML解析器,針對市售或開源的PLCopen編輯器所輸出標準XML格式的PLC程式,將其轉譯為GRAFCET虛擬機器(GRAFCET Virtual machine,GVM)的編碼表,最後由電腦或遠端網路程式傳送至內建PLCopen執行引擎的GVM控制器來執行PLCopen程式。我們以開源軟體Beremiz的PLCopen編輯器設計三種應用情境的六軸機械手臂控制,來驗證此一PLCopen解析器的功能。本研究所設計的PLCopen XML解析器提高PLC應用程式的可攜性和可移植性,不須依賴特定廠牌PLC及其綁定之開發軟體。;Programmable logic controllers (PLCs) are commonly used for industrial automation. However, they use a closed development environment; hence, the portability of PLC programs between different brands is precluded, causing integration difficulties between heterogeneous automation products and increases in manpower costs and development time because of the need for repeated input. To solve this problem, this study developed a PLCopen XML parser that is based on the PLCopen, a standardized open PLC. The proposed XML parser converts standard XML-format PLC programs outputted using commercially available or open-source PLCopen editors into a GRAFCET Virtual Machine (GVM) coding table; finally, they are sent using a computer or remote network program to the GVM controller of the in-built PLCopen execution engine, and the PLCopen program is run. The present study used the PLCopen editor of the open-source software Beremiz to design a 6-axis robotic arm controller for three types of application to verify the functionality of the proposed PLCopen parser. The proposed PLCopen XML parser enhanced the portability and transplantability of the PLC program and did not rely on particular brands of PLCs and their binding development software.