检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.119.131.131