工业仪表与自动化装置
工業儀錶與自動化裝置
공업의표여자동화장치
INDUSTRIAL INSTRUMENTATION & AUTOMATION
2013年
6期
16-19
,共4页
软PLC%梯形图%编译%XML
軟PLC%梯形圖%編譯%XML
연PLC%제형도%편역%XML
soft PLC%ladder diagram%compiler%XML
完成了基于VC++开发环境下嵌入式软PLC开发系统[1]的设计开发,重点完成软PLC开发系统的关键技术:梯形图的编辑及编译。梯形图编辑包括梯形图图元编辑,图元属性的存储结构建立及相应文件存储。开发出梯形图程序编译器,基于二叉树及森林数据结构、堆栈数据结构和XML研究实现梯形图逻辑解算结果到目标机代码的转换方法。
完成瞭基于VC++開髮環境下嵌入式軟PLC開髮繫統[1]的設計開髮,重點完成軟PLC開髮繫統的關鍵技術:梯形圖的編輯及編譯。梯形圖編輯包括梯形圖圖元編輯,圖元屬性的存儲結構建立及相應文件存儲。開髮齣梯形圖程序編譯器,基于二扠樹及森林數據結構、堆棧數據結構和XML研究實現梯形圖邏輯解算結果到目標機代碼的轉換方法。
완성료기우VC++개발배경하감입식연PLC개발계통[1]적설계개발,중점완성연PLC개발계통적관건기술:제형도적편집급편역。제형도편집포괄제형도도원편집,도원속성적존저결구건립급상응문건존저。개발출제형도정서편역기,기우이차수급삼림수거결구、퇴잔수거결구화XML연구실현제형도라집해산결과도목표궤대마적전환방법。
In this paper , an embedded soft PLC development system has been designed and devel-oped based on VC ++development environment , focusing on completion of the key technologies of soft PLC development system:ladder editing and compiling .The ladder editor includes ladder diagram edi-ting , the establishment of the storage structure of the diagram's attribute and the storage of corresponding files.Based on the binary tree and forest data structure , stack data structure and XML , we developed a ladder program compiler to research and achieve the transformation method from ladder diagram logic solved results to the target machine codes .