微特电机 ›› 2024, Vol. 52 ›› Issue (5): 58-64.

• 驱动控制 • 上一篇    下一篇

一种同步伺服控制系统控制软件通用架构设计方法

段卓琳1,王  腾2,董星言1,王伟洋1,蒋雨菲1,温之绪1   

  1. 1. 北京航天发射技术研究所,北京 100076; 2. 海装驻北京地区第一军事代表室,北京 100076
  • 收稿日期:2024-01-30 出版日期:2024-05-28 发布日期:2024-06-13

A General Architecture Design Method for Control Software of Synchronous Servo Control System

DUAN Zhuolin1, WANG Teng2, DONG Xingyan1, WANG Weiyang1, JIANG Yufei1, WEN Zhixu1   

  1. 1. Beijing Institute of Space Launch Technology,Beijing 100076, China; 2. The First Military Representative Office of the Naval Equipment Department in Beijing Area,Beijing 100076,China
  • Received:2024-01-30 Online:2024-05-28 Published:2024-06-13

摘要: 传统同步伺服控制系统控制软件传统顺序执行架构,具有通用性和可扩展性差、效率低,运行时间长,周期性函数执行周期精度低等问题。 基于时间片轮询的任务调度算法,提出了一种新的控制软件通用架构。 该方法调度管理函数在主函数中运行,不占用中断程序时间,对某个调度任务执行经过的中断周期总数计数,提高了任务调度周期的准确性。 提出了通过设置首次上传延时,避免多个周期信息同时,上传造成拥堵的调度方法。 缩短了控制软件中断服务程序运行时间,解决了原控制程序顺序执行时周期信息上传周期不准确、多个上传时的拥堵等问题,提高了控制软件的通用性、可扩展性。

关键词: 同步伺服控制系统, 控制软件通用架构, 任务调度

Abstract: The traditional sequential execution architecture of control software for synchronous servo control systems has the problems of poor generality and expansibility, low efficiency, long running time and low precision of periodic function execution cycle. Based on the time slice polling task scheduling algorithm, a new general architecture for the control software was proposed. The scheduling management function was run in the main function, which does not occupy
the interrupt program time, and the total number of interrupt cycles executed on a scheduling task was counted, which improved the accuracy of the task scheduling cycle time. A scheduling method was proposed to avoid congestion caused by uploading multiple cycle information at the same time, by setting the delay time of uploading for the first time. It shortened the running time of the control software interrupt service program, solved the problems such as the inaccurate cycle time of cycle information upload and the congestion of multiple uploads in original sequential execution architecture control software, and improved the universality and expansibility of the control software.

Key words: synchronous servo control system, general architecture for the control software, task scheduling

中图分类号: