可编程控制器运行时系统软件设计*

李响, 陈宏君, 曾凯, 侯先栋, 周强, 张磊

集成电路与嵌入式系统 ›› 2023, Vol. 23 ›› Issue (7) : 41-43.

PDF(1072 KB)
PDF(1072 KB)
集成电路与嵌入式系统 ›› 2023, Vol. 23 ›› Issue (7) : 41-43.
技术纵横

可编程控制器运行时系统软件设计*

  • 李响, 陈宏君, 曾凯, 侯先栋, 周强, 张磊
作者信息 +

Design of Programmable Controller Runtime System Software

  • Li Xiang, Chen Hongjun, Zeng Kai, Hou Xiandong, Zhou Qiang, Zhang Lei
Author information +
文章历史 +

摘要

基于国产硬件和国产实时操作系统开发了可编程控制器运行时系统软件平台,该平台包括数据管理、任务调度、在线调试、热备冗余和实时总线等功能。提出了基于自适应调度器和信号量触发机制的多类型实时任务高精度调度方案,支持微秒级运算周期,满足强实时应用场景需求;提出了编译型程序在线增量更新方案,采用乒乓原理分区切换、多线程无缝配合和数据区增量分配等技术实现高效率的程序在线替换和断面恢复运行;提出了基于智能插桩的跨平台断点和单步调试方案,实现了图形程序和文本程序的单步运行功能,提高了程序诊断、问题排查效率;提出了主/从控制器实时多任务热备冗余运行方案,支持程序文件、运行数据、任务状态同步和运行状态诊断与主/从角色智能切换。

Abstract

The software platform of the programmable controller runtime system is developed based on domestic hardware and real-time operating system.The platform includes data management,task scheduling,online debugging,hot spare redundancy and real-time bus.In this paper,a multi-type real-time task scheduling scheme with high precision based on adaptive scheduler and semaphore trigger mechanism is proposed,which supports microsecond-level operation cycles and meets the requirements of strong real-time application scenarios.An online incremental update scheme for compiled programs is proposed,which uses Ping-Pong principle partition switching,seamless multi-thread coordination and incremental allocation of data area to realize efficient online program replacement and section recovery.A cross-platform breakpoint and single step debugging scheme based on intelligent pile is proposed,which realizes the single step running function of graphics program and text program,and improves the efficiency of program diagnosis and troubleshooting.A real-time multi-task hot standby redundancy operation scheme for master/slave controllers is proposed,which supports program files,running data,task status synchronization,running status diagnosis and intelligent switching of primary/secondary roles.

关键词

可编程控制器 / 运行时软件 / 任务调度 / 增量更新 / 热备冗余

Key words

programmable controller / runtime software / task scheduling / incremental update / hot spare redundancy

引用本文

导出引用
李响, 陈宏君, 曾凯, 侯先栋, 周强, 张磊. 可编程控制器运行时系统软件设计*[J]. 集成电路与嵌入式系统. 2023, 23(7): 41-43
Li Xiang, Chen Hongjun, Zeng Kai, Hou Xiandong, Zhou Qiang, Zhang Lei. Design of Programmable Controller Runtime System Software[J]. Integrated Circuits and Embedded Systems. 2023, 23(7): 41-43
中图分类号: TP311   

参考文献

[1] 许召元.坚持自主可控确保安全稳定[N].经济日报,2021-02-18(010).
[2] 彭瑜,何衍庆.IEC61131-3编程语言及应用基础[M].北京:机械工业出版社,2012.
[3] 严义.可编程控制器(PLC)新技术[J].自动化博览,2018,35(6):22-23.
[4] 邬惠峰.浅谈可编程逻辑控制器(PLC)的技术现状和发展趋势[J].自动化博览,2022,39(4):18-21.
[5] 李响,刘国伟,冯亚东,等.新一代控制保护系统通用硬件平台设计与应用[J].电力系统自动化,2012,36(14):52-55.
[6] 刘志勇,黄文君,金建祥.工业控制器跨平台特性设计[J].计算机工程,2012,38(14):227-230.
[7] 张海伟.和利时IEC 61131-3编程软件平台[J].自动化博览,2016(6):42-44.
[8] 丁志宇,彭文才,武迪,等.新一代可编程逻辑控制器的研究与实现[J].工业控制计算机,2020,33(11):126-128.
[9] 雷振阳,雷向东,龙军.多核系统中并行实时任务调度策略[J].信息技术,2020,44(9):15-20.
[10] 黄姝娟,朱怡安,李兵哲,等.具有依赖关系的周期任务实时调度方法[J].计算机学报,2015,38(5):999-1006.
[11] 裘坤,刘志勇,吴欣.DCS组态在线下载技术分析与设计[J].自动化与仪表,2016,31(5):62-65.
[12] 陈宏君,冯亚东,文继锋,等.嵌入式程序动态分配内存的调试方案设计[J].单片机与嵌入式系统应用,2015,15(9):18-21.
[13] 门松,于治楼.一种基于伪断点的嵌入式应用软件调试方法的研究[J].信息技术与信息化,2008(4):47-48.

基金

*南瑞集团资助项目—自主可控通用型PLC软件平台研制(JS2201447)。

PDF(1072 KB)

Accesses

Citation

Detail

段落导航
相关文章

/