摘要: 采用层次化方法和UML状态图建立电梯控制系统,阐述用PLC语言实现状态图模型的方法。该方法用子程序封装组合状态,通过置位或复位子程序的使能输入位决定是否执行子程序,以实现对状态转移的控制。给出在西门子PLC上利用该方法实现的控制系统主程序,其结构化程度高,可以作为控制系统的PLC软件框架。
关键词:
控制系统,
电梯,
状态图,
建模,
可编程逻辑控制器,
框架
Abstract: This paper uses hierarchical method and UML statecharts to model an elevator control system and expatiate an approach of implementing the statecharts model with PLC language. By means of encapsulating the composite state into subroutine, and by means of setting or resetting the enable input bit to enable or disable the subroutine to be executed or not to control the transition. The main program of the control system is presented, which takes Siemens PLC as its platform. This program is structural and can be used as a PLC software framework of control system.
Key words:
control system,
elevator,
statecharts,
modeling,
Programmable Logic Controller(PLC),
framework
中图分类号:
马殷元;姚 闯. 基于状态图的电梯控制建模及其PLC实现[J]. 计算机工程, 2009, 35(16): 221-223.
MA Yin-yuan; YAO Chuang. Elevator Control Modeling Based on Statecharts and Its PLC Implementation[J]. Computer Engineering, 2009, 35(16): 221-223.