工业4.0范式体现了向大规模定制和信息物理生产系统(CPPS)的转变,并对工业自动化软件在模块化、灵活性以及控制程序短开发周期方面提出了新要求。尽管可编程逻辑控制器(PLC)已演变为多功能且强大的边缘设备,但PLC软件仍缺乏灵活性,且底层程序与高层面向任务的控制框架之间缺乏集成。行为树(BTs)是一种新颖的框架,能够快速设计模块化分层控制结构。它将改进的模块化与简单直观的控制逻辑设计相结合。本文提出了一种改进工业控制软件设计的方法,通过将BTs集成到PLC程序中,并将硬件相关功能与协调逻辑分离开来。文中展示了将BTs集成到PLC中的几种策略。前两种策略将BTs与基于IEC 61131的PLC集成,并基于使用PLCopen Common Behavior Model。最后一种策略利用基于事件的BTs,并展示了与基于IEC 61499的控制器的集成。一个应用示例演示了该方法。本文的贡献如下:首先,我们提出了一种新的PLC软件设计,提高了模块化程度,支持更好的关注点分离,并支持控制软件的快速开发和重新配置。其次,我们展示并评估了BT框架在基于IEC 61131和IEC 61499的PLC中的集成,以及PLCopen功能块与外部BT库的集成。这促进了底层PLC代码与基于AI的面向任务框架的更好集成。它还通过使用BTs进行技能组合,改进了PLC的基于技能的编程方法。
英文摘要:
The Industry 4.0 paradigm manifests the shift towards mass customization and cyber-physical production systems (CPPS) and sets new requirements for industrial automation software in terms of modularity, flexibility, and short development cycles of control programs. Though programmable logical controllers (PLCs) have been evolving into versatile and powerful edge devices, there is a lack of PLC software flexibility and integration between low-level programs and high-level task-oriented control frameworks. Behavior trees (BTs) is a novel framework, which enables rapid design of modular hierarchical control structures. It combines improved modularity with a simple and intuitive design of control logic. This paper proposes an approach for improving the industrial control software design by integrating BTs into PLC programs and separating hardware related functionalities from the coordination logic. Several strategies for integration of BTs into PLCs are shown. The first two integrate BTs with the IEC 61131 based PLCs and are based on the use of the PLCopen Common Behavior Model. The last one utilized event-based BTs and shows the integration with the IEC 61499 based controllers. An application example demonstrates the approach.
The paper contributes in the following ways. First, we propose a new PLC software design, which improves modularity, supports better separation of concerns, and enables rapid development and reconfiguration of the control software. Second, we show and evaluate the integration of the BT framework into both IEC 61131 and IEC 61499 based PLCs, as well as the integration of the PLCopen function blocks with the external BT library. This leads to better integration of the low-level PLC code and the AI-based task-oriented frameworks. It also improves the skill-based programming approach for PLCs by using BTs for skills composition.
Maintenance of Automated Test Suites in Industry: An Empirical study on Visual GUI Testing
验证与确认(Verification and Validation,V&V)活动在实践中占软件系统总开发成本的20%到50%。测试自动化被提出来降低这些V&V成本,但现有的研究只提供了有限的经验数据,从工业实践中的维护成本的自动化测试和影响这些成本的因素。特别是,这些成本和因素对于基于GUI的自动化测试是未知的。目的:本文通过分析与工业实践中基于GUI的自动化测试维护相关的成本和因素,解决了这种知识的缺乏。方法:在两个公司,西门子和萨博,实证研究报告的采访,和实证工作,可视化GUI测试进行获取数据的技术的维护成本和可行性。结果:观察到13个因素,影响维修,如测试人员的知识/经验和测试用例的复杂性。此外,统计分析表明,开发新的测试脚本比维护成本更高,但频繁的维护比不频繁的大爆炸维护成本更低。此外,成本模型,在以前的工作的基础上,提出了估计的时间,以积极的投资回报率(ROI)的测试自动化相比,手动测试。结论:它的结论是,测试自动化可以降低一个项目的整体软件开发成本,同时也对软件质量有积极的影响。然而,维护成本仍然是相当可观的,公司目前花在手动测试上的时间越少,在自动化之后达到积极的、经济的ROI之前需要的时间就越多。