摘要
本文通过介绍OPC技术的工作原理,结合激励式仿真机的工作机制,给出OPC异步通讯的开发方法及使用Visual C++6.0的具体实现。根据仿真系统支撑平台的实时性要求,利用内存映射文件建立系统运行的实时数据库,即通过内存映射文件开辟共享内存区并对其进行数据操作。该方法既能实现多个进程数据的共享,又保证了实时的响应速度以便在Ovation DCS服务器数据库中读写数据。具有数据传输速率快,安全可靠性高的优点,在火电厂自动化中有很强的通用性和实用性。
This article provides the way of exploring OPC asynchronous communication and its fulfillment in Visual C++6,0 via the introduction of the working principles of OPC technology combined with the working mechanism of stimulative simulation system. According to the real time requirement of the supporting platform of simulation system, this paper establishes the real time database in the course of memory mapping file; sets up a sharing memory area by memory mapping file; and realizing the operations of the sharing memory area. This method not only has realized the sharing of a lot of process data, but also guaranteed the prompt response speed to read and write the Ovation DCS Server Database. The program have a lot of merits with fast data transfer rate and high security and authenticity, it has strong reliability and practicability in power plant automation.
关键词
激励式仿真机
OPC
组件对象模型
异步通信
内存映射文件
Stimulative
Simulation
OPC
Component object mode
Asynchronous communication
Memory mapping file