• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2014, Vol. 36 ›› Issue (09): 1662-1667.

• 论文 • 上一篇    下一篇

基于μC/OSII的Modbus/TCP消息的类令牌环实时响应算法

孙中豪,周兴社,张凯龙   

  1. (西北工业大学计算机学院, 陕西 西安 710072)
  • 收稿日期:2012-12-20 修回日期:2013-04-24 出版日期:2014-09-25 发布日期:2014-09-25
  • 基金资助:

    国家自然科学基金资助项目(61103004);陕西省重大科技创新计划课题资助项目(2010ZDKG83)

A token-ring-like real-time response algorithm
of Modbus/TCP message based on μC/OS-II             

SUN Zhonghao,ZHOU Xingshe,ZHANG Kailong   

  1. (School of Computer Science,Northwestern Polytechnical University,Xi’an 710072,China)
  • Received:2012-12-20 Revised:2013-04-24 Online:2014-09-25 Published:2014-09-25

摘要:

Modbus/TCP工业以太网标准本身不保证实时性。设计一种带优先级的令牌环调度算法,实现了对高优先级Modbus/TCP消息的实时响应,并在该算法基础上扩展出加权令牌环调度算法和变权令牌环调度算法,能满足可定制、可更改的响应延时需求。最后,在基于μC/OSII+ARM7的平台上测试响应延时为1.15±0.15ms,优于目前大多数对Modbus/TCP的实时性改造成果,甚至达到了开放模式下Powerlink的实时水准。

关键词: Modbus/TCP, 工业以太网, &mu, C/OS-II, 实时性, 令牌环

Abstract:

Modbus/TCP industrial Ethernet standard cannot guarantee the realtime capability by itself. A token ring scheduling algorithm is designed, which uses priority to achieve the realtime response to highpriority Modbus/TCP messages. Based on that, a weighted token ring scheduling algorithm and a weightvariable token ring scheduling algorithm are developed to meet the customizable and changeable time delay demands. Finally, the response delay on a μC/OSII+ARM7 platform is measured to be 1.15±0.15ms, which is superior to most current researches that aim at improving the realtime capability of Modbus/TCP, and what’s more, it reaches the level of POWERLINK working in open mode.

Key words: Modbus/TCP;industrial Ethernet;μC/OS-II;real-time capability;token-ring