[go: up one dir, main page]

CN103728957B - HART (highway addressable remote transducer) field equipment management method and system based on real-time database - Google Patents

HART (highway addressable remote transducer) field equipment management method and system based on real-time database Download PDF

Info

Publication number
CN103728957B
CN103728957B CN201410017472.8A CN201410017472A CN103728957B CN 103728957 B CN103728957 B CN 103728957B CN 201410017472 A CN201410017472 A CN 201410017472A CN 103728957 B CN103728957 B CN 103728957B
Authority
CN
China
Prior art keywords
hart
data
protocol
message
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410017472.8A
Other languages
Chinese (zh)
Other versions
CN103728957A (en
Inventor
王文海
张益南
钱胜伟
许志正
张稳稳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201410017472.8A priority Critical patent/CN103728957B/en
Publication of CN103728957A publication Critical patent/CN103728957A/en
Application granted granted Critical
Publication of CN103728957B publication Critical patent/CN103728957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

工业操作站将HART命令对应的有效数据以工业以太网协议中的报文形式发送到控制站;控制站对将解包后的有效数据以CAN协议中的报文形式发送;HART模件解包所收到的CAN协议报文将有效数据构成HART命令形式发送;HART设备接收到HART命令后将响应信息返回给HART模件后解包,以CAN协议中的报文形式打包发送给控制站;控制站解包所收到的CAN协议报文,以工业以太网协议中的报文形式打包发送到工业操作站。本发明可将全部HART现场设备数据送入主控室的操作站,让用户在控制室就能方便地远程查看、修改、配置现场设备的组态信息,提高设备维护效率,降低生产成本。

The industrial operation station sends the valid data corresponding to the HART command to the control station in the form of a message in the industrial Ethernet protocol; the control station sends the unpacked valid data in the form of a message in the CAN protocol; the HART module unpacks The received CAN protocol message will send valid data in the form of HART command; after receiving the HART command, the HART device will return the response information to the HART module, unpack it, and send it to the control station in the form of a message in the CAN protocol; The control station unpacks the received CAN protocol message, packs and sends it to the industrial operation station in the form of a message in the industrial Ethernet protocol. The invention can send all HART field device data to the operation station of the main control room, allowing users to remotely view, modify, and configure field device configuration information in the control room, improving equipment maintenance efficiency and reducing production costs.

Description

一种基于实时数据库的HART现场设备管理方法及系统A kind of HART field device management method and system based on real-time database

技术领域technical field

本发明涉及HART通讯技术领域,尤其是涉及一种基于实时数据库的HART现场设备管理方法及系统。The invention relates to the technical field of HART communication, in particular to a real-time database-based HART field device management method and system.

背景技术Background technique

控制器局域网CAN(Controller Area Network),属于现场总线的范畴,是一种有效支持分布式控制系统的串行通信网络,由德国博世公司在20世纪80年代专门为汽车行业开发的一种串行通信总线。由于其高性能、高可靠性以及独特的设计而越来越受到人们的重视,被广泛应用于诸多领域。而且能够检测出产生的任何错误。当信号传输距离达到10km时,CAN仍可提供高达50kbit/s的数据传输速率。由于CAN总线具有很高的实时性能和应用范围,从位速率最高可达1Mbps的高速网络到低成本多线路的50Kbps网络都可以任意搭配。因此,CAN在汽车业、航空业、工业控制、安全防护等领域中得到了广泛应用。CAN (Controller Area Network), which belongs to the category of field bus, is a serial communication network that effectively supports distributed control systems. It was developed by Bosch in Germany in the 1980s for the automotive industry. communication bus. Because of its high performance, high reliability and unique design, people pay more and more attention to it, and it is widely used in many fields. And any errors that occur can be detected. When the signal transmission distance reaches 10km, CAN can still provide a data transmission rate up to 50kbit/s. Because the CAN bus has high real-time performance and application range, it can be arbitrarily matched from a high-speed network with a bit rate up to 1Mbps to a low-cost multi-line 50Kbps network. Therefore, CAN has been widely used in the fields of automobile industry, aviation industry, industrial control, safety protection and so on.

高速远程可寻址转换协议(Highway Addressable Remote Transducer,简称HART),是一种用于现场智能仪表和控制室设备之间的现场总线通信协议。HART协议是4~20mA标准模拟信号向数字信号过渡的协议。它通过在传统的4~20mA标准模拟信号上叠加了一个数字信号,使得原有的模拟信号仍然可以使用,同时通过数字信号可以传输其它信息。这种协议使得现有模拟仪表在无需要改进的情况下可逐步实现数字化,从而大大降低成本,提高竞争力。目前,HART协议产品已经广泛应用在自动化控制领域中。所以,在一定时期内,HART协议仍具有很强的生命力。Highway Addressable Remote Transducer (HART for short) is a fieldbus communication protocol used between field smart instruments and control room equipment. The HART protocol is a protocol for transitioning from 4 to 20mA standard analog signals to digital signals. It superimposes a digital signal on the traditional 4-20mA standard analog signal, so that the original analog signal can still be used, and other information can be transmitted through the digital signal. This agreement enables the existing analog instruments to be gradually digitized without improvement, thereby greatly reducing costs and improving competitiveness. At present, HART protocol products have been widely used in the field of automation control. Therefore, in a certain period of time, the HART protocol still has strong vitality.

目前HART现场设备管理是通过安装在现场的PC控制站通过RS-232发送、接受HART命令,与HART现场设备通信。HART现场设备管理运行必须要有带有串口的PC机控制站,通过串口线和HART Modem、匹配电阻与HART现场设备相连,从而实现控制站对HART现场设备进行管理。所以,目前的HART现场设备必须通过现场的PC机控制站上,同时操作人员只能在现场对HART现场设备进行管理与维护。同时在大多数现场的PC机控制站中,4~20mA的模拟信号只通过单独的电缆同常规的I/O模件相连接,而任何与HART现场设备的通信都是通过手持终端临时接入来完成的。而主控室的工作人员无法了解HART现场设备的实际情况,不能对其进行设备管理与参数配置等操作。传统的现场巡视的方式费时、费力,对HART现场设备的运行状态不能做到了如指掌,增加了生产故障的概率。At present, HART field device management is to send and receive HART commands through RS-232 through the PC control station installed in the field, and communicate with HART field devices. HART field device management operation must have a PC control station with a serial port, which is connected to the HART field device through the serial port line, HART Modem, and matching resistors, so that the control station can manage the HART field device. Therefore, the current HART field devices must be connected to the on-site PC control station, and operators can only manage and maintain the HART field devices on site. At the same time, in most of the on-site PC control stations, the 4-20mA analog signal is only connected to the conventional I/O module through a separate cable, and any communication with the HART field device is temporarily connected through the handheld terminal to complete. The staff in the main control room cannot understand the actual situation of the HART field equipment, and cannot perform operations such as equipment management and parameter configuration on it. The traditional on-site inspection method is time-consuming and labor-intensive, and the operating status of the HART field equipment cannot be well known, which increases the probability of production failure.

发明内容Contents of the invention

本发明基于实时数据库的HART现场设备管理方法通过利用实时数据库,存放有效数据,以衔接不同协议之间的转换,通过对三种不同协议进行转换增强了HART能力,可以将HART现场设备的数字信号与它的常规过程信号集成在系统平台中,将全部HART现场设备数据送入主控室的操作站,让用户在控制室就能方便地远程查看、修改、配置现场设备的组态信息,所有的操作都会记录在数据库中,做到有据可查。这样维护率提高,生产成本降低,其具体技术方案如下:The HART field device management method based on the real-time database of the present invention uses the real-time database to store effective data to connect the conversion between different protocols, and enhances the HART capability by converting the three different protocols, and can convert the digital signal of the HART field device It is integrated with its conventional process signals in the system platform, and sends all HART field device data to the operation station in the main control room, so that users can easily view, modify, and configure the configuration information of field devices remotely in the control room. All operations will be recorded in the database to be well documented. In this way, the maintenance rate is improved and the production cost is reduced. The specific technical scheme is as follows:

一种基于实时数据库的HART现场设备管理方法,包括如下步骤:A kind of HART field device management method based on real-time database, comprises the steps:

本发明的目的在于提供一种基于实时数据库的HART现场设备管理方法,包括如下步骤:The object of the present invention is to provide a kind of HART field equipment management method based on real-time database, comprise the steps:

S1:工业操作站将HART命令对应的有效数据以工业以太网协议中的报文形式发送到控制站;S1: The industrial operation station sends the valid data corresponding to the HART command to the control station in the form of a message in the industrial Ethernet protocol;

S2:控制站对所收到的工业以太网协议报文进行解包,将有效数据储存于控制站数据库后以CAN协议中的报文形式打包发送到HART模件;S2: The control station unpacks the received industrial Ethernet protocol message, stores the valid data in the control station database, and sends it to the HART module in the form of a message in the CAN protocol;

S3:HART模件对所收到的CAN协议报文进行解包,将有效数据储存于HART模件数据库后构成HART命令形式发送到相应的HART设备;S3: The HART module unpacks the received CAN protocol message, stores the valid data in the HART module database, and then forms a HART command form and sends it to the corresponding HART device;

S4:HART设备接收到HART命令后将响应信息返回给HART模件,HART模件解包所述响应信息获得有效响应数据,并将有效响应数据以CAN协议中的报文形式打包发送给控制站;S4: The HART device returns the response information to the HART module after receiving the HART command, and the HART module unpacks the response information to obtain valid response data, and packages the valid response data in the form of messages in the CAN protocol and sends them to the control station ;

S5:控制站对所收到的HART模件发出的CAN协议报文进行解包,将有效响应数据储存于控制站数据库后以工业以太网协议中的报文形式打包发送到工业操作站。S5: The control station unpacks the received CAN protocol message sent by the HART module, stores the effective response data in the control station database, and then packs and sends it to the industrial operation station in the form of a message in the industrial Ethernet protocol.

进一步的,所述控制站数据库设置有两个缓冲区分别用于暂存所述工业以太网协议报文和CAN协议报文。Further, the control station database is provided with two buffers for temporarily storing the industrial Ethernet protocol message and the CAN protocol message respectively.

进一步的,所述工业以太网协议报文的帧格式包括:目的地址、源地址、类型、数据、CRC,其中数据采用UDP数据报文格式包括:IP头、UDP头、应用数据。Further, the frame format of the industrial Ethernet protocol message includes: destination address, source address, type, data, and CRC, wherein the data adopts UDP data message format and includes: IP header, UDP header, and application data.

进一步的,所述应用数据的格式采用自定义数据帧格式,包括:校验信息一、用户数据和校验信息二。Further, the format of the application data adopts a self-defined data frame format, including: verification information 1, user data and verification information 2.

进一步的,所述HART模件数据库设置有两个缓冲区分别用于暂存CAN协议报文和HART命令。Further, the HART module database is provided with two buffers for temporarily storing CAN protocol messages and HART commands respectively.

本发明的另一目的在于提供一种基于实时数据库的HART现场设备管理系统,包括工业操作站、控制站、HART模件和HART设备;Another object of the present invention is to provide a kind of HART field device management system based on real-time database, including industrial operation station, control station, HART module and HART equipment;

所述工业操作站将HART命令对应的有效数据以工业以太网协议中的报文形式发送到控制站;The industrial operation station sends the valid data corresponding to the HART command to the control station in the form of a message in the industrial Ethernet protocol;

所述控制站对所收到的工业以太网协议报文进行解包,将有效数据储存于控制站数据库后以CAN协议中的报文形式打包发送到HART模件;The control station unpacks the received industrial Ethernet protocol message, and stores the valid data in the control station database and sends it to the HART module in the form of a message in the CAN protocol;

所述HART模件对所收到的CAN协议报文进行解包,将有效数据储存于HART模件数据库后构成HART命令形式发送到相应的HART设备;The HART module unpacks the received CAN protocol message, and stores the effective data in the HART module database to form a HART command form and send it to the corresponding HART device;

所述HART设备接收到HART命令后将响应信息返回给HART模件,HART模件解包所述响应信息获得有效响应数据,并将有效响应数据以CAN协议中的报文形式打包发送给控制站;The HART device returns the response information to the HART module after receiving the HART command, and the HART module unpacks the response information to obtain effective response data, and sends the effective response data to the control station in the form of messages in the CAN protocol ;

所述控制站对所收到的HART模件发出的CAN协议报文进行解包,将有效响应数据储存于控制站数据库后以工业以太网协议中的报文形式打包发送到工业操作站。The control station unpacks the received CAN protocol message sent by the HART module, stores the effective response data in the control station database, and then packs and sends it to the industrial operation station in the form of a message in the industrial Ethernet protocol.

进一步的,所述控制站设置有数据库模块,所述数据库模块设置有两个缓冲区分别用于暂存所述工业以太网协议报文和CAN协议报文。Further, the control station is provided with a database module, and the database module is provided with two buffers for temporarily storing the industrial Ethernet protocol message and the CAN protocol message respectively.

进一步的,所述HART模件设置有数据库模块,所述数据库模块设置有两个缓冲区分别用于暂存CAN协议报文和HART命令。Further, the HART module is provided with a database module, and the database module is provided with two buffers for temporarily storing CAN protocol messages and HART commands respectively.

本发明的有益效果如下:The beneficial effects of the present invention are as follows:

现有技术中,HART模件使用的是hart的主站协议,以及CAN的从站协议,所以无法直接将数据在不同的协议中转化。该发明技术方案中通过数据库,将两个通讯协议隔离,同时两者使用不同的缓冲区暂存,有效的解决两种协议速度不匹配问题,同时由于相互隔离,互不影响,也避免了一个协议通信出问题时影响另一个协议。进一步的,通过使用不同的缓冲区,有效的解决了速度不匹配问题。同时,规定在一个地方统一操作数据库,这样在同一时间内只能有一个对象处理数据库,从而避免了多个对象同时处理数据而产生的操作冲突,提高程序运行的效率。In the prior art, the HART module uses the hart master protocol and the CAN slave protocol, so it is impossible to directly convert data between different protocols. In the technical solution of the invention, the two communication protocols are isolated through the database, and the two use different buffers for temporary storage, which effectively solves the problem of the speed mismatch between the two protocols. A protocol communication problem affects another protocol. Furthermore, by using different buffers, the speed mismatch problem is effectively solved. At the same time, it is stipulated that the database is operated uniformly in one place, so that only one object can process the database at the same time, thereby avoiding operation conflicts caused by multiple objects processing data at the same time, and improving the efficiency of program operation.

附图说明Description of drawings

图1为本发明实施例的方法流程图。Fig. 1 is a flow chart of the method of the embodiment of the present invention.

图2为本发明实施例以太网协议、CAN协议、HART协议转换图。FIG. 2 is a conversion diagram of the Ethernet protocol, the CAN protocol, and the HART protocol according to the embodiment of the present invention.

图3为本发明实施例以太网协议、CAN协议、HART协议帧数据流转换图。FIG. 3 is a conversion diagram of Ethernet protocol, CAN protocol, and HART protocol frame data flow according to the embodiment of the present invention.

图4为本发明实施例基于实时数据库的HART现场设备管理系统的结构示意图。FIG. 4 is a schematic structural diagram of a HART field device management system based on a real-time database according to an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

如图1实施例所示,一种基于实时数据库的HART现场设备管理方法,包括如下步骤:As shown in Figure 1 embodiment, a kind of HART field equipment management method based on real-time database comprises the following steps:

S1:工业操作站1将HART命令对应的有效数据以工业以太网协议中的报文形式发送到控制站2。S1: The industrial operation station 1 sends the valid data corresponding to the HART command to the control station 2 in the form of a message in the industrial Ethernet protocol.

S2:控制站2接收到工业操作站1发出的工业以太网协议报文后,将其解包,将有效数据放在对应控制站数据库的相应位置,控制站2取出对应的有效数据以CAN协议中的报文形式,打包发送到HART模件3。S2: After the control station 2 receives the industrial Ethernet protocol message sent by the industrial operation station 1, it unpacks it, puts the valid data in the corresponding position of the database of the corresponding control station, and the control station 2 takes out the corresponding valid data with the CAN protocol In the form of the message, it is packaged and sent to HART module 3.

其中,工业以太网(SNET)协议与CAN协议之间的转换过程具体如下:Among them, the conversion process between the Industrial Ethernet (SNET) protocol and the CAN protocol is as follows:

如图3所示,以太网协议报文的帧格式包括:目的地址、源地址、类型、数据、CRC这五部分,其中数据我们采用UDP数据报文形式:IP头、UDP头、应用数据。对应用数据格式,我们作了改进,自定义数据帧格式,在用户数据前后增加了校验信息1和校验信息2,这样降低了误码率,从而形成了SNET协议原理。As shown in Figure 3, the frame format of the Ethernet protocol message includes five parts: destination address, source address, type, data, and CRC. The data is in the form of UDP data message: IP header, UDP header, and application data. We have improved the application data format, customized the data frame format, and added check information 1 and check information 2 before and after the user data, which reduces the bit error rate, thus forming the principle of the SNET protocol.

CAN协议扩展帧格式包括:命令字、目的地址、源地址、数据指针、用户数据这五部分。The CAN protocol extended frame format includes five parts: command word, destination address, source address, data pointer, and user data.

在控制站内,我们建立了一个操作站数据库,所述操作站数据库设置有两个缓冲区分别用于暂存所述工业以太网协议报文暂存于和CAN协议报文。将工业以太网(SNET)协议与CAN协议隔离,同时两者使用不同的缓冲区暂存,有效的解决两种协议速度不匹配问题;因为相互隔离,互不影响,也避免了一个协议通信出问题时,引起另一个协议的问题。而使用不同的缓冲区,有效的解决了速度不匹配问题。同时,规定在一个地方统一操作数据库,这样在同一时间内只能有一个对象处理数据库,从而避免了多个对象同时处理数据而产生的操作冲突,提高程序运行的效率。工业以太网协议报文解包后,将用户数据放在对应操作站数据库的相应位置,根据CAN主站协议S3的规范,数据库1内对应的用户数据以CAN协议中的报文形式进行封装打包。In the control station, we have established an operation station database, and the operation station database is provided with two buffers for temporarily storing the industrial Ethernet protocol message and the CAN protocol message respectively. The industrial Ethernet (SNET) protocol is isolated from the CAN protocol, and the two use different buffers for temporary storage, which effectively solves the problem of the speed mismatch between the two protocols; because they are isolated from each other and do not affect each other, it also avoids a protocol communication failure. When a problem occurs, it causes a problem with another protocol. Using different buffers effectively solves the problem of speed mismatch. At the same time, it is stipulated that the database is operated uniformly in one place, so that only one object can process the database at the same time, thereby avoiding operation conflicts caused by multiple objects processing data at the same time, and improving the efficiency of program operation. After the industrial Ethernet protocol message is unpacked, the user data is placed in the corresponding position of the database of the corresponding operation station. According to the specification of the CAN master station protocol S3, the corresponding user data in the database 1 is packaged in the form of a message in the CAN protocol. .

S3:HART模件3收到控制站发出的CAN协议报文,将其解包,将有效数据放在HART模件数据库的相应位置,HART模件3从对应数据库中取出相应的有效数据,并依据HART协议中帧格式要求构成一个完整的HART命令并发送到相应的HART设备4。S3: HART module 3 receives the CAN protocol message sent by the control station, unpacks it, puts the valid data in the corresponding position of the HART module database, HART module 3 takes out the corresponding valid data from the corresponding database, and According to the frame format requirements in the HART protocol, a complete HART command is formed and sent to the corresponding HART device 4 .

CAN协议与HART协议间的转换过程具体如下:The conversion process between the CAN protocol and the HART protocol is as follows:

HART协议帧格式包括:前导符、定界符、地址、HART命令号、字节计数、有效数据、校验这七部分信息。其中HART命令号、字节计数、有效数据这三部分属于HART应用层数据;定界符、地址、校验这三部分属于HART数据链路层数据;前导符信息属于HART物理层数据。The HART protocol frame format includes seven parts of information: preamble, delimiter, address, HART command number, byte count, valid data, and checksum. Among them, the three parts of HART command number, byte count and valid data belong to HART application layer data; the three parts of delimiter, address and checksum belong to HART data link layer data; the preamble information belongs to HART physical layer data.

在HART模件内使用的是HART的主站协议,以及CAN的从站协议。由于HART协议是低速的通信协议,而CAN协议是高速通信协议,所以无法直接将数据在不同的协议中转化。因此我们建立了一个ART模件数据库,将CAN协议与HART通讯协议隔离,同时两者使用不同的缓冲区暂存,有效的解决两种协议速度不匹配问题;因为相互隔离,互不影响,也避免了一个协议通信出问题时,引起另一个协议的问题。What is used in the HART module is the master station agreement of HART and the slave station agreement of CAN. Since the HART protocol is a low-speed communication protocol, and the CAN protocol is a high-speed communication protocol, it is impossible to directly convert data between different protocols. Therefore, we have established an ART module database to isolate the CAN protocol from the HART communication protocol. At the same time, the two use different buffers for temporary storage, effectively solving the problem of the speed mismatch between the two protocols; It avoids the problem of another protocol when there is a problem with the communication of one protocol.

使用不同的缓冲区,有效的解决了速度不匹配问题。同时,规定在一个地方统一操作数据库,这样在同一时间内只能有一个对象处理数据库,从而避免了多个对象同时处理数据而产生的操作冲突,提高程序运行的效率。使用HART命令缓冲区,有效的提高了HART命令执行的效率。解决了众多HART现场设备管理软件在通信过程中,强制用户不能操作的问题。可以在HART通信的时候,不影响正常的HART数据采样。Using different buffers effectively solves the problem of speed mismatch. At the same time, it is stipulated that the database is operated uniformly in one place, so that only one object can process the database at the same time, thereby avoiding operation conflicts caused by multiple objects processing data at the same time, and improving the efficiency of program operation. Using the HART command buffer effectively improves the efficiency of HART command execution. It solves the problem that many HART field device management software force users to fail to operate during the communication process. During HART communication, the normal HART data sampling will not be affected.

CAN协议报文解包后,将用户数据放在对应HART模件数据库的相应位置,依据HART协议中帧格式要求,HART模件数据库内对应的用户数据以HART帧格式进行封装,构成一个完整的HART命令信息,完成了CAN协议与HART协议之间的转换。After the CAN protocol message is unpacked, the user data is placed in the corresponding position of the corresponding HART module database. According to the frame format requirements of the HART protocol, the corresponding user data in the HART module database is encapsulated in the HART frame format to form a complete The HART command information completes the conversion between the CAN protocol and the HART protocol.

S4:HART设备4接收到HART命令后将响应信息返回给HART模件3,HART模件3解包所述响应信息获得有效响应数据,并将有效响应数据以CAN协议中的报文形式打包发送给控制站2。S4: HART device 4 returns the response information to HART module 3 after receiving the HART command, and HART module 3 unpacks the response information to obtain valid response data, and packages and sends the valid response data in the form of messages in the CAN protocol Give control station 2.

S5:控制站2接收到HART模件3发出的CAN协议报文后,将之解包,将有效数据放在控制站数据库的相应位置,控制站取出对应的有效数据以工业以太网协议中的报文形式,打包发送到工业操作站1。S5: After the control station 2 receives the CAN protocol message sent by the HART module 3, it unpacks it, puts the valid data in the corresponding position of the control station database, and the control station takes out the corresponding valid data as the industrial Ethernet protocol. In the form of a message, it is packaged and sent to the industrial operation station 1.

在图2实施例中,我们为HART现场设备建模,将HART现场设备抽象成一个数据模型,便于统一管理。这个过程不依赖于HART协议。In the embodiment shown in Fig. 2, we model the HART field devices, abstract the HART field devices into a data model, and facilitate unified management. This process does not depend on the HART protocol.

在操作站,工业操作站接口服从以太网接收协议X1,将HART命令对应的有效数据以工业以太网协议中的报文形式发送到控制站。同时,接收控制站反馈回来的响应信息,此信息是以太网协议中报文形式返回的。此报文并不是一个完整的HART命令报文,是标准的以太网协议数据帧,传递的是HART现场设备模型的有效数据。相对HART协议命令来说,数据量少很多,并且与HART现场设备无关。In the operation station, the industrial operation station interface obeys the Ethernet receiving protocol X1, and sends the valid data corresponding to the HART command to the control station in the form of a message in the industrial Ethernet protocol. At the same time, the response information fed back by the control station is received, and this information is returned in the form of a message in the Ethernet protocol. This message is not a complete HART command message, but a standard Ethernet protocol data frame, which transmits valid data of the HART field device model. Compared with HART protocol commands, the amount of data is much less, and has nothing to do with HART field devices.

在控制站,根据以太网发布协议X2,控制站接收到操作站发出的工业以太网协议报文后,将之解包,将有效数据放在对应实时数据库的相应位置。同时按照CAN主站协议X3的规范,控制站取出对应的有效数据以CAN协议中的报文形式,打包发送到HART模件。同时,依照CAN主站协议X3,控制站接收到HART模件发出的CAN协议报文后,将之解包,将有效数据放在对应实时数据库的相应位置。按照以太网发布协议X2的具体规范要求,控制站取出对应的有效数据以工业以太网协议中的报文形式,打包发送到操作站中基于实时数据库的HART现场设备管理软件。In the control station, according to the Ethernet publishing protocol X2, the control station unpacks the industrial Ethernet protocol message sent by the operation station after receiving it, and puts the valid data in the corresponding position of the corresponding real-time database. At the same time, according to the specification of the CAN master station protocol X3, the control station takes out the corresponding valid data and sends them to the HART module in the form of messages in the CAN protocol. At the same time, according to the CAN master station protocol X3, after receiving the CAN protocol message sent by the HART module, the control station unpacks it and puts the valid data in the corresponding position of the corresponding real-time database. According to the specific specification requirements of the Ethernet release protocol X2, the control station takes out the corresponding valid data in the form of messages in the industrial Ethernet protocol, packages and sends them to the HART field device management software based on the real-time database in the operation station.

在HART模件,按照CAN从站协议X4规范内容,HART模件收到控制站发出的CAN协议报文,将之解包,将有效数据放在对应数据库的相应位置。按照HART主站协议X5的内容,HART模件从对应数据库中取出相应的有效数据,并依据HART协议中帧格式要求构成一个完整的HART命令并发送到相应的HART现场设备。CAN协议报文是自定义的CAN数据帧,用于高速的HART现场设备模型的有效数据传递。并且与HART现场设备无关。同时,HART模件按照HART主站协议X5规范,接收来自HART设备的响应信息。HART模件将响应信息解包,将有效数据存以CAN协议中的报文形式,打包发送给控制站。In the HART module, according to the CAN slave station protocol X4 specification content, the HART module receives the CAN protocol message sent by the control station, unpacks it, and puts the valid data in the corresponding position of the corresponding database. According to the content of the HART master station protocol X5, the HART module takes out the corresponding valid data from the corresponding database, and forms a complete HART command according to the frame format requirements in the HART protocol and sends it to the corresponding HART field device. The CAN protocol message is a self-defined CAN data frame, which is used for effective data transmission of the high-speed HART field device model. And has nothing to do with HART field devices. At the same time, the HART module receives the response information from the HART device according to the X5 specification of the HART master station protocol. The HART module unpacks the response information, stores the valid data in the form of messages in the CAN protocol, and sends them to the control station in packages.

在HART设备,按照HART从站协议X6的内容,HART设备接收来自HART模件的HART命令,成功接收到后将对应的从站响应信息返回给HART模件。In the HART device, according to the content of the HART slave station protocol X6, the HART device receives the HART command from the HART module, and returns the corresponding slave station response information to the HART module after successful reception.

相应于本发明的一种基于实时数据库的HART现场设备管理方法,还提供一种基于实时数据库的HART现场设备管理系统,图4是本发明一种移动终端的软件更新系统的结构示意图,如图4所示,所述系统,包括工业操作站、控制站、HART模件和HART设备;Corresponding to a kind of HART field device management method based on real-time database of the present invention, also provide a kind of HART field device management system based on real-time database, Fig. 4 is the structural representation of the software update system of a kind of mobile terminal of the present invention, as shown As shown in 4, the system includes an industrial operation station, a control station, a HART module and a HART device;

所述工业操作站将HART命令对应的有效数据以工业以太网协议中的报文形式发送到控制站;The industrial operation station sends the valid data corresponding to the HART command to the control station in the form of a message in the industrial Ethernet protocol;

所述控制站对所收到的工业以太网协议报文进行解包,将有效数据储存于控制站数据库后以CAN协议中的报文形式打包发送到HART模件;The control station unpacks the received industrial Ethernet protocol message, and stores the valid data in the control station database and sends it to the HART module in the form of a message in the CAN protocol;

所述HART模件对所收到的CAN协议报文进行解包,将有效数据储存于HART模件数据库后构成HART命令形式发送到相应的HART设备;The HART module unpacks the received CAN protocol message, and stores the effective data in the HART module database to form a HART command form and send it to the corresponding HART device;

所述HART设备接收到HART命令后将响应信息返回给HART模件,HART模件解包所述响应信息获得有效响应数据,并将有效响应数据以CAN协议中的报文形式打包发送给控制站;The HART device returns the response information to the HART module after receiving the HART command, and the HART module unpacks the response information to obtain effective response data, and sends the effective response data to the control station in the form of messages in the CAN protocol ;

所述控制站对所收到的HART模件发出的CAN协议报文进行解包,将有效响应数据储存于控制站数据库后以工业以太网协议中的报文形式打包发送到工业操作站。The control station unpacks the received CAN protocol message sent by the HART module, stores the effective response data in the control station database, and then packs and sends it to the industrial operation station in the form of a message in the industrial Ethernet protocol.

其中,所述控制站设置有数据库模块,所述数据库模块设置有两个缓冲区分别用于暂存所述工业以太网协议报文暂存于和CAN协议报文。所述HART模件设置有数据库模块,所述数据库模块设置有两个缓冲区分别用于暂存CAN协议报文和HART命令。Wherein, the control station is provided with a database module, and the database module is provided with two buffers for temporarily storing the industrial Ethernet protocol message and the CAN protocol message respectively. The HART module is provided with a database module, and the database module is provided with two buffers for temporarily storing CAN protocol messages and HART commands respectively.

Claims (8)

1. a kind of hart site equipment management method based on real-time data base is it is characterised in that comprise the steps:
Corresponding for hart order valid data are sent to control with the message form in industrial ethernet protocol by s1: industrial operation station System station;
S2: control station unpacks to the industrial ethernet protocol message being received, and valid data are stored in control station data Behind storehouse, hart module is transmitted with the message form in can agreement;
S3:hart module unpacks to the can protocol massages being received, and valid data are stored in after hart module data base Constitute hart command forms and be sent to corresponding hart equipment;
Response message is returned to hart module after receiving hart order by s4:hart equipment, and hart module unpacks described response Information acquisition significant response data, and significant response data is transmitted to control station with the message form in can agreement;
The can protocol massages that s5: control station sends to the hart module being received unpack, by significant response data storage in After control station data base, industrial operation station is transmitted with the message form in industrial ethernet protocol.
2. according to claim 1 the hart site equipment management method based on real-time data base it is characterised in that described control System station data base is provided with two relief areas and is respectively used to keep in described industrial ethernet protocol message and can protocol massages.
3. according to claim 2 the hart site equipment management method based on real-time data base it is characterised in that described work The frame format of industrial Ethernet protocol massages includes: destination address, source address, type, data, crc, wherein data adopt udp number Include according to message format: ip head, udp head, application data.
4. according to claim 3 the hart site equipment management method based on real-time data base it is characterised in that described should Adopt self-defining data frame format with the form of data, comprising: check information one, user data and check information two.
5. according to claim 4 the hart site equipment management method based on real-time data base it is characterised in that described Hart module data base is provided with two relief areas and is respectively used to temporary can protocol massages and hart order.
6. a kind of hart Field Device Management System based on real-time data base is it is characterised in that include industrial operation station, control Stand, hart module and hart equipment;
Corresponding for hart order valid data are sent to by described industrial operation station with the message form in industrial ethernet protocol Control station;
Described control station unpacks to the industrial ethernet protocol message being received, and valid data are stored in control station data Behind storehouse, hart module is transmitted with the message form in can agreement;
Described hart module unpacks to the can protocol massages being received, and valid data are stored in hart module data base Constitute hart command forms afterwards and be sent to corresponding hart equipment;
Response message is returned to hart module after receiving hart order by described hart equipment, and hart module unpacks described response Information acquisition significant response data, and significant response data is transmitted to control station with the message form in can agreement;
The can protocol massages that described control station sends to the hart module being received unpack, by significant response data storage After control station data base, industrial operation station is transmitted with the message form in industrial ethernet protocol.
7. according to claim 6 the hart Field Device Management System based on real-time data base it is characterised in that described control Station processed is provided with DBM, and described DBM is provided with two relief areas and is respectively used to keep in described EPA Protocol massages and can protocol massages.
8. according to claim 7 the hart Field Device Management System based on real-time data base it is characterised in that described Hart module is provided with DBM, and described DBM is provided with two relief areas and is respectively used to temporary can agreement report Literary composition and hart order.
CN201410017472.8A 2014-01-15 2014-01-15 HART (highway addressable remote transducer) field equipment management method and system based on real-time database Active CN103728957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410017472.8A CN103728957B (en) 2014-01-15 2014-01-15 HART (highway addressable remote transducer) field equipment management method and system based on real-time database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410017472.8A CN103728957B (en) 2014-01-15 2014-01-15 HART (highway addressable remote transducer) field equipment management method and system based on real-time database

Publications (2)

Publication Number Publication Date
CN103728957A CN103728957A (en) 2014-04-16
CN103728957B true CN103728957B (en) 2017-02-01

Family

ID=50453072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410017472.8A Active CN103728957B (en) 2014-01-15 2014-01-15 HART (highway addressable remote transducer) field equipment management method and system based on real-time database

Country Status (1)

Country Link
CN (1) CN103728957B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407591A (en) * 2014-11-27 2015-03-11 杭州优稳自动化系统有限公司 Communication management method for master station and slave station of Modbus device based on real-time database, and communication management system for master station and slave station of Modbus device based on real-time database
CN106571991B (en) * 2016-11-09 2020-03-17 湖南戈人自动化科技有限公司 Data transmission method and device
CN112757923B (en) * 2019-11-05 2023-03-17 中车株洲电力机车研究所有限公司 Wireless control method, device and system for train charging
CN112583839B (en) * 2020-12-22 2022-11-01 北京神经元网络技术有限公司 Protocol conversion device, method, equipment and medium for Autbus bus and Hart bus
CN113225382A (en) * 2021-04-07 2021-08-06 中国二十冶集团有限公司 Method and system for diagnosing state of instrument equipment through digital quantity remote communication

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1409179A (en) * 2001-09-17 2003-04-09 费舍-柔斯芒特系统股份有限公司 Monitoring treatment property and device and controlling synthesizing
CN1529836A (en) * 2001-05-21 2004-09-15 费舍-柔斯芒特系统股份有限公司 Enhanced FIELDBVS device alevts in process control system
CN1598723A (en) * 2003-09-05 2005-03-23 费舍-柔斯芒特系统股份有限公司 State machine function block with a user modifiable state transition configuration database
CN1702582A (en) * 2004-05-25 2005-11-30 费舍-柔斯芒特系统股份有限公司 Security for objects in a process plant configuration system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1529836A (en) * 2001-05-21 2004-09-15 费舍-柔斯芒特系统股份有限公司 Enhanced FIELDBVS device alevts in process control system
CN1409179A (en) * 2001-09-17 2003-04-09 费舍-柔斯芒特系统股份有限公司 Monitoring treatment property and device and controlling synthesizing
CN1598723A (en) * 2003-09-05 2005-03-23 费舍-柔斯芒特系统股份有限公司 State machine function block with a user modifiable state transition configuration database
CN1702582A (en) * 2004-05-25 2005-11-30 费舍-柔斯芒特系统股份有限公司 Security for objects in a process plant configuration system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于HART协议的智能温度变送器设计;黄晗;《中国优秀硕士学位论文全文数据库信息科技辑》;20110615(第6期);全文 *
基于HART协议的智能设备管理系统的研究与开发;谢峰;《中国优秀硕士学位论文全文数据库信息科技辑》;20130415(第4期);全文 *

Also Published As

Publication number Publication date
CN103728957A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN104702474B (en) A kind of EtherCAT master station devices based on FPGA
CN103728957B (en) HART (highway addressable remote transducer) field equipment management method and system based on real-time database
CN103827760B (en) For being carried out the method and system of transmitting procedure reflection by gateway device
CN101719922B (en) Device and method of protocol conversion between PROFIBUS-DP industrial fieldbus and wireless ZIGBEE
CN102594627A (en) Gigabit Ethernet field bus communication device based on FPGA
US20150156285A1 (en) Message tunneling in industrial networks
CN102385351B (en) Configurable remote input/output (IO) controller host
CN104009976B (en) A kind of real-time communication method being used between more main station systems and its equipment
CN103532835A (en) Universal IoT Gateway
CN103905410A (en) Multi-channel communication protocol converter capable of converting user-defined protocol to Modbus protocol
CN104486783A (en) Multi-state wireless gateway system for multi-state wireless monitoring network and control method
CN204733178U (en) A kind of EtherCAT master station device based on FPGA
CN106814646A (en) Method for controlling manufacturing machine system and apparatus for controlling manufacturing machine system
CN102438017A (en) Modbus and BACnet Ethernet protocol conversion device and conversion method based on routing function
CN107579894B (en) FPGA-based EBR1553 bus protocol implementation device
CN104407591A (en) Communication management method for master station and slave station of Modbus device based on real-time database, and communication management system for master station and slave station of Modbus device based on real-time database
CN108173817B (en) Self-conversion method based on Modbus-TCP protocol
CN103973677A (en) Protocol conversion device from IPv6 to PROFIBUS
CN207457812U (en) Numerical control communication apparatus
CN202551082U (en) FPGA-based gigabit ethernet fieldbus communication apparatus
CN203219328U (en) A multi-channel communication protocol converter
CN102063091B (en) Field bus interface for position detection element of numerical control machine
CN102291292B (en) Method for EPA to FFH1 protocol conversion and scheduling
CN104022934A (en) Communication method of communication equipment based on PROFIBUS-DP protocol
CN103149909A (en) Field programmable gate array (FPGA)-based controller area network (CAN) simulation node system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant