计算机工程与应用 ›› 2007, Vol. 43 ›› Issue (21): 106-107.

• 产品、研发、测试 • 上一篇    下一篇

一种面向对象的PLC程序设计方法

张崇明1,2,汪春梅1,周 毅1,叶 宏1   

  1. 1.上海师范大学 机电学院,上海 201418
    2.复旦大学 信息学院,上海 200433
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-07-21 发布日期:2007-07-21
  • 通讯作者: 张崇明

Object-oriented design method for PLC program

ZHANG Chong-ming1,2,WANG Chun-mei1,ZHOU Yi1,YE Hong1   

  1. 1.School of Mechanical and Electronic Engineering,Shanghai Normal University,Shanghai 201418,China
    2.School of Information Science and Engineering,Fudan University,Shanghai 200433,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-07-21 Published:2007-07-21
  • Contact: ZHANG Chong-ming

摘要: 为了减小经验因素的影响,对设计阶段进行更好的质量控制,借助于面向对象的分析与设计理论,对传统的基于状态转移的PLC程序设计方法进行了改进,提出了一种面向对象的PLC程序设计方法。使用UML建模工具,分别用类图和状态机视图描述控制系统的静态结构和动态行为,进而把状态机视图转化为梯形图。通过把面向对象技术及UML引入传统的PLC控制领域,既提高了PLC程序设计的可靠性,也扩展了面向对象技术和UML的应用领域。

关键词: 可编程控制器, 面向对象, 统一建模语言, 状态机

Abstract: To minimize the influence of experiential factor and improve the quality control in the design phase,with the aid of object-oriented analyse and design theory,an object-oriented design method for PLC program is presented as an improvement on the traditional state based method.With UML tool,class diagram and state diagram are chosen respectively to describe the static structure and dynamic behavior of the control system,and ladder diagram is acquired from state diagram subsequently.With the combination of object-oriented technology,UML and classic PLC control technology,the software reliability of PLC control system is promoted,and the application area of object-oriented technology and UML is extended.

Key words: PLC, object-oriented, UML, state machine