期刊文献+

Scratch在PLC自动编程中的开发与应用 被引量:3

Development and application of Scratch in PLC automatic programming
下载PDF
导出
摘要 不同厂家、型号的可编程逻辑控制器(programmable logic contrllor,PLC)都有其专用的集成开发环境,因此互不兼容且程序编写和修改较为抽象繁琐。针对上述现象设计开发出一套基于Scratch平台的PLC自动编程系统,该系统针对Scratch图形化编程平台进行二次开发,通过拖拽元器件模型、编制积木块程序完成虚拟组态的设计,然后基于Qt上位机软件进行人机交互,主要通过Scratch资源文件解析算法、PLC源代码自动生成算法以及PLC指令语句格式校验算法实现预期功能。经过实例验证,表明该系统能将可视化的表达方案转换得到可执行PLC源代码,有效提高了工控领域PLC编程的效率,可广泛应用于PLC控制系统的设计维护工作。 Programmable logic controllers(PLC)with different manufacturers and models have their own dedicated integrated development environments,so they are not compatible with each other,and the program writing and modification is more abstract and tedious.In response to the above phenomenon,a PLC automatic programming system was designed and developed based on the Scratch platform,which was used for secondary development of the Scratch graphical programming platform.The virtual configuration design was completed by dragging and dropping component models and programming building block programs.And then human-computer interaction was performed based on Qt upper computer software.The expected functions were achieved mainly by Scratch resource file parsing algorithm,PLC source code automatic generation algorithm and PLC instruction statement format verification algorithm.After verification by an example,it shows that the system can convert the visual expression scheme into executable PLC source code,which effectively improves the efficiency of PLC programming in industrial control field and can be widely used in the design and maintenance of PLC control systems.
作者 夏雨 陈超 陈振中 吴自强 XIA Yu;CHEN Chao;CHEN Zhenzhong;WU Ziqiang(College of Mechanical Engineering,Donghua University,Shanghai 201620,China;Jiangsu Weifeng Construction andInstallation Group Co.Ltd.,Wuxi 310005,China)
出处 《东华大学学报(自然科学版)》 CAS 北大核心 2022年第4期85-91,共7页 Journal of Donghua University(Natural Science)
基金 上海市自然科学基金项目(19ZR1401600) 中央高校基本科研业务费专项资金资助项目(18D110316) 国家自然科学基金项目(51905492)。
关键词 可编程逻辑控制器 Qt上位机 自动编程 SCRATCH programmable logic controller Qt upper computer automatic programming Scratch
  • 相关文献

参考文献5

二级参考文献11

共引文献8

同被引文献34

引证文献3

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部