您好,欢迎来到中国测试科技资讯平台!

首页> 《中国测试》期刊 >本期导读>MATLAB仿真的软PLC自动测试系统

MATLAB仿真的软PLC自动测试系统

2161    2016-01-22

免费

全文售价

作者:范卫华, 安连生, 丁玮, 幺开宇

作者单位:北京工业大学机械与电子工程学院, 北京 100022


关键词:软PLC; 自动测试; MATLAB; Simulink仿真; Stateflow状态流


摘要:

软PLC是国际上出现的新技术,与硬件PLC相比具有很多的优点。文章简要论述了凯奇数控设备成套有限公司自主研发软PLC的结构特点。利用matlab的Simulink和Stateflow为公司自主研发的软PLC开发系统建立一套自动测试系统,用来自动测试软PLC的所有元件功能的正确性。该自动测试系统采用Simulink模块组合的方法来创建动态系统的计算机模型,采用Stateflow事件触发机制来实现状态之间的自动转换,并且Stateflow生成的监控逻辑可以直接嵌入到simulink模型下,实现二者的无缝连接,从而即快速又准确地完成系统的建模仿真,并且模型提供了图形动画的处理方法,以方便用户观察系统的整个仿真过程。


Automatic test system for softPLC using MATLAB simulation

FAN Wei-hua, AN Lian-sheng, DING Wei, YAO Kai-yu

School of Mechanical and Electronic Engineering, Beijing University of Technology, Beijing 100022, China

Abstract: 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.

Keywords: SoftPLC; Automation test; MATLAB; Simulink simulation; Stateflow

2006, 32(2): 117-119  收稿日期: 2005-1-26;收到修改稿日期: 2005-3-15

基金项目: 

作者简介: 

参考文献

[1] 杨涤.系统实时仿真开发环境与应用[M].北京:清华大学出版社,2002.
[2] 薛定宇,陈阳泉.基于MATLAB/Simulink的系统仿真技术与应用[M].北京:清华大学出版社,2002.
[3] 王沫然.Simulink 4建模及动态仿真[M].北京:电子工业出版社,2002.
[4] 彭瑜.PC控制的新近进展[J].世界仪表与自动化,2001,3:15-17.
[5] 付应红,李晓帆.软PLC(SoftPLC)技术,产品及控制方案探讨[J].微计算机信息,2000,5.
[6] Ron Patton.软件测试[M].北京:机械工业出版社,2002.