OPC技术下MATLAB与PLC的通讯实现
黄双成,李志伟
(河南化工职业学院机械电子系,河南郑州450000)
摘要:PLC具有结构简单、编程方便,可靠性高特点,已经在工业及生产过程中得到了广泛应用,但PLC的编程语言功能简单,无法实现复杂的控制算法;MATLAB是一种高级矩阵语言,并且包含工具箱和Simulink仿真环境,可通过对控制系统进行可视化建模,仿真等工作,实现复杂控制算法,但不能直接应用在实时控制中。本文采用OPC通信技术,实现MATLAB与PLC通信,为PLC控制下复杂算法的实现提供了技术基础。
关键词:OPC技术MATLAB PLC通讯
中图分类号:TP273文献标识码:A
Abstract:PLC,with simple structure,convenient programming and goodreliability,is already widely used in industrial control area,but it is unable to achieve complex controlalgorithm with shortage of programming language;MATLAB is a kind of high-level matrix language,with its toolbox and Simulink simulation environment,complex control algorithm can be achieved through the research on the visual model and simulation of the control system,but it can not be used in real-time control.This pape