基于图形结构和递归调用的软PLC设计  被引量:2

Design of Soft PLC Based on Graphic Structure and Recursive Call

在线阅读下载全文

作  者:张礼杰 林树森 

机构地区:[1]浙江正泰仪器仪表有限责任公司,浙江杭州310000 [2]台州学院,浙江台州318000

出  处:《工业控制计算机》2021年第12期70-72,共3页Industrial Control Computer

基  金:国家自然科学基金资助项目(51905364)。

摘  要:基于Visio Studio 2010的MFC为研发平台,提出了一套软PLC上位机软件的实例化算法。通过C++里类的面向对象的思路,把梯形图定义成一个类,建立一个二维的类数组指针,每添加一个梯形图,都是创建一个实例化的类对象,引入数据结构的概念,通过梯形图之间的坐标关系,建立类的图形结构关系,在上位机操作界面添加和删除梯形图时,后台动态修改梯形图类数组之间的图形结构关系,通过直接递归和间接递归的算法遍历所有的梯形图,生成相应的指令表。This paper uses MFC tools of Visio Studio 2010 to develop a set of software PLC upper computer software.Through the object-oriented idea in C++,the ladder diagram is defined as a class,and a two-dimensional class array is established.The graphic relationship of the class array is established through the data structure.When the ladder diagram is added or deleted in the operation interface,the graphic relationship between the ladder diagram class arrays is dynamically modified in the background.Through the algorithm of direct and indirect recursion,all the ladder diagrams are traversed and the corresponding instruction list is generated.

关 键 词:类数组 数据结构 图形关系 递归 

分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象