摘要
软PLC是国际上出现的新技术,与硬件PLC相比具有很多的优点。文章简要论述了凯奇数控设备成套有限公司自主研发软PLC的结构特点。利用matlab的Simulink和Stateflow为公司自主研发的软PLC开发系统建立一套自动测试系统,用来自动测试软PLC的所有元件功能的正确性。该自动测试系统采用Simulink模块组合的方法来创建动态系统的计算机模型,采用Stateflow事件触发机制来实现状态之间的自动转换,并且Stateflow生成的监控逻辑可以直接嵌入到simulink模型下,实现二者的无缝连接,从而即快速又准确地完成系统的建模仿真,并且模型提供了图形动画的处理方法,以方便用户观察系统的整个仿真过程。
SoftPLC is a new kind of technology and has many advantages compared with hardPLC.This paper simply introduces the structure of softPLC that Beijing CATCH Company designed and developed.According to the idea on simulation of MATLAB, a set of automatic test system is built for the softPLC of CATCH'S own to test the validity of softPLC' s elements function. The automatic test system adopts the connection of simulink's blocks to build computer model of dynamic system, event-drive mechanism of stateflow to realize automatic transfer between different states. Control logic generated by stateflow can be embeded into simulink's model, simulink and stateflow are well connected like the one, which make system simulation quickly and accurately.The model system supplies cartoon effect to make the whole simulation watched easily.
出处
《中国测试技术》
2006年第2期117-119,共3页
CHINA MEASUREMENT & TESTING TECHNOLOGY