CN114756012B - Control system configuration information verification method and control system - Google Patents

Control system configuration information verification method and control system Download PDF

Info

Publication number
CN114756012B
CN114756012B CN202210671438.7A CN202210671438A CN114756012B CN 114756012 B CN114756012 B CN 114756012B CN 202210671438 A CN202210671438 A CN 202210671438A CN 114756012 B CN114756012 B CN 114756012B
Authority
CN
China
Prior art keywords
configuration
configuration data
module
check code
controller
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
CN202210671438.7A
Other languages
Chinese (zh)
Other versions
CN114756012A (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.)
Hangzhou Kangjisen Automation Technology Co ltd
Original Assignee
Hangzhou Kangjisen Automation Technology 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 Hangzhou Kangjisen Automation Technology Co ltd filed Critical Hangzhou Kangjisen Automation Technology Co ltd
Priority to CN202210671438.7A priority Critical patent/CN114756012B/en
Publication of CN114756012A publication Critical patent/CN114756012A/en
Application granted granted Critical
Publication of CN114756012B publication Critical patent/CN114756012B/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/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
    • 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]

Abstract

The invention discloses a control system configuration information checking method and a control system.A controller receives configuration information sent by an upper computer and then calculates a corresponding configuration data check code according to configuration data; and then comparing whether the calculated configuration data check code is consistent with the downloaded configuration data check code, if so, storing the downloaded configuration data and the configuration data check code to an operation configuration data memory and a backup configuration memory, otherwise, discarding the configuration item with failed check, reporting the corresponding error item to an upper computer according to the content of the error list, and downloading the configuration information of the corresponding item again by the upper computer, thereby ensuring the correct configuration of the operation data area and ensuring that the control system operates as expected.

Description

