qt实现拓扑图_基于QT的PLC梯形图编辑系统设计与实现

李驰骎 王庭有 李应春 杨安园

摘 要:为了探索PLC梯形图编辑系统的设计方法,从梯形图编程系统设计需求出发,分析传统梯形图网络的不足,采用一种高自由度的网络拓扑结构描述梯形图网络,并根据该网络拓扑结构提出一种分布式存储方案,实现梯形图图元之间的连接关系存储。基于QT图形框架采用面向对象的软件方法实现梯形图标准图元创建、连接关系建立、图元删除等功能。完成梯形图编辑系统设计后,对图元管理、各种指令调用进行编辑测试,结果表明该系统设计方法可行。

关键词:可编程控制器;梯形图;QT;存储结构;图元管理

DOI:10. 11907/rjdk. 181943

中图分类号:TP319文献标识码:A文章编号:1672-7800(2019)002-0072-04

Abstract: In order to explore the design method of PLC ladder diagram (LAD) editor system, we start with the overall requirements of LAD editor system, analyze the shortcomings of the traditional LAD network, and use a high-degree-of-freedom network topology to describe LAD network. According to the network topology, a distributed storage scheme is proposed to implement the storage of connection relationships between LAD primitives. The object-oriented software method based on the QT graphics framework is used to realize the functions of creating ladder diagram standard primitives, establishing connection relationships and deleting primitives. After completing the design of the ladder diagram editing system, we tested the management of graphic elements and various instructions. No problems were found during the process. The results shows that the method of designing the ladder diagram editing system proposed in this paper is feasible.

Key Words: programmable logic controller; ladder diagram; QT; storage scheme; primitive management

0 引言

可編程控制器(programmable logic controller,PLC)在工业控制领域应用广泛, PLC编程软件是推动PLC发展的重要动力[1-2],而编辑系统是编程软件中至关重要的组成部分,它负责梯形图的输入、编辑、显示,各个单元的位置、符号等信息保存,决定了软件的交互性[3]。

国外PLC发展相当成熟,PLC编程软件技术

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值