论文部分内容阅读
旨在开发一个基于WorldFIP协议的现场总线智能仪表, 实现与上位组态软件直接的通信。现场总线智能设备中功能块的设计实现是实现智能设备现场控制功能的核心。功能块表达了功能块应用所实现的基本自动化功能。每一个功能块都要根据特定的控制算法和一套输入、输出和内部控制参数对输入信号进行处理。文中分析了WorldFIP总线现场设备中功能块的特点, 结合上位组态软件的设计思想, 阐述了现场总线仪表内存按参数类型和组态程序段来分区设计及实现方案: 在现场设备的内存中分配四大数据区, 分别为指令区、输入参数区、输出参数区及内含参数区。对应建立四大指针, 分别为指令区指针, 输入参数区指针, 输出参数区指针, 内含参数区指针,以方便程序的执行。同时建立程序段与仪表内存分配之间的一一对应关系。实验证明该方案科学合理。
The purpose is to develop a fieldbus intelligent instrument based on WorldFIP protocol to achieve direct communication with the host configuration software. The design and implementation of the function blocks in the field bus intelligent device is the core of realizing the field control function of the intelligent device. Function blocks convey the basic automation functions implemented by function block applications. Each function block processes the input signal based on a specific control algorithm and a set of inputs, outputs, and internal control parameters. In this paper, the features of function blocks in WorldFIP bus field devices are analyzed. Combined with the design idea of host configuration software, the design and implementation scheme of field bus instrument memory partitioned by parameter types and configuration blocks are described: allocating in-memory in field devices Four data areas, respectively, the command area, enter the parameter area, the output parameter area and the included parameter area. Corresponding to the establishment of the four major indicators, respectively, for the instruction area pointer, the input parameter area pointer, the output parameter area pointer contains the parameter area pointer to facilitate the implementation of the program. At the same time, establish correspondence between program segment and instrument memory allocation. Experiments show that the program is scientific and reasonable.