Control system configuration information verification method and control system
Technical Field
The invention relates to the technical field of industrial control, in particular to a control system configuration information verification method and a control system.
Background
The process industry, especially the production environment of petrochemical industry, chemical industry, fine chemical industry and other industries is inflammable, explosive and high-risk production environment, and because of the continuous production process, the process stability and safety of each production link are important, and continuous production is damaged if production disturbance and accidents occur. Therefore, the process industry has high requirements on the stability and safety of production operation and the production quality of products in the production process.
In order to ensure the safe and stable operation of each production process, it is necessary to ensure that the configuration data running in the controller, each bus distributor and each IO module of the control system is complete and correct. Therefore, before each configuration data change is effective, the data integrity check is performed on the configuration data downloaded to the controller. In order to detect the integrity of configuration data downloaded to a controller and to be operated, currently, the controller only performs pre-verification on configuration data newly downloaded from an upper computer, but does not perform real-time verification on configuration information of devices such as a bus distributor, an IO module and the like, so that errors may not be found in the configuration information of part of sub-devices in time, and finally, the control system is influenced to fail to operate as expected.
Disclosure of Invention
The invention provides a control system configuration information checking method aiming at the defects in the prior art, which comprises the following steps:
s1, the controller receives configuration information sent by the upper computer, the configuration information comprises configuration data and a first configuration data check code, and a second configuration data check code is calculated according to the configuration data;
s2, the controller compares the first configuration data check code with the second configuration data check code, if the first configuration data check code and the second configuration data check code are consistent, the controller saves the downloaded configuration data and the first configuration data check code to the running configuration data memory and the backup configuration data memory, and inquires whether the error information of the configuration information is recorded in the error list, and if the error information is recorded, the controller deletes the error information;
s3, if the first configuration data check code is not consistent with the second configuration data check code, discarding the configuration entry which fails to check, and inquiring whether the error list has the error record of the configuration entry, if not, recording the configuration entry which has the error check to the error list;
and S4, the controller reports the error items to the upper computer according to the content of the error list, and the upper computer downloads the configuration information of the corresponding items again.
Preferably, the method for checking the configuration information of the control system further includes the following steps:
s51, the controller calculates each configuration data in the operation configuration memory in real time in each working period to obtain a third configuration data check code;
s52, comparing the calculated third configuration data check code with the corresponding first configuration data check code stored in the operation configuration data memory to determine whether the check codes are consistent;
s53, if not, the controller reads the corresponding configuration item from the backup configuration memory, and covers the original configuration item in the controller operation configuration data memory.
Preferably, the method for verifying the configuration information of the control system further includes:
the configuration information issued by the upper computer comprises first module configuration information, the first module reports self diagnostic data in real time, and the diagnostic data comprises a fourth configuration data check code;
after the controller receives the diagnostic information of the first module, the fourth configuration data check code of the first module is analyzed, and whether the fourth configuration data check code is consistent with the first configuration data check code of the first module stored in the controller operation configuration data memory is compared;
if the comparison is inconsistent, the controller triggers and downloads the configuration information of the corresponding first module in the running configuration memory; and the first module receives the new configuration information of the controller, calculates the configuration data to obtain a fifth configuration data check code, compares the fifth configuration data check code with the first configuration data check code in the configuration information downloaded from the controller, and works by using the new configuration information if the fifth configuration data check code is consistent with the first configuration data check code.
Preferably, the method for verifying the configuration information of the control system further includes: the configuration information that the host computer was issued still includes second module configuration information, the second module is connected with the controller through first module: the second module reports the diagnostic data of the second module to the controller through the first module, wherein the diagnostic data comprises a sixth configuration data check code of the second module; after the controller receives the diagnostic information of the second module, the sixth configuration data check code of the second module is analyzed, and whether the sixth configuration data check code is consistent with the first configuration data check code of the second module stored in the controller operation configuration data memory is compared; and if the comparison result is inconsistent, the controller triggers and downloads the configuration information of the second module in the running configuration memory, and the second module receives the new configuration information of the controller and works by using the new configuration information.
Preferably, the fourth configuration data check code is obtained by calculation through configuration data stored in the first module or is a check code of the configuration data stored in the first module; and the sixth configuration message data check code is obtained by calculation through the configuration data stored in the second module or is the check code of the configuration data stored in the second module.
Preferably, the first module is a bus distributor, the second module is an IO module, and the IO module is connected with the controller through the bus distributor.
The invention also discloses a control system, which comprises an upper computer, a controller, a bus distributor and an IO module, wherein the IO module is communicated with the controller through the bus distributor, and the controller is configured as follows: receiving configuration information of the bus distributors and the IO modules issued by an upper computer, wherein the configuration information comprises configuration data and first configuration data check codes, and calculating second configuration data check codes corresponding to each bus distributor and the IO modules according to the configuration data; comparing the first configuration data check code with the second configuration data check code, if the first configuration data check code and the second configuration data check code are consistent, storing the downloaded configuration data and the configuration data check code into the operating configuration data memory and the backup configuration data memory, inquiring whether error information of the configuration information is recorded in an error list, and if the error information is recorded, deleting the error information; if the first configuration data check code is inconsistent with the second configuration data check code, discarding the configuration entry which fails to check, and inquiring whether an error record of the configuration entry exists in the error list, and if not, recording the configuration entry of the bus distributor or the IO module which checks the error to the error list; and reporting the error items of the bus distributor or the IO module to the upper computer according to the content of the error list so as to enable the upper computer to download the configuration information of the bus distributor or the IO module of the corresponding items again.
Preferably, the controller is further configured to: calculating each piece of configuration data in an operation configuration memory in real time in each working cycle to obtain a third configuration data check code, wherein the configuration data in the operation configuration memory comprises configuration data of a bus distributor and configuration data of an IO module; comparing whether the calculated third configuration data check code of the bus distributor or the IO module is consistent with the corresponding first configuration data check code stored in the operation configuration data memory; and if the configuration items are inconsistent, reading the configuration items of the corresponding bus distributor or IO module from the backup configuration memory, and covering the original configuration items in the operation configuration data memory of the controller.
Preferably, the bus distributor is configured to report diagnostic data of the bus distributor in real time, where the diagnostic data includes a fourth configuration data check code; after receiving the new configuration information of the controller, calculating configuration data to obtain a fifth configuration data check code, comparing the fifth configuration data check code with the first configuration data check code in the configuration information downloaded from the controller, and if the fifth configuration data check code is consistent with the first configuration data check code, using the new configuration information to work; the controller is configured to analyze a fourth configuration data check code of the bus distributor after receiving the diagnostic information of the bus distributor, and compare the fourth configuration data check code with the first configuration data check code of the bus distributor stored in the operation configuration data memory to determine whether the fourth configuration data check code is consistent with the first configuration data check code; and if the bus distributor information is inconsistent with the bus distributor information, triggering to download the configuration information of the corresponding bus distributor in the running configuration memory.
Preferably, the IO module is configured to report diagnostic data of the IO module to the controller through the bus distributor, where the diagnostic data includes a sixth configuration data check code of the IO module, and receives new configuration information of the controller and works with the new configuration information; the controller is configured to analyze a sixth configuration data check code of the IO module after receiving the diagnostic information of the IO module, and compare the sixth configuration data check code with a first configuration data check code of the IO module stored in the operation configuration data memory to determine whether the sixth configuration data check code is consistent with the first configuration data check code; and if the difference is not consistent, triggering to download the configuration information corresponding to the IO module in the running configuration memory.
According to the control system configuration information verification method and the control system, after the controller receives the configuration information sent by the upper computer, the corresponding configuration data verification code is calculated according to the configuration data; and then comparing whether the calculated configuration data check code is consistent with the downloaded configuration data check code, if so, storing the downloaded configuration data and the configuration data check code into an operation configuration data memory, otherwise, discarding the configuration item with failed check, reporting the corresponding error item to the upper computer according to the content of the error list, and downloading the configuration information of the corresponding item again by the upper computer. The method includes the steps that after the controller receives the configuration of the upper computer, the configuration is checked in real time in the process, and the configuration data are recovered from a backup configuration data area to a configuration operation data area when the configuration is checked, so that the configuration of the operation data area is guaranteed to be correct; meanwhile, the configuration check codes of all modules under the controller can be received in real time and compared with the configuration check codes in the controller configuration running data area, and the controller automatically downloads the configuration when the check codes are different, so that the correctness of the configuration of all modules under the controller is ensured.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention.
Fig. 1 is a schematic step diagram of a control system configuration information verification method according to an embodiment of the present invention.
Fig. 2 is a schematic partial flowchart of a control system configuration information checking method according to an embodiment of the present disclosure.
Fig. 3 is a schematic step diagram of a method for checking configuration information of a control system according to another embodiment of the present disclosure.
Fig. 4 is a partial flowchart of a control system configuration information verification method according to another embodiment of the present invention.
Fig. 5 is a flowchart illustrating a bus distributor configuration checking and recovering procedure according to another embodiment of the present invention.
Fig. 6 is a flowchart illustrating an IO module configuration checking and recovering step according to another embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a control system according to an embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the description and claims of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. Also, the use of the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one.
Example 1
As shown in fig. 1, the present embodiment discloses a method for checking configuration information of a control system, which is used to ensure that a configuration of a controller operating data area is correct, and the method may specifically include the following steps:
in step S1, the controller receives configuration information sent by the upper computer, where the configuration information includes configuration data and a first configuration data check code, and calculates a second configuration data check code according to the configuration data.
Specifically, the upper computer sends configuration information to the controller, wherein the configuration information comprises configuration data and a configuration data check code, namely a first configuration data check code. Then, the controller calculates the configuration data check code of each corresponding item of configuration data, namely, the second configuration data check code, according to the configuration data in the received configuration information.
Step S2, the controller compares the first configuration data check code with the second configuration data check code, if they are consistent, the controller saves the downloaded configuration data and the first configuration data check code to the operating configuration data memory and the backup configuration data memory, and queries whether the error list records the error information of the configuration information, if so, the controller deletes the error information. Specifically, the controller compares the calculated configuration data check code with the downloaded configuration data check code, and judges the correctness of the configuration data by checking whether the two configuration data check codes are consistent.
In step S3, if the first configuration data check code is inconsistent with the second configuration data check code, the configuration entry that fails to be checked is discarded, and whether an error record of the configuration entry exists in the error list is queried, and if not, the configuration entry that fails to be checked is recorded in the error list.
Specifically, if the comparison result of the two configuration data check codes is consistent, the controller stores the downloaded configuration data and the configuration data check code in the running configuration data memory. Meanwhile, the controller stores the downloaded configuration data and the configuration data check code to the backup configuration memory, simultaneously inquires whether the error information of the piece of configuration information is recorded in the error list, and if so, deletes the error information. And if the check codes are inconsistent, discarding the configuration entries failed in the check. The controller inquires whether the error list has the error record of the configuration item, and if not, the controller records the configuration item with the error to be checked to the error list.
And step S4, the controller reports the error items to the upper computer according to the content of the error list, and the upper computer downloads the configuration information of the corresponding items again. Specifically, the controller reports the errors and the error items of the relevant modules to the upper computer according to the content of the error list. The upper computer receives the controller configuration information error, downloads the module configuration related to the entry again, and starts to execute step S1 again until the error list is empty.
In this embodiment, during the operation of the controller, the correctness of the configuration check code in the controller operation configuration memory is calculated in real time. Specifically, there are several tasks in the duty cycle of the controller, including the tasks: and checking the configuration data in the configuration memory. The configuration data in the running configuration memory is checked in each working cycle. In this embodiment, as shown in fig. 2, the method for checking configuration information of a control system further includes the following error checking recovery steps, which specifically include:
in step S51, the controller calculates each piece of configuration data in the operation configuration memory in real time in each working cycle to obtain a third configuration data check code.
Step S52, comparing whether the calculated third configuration data check code is consistent with the corresponding first configuration data check code stored in the operation configuration data memory.
In step S53, if the configuration entries are inconsistent, the controller reads the corresponding configuration entries from the backup configuration storage, and overwrites the original configuration entries in the controller operation configuration data storage.
In an embodiment, the control system configuration information checking method may further include detecting the configuration of each module in communication with the controller in real time, so as to ensure that each module under the controller operates according to the configuration in the controller.
Specifically, the configuration information sent by the upper computer includes first module configuration information, the first module reports diagnostic data of the first module in real time, and the diagnostic data includes a fourth configuration data check code;
after the controller receives the diagnostic information of the first module, the fourth configuration data check code of the first module is analyzed, and whether the fourth configuration data check code is consistent with the first configuration data check code of the first module stored in the controller operation configuration data memory is compared;
if the comparison is inconsistent, the controller triggers and downloads the configuration information of the corresponding first module in the running configuration memory; and the first module receives the new configuration information of the controller, calculates the configuration data to obtain a fifth configuration data check code, compares the fifth configuration data check code with the first configuration data check code in the configuration information downloaded from the controller, and works by using the new configuration information if the fifth configuration data check code is consistent with the first configuration data check code.
Specifically, the configuration information issued by the upper computer further includes second module configuration information, and the second module is connected with the controller through the first module: and the second module reports the diagnostic data of the second module to the controller through the first module, wherein the diagnostic data comprises a sixth configuration data check code of the second module.
After the controller receives the diagnostic information of the second module, the sixth configuration data check code of the second module is analyzed, and whether the sixth configuration data check code is consistent with the first configuration data check code of the second module stored in the controller operation configuration data memory is compared.
If the comparison is inconsistent, the controller triggers and downloads the configuration information of the second module in the running configuration memory, the second module receives the new configuration information of the controller, the second module calculates the configuration data to obtain seven configuration data check codes, the seven configuration data check codes are compared with the first configuration data check codes in the configuration information downloaded from the controller, if the configuration information is consistent, the new configuration information is used for working, or the second module directly uses the new configuration information for working after receiving the new configuration information of the controller. The fourth configuration data check code is obtained by calculation through the configuration data stored in the first module or is a check code of the configuration data stored in the first module; and the sixth configuration message data check code is obtained by calculation through the configuration data stored in the second module or is the check code of the configuration data stored in the second module.
According to the control system configuration information verification method disclosed by the embodiment, after the controller receives the configuration information issued by the upper computer, the corresponding configuration data verification code is calculated according to the configuration data; and then comparing whether the calculated configuration data check code is consistent with the downloaded configuration data check code, if so, storing the downloaded configuration data and the configuration data check code to an operating configuration data memory and a backup configuration memory, otherwise, discarding the configuration item with failed check, reporting the corresponding error item to an upper computer according to the content of the error list, and downloading the configuration information of the corresponding item again by the upper computer. The method comprises the steps that after the controller receives the configuration of the upper computer, the configuration is checked in real time in the process, and the configuration data is recovered from a backup configuration data area to a configuration operation data area when the configuration is checked, so that the configuration of the operation data area is ensured to be correct; meanwhile, the configuration check codes of all modules under the controller can be received in real time and compared with the configuration check codes in the controller configuration operation data area, and the controller automatically downloads the configuration when the check codes are different, so that the correctness of the configuration of all modules under the controller is ensured.
Example 2
As shown in fig. 3, this embodiment further discloses a method for checking configuration information of a control system, where the first module is a bus distributor, the second module is an IO module, and the IO module is connected to the controller through the bus distributor and is configured to ensure that a configuration of a controller operating data area is correct, and at the same time, to ensure that the configuration of the bus distributor and the IO module under the controller is correct, where the method may specifically include the following steps:
step S101, the controller receives configuration information of the bus distributor and the IO module, wherein the configuration information is issued by the upper computer and comprises configuration data and a first configuration data check code, and a second configuration data check code corresponding to each bus distributor and the IO module is calculated according to the configuration data.
Specifically, the upper computer sends configuration information to the controller, wherein the configuration information comprises configuration data and a configuration data check code, namely a first configuration data check code. The controller receives configuration information of the bus distributor and the IO module from the upper computer, wherein each entry comprises configuration data and a first configuration data check code. Then, the controller calculates the configuration data check code of each corresponding item of configuration data, namely, the second configuration data check code, according to the configuration data in the received configuration information.
Step S102, the controller compares the first configuration data check code with the second configuration data check code, if the first configuration data check code and the second configuration data check code are consistent, the downloaded configuration data and the first configuration data check code are stored in the operation configuration data memory and the backup configuration data memory, whether error information of the configuration information is recorded in an error list or not is inquired, and if the error information is recorded, the error information is deleted. The controller compares the calculated configuration data check code with the downloaded configuration data check code, and judges the correctness of the configuration data by checking whether the two configuration data check codes are consistent.
Step S103, if the first configuration data check code is inconsistent with the second configuration data check code, discarding the configuration entry that fails to be checked, and querying whether an error record of the configuration entry exists in the error list, and if not, recording the configuration entry of the bus distributor or the IO module that checked the error to the error list.
Specifically, if the comparison result of the two configuration data check codes is consistent, the controller stores the downloaded configuration data and the configuration data check code in the running configuration data memory. Meanwhile, the controller stores the downloaded configuration data and the configuration data check code to the backup configuration memory, simultaneously inquires whether the error information of the piece of configuration information is recorded in the error list, and if so, deletes the error information. And if the check codes are inconsistent, discarding the configuration entries with failed check. The controller inquires whether an error record of the configuration item exists in the error list, and if not, the configuration item of the bus distributor or the IO module for checking the error is recorded to the error list.
And step S104, the controller reports the error items of the bus distributor or the IO module to the upper computer according to the content of the error list, and the upper computer downloads the configuration information of the bus distributor or the IO module of the corresponding items again.
And the controller reports the errors and the error items of the bus distributor or the IO module to the upper computer according to the content of the error list. The upper computer receives the controller configuration information error, downloads the bus distributor or IO module configuration of the entry again, and starts to execute step S1 again until the error list is empty.
In this embodiment, during the operation of the controller, the correctness of the configuration check code in the controller operation configuration memory is calculated in real time. Specifically, there are several tasks in the duty cycle of the controller, including the tasks: and checking the configuration data in the configuration memory. The configuration data in the running configuration memory is checked in each working cycle. In this embodiment, the method for checking configuration information of a control system further includes the following error checking recovery step, as shown in fig. 4, which specifically includes:
step S1051, the controller calculates the check code of each piece of configuration data in the operation configuration memory in real time in each working cycle, where the configuration data in the operation configuration memory includes the configuration data of the bus distributor and the configuration data of the IO module.
Specifically, the controller calculates a check code of each piece of configuration information of the operation configuration memory in real time, and the configuration data in the operation configuration memory comprises configuration data of the IO bus distributor and configuration data of the IO module.
Step S1052, comparing the calculated third configuration data check code of the bus distributor or the IO module with the corresponding first configuration data check code stored in the operation configuration data memory to determine whether they are consistent.
Specifically, the controller compares in real time whether the calculated configuration data check code is consistent with the configuration data check code stored in the operation configuration data memory.
Step S1053, if the two are not consistent, the controller reads the configuration entry of the corresponding bus distributor or IO module from the backup configuration memory, and overwrites the original configuration entry in the controller operation configuration data memory.
Specifically, if the check code comparison results are inconsistent, the controller reads the corresponding bus distributor configuration entry from the backup configuration memory, and overrides the configuration entry in the controller operation configuration data memory.
In an embodiment, the control system configuration information verification method further includes detecting the configurations of the bus distributor and the IO module in real time, so as to ensure that the bus distributor and the IO module under the controller work according to the configuration in the controller. As shown in fig. 5, the recovery step of the failed configuration check of the bus distributor and the IO module in the method specifically includes the following steps:
step S201, the bus distributor reports the diagnostic data thereof in real time, wherein the diagnostic data comprises a fourth configuration data check code. Specifically, the bus distributor with the configuration information reports the diagnostic data of the bus distributor in real time, wherein the diagnostic data comprises a configuration data check code.
Step S202, after the controller receives the diagnostic information of the bus distributor, the fourth configuration data check code of the bus distributor is analyzed, and compared with the first configuration data check code of the bus distributor stored in the controller operation configuration data storage, whether the fourth configuration data check code is consistent with the first configuration data check code of the bus distributor.
Specifically, after the controller receives the data of the bus distributor, the data is cached in the cache memory, and after the controller executes a task with the priority higher than the correctness checking task of the bus distributor, the data is read from the cache memory. The controller receives the diagnosis information of the bus distributor and analyzes the configuration data check code distributed by the IO bus. The controller compares the configuration data check code analyzed from the received diagnosis information of the IO bus distributor with the configuration data check code of the IO bus distributor stored in the controller operation memory.
Step S203, if the comparison result is inconsistent, the controller triggers and downloads the configuration information of the corresponding bus distributor in the running configuration memory; and the bus distributor receives the new configuration information of the controller, calculates the configuration data to obtain a fifth configuration data check code, compares the fifth configuration data check code with the first configuration data check code in the configuration information downloaded from the controller, and works by using the new configuration information if the fifth configuration data check code is consistent with the first configuration data check code.
Specifically, the controller compares a configuration data check code analyzed from the received diagnosis information of the IO bus distributor with a configuration data check code of the IO bus distributor stored in the controller operation memory, and when the comparison is inconsistent, the controller triggers and downloads the configuration information of the IO bus distributor in the operation configuration memory.
Specifically, the bus distributor receives new configuration information of the controller, the configuration information comprises configuration data and a configuration data check code, the bus distributor calculates the configuration data to obtain the check code, the check code is compared with the check code in the configuration information downloaded by the controller, and if the configuration data is consistent with the check code, the new configuration is used for working.
In this embodiment, as shown in fig. 6, the step of recovering the failed configuration check of the IO module in the control system configuration information checking method specifically includes the following steps:
step S301, the IO module reports the diagnostic data of the IO module to the controller through the bus distributor, wherein the diagnostic data comprises a sixth configuration data check code of the IO module. Specifically, the IO module with the configuration information reports its own diagnostic data to the controller through the bus distributor, where the diagnostic data includes a configuration data check code of the IO module.
Step S302, after receiving the diagnosis information of the IO module, the controller analyzes the sixth configuration data check code of the IO module, and compares the sixth configuration data check code with the first configuration data check code of the IO module stored in the controller operation configuration data storage to determine whether the sixth configuration data check code is consistent with the first configuration data check code of the IO module.
Specifically, after the controller receives the data of the IO module, the data is cached in the cache memory, and after the controller executes a task having a priority higher than the IO module correctness checking task, the data is read from the cache memory. The controller receives the diagnosis information of the IO module and analyzes the configuration data check code of the IO module. And controlling the comparison between the configuration check code analyzed from the received IO module diagnostic information and the configuration data check code of the IO module stored in the controller operation configuration memory.
Step S303, if the comparison result is inconsistent, the controller triggers to download the configuration information corresponding to the IO module in the running configuration memory, and the IO module receives the new configuration information of the controller and works by using the new configuration information. Specifically, when the difference is not consistent, the controller triggers the configuration of the IO module downloaded from the configuration memory. And the IO module receives the new configuration of the controller, works or calculates a seventh configuration data check code of the configuration data by using the new configuration data, and operates the new configuration data under the condition that the seventh configuration data check code is consistent with the first configuration data check code.
In the control system configuration information verification method disclosed in this embodiment, after the controller receives the configuration information of the bus distributor and the IO module issued by the upper computer, the configuration data verification code corresponding to each bus distributor and the IO module is calculated according to the configuration data; and then comparing whether the calculated configuration data check code is consistent with the downloaded configuration data check code, if so, storing the downloaded configuration data and the configuration data check code to an operating configuration data memory and a backup configuration memory, otherwise, discarding the configuration item with failed check, reporting the error item of the bus distributor or the IO module to an upper computer according to the content of the error list, and downloading the configuration information of the bus distributor or the IO module of the corresponding item again by the upper computer. The method comprises the steps that after the controller receives the configuration of the upper computer, the configuration is checked in real time in the process, and the configuration data is recovered from a backup configuration data area to a configuration operation data area when the configuration is checked, so that the configuration of the operation data area is ensured to be correct; meanwhile, the configuration check codes of the bus distributor and the IO module under the controller are received in real time and compared with the configuration check codes in the controller configuration operation data area, and the controller automatically downloads the configuration when the check codes are different, so that the correctness of the configuration of the bus distributor and the IO module under the controller is ensured.
Example 3
Fig. 5 is a control system disclosed in another embodiment, which includes an upper computer 1, a controller 2, a bus distributor 3, and an IO module 4, where the IO module 4 communicates with the controller 2 through the bus distributor 3, and the controller is configured to: receiving configuration information of the bus distributor and the IO module, which is sent by an upper computer, wherein the configuration information comprises configuration data and a first configuration data check code, and calculating a second configuration data check code corresponding to each bus distributor and the IO module according to the configuration data; comparing the first configuration data check code with the second configuration data check code, if the first configuration data check code is consistent with the second configuration data check code, storing the downloaded configuration data and the configuration data check code in an operation configuration data memory 21 and a backup configuration data memory 22, inquiring whether error information of the configuration information is recorded in an error list, and if the error information is recorded in the error list, deleting the error information; if the first configuration data check code is inconsistent with the second configuration data check code, discarding the configuration entry which fails to check, and inquiring whether an error record of the configuration entry exists in the error list, and if not, recording the configuration entry of the bus distributor or the IO module which checks the error to the error list; and reporting the error items of the bus distributor or the IO module to the upper computer according to the content of the error list so as to enable the upper computer to download the configuration information of the bus distributor or the IO module of the corresponding items again.
In this embodiment, the controller may be further configured to: calculating a check code of each piece of configuration data in an operation configuration memory in real time in each working cycle, wherein the configuration data in the operation configuration memory comprises configuration data of a bus distributor and configuration data of an IO module; comparing whether the calculated third configuration data check code of the bus distributor or the IO module is consistent with the corresponding first configuration data check code stored in the operation configuration data memory or not; and if the configuration items are inconsistent, reading the configuration items of the corresponding bus distributor or IO module from the backup configuration memory, and covering the original configuration items in the operation configuration data memory of the controller.
In this embodiment, the bus distributor is configured to report diagnostic data of the bus distributor in real time, where the diagnostic data includes a fourth configuration data check code; after receiving the new configuration information of the controller, calculating configuration data to obtain a fifth configuration data check code, comparing the fifth configuration data check code with the first configuration data check code in the configuration information downloaded from the controller, and if the fifth configuration data check code is consistent with the first configuration data check code, using the new configuration information to work; the controller is configured to analyze a fourth configuration data check code of the bus distributor after receiving the diagnostic information of the bus distributor, and compare the fourth configuration data check code with the first configuration data check code of the bus distributor stored in the operation configuration data memory to determine whether the fourth configuration data check code is consistent with the first configuration data check code; and if the bus configuration information is inconsistent, triggering to download the configuration information of the corresponding bus distributor in the running configuration memory.
In the control system of this embodiment, the IO module is further configured to report diagnostic data of the IO module to the controller through the bus distributor, where the diagnostic data includes a sixth configuration data check code of the IO module, and the IO module receives new configuration information of the controller and works by using the new configuration information. The controller is configured to analyze a sixth configuration data check code of the IO module after receiving the diagnostic information of the IO module, and compare the sixth configuration data check code with a first configuration data check code of the IO module stored in the operation configuration data memory to determine whether the sixth configuration data check code is consistent with the first configuration data check code; and if the difference is not consistent, triggering to download the configuration information corresponding to the IO module in the running configuration memory.
The specific functions of the control system correspond to the control system configuration information verification method disclosed in the foregoing embodiments one to one, so that detailed descriptions are not repeated herein, and reference may be made to each embodiment of the control system configuration information verification method disclosed in the foregoing embodiments. It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
In summary, the above-mentioned embodiments are only preferred embodiments of the present invention, and all equivalent changes and modifications made in the claims of the present invention should be covered by the claims of the present invention.

