[go: up one dir, main page]

CN113985843B - Method and system for updating point directory in real time by distributed control system - Google Patents

Method and system for updating point directory in real time by distributed control system Download PDF

Info

Publication number
CN113985843B
CN113985843B CN202111250936.6A CN202111250936A CN113985843B CN 113985843 B CN113985843 B CN 113985843B CN 202111250936 A CN202111250936 A CN 202111250936A CN 113985843 B CN113985843 B CN 113985843B
Authority
CN
China
Prior art keywords
pou
page
control station
process control
redundancy check
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
CN202111250936.6A
Other languages
Chinese (zh)
Other versions
CN113985843A (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.)
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
Original Assignee
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
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 NR Electric Co Ltd, Xian Thermal Power Research Institute Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202111250936.6A priority Critical patent/CN113985843B/en
Publication of CN113985843A publication Critical patent/CN113985843A/en
Application granted granted Critical
Publication of CN113985843B publication Critical patent/CN113985843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Hardware Redundancy (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种分散控制系统实时更新点目录的方法及系统,本发明通过上位机后台程序为每个过程控制站启动一个心跳线程,实时监控过程控制站的状态,并自动更新点目录,实时更新库中的测点信息。一旦某个测点信息发生变化,该测点所在POU页信息表的内容改变,引起该POU页信息表的POU页循环冗余校验码变化,随之由所有POU页信息表的POU页循环冗余校验码的数据生成装置循环冗余校验码也将发生变化;本发明通过过程控制站的装置冗余校验码校验码、POU页信息表的校验码的逐级检验,无需将过程控制站的所有测点信息上传,减少网络通信数据,降低了网络通信负荷。

Figure 202111250936

The invention discloses a method and system for real-time updating of a point directory in a decentralized control system. The invention starts a heartbeat thread for each process control station through a host computer background program, monitors the state of the process control station in real time, and automatically updates the point directory. Update the measuring point information in the library in real time. Once the information of a measuring point changes, the content of the POU page information table where the measuring point is located changes, causing the POU page cyclic redundancy check code of the POU page information table to change, and then the POU pages of all POU page information tables are cycled The data generating device cyclic redundancy check code of the redundancy check code will also change; the present invention passes through the step-by-step inspection of the device redundancy check code check code of the process control station and the check code of the POU page information table, There is no need to upload all the measuring point information of the process control station, reducing network communication data and network communication load.

Figure 202111250936

Description

一种分散控制系统实时更新点目录的方法及系统A method and system for real-time updating point directory in distributed control system

技术领域technical field

本发明属于分散控制系统上位机测点目录更新领域,具体涉及一种分散控制系统实时更新点目录的方法及系统。The invention belongs to the field of updating the catalog of measuring points of the upper computer of the distributed control system, and in particular relates to a method and system for updating the catalog of the points of the distributed control system in real time.

背景技术Background technique

分散控制系统DCS通常采用分级递阶结构,每一级由若干子系统组成,每一个子系统实现若干特定的有限目标,形成金字塔结构。可靠性是DCS发展的生命,要保证DCS的高可靠性主要有三种措施:一是广泛应用高可靠性的硬件设备和生产工艺;二是广泛采用冗余技术;三是在软件设计上广泛实现系统的容错技术、故障自诊断和自动处理技术等。当今大多数集散控制系统的MTBF可达几万甚至几十万小时。Distributed control system DCS usually adopts a hierarchical structure, each level is composed of several subsystems, and each subsystem achieves some specific limited goals, forming a pyramid structure. Reliability is the life of DCS development. There are three main measures to ensure the high reliability of DCS: first, widely use high-reliability hardware equipment and production technology; second, widely use redundant technology; third, widely realize System fault-tolerant technology, fault self-diagnosis and automatic processing technology, etc. The MTBF of most distributed control systems today can reach tens of thousands or even hundreds of thousands of hours.

逻辑组态过程生成的每个过程控制站的数据文件由多个POU(程序组织单元)页组成,过程控制站所控制的全局变量、输入输出测点分布在不同的POU页信息表上。当工程师在修改逻辑组态时修改了点目录,若上位机后台未及时更新,若操作人员也未及时发现点目录更新的问题,将为后续工作埋下隐患。The data file of each process control station generated by the logic configuration process is composed of multiple POU (Program Organization Unit) pages, and the global variables and input and output measurement points controlled by the process control station are distributed on different POU page information tables. When the engineer modifies the point directory when modifying the logic configuration, if the background of the upper computer is not updated in time, if the operator does not find out the problem of point directory update in time, it will bury hidden dangers for the follow-up work.

发明内容Contents of the invention

本发明的目的在于克服上述不足,提供一种分散控制系统实时更新点目录的方法,能够实时监控过程控制站的状态,并自动更新点目录,实时更新库中的测点信息。The object of the present invention is to overcome above-mentioned deficiency, provide a kind of method of real-time updating point list of distributed control system, can monitor the state of process control station in real time, and automatically update point list, real-time update measuring point information in the storehouse.

为了达到上述目的,一种分散控制系统实时更新点目录的方法,包括以下步骤:In order to achieve the above object, a method for real-time updating point directory of distributed control system comprises the following steps:

获取过程控制站信息表和POU页信息表;Get process control station information table and POU page information table;

为每个过程控制站启动一个实现控制站监控和点目录变化更新的心跳线程,心跳线程向过程控制站请求装置循环冗余校验码,并进行对比;Start a heartbeat thread for each process control station to realize control station monitoring and point directory change update, and the heartbeat thread requests the device cyclic redundancy check code from the process control station for comparison;

如果对比不相同,则心跳线程向过程控制站请求所有POU页信息表的POU页循环冗余校验码,并进行验证;If the comparison is not the same, the heartbeat thread requests the POU page cyclic redundancy check codes of all POU page information tables from the process control station, and verifies;

将POU页信息表上的POU页循环冗余校验码更新为验证后的测点信息和POU页循环冗余校验码;Update the POU page cyclic redundancy check code on the POU page information table to the verified measuring point information and POU page cyclic redundancy check code;

所有POU页信息表更新结束后,根据当前库中存储的POU页循环冗余校验码,计算最新的过程控制站的装置循环冗余校验码,并更新到过程控制站的数据库中。After all POU page information tables are updated, calculate the latest device cyclic redundancy check code of the process control station according to the POU page cyclic redundancy check code stored in the current library, and update it to the database of the process control station.

过程控制站信息表用于存储过程控制站的状态信息,POU页信息表用于储存POU页的状态信息和测点信息。The process control station information table is used to store the state information of the process control station, and the POU page information table is used to store the state information and measuring point information of the POU page.

过程控制站的状态信息包括对象标识符、过程控制站名称、过程控制站地址和过程控制站循环冗余校验码。The status information of the process control station includes the object identifier, the name of the process control station, the address of the process control station and the cyclic redundancy check code of the process control station.

POU页的状态信息包括对象标识符、POU页号、所属过程控制站、POU页循环冗余校验码、该页上的开关量测点和模拟量测点。The status information of the POU page includes object identifier, POU page number, process control station, POU page cyclic redundancy check code, switch measurement point and analog measurement point on the page.

测点的信息包括对象标识符、测点名、实时值、所属过程控制站、硬件地址和测点是否有效的信息。The information of the measuring point includes the object identifier, the name of the measuring point, the real-time value, the process control station to which it belongs, the hardware address and whether the measuring point is valid or not.

为每个过程控制站启动一个实现控制站监控和点目录变化更新的心跳线程,心跳线程向过程控制站请求装置循环冗余校验码,并进行验证的具体方法如下:Start a heartbeat thread for each process control station to realize the monitoring of the control station and the update of point directory changes. The heartbeat thread requests the device cyclic redundancy check code from the process control station, and the specific method of verification is as follows:

心跳线程向过程控制站请求过程控制站的装置循环冗余校验码;The heartbeat thread requests the device cyclic redundancy check code of the process control station from the process control station;

心跳线程接收到来自过程控制站的装置循环冗余校验码;The heartbeat thread receives the device cyclic redundancy check code from the process control station;

对比获取的该过程控制站的装置循环冗余校验码与数据库里过程控制站信息表中保存的上一轮的该过程控制站的装置循环冗余校验码,如果相同,则等待一个周期时间后,重新为每个过程控制站启动一个实现控制站监控和点目录变化更新的心跳线程;如果不相同,心跳线程向过程控制站请求所有POU页信息表的POU页循环冗余校验码,并进行验证。Compare the obtained device cyclic redundancy check code of the process control station with the last round of device cyclic redundancy check code of the process control station saved in the process control station information table in the database. If they are the same, wait for one cycle After time, re-start a heartbeat thread for each process control station to realize the control station monitoring and point directory change update; if not the same, the heartbeat thread requests the POU page cyclic redundancy check code of all POU page information tables from the process control station , and verify.

心跳线程向过程控制站请求所有POU页信息表的POU页循环冗余校验码,并进行验证的具体方法如下:The heartbeat thread requests the POU page cyclic redundancy check code of all POU page information tables from the process control station, and the specific method for verification is as follows:

心跳线程向过程控制站发送报文,请求所有POU页信息表的POU页循环冗余校验码;The heartbeat thread sends a message to the process control station, requesting the POU page cyclic redundancy check code of all POU page information tables;

接收来自过程控制站报文,解析获取所有POU页信息表的POU页循环冗余校验码;Receive the message from the process control station, analyze and obtain the POU page cyclic redundancy check code of all POU page information tables;

对比每个POU页信息表的POU页循环冗余校验码与库中保存的对应POU页信息表的POU页循环冗余校验码;Compare the POU page cyclic redundancy check code of each POU page information table with the POU page cyclic redundancy check code of the corresponding POU page information table stored in the library;

如果当前POU页信息表的比较结果不同,根据当前库中存储的POU页信息表的POU页循环冗余校验码,计算最新的过程控制站装置循环冗余校验码,并更新到数据库中;If the comparison result of the current POU page information table is different, calculate the latest process control station device cyclic redundancy check code according to the POU page cyclic redundancy check code of the POU page information table stored in the current library, and update it to the database ;

如果当前POU页信息表的比较结果相同,且还有未检验的POU页,则继续进行下一个POU页信息表校验,直至所有POU页信息表完成校验。If the comparison results of the current POU page information tables are the same, and there are unchecked POU pages, continue to check the next POU page information table until all POU page information tables are checked.

将POU页信息表上的测点信息和POU页循环冗余校验码更新为验证后的测点信息和POU页循环冗余校验码的具体方法如下:The specific method of updating the measuring point information and POU page cyclic redundancy check code on the POU page information table to the verified measuring point information and POU page cyclic redundancy check code is as follows:

向过程控制站发送报文,请求所有该POU页信息表上的所有测点信息;Send a message to the process control station to request all the measuring point information on the information table of the POU page;

接收来自过程控制站报文,解析获取该POU页信息表上最新的测点信息;Receive the message from the process control station, analyze and obtain the latest measuring point information on the POU page information table;

遍历数据库中该POU页信息表的所有有效测点信息,在最新的测点信息里面确定对应项;Traverse all valid measuring point information in the POU page information table in the database, and determine the corresponding item in the latest measuring point information;

若有对应项,则进行测点信息对比,若比对结果不一致,则更新库中该点;若没有对应项,则删除数据库中的该测点信息;If there is a corresponding item, compare the measuring point information. If the comparison result is inconsistent, update the point in the database; if there is no corresponding item, delete the measuring point information in the database;

遍历该页最新的测点信息,在数据库中该页的所有有效测点信息中确定对应项,若数据库中没有对应项,则增加该测点信息的对应项:若数据库中所具有的无效测点信息的标识名与待增加测点信息的标识名一致,则置无效测点信息有效且更新其关联页与其他属性;若数据库中无对应无效项,则新增测点信息,并设置其关联页与其他属性。Traverse the latest measuring point information on the page, and determine the corresponding item in all valid measuring point information on the page in the database. If there is no corresponding item in the database, add the corresponding item of the measuring point information: If the identification name of the point information is consistent with the identification name of the measurement point information to be added, the invalid measurement point information is valid and its associated page and other attributes are updated; if there is no corresponding invalid item in the database, the measurement point information is added and its Associate pages with other attributes.

POU页信息表上的测点信息和POU页循环冗余校验码完成更新后,将数据库中该POU页信息表的POU页循环冗余校验码更新为从过程控制站中获取的最新值,进行POU页信息表的POU页循环冗余校验码校验。After the measurement point information and POU page cyclic redundancy check code on the POU page information table are updated, update the POU page cyclic redundancy check code of the POU page information table in the database to the latest value obtained from the process control station , and check the POU page cyclic redundancy check code of the POU page information table.

一种分散控制系统实时更新点目录的方法的系统,包括,A system of methods for updating point catalogs in real time in a decentralized control system, comprising,

过程控制站,过程控制站连接若干POU单元,每个POU单元连接若干测点;Process control station, the process control station is connected to several POU units, and each POU unit is connected to several measuring points;

测点用于生成测点信息表发送至对应的POU单元中;The measuring point is used to generate the measuring point information table and send it to the corresponding POU unit;

POU单元用于储存并更新对应的测点信息表,并生成POU页信息表;The POU unit is used to store and update the corresponding measuring point information table, and generate the POU page information table;

过程控制站用于当测点信息发生改变时,向过程控制站请求所有POU页信息表的POU页循环冗余校验码,并进行验证;将POU页信息表上的测点信息和校验码更新为验证后的测点信息和校验码;根据当前库中存储的POU页信息表的POU页循环冗余校验码,计算最新的过程控制站的装置循环冗余校验码,并更新到数据库中。The process control station is used to request the POU page cyclic redundancy check code of all POU page information tables from the process control station when the measurement point information changes, and verify it; the measurement point information on the POU page information table and check The code is updated to the verified measuring point information and check code; according to the POU page cyclic redundancy check code of the POU page information table stored in the current library, calculate the latest process control station device cyclic redundancy check code, and update to the database.

与现有技术相比,本发明通过上位机后台程序为每个过程控制站启动一个心跳线程,实时监控过程控制站的状态,并自动更新点目录,实时更新库中的测点信息。一旦某个测点信息发生变化,该测点所在POU页信息表的内容改变,引起该POU页信息表的POU页循环冗余校验码变化,随之由所有POU页信息表的POU页循环冗余校验码的数据生成装置循环冗余校验码也将发生变化;本发明通过过程控制站的装置冗余校验码校验码、POU页信息表的校验码的逐级检验,无需将过程控制站的所有测点信息上传,减少网络通信数据,降低了网络通信负荷。Compared with the prior art, the present invention starts a heartbeat thread for each process control station through the host computer background program, monitors the state of the process control station in real time, automatically updates the point directory, and updates the measuring point information in the library in real time. Once the information of a measuring point changes, the content of the POU page information table where the measuring point is located changes, causing the POU page cyclic redundancy check code of the POU page information table to change, and then the POU pages of all POU page information tables are cycled. The data generating device cyclic redundancy check code of the redundancy check code will also change; the present invention passes through the step-by-step inspection of the check code of the device redundancy check code check code of the process control station and the POU page information table, There is no need to upload all the measuring point information of the process control station, reducing network communication data and network communication load.

附图说明Description of drawings

图1为本发明的流程图;Fig. 1 is a flowchart of the present invention;

图2为本发明的结构框图。Fig. 2 is a structural block diagram of the present invention.

具体实施方式detailed description

下面结合附图对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings.

参见图1,本发明包括以下步骤:Referring to Fig. 1, the present invention comprises the following steps:

S1,部署实时数据表;S1, deploy real-time data table;

建立过程控制站信息表、POU页信息表和测点信息表;Establish process control station information table, POU page information table and measuring point information table;

过程控制站信息表用于存储过程控制站的状态信息,POU页信息表用于储存POU页的状态信息,测点信息表用于存储测点的信息。The process control station information table is used to store the state information of the process control station, the POU page information table is used to store the state information of the POU page, and the measuring point information table is used to store the information of the measuring point.

过程控制站的状态信息包括对象标识符、过程控制站名称、过程控制站地址和过程控制站的装置循环冗余校验码。对于编号为1001的过程控制站,在过程控制站信息表中存储的记录信息如下:对象标识符为11576001、过程控制站名称为过程控制站1001、过程控制站地址为1001和过程控制站的装置循环冗余校验码为3126643250。The state information of the process control station includes the object identifier, the name of the process control station, the address of the process control station, and the device cyclic redundancy check code of the process control station. For the process control station numbered 1001, the record information stored in the process control station information table is as follows: the object identifier is 11576001, the process control station name is process control station 1001, the process control station address is 1001 and the device of the process control station The cyclic redundancy check code is 3126643250.

POU页的状态信息包括对象标识符、POU页号、所属过程控制站、POU页循环冗余校验码、该页上的开关量测点和模拟量测点。对于过程控制站1001上的编号为32的POU页,在POU页状态信息表中存储的记录信息如下:对象标识符为210102、POU页号为32、所属过程控制站为1001、POU页循环冗余校验码为3488335659。The status information of the POU page includes object identifier, POU page number, process control station, POU page cyclic redundancy check code, switch measurement point and analog measurement point on the page. For the POU page numbered 32 on the process control station 1001, the record information stored in the POU page status information table is as follows: the object identifier is 210102, the POU page number is 32, the process control station it belongs to is 1001, and the POU page is cyclically redundant. The remaining check code is 3488335659.

测点的信息包括对象标识符、测点名、实时值、所属过程控制站、硬件地址和测点是否有效的信息。对于过程控制站1001上的POU32页上的模拟量测点AI1,在测点信息表中存储的记录信息如下:对象标识符为43237525、测点名为AI1、实时值为50、所属过程控制站为1001、硬件地址为73974956和测点是否有效,有效为1,无效为0。The information of the measuring point includes the object identifier, the name of the measuring point, the real-time value, the process control station to which it belongs, the hardware address and whether the measuring point is valid or not. For the analog measurement point AI1 on the POU32 page on the process control station 1001, the record information stored in the measurement point information table is as follows: the object identifier is 43237525, the measurement point name is AI1, the real-time value is 50, and the process control station it belongs to It is 1001, the hardware address is 73974956 and whether the measuring point is valid or not, it is 1 if it is valid, and 0 if it is invalid.

S2,为每个过程控制站启动一个实现控制站监控和点目录变化更新的心跳线程,心跳线程向过程控制站请求装置循环冗余校验码,并进行验证;S2, start a heartbeat thread for each process control station to realize control station monitoring and point directory change update, the heartbeat thread requests the device cyclic redundancy check code from the process control station, and verifies it;

S201,心跳线程向过程控制站请求过程控制站的装置循环冗余校验码;S201, the heartbeat thread requests the device cyclic redundancy check code of the process control station from the process control station;

S202,心跳线程接收到来自过程控制站的装置循环冗余校验码;S202, the heartbeat thread receives the device cyclic redundancy check code from the process control station;

S203,对比获取的该过程控制站的装置循环冗余校验码与数据库里过程控制站信息表中保存的上一轮的该过程控制站的装置循环冗余校验码3126643250,如果装置循环冗余校验码相同,则等待一个周期时间后,重新执行S201;如果获取的装置循环冗余校验码为3462475486,与库中不相同,执行S3。S203, comparing the obtained device cyclic redundancy check code of the process control station with the last round of device cyclic redundancy check code 3126643250 stored in the process control station information table in the database, if the device cyclic redundancy check code is 3126643250 If the remaining check codes are the same, wait for one cycle, and then execute S201 again; if the obtained device cyclic redundancy check code is 3462475486, which is different from that in the library, execute S3.

S3,心跳线程向过程控制站请求所有POU页信息表的POU页循环冗余校验码,并进行验证;S3, the heartbeat thread requests the POU page cyclic redundancy check codes of all POU page information tables from the process control station, and verifies;

S301,心跳线程向过程控制站发送报文,请求所有POU页信息表的POU页循环冗余校验码;S301, the heartbeat thread sends a message to the process control station, requesting the POU page cyclic redundancy check codes of all POU page information tables;

S302,接收来自过程控制站报文,解析获取所有POU页信息表的POU页循环冗余校验码;S302, receiving the message from the process control station, analyzing and obtaining the POU page cyclic redundancy check codes of all POU page information tables;

S303,对比每个POU页信息表的POU页循环冗余校验码与库中保存的对应POU页信息表的POU页循环冗余校验码;S303, comparing the POU page cyclic redundancy check code of each POU page information table with the POU page cyclic redundancy check code of the corresponding POU page information table stored in the library;

对于过程控制站1001上的编号为32的POU页,库中存储该页的POU页循环冗余校验码为3488335659,如果过程控制站上送的该页的POU页循环冗余校验码为5234643747,则比较结果不同,执行S4;For the POU page numbered 32 on the process control station 1001, the POU page cyclic redundancy check code stored in the library is 3488335659, if the POU page cyclic redundancy check code sent by the process control station is 5234643747, the comparison result is different, execute S4;

如果过程控制站上送的该页的POU页循环冗余校验码为3488335659,则32号POU页信息表的比较结果相同,且还有未检验的POU页,则继续进行下一个POU页信息表校验,直至所有POU页信息表完成校验。If the POU page cyclic redundancy check code of the page sent by the process control station is 3488335659, the comparison result of the No. 32 POU page information table is the same, and there are unchecked POU pages, then proceed to the next POU page information Table verification until all POU page information tables are verified.

S4,将验证后的测点信息和POU页循环冗余校验码更新对应POU页信息表上的测点信息和POU页循环冗余校验码:S4, update the measuring point information and the POU page cyclic redundancy check code on the corresponding POU page information table with the verified measuring point information and the POU page cyclic redundancy check code:

S401,向过程控制站发送报文,请求所有该POU页信息表上的所有测点信息;S401, sending a message to the process control station, requesting all the measuring point information on the information table of the POU page;

接收来自过程控制站报文,解析获取该POU页信息表上最新的测点信息;Receive the message from the process control station, analyze and obtain the latest measuring point information on the POU page information table;

S402,遍历数据库中该POU页信息表的所有有效测点信息,在最新的测点信息里面确定对应项,对数据库中实例模拟量测点AI1,在最新的测点信息里面确定对应项。S402. Traversing all valid measuring point information in the POU page information table in the database, determining the corresponding item in the latest measuring point information, simulating the measuring point AI1 for the instance in the database, and determining the corresponding item in the latest measuring point information.

若过程控制站中有模拟量测点AI1,则进行测点信息对比,若比对结果不一致,则更新库中该点的信息,主要包括硬件地址、测点是否有效等信息;若没有对应项,则删除数据库中的模拟量测点AI1;If there is an analog measuring point AI1 in the process control station, compare the information of the measuring points. If the comparison results are inconsistent, update the information of the point in the library, mainly including the hardware address, whether the measuring point is valid, etc.; if there is no corresponding item , then delete the analog measurement point AI1 in the database;

S403,遍历该页最新的测点信息,在数据库中该页的所有有效测点信息中确定对应项,若数据库中没有对应项,则增加该测点信息的对应项:若数据库中所具有的无效测点信息的标识名与待增加测点信息的标识名一致,则置无效测点信息有效且更新其关联页与其他属性;若数据库中无对应无效项,则新增测点信息,并设置其关联页与其他属性。S403, traversing the latest measuring point information on the page, determining the corresponding item in all valid measuring point information on the page in the database, if there is no corresponding item in the database, then increasing the corresponding item of the measuring point information: if the database has If the identification name of the invalid measurement point information is consistent with the identification name of the measurement point information to be added, the invalid measurement point information will be valid and its associated page and other attributes will be updated; if there is no corresponding invalid item in the database, the measurement point information will be added, and Set its associated page and other properties.

S404,数据库中该POU页信息表的POU页循环冗余校验码更新为从过程控制站中获取的最新值,执行S3进行POU页信息表的POU页循环冗余校验码校验。S404, the POU page cyclic redundancy check code of the POU page information table in the database is updated to the latest value obtained from the process control station, and S3 is executed to check the POU page cyclic redundancy check code of the POU page information table.

S5,所有POU页信息表校验和测点信息表更新结束后,根据当前库中存储的POU页信息表的POU页循环冗余校验码,计算最新的过程控制站的装置循环冗余校验码,并更新到数据库中,并执行S2。S5, after all POU page information tables are checked and the measurement point information table is updated, calculate the device cyclic redundancy check code of the latest process control station according to the POU page cyclic redundancy check code of the POU page information table stored in the current library Code verification, and update to the database, and execute S2.

参见图2,一种分散控制系统实时更新点目录的系统,包括过程控制站,过程控制站连接若干POU单元,每个POU单元连接若干测点;测点用于生成测点信息表发送至对应的POU单元中;POU单元用于储存并更新对应的测点信息表,并生成POU页信息表;过程控制站用于当测点信息发生改变时,向过程控制站请求所有POU页信息表的POU页循环冗余校验码,并进行验证;将POU页信息表上的测点信息和POU页循环冗余校验码更新为验证后的测点信息和POU页循环冗余校验码;根据当前库中存储的POU页信息表的POU页循环冗余校验码,计算最新的过程控制站的装置循环冗余校验码,并更新到数据库中。Referring to Fig. 2, a distributed control system real-time update point directory system, including a process control station, the process control station is connected to a number of POU units, each POU unit is connected to a number of measurement points; the measurement points are used to generate a measurement point information table and sent to the corresponding In the POU unit; the POU unit is used to store and update the corresponding measuring point information table, and generate the POU page information table; the process control station is used to request all POU page information tables from the process control station when the measuring point information changes POU page cyclic redundancy check code, and verify it; update the measuring point information and POU page cyclic redundancy check code on the POU page information table to the verified measuring point information and POU page cyclic redundancy check code; According to the POU page cyclic redundancy check code of the POU page information table stored in the current library, calculate the latest device cyclic redundancy check code of the process control station, and update it into the database.

过程控制站的测点分布在不同的POU页信息表上,POU是程序组织单元。The measuring points of the process control station are distributed on different POU page information tables, and the POU is the program organization unit.

POU程序组织单元(Programming Organisation Unit)是IEC61131-3标准中重要的、被广泛使用的基本IEC编程单位。POU Program Organization Unit (Programming Organization Unit) is an important and widely used basic IEC programming unit in the IEC61131-3 standard.

本发明的上位机后台程序为每个过程控制站启动一个心跳线程,实时监控过程控制站的状态,并自动更新点目录,实时更新库中的测点信息。一旦某个测点信息发生变化,该测点所在POU页信息表内容改变,引起该POU页信息表的POU页循环冗余校验码变化,随之由所有POU页循环冗余校验码的数据生成装置循环冗余校验码,也将发生变化。本发明不用将过程控制站的所有测点信息上传,减少网络通信数据。The host computer background program of the present invention starts a heartbeat thread for each process control station, monitors the state of the process control station in real time, automatically updates the point directory, and updates the measuring point information in the database in real time. Once the information of a measuring point changes, the content of the POU page information table where the measuring point is located changes, causing the POU page cyclic redundancy check code of the POU page information table to change, and then the cyclic redundancy check codes of all POU pages are changed. The cyclic redundancy check code of the data generation device will also change. The invention does not need to upload all measuring point information of the process control station, thereby reducing network communication data.

Claims (10)

1. A method for updating a point directory in real time by a distributed control system is characterized by comprising the following steps:
acquiring a process control station information table and a POU page information table;
starting a heartbeat thread for realizing control station monitoring and point directory change updating for each process control station, wherein the heartbeat thread requests a device cyclic redundancy check code from the process control station and compares the cyclic redundancy check code with the device cyclic redundancy check code;
if the comparison is different, the heartbeat thread requests POU page cyclic redundancy check codes of all POU page information tables from the process control station and verifies the POU page cyclic redundancy check codes;
updating the POU page cyclic redundancy check code on the POU page information table into verified measuring point information and a POU page cyclic redundancy check code;
and after the updating of all POU page information tables is finished, calculating the latest device cyclic redundancy check code of the process control station according to the POU page cyclic redundancy check code stored in the current library, and updating the latest device cyclic redundancy check code into the database of the process control station.
2. The method as claimed in claim 1, wherein the process control station information table is used for storing status information of the process control station, and the POU page information table is used for storing status information and measurement point information of POU pages.
3. The method of claim 2, wherein the status information of the process control station includes an object identifier, a process control station name, a process control station address, and a process control station cyclic redundancy check code.
4. The method of claim 2, wherein the status information of the POU page includes an object identifier, a POU page number, a process control station, a POU page crc code, a switch measurement point and an analog measurement point.
5. The method of claim 2, wherein the information about the measured point includes an object identifier, a name of the measured point, a real-time value, an address of the associated process control station, a hardware address, and information about whether the measured point is valid.
6. The method for updating the point directory of the distributed control system in real time as claimed in claim 1, wherein a heartbeat thread for realizing control station monitoring and point directory change updating is started for each process control station, and the heartbeat thread requests a cyclic redundancy check code of the device from the process control station and carries out verification by the specific method as follows:
the heartbeat thread requests a device cyclic redundancy check code of the process control station from the process control station;
receiving a device cyclic redundancy check code from a process control station by a heartbeat thread;
comparing the obtained device cyclic redundancy check code of the process control station with the device cyclic redundancy check code of the process control station in the previous round stored in the process control station information table in the database, if the obtained device cyclic redundancy check codes are the same, waiting for a period of time, and then restarting a heartbeat thread for realizing control station monitoring and point directory change updating for each process control station; and if not, the heartbeat thread requests POU page cyclic redundancy check codes of all POU page information tables from the process control station and verifies the POU page cyclic redundancy check codes.
7. The method for updating the point directory in real time by the distributed control system as claimed in claim 1, wherein the heartbeat thread requests the POU page cyclic redundancy check codes of all POU page information tables from the process control station, and the specific method for verifying the POU page cyclic redundancy check codes is as follows:
the heartbeat thread sends a message to the process control station to request POU page cyclic redundancy check codes of all POU page information tables;
receiving messages from a process control station, and analyzing and acquiring POU page cyclic redundancy check codes of all POU page information tables;
comparing the POU page cyclic redundancy check code of each POU page information table with the POU page cyclic redundancy check code of the corresponding POU page information table stored in the library;
if the comparison results of the current POU page information tables are different, calculating the latest cyclic redundancy check code of the process control station device according to the POU page cyclic redundancy check code of the POU page information table stored in the current library, and updating the latest cyclic redundancy check code into the database;
and if the comparison results of the current POU page information tables are the same and the POU pages which are not checked exist, continuing to check the next POU page information table until all the POU page information tables are checked.
8. The method for updating the point catalog in real time by the distributed control system as claimed in claim 1, wherein the specific method for updating the point information and the cyclic redundancy check code of the POU page on the POU page information table to the verified point information and the cyclic redundancy check code of the POU page is as follows:
sending a message to a process control station to request all the measuring point information on the POU page information table;
receiving a message from a process control station, and analyzing and acquiring the latest measuring point information on the POU page information table;
traversing all effective measuring point information of the POU page information table in the database, and determining a corresponding item in the latest measuring point information;
if the corresponding item exists, comparing the measured point information, and if the comparison result is inconsistent, updating the point in the library; if no corresponding item exists, deleting the measuring point information in the database;
traversing the latest measuring point information of the page, determining corresponding items in all effective measuring point information of the page in the database, and if the database does not have corresponding items, adding the corresponding items of the measuring point information: if the identification name of the invalid measuring point information in the database is consistent with the identification name of the measuring point information to be added, setting the invalid measuring point information to be valid and updating the associated page and other attributes of the invalid measuring point information; and if the database does not have the corresponding invalid item, adding the measuring point information, and setting the associated page and other attributes of the measuring point information.
9. The method as claimed in claim 1, wherein after the point information and the POU page crc on the POU page information table are updated, the POU page crc of the POU page information table in the database is updated to the latest value obtained from the process control station, and the POU page crc of the POU page information table is checked.
10. A system for a method of updating a point directory in real time by a distributed control system, comprising,
the process control station is connected with a plurality of POU units, and each POU unit is connected with a plurality of measuring points;
the measuring points are used for generating a measuring point information table and sending the measuring point information table to the corresponding POU units;
the POU unit is used for storing and updating the corresponding measuring point information table and generating a POU page information table;
the process control station is used for requesting POU page cyclic redundancy check codes of all POU page information tables from the process control station and verifying the POU page cyclic redundancy check codes when the measuring point information changes; updating the measuring point information and the check code on the POU page information table into verified measuring point information and check code; and calculating the latest device cyclic redundancy check code of the process control station according to the POU page cyclic redundancy check code of the POU page information table stored in the current library, and updating the latest device cyclic redundancy check code into the database.
CN202111250936.6A 2021-10-26 2021-10-26 Method and system for updating point directory in real time by distributed control system Active CN113985843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111250936.6A CN113985843B (en) 2021-10-26 2021-10-26 Method and system for updating point directory in real time by distributed control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111250936.6A CN113985843B (en) 2021-10-26 2021-10-26 Method and system for updating point directory in real time by distributed control system

Publications (2)

Publication Number Publication Date
CN113985843A CN113985843A (en) 2022-01-28
CN113985843B true CN113985843B (en) 2022-12-23

Family

ID=79741995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111250936.6A Active CN113985843B (en) 2021-10-26 2021-10-26 Method and system for updating point directory in real time by distributed control system

Country Status (1)

Country Link
CN (1) CN113985843B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032196A (en) * 2023-10-09 2023-11-10 西安热工研究院有限公司 Method, system and equipment for reading back configuration parameters of industrial control system controller
CN117216115B (en) * 2023-11-09 2024-02-02 西安热工研究院有限公司 DCS screen measurement point verification and subscription methods, systems, equipment and storage media

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840228A (en) * 2010-06-01 2010-09-22 杭州和利时自动化有限公司 Method and device for collecting data of equipment of third party in distributed control system
CN112416936A (en) * 2020-11-22 2021-02-26 西安热工研究院有限公司 DCS background multi-node cooperative configuration mark name verification method
CN112559446A (en) * 2020-12-15 2021-03-26 浙江中控技术股份有限公司 Nuclear power station regulation digital conversion method and system based on DCS (distributed control System)
CN112947337A (en) * 2021-02-09 2021-06-11 南京南瑞继保电气有限公司 Configuration synchronization method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996583B2 (en) * 2002-07-01 2006-02-07 International Business Machines Corporation Real-time database update transaction with disconnected relational database clients

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840228A (en) * 2010-06-01 2010-09-22 杭州和利时自动化有限公司 Method and device for collecting data of equipment of third party in distributed control system
CN112416936A (en) * 2020-11-22 2021-02-26 西安热工研究院有限公司 DCS background multi-node cooperative configuration mark name verification method
CN112559446A (en) * 2020-12-15 2021-03-26 浙江中控技术股份有限公司 Nuclear power station regulation digital conversion method and system based on DCS (distributed control System)
CN112947337A (en) * 2021-02-09 2021-06-11 南京南瑞继保电气有限公司 Configuration synchronization method and device and electronic equipment

Also Published As

Publication number Publication date
CN113985843A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN108153670B (en) Interface testing method and device and electronic equipment
CN113985843B (en) Method and system for updating point directory in real time by distributed control system
CN108153784B (en) Synchronous data processing method and device
WO2016090929A1 (en) Method, server and system for software system fault diagnosis
CN109033278B (en) Data processing method and device, electronic equipment and computer storage medium
CN113156902B (en) Configuration consistency checking and processing method of DCS (distributed control system)
CN112214411B (en) Disaster recovery system testing method, device, equipment and storage medium
CN113111127B (en) Data storage method, device, electronic device and readable medium
JP3297089B2 (en) Data verification system
CN115129574A (en) Code testing method and device
CN114168384A (en) Partition table backup method and device, electronic equipment and storage medium
CN110807000B (en) File repair method and device, electronic equipment and storage medium
CN108874611A (en) A kind of construction method and device of test data
CN112463883A (en) Reliability monitoring method, device and equipment based on big data synchronization platform
JP5857806B2 (en) Distributed processing system test method and distributed processing system
CN110489208B (en) Virtual machine configuration parameter checking method, system, computer equipment and storage medium
CN113190251B (en) Data upgrading method and device, electronic device, and computer readable medium
CN115643158A (en) Equipment cluster repair method, device, equipment and storage medium
CN115545235A (en) Power recovery method, device, computer equipment and storage medium
CN115344496A (en) Method, device, equipment and medium for generating random test case
CN112765188A (en) Configuration information processing method, configuration management system, electronic device, and storage medium
CN113626409B (en) Test data processing method, device, equipment and storage medium
CN117216115B (en) DCS screen measurement point verification and subscription methods, systems, equipment and storage media
CN116860724B (en) A semiconductor process flow management method, device and equipment
CN117827779B (en) File synchronization result verification method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant