We apply Coloured Petri Nets (CPNs) and the CPN Tools to develop a formal model of an embedded system consisting of a power converter and an associated controller. Matlab/Simulink is the de-facto tool for embedded control and system design, but it relies on informal semantics and has limited support for transparent and integrated specification and validation of both the power converter electronics, controller (hardware), and the control logic (software). The contribution of this paper is to develop a timed hierarchical CPN model that mitigates the shortcomings of Simulink by relying on a Petri net formalisation. We demonstrate the application of our approach by developing a fully integrated model of a buck power converter with controller in CPN Tools. Furthermore, we perform time-domain simulation to verify the capability of the controller to serve the control objectives. To validate the developed CPN model, we compare the simulation results obtained in an open-loop configuration with a corresponding implementation in Simulink. The experimental results show correspondence between the CPN model and the Simulink model. As our CPN model reflects the fully integrated system, we are able to compare CPN simulation results to measurements obtained with a corresponding implementation in real hardware/software and compare closed-loop with open-loop configuration. The results show alignment for the steady state while further refinement of the control algorithm and validation is required.
翻译:我们使用彩色Petrinets(CPN)和CPN工具来开发由电源转换器和相关控制器组成的嵌入系统的正式模型。Matlab/Simolink是嵌入控制和系统设计的脱facto工具,但它依赖非正式的语义学,对电转换器电子、控制器(硬件)和控制逻辑(软件)的透明和综合规格和验证支持有限。本文的贡献是开发一个有时间的CPN等级模型,通过依赖Petri净正规化来减轻Simolink的缺点。我们通过开发一个与CPN工具控制器控制器完全一体化的压电转换器模型来展示我们的方法的应用。此外,我们进行时间-dormain模拟,以核查控制器控制器为控制目标服务的能力。为了验证CPNC的开发模型,我们将在开关-lo配置中获得的模拟结果与Similink模式的对应执行。实验结果显示CPNC模式与Similink模式之间的对应性对应性。我们能够将CPNCS的硬转换结果与固定的升级结果与测试结果进行对比。