Claims (5)

1. A control system configuration information verification method is characterized by comprising the following steps:
the controller receives configuration information of the bus distributors and the IO modules, wherein the configuration information comprises configuration data and first configuration data check codes, and second configuration data check codes corresponding to each bus distributor and the IO modules are calculated according to the configuration data;
the controller compares the first configuration data check code with the second configuration data check code, if the first configuration data check code and the second configuration data check code are consistent, the controller stores the downloaded configuration data and the first configuration data check code into the operating configuration data memory and the backup configuration data memory, and inquires whether error information of the configuration information is recorded in an error list, and if the error information is recorded, the controller deletes the error information;
if the first configuration data check code is inconsistent with the second configuration data check code, discarding the configuration entry which fails in the check, and inquiring whether an error record of the configuration entry exists in an error list, if not, recording a bus distributor or IO module configuration entry which checks the error to the error list;
the controller reports the error items of the bus distributor or the IO module to the upper computer according to the content of the error list, and the upper computer downloads the configuration information of the bus distributor or the IO module of the corresponding items again;
the controller calculates the check code of each piece of configuration data in the operation configuration memory in real time in each working cycle, wherein the configuration data in the operation configuration memory comprises the configuration data of the bus distributor and the configuration data of the IO module;
comparing whether the calculated third configuration data check code of the bus distributor or the IO module is consistent with the corresponding first configuration data check code stored in the backup configuration data memory; if the configuration items are inconsistent, the controller reads the corresponding configuration items of the bus distributor or the IO module from the backup configuration memory, and the original configuration items in the configuration data memory are operated by the controller in a covering manner;
the IO module reports diagnostic data of the IO module to the controller through the bus distributor, wherein the diagnostic data comprises a sixth configuration data check code of the IO module;
after the controller receives the diagnosis information of the IO module, data are cached in the cache memory, and after the controller executes a task with the priority higher than the correctness checking task of the IO module, the controller reads the data from the cache memory, analyzes a sixth configuration data check code of the IO module, and compares the sixth configuration data check code with a first configuration data check code of the IO module stored in the running configuration data memory of the controller to determine whether the sixth configuration data check code is consistent with the first configuration data check code of the IO module;
if the comparison result is inconsistent, the controller triggers and downloads the configuration information corresponding to the IO module in the running configuration memory, and the IO module receives the new configuration information of the controller and works by using the new configuration information.
2. The method of claim 1, further comprising:
the configuration information sent by the upper computer comprises first module configuration information, the first module reports self diagnosis data in real time, and the diagnosis data comprises a fourth configuration data check code;
after the controller receives the diagnostic information of the first module, the fourth configuration data check code of the first module is analyzed, and whether the fourth configuration data check code is consistent with the first configuration data check code of the first module stored in the controller operation configuration data memory is compared;
if the comparison is inconsistent, the controller triggers and downloads the configuration information of the corresponding first module in the running configuration memory; and the first module receives the new configuration information of the controller, calculates the configuration data to obtain a fifth configuration data check code, compares the fifth configuration data check code with the first configuration data check code in the configuration information downloaded from the controller, and works by using the new configuration information if the fifth configuration data check code is consistent with the first configuration data check code.
3. The method of claim 2, further comprising:
the configuration information that the host computer was issued still includes second module configuration information, the second module is connected with the controller through first module: the second module reports the diagnostic data of the second module to the controller through the first module, wherein the diagnostic data comprises a sixth configuration data check code of the second module;
after the controller receives the diagnostic information of the second module, the sixth configuration data check code of the second module is analyzed, and whether the sixth configuration data check code is consistent with the first configuration data check code of the second module stored in the controller operation configuration data memory is compared;
and if the comparison result is inconsistent, the controller triggers and downloads the configuration information of the second module in the running configuration memory, and the second module receives the new configuration information of the controller and works by using the new configuration information.
4. The method of claim 3, wherein:
the fourth configuration data check code is obtained by calculation through the configuration data stored in the first module or is a check code of the configuration data stored in the first module; and the sixth configuration message data check code is obtained by calculation through the configuration data stored in the second module or is the check code of the configuration data stored in the second module.
5. The method of claim 4, wherein: the first module is a bus distributor, the second module is an IO module, and the IO module is connected with the controller through the bus distributor.
CN202210671438.7A 2022-06-15 2022-06-15 Control system configuration information verification method and control system Active CN114756012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210671438.7A CN114756012B (en) 2022-06-15 2022-06-15 Control system configuration information verification method and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210671438.7A CN114756012B (en) 2022-06-15 2022-06-15 Control system configuration information verification method and control system

Publications (2)

Publication Number Publication Date
CN114756012A CN114756012A (en) 2022-07-15
CN114756012B true CN114756012B (en) 2022-09-06

Family

ID=82336275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210671438.7A Active CN114756012B (en) 2022-06-15 2022-06-15 Control system configuration information verification method and control system

Country Status (1)

Country Link
CN (1) CN114756012B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060116022A (en) * 2004-01-20 2006-11-13 닛본 덴끼 가부시끼가이샤 Inspection matrix generation method, data transmission system, encoding device, decoding device, and inspection matrix generation program
CN101995826A (en) * 2009-08-25 2011-03-30 北京广利核系统工程有限公司 High-reliability analog quantity output device
CN108874825A (en) * 2017-05-12 2018-11-23 北京京东尚科信息技术有限公司 A kind of method of calibration and device of abnormal data
CN109120464A (en) * 2018-10-23 2019-01-01 国网安徽省电力有限公司 Secondary equipment of intelligent converting station configuration information remote online control device
CN110515759A (en) * 2019-05-17 2019-11-29 国网辽宁省电力有限公司 A kind of configuration file consistency management-control method based on cyclic redundancy check review technology

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568082A (en) * 2008-04-25 2009-10-28 中兴通讯股份有限公司 Collocation method of base station parameters
CN102075175A (en) * 2011-01-30 2011-05-25 华北电力大学 Intelligent system for bus arbitration and analogue current and field bus signal conversion
CN103957080B (en) * 2014-04-30 2017-05-31 浙江中控技术股份有限公司 A kind of data integrity verifying method and system
CN104765914B (en) * 2015-03-27 2017-10-24 国家电网公司 A kind of relay protection device logic configuration method
CN105554098B (en) * 2015-12-14 2019-01-25 瑞斯康达科技发展股份有限公司 A kind of equipment configuration method, server and system
CN106647675A (en) * 2017-01-17 2017-05-10 爱普(福建)科技有限公司 Industrial control system configuration file and configuration data real-time monitoring method
CN112363863A (en) * 2020-10-12 2021-02-12 许继集团有限公司 Relay protection device based on domestic chip and function configuration method and device thereof
CN114201336A (en) * 2021-12-13 2022-03-18 南方电网科学研究院有限责任公司 Configuration checking control method, system and equipment for online monitoring control function of master station

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060116022A (en) * 2004-01-20 2006-11-13 닛본 덴끼 가부시끼가이샤 Inspection matrix generation method, data transmission system, encoding device, decoding device, and inspection matrix generation program
CN101995826A (en) * 2009-08-25 2011-03-30 北京广利核系统工程有限公司 High-reliability analog quantity output device
CN108874825A (en) * 2017-05-12 2018-11-23 北京京东尚科信息技术有限公司 A kind of method of calibration and device of abnormal data
CN109120464A (en) * 2018-10-23 2019-01-01 国网安徽省电力有限公司 Secondary equipment of intelligent converting station configuration information remote online control device
CN110515759A (en) * 2019-05-17 2019-11-29 国网辽宁省电力有限公司 A kind of configuration file consistency management-control method based on cyclic redundancy check review technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
工业控制器可靠性若干问题的研究与开发;刘志勇;《中国优秀硕士学位论文全文数据库 信息科技辑》;20120715(第07期);第I140-685页 *
核电仪控系统内数据下装与校验方法的研究;郑俊朝 等;《自动化仪表》;20171031;第38卷(第10期);第21-25页 *

