摘要
目前,分散控制系统广泛应用于工业化生产中。针对分散控制系统的实时性、稳定性、可靠性的要求,设计基于QNX(Quick UNIX)与Cortex-A8(超标量微处理器内核)的分散控制系统。该分散控制系统采用控制器局域网(CAN)通信方式,实现现场控制站与现场采集模块之间的数据传送。现场控制站要求主控制器和支持CAN协议的输入/输出(I/O)模块之间实时地进行数据交换,包括现场控制站向I/O模块发送各种指令和数据以及接收I/O模块下发工程师站和操作员站的操作指令。由于I/O模块包含各种模拟量和数字量输入输出卡件,因此采用CAN网络通信具有较高的实时性。结合相关资料介绍CAN控制器的硬件结构及其功能。在QNX6.5嵌入式操作系统开发环境下,基于Cortex-A8处理器,编写CAN网络驱动程序,并进行测试,测试表明采用CAN网络通信能够很好地满足电厂对实时性、稳定性的要求。
At present,the distributed control system is widely used in industrial production. According to the real-time,stability and reliability requirement of distributed control system,a distributed control system based on QNX and Cortex-A8 was designed. This system adopted the CAN( Controller Area Network) communication way,realized data transfer between field control station and acquisition module. Field control station demanded that the main controller exchanged data in realtime with the I / O module,including sending instructions and data supporting CAN agreement,and receiving the I / O module instructions issued by the engineer station and operator station. Because the I / O module contains a variety of analog and digital input and output cards,so adopting CAN communication network has high real-time performance. Combined with the related information,the hardware structure of CAN and function of the controller were introduced. In QNX6. 5 embedded operating system development environment,based on the Cortex-A8,the CAN network driver was written and tested. The test results show that the CAN network communication can meet the real-time and stability requirements of a very good power plant.
引文
[1]王广.DCS系统在火电厂的应用研究[J].电子世界,2014,9(7):55.
[2]王斑,苗克坚.QNX驱动程序的编写[J].测控技术,2006,25(6):54-56.
[3]高婷婷.DCS与现场总线集成的研究与实现[D].青岛:青岛科技大学,2012:33-34.
[4]王成卉,曾连荪.基于CAN总线的信息采集系统设计[J].电子设计工程,2010,18(9):112-114.
[5]王跃飞,侯亮,刘菲.基于FPGA的汽车CAN网络实时管理系统设计[J].电子测量与仪器学报,2013,27(8):721-728.
[6]魏丰,潘小虎,曾勇,等.光纤CAN总线集线器及其组网研究[J].仪器仪表学报,2011,32(12):2839-2844.
[7]QNX Soft System Ltd.QNX Neutrino device drivers[M].Ottawa:QNX Soft System Ltd,2002.
[8]QNX Neutrino realtime operating system architecture[EB/OL].[2015-06-01].http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=%2Fcom.qnx.doc.neutrino%2Fbookset.html.