Also Published As

Publication number Publication date
CN114756012A (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN111160804B (en) Mining equipment management method, device and system based on Internet of things
US10146604B2 (en) Bad block detection and predictive analytics in NAND flash storage devices
US4922491A (en) Input/output device service alert function
KR101805234B1 (en) Method, non-transitory computer readable storage medium, and auxiliary memory for monitoring a data memory
CN114328101A (en) Method and system for positioning and repairing software fault
US8074123B2 (en) Multi-CPU failure detection/recovery system and method for the same
CN115620799A (en) Firmware simulation-based fault site backtracking method and equipment and readable storage medium
CN114756012B (en) Control system configuration information verification method and control system
CN113934898A (en) Fault code classified storage method, device, equipment and storage medium
CN114385418A (en) Protection method, device, equipment and storage medium for communication equipment
KR101834247B1 (en) Method and apparatus for analyzing safety of automotive software
WO2023240944A1 (en) Data recovery method and apparatus, electronic device, and storage medium
CN111124809B (en) Test method and device for server sensor system
CN114564002B (en) Method and device for quickly diagnosing lost packet and computer equipment
CN115309585A (en) Data recovery method and device, electronic equipment and storage medium
CN114416140A (en) ECU (electronic control Unit) -based upgrading method and device
CN113625957B (en) Method, device and equipment for detecting hard disk faults
CN113570255A (en) Quality detection method for batch processing files
CN117407207B (en) Memory fault processing method and device, electronic equipment and storage medium
CN111897583A (en) Equipment starting method and embedded equipment
US8095262B2 (en) Vehicular control apparatus and program storage medium
CN110297455A (en) Programmable logic controller (PLC) and its self-test and restoration methods
CN116088456B (en) MES-based intelligent factory product quality monitoring method and system
CN114218018B (en) System data protection method and device, readable storage medium and electronic equipment
CN113986142B (en) Disk fault monitoring method, device, computer 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