CN115047835B - DCS-based periodic test data acquisition method, device, equipment and medium - Google Patents

DCS-based periodic test data acquisition method, device, equipment and medium Download PDF

Info

Publication number
CN115047835B
CN115047835B CN202210736073.1A CN202210736073A CN115047835B CN 115047835 B CN115047835 B CN 115047835B CN 202210736073 A CN202210736073 A CN 202210736073A CN 115047835 B CN115047835 B CN 115047835B
Authority
CN
China
Prior art keywords
variable
data
version number
test
filtering rule
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
CN202210736073.1A
Other languages
Chinese (zh)
Other versions
CN115047835A (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.)
Nuclear Power Institute of China
Original Assignee
Nuclear Power Institute of China
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 Nuclear Power Institute of China filed Critical Nuclear Power Institute of China
Priority to CN202210736073.1A priority Critical patent/CN115047835B/en
Publication of CN115047835A publication Critical patent/CN115047835A/en
Application granted granted Critical
Publication of CN115047835B publication Critical patent/CN115047835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41845Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by system universality, reconfigurability, modularity
    • 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/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33273DCS distributed, decentralised controlsystem, multiprocessor

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a method, a device, equipment and a medium for acquiring periodic test data based on a DCS system, which comprises the following steps: according to the test version number to be requested, a corresponding version number is obtained from a version number configuration file; obtaining original full configuration data corresponding to the version number according to the version number; acquiring a preset variable filtering rule and a variable filtering rule configuration file, wherein the variable filtering rule is used as a first filtering condition, and the variable filtering rule configuration file is used as a second filtering condition; generating a variable filtering rule according to the first filtering condition and the second filtering condition; and according to the variable filtering rule and the version number, matching corresponding final configuration data from the original full-quantity configuration data, reading the final configuration data, and storing the final configuration data according to a custom format to be used as a data source of the DCS system periodic test variable data. The method is beneficial to data acquisition of the multi-version configuration data and has high safety.

Description

DCS-based periodic test data acquisition method, device, equipment and medium
Technical Field
The invention relates to the field of security level DCS, in particular to a method, a device, equipment and a medium for acquiring periodic test data based on a DCS system.
Background
The DCS system periodically tests the data to acquire and analyze, the acquired data is derived from the configuration module data, namely the data of the periodic test is required to be compatible with the configuration module data, and most of other similar designs at present adopt the current configuration module data according to direct acquisition, but when the multi-version configuration module data exists, the problem of version and data correspondence is required to be considered, so that the accurate data acquisition is ensured.
From the analysis of the data requirements of the periodic test, the configuration module data is not necessarily all needed in the periodic test module, and only a portion of the data may be needed. At present, the acquisition of the periodic test data of the DCS system mainly comprises the following two methods: the first method mostly adopts corresponding interfaces provided according to the needs, but for changeable data types, various interfaces are required to be provided, and the program expansion is not facilitated in terms of program design. The second method adopts the expandability design of the configuration file, but also because of the problem of the initial template of the configuration file, the template derived from the test itself contains the current value, the current quality bit and the variable configuration routing information of the preset test variable, so that the current running state of the whole engineering system and the current configuration information of the whole engineering are exposed in a variable phase, and the current value, the current quality bit and the variable configuration routing information of the preset test variable are useless for the periodical test itself, so that the second method has the problem of exposing too much data information and has the problem of safety.
From the periodic test for data correctness analysis, how to verify that the data is correct and can be used by the module is obtained from other modules, and the above related test data obtaining method needs to be processed and verified; and further causes security problems that expose too much data information, which is not beneficial to the data acquisition of the multi-version configuration data.
Disclosure of Invention
The technical problem to be solved by the invention is that the existing acquisition method of the periodic test data of the DCS system has the problems of difficult program expansion and security of exposing too much data information, is not beneficial to the data acquisition of multi-version configuration data, and has to be perfected in flexibility, certainty, expandability and security.
The invention aims to provide a method, a device, equipment and a medium for acquiring periodic test data based on a DCS (distributed control system), and aims at a periodic test module in a security level DCS, automatically matches and acquires matched data in a designated path according to version numbers in a version number configuration file, thereby meeting the requirement of flexibly and accurately acquiring data in multi-version configuration data. According to the requirement on the configuration data, an extensible design of combining the filtering conditions with the configuration file is adopted, the filtering conditions are filtered according to variable types, the acquired data are stored according to a custom format of a periodic test module, and data verification is carried out, so that the extensible, safe and complete acquisition of the required data is realized.
The invention is realized by the following technical scheme:
in a first aspect, the present invention provides a method for acquiring periodic test data based on a DCS system, the method comprising:
according to the test version number to be requested, a corresponding version number is obtained from a version number configuration file;
obtaining original full configuration data corresponding to the version number according to the version number;
acquiring a preset variable filtering rule and a variable filtering rule configuration file, wherein the variable filtering rule is used as a first filtering condition, and the variable filtering rule configuration file is used as a second filtering condition;
Generating a variable filtering rule according to the first filtering condition and the second filtering condition;
And according to the variable filtering rule and the version number, matching corresponding final configuration data from the original full-quantity configuration data, reading the final configuration data, and storing the final configuration data according to a custom format to be used as a data source of the DCS system periodic test variable data.
According to the technical scheme, unlike the second method in the prior art, the expandability design of the configuration file is adopted, the configuration file (version number configuration file and variable filtering rule configuration file) in the invention can only provide site information (such as the site number, the site type and the site name of the current test site), variable information (such as the variable name and the variable type) and other information which does not excessively expose the running state and the engineering configuration of the engineering system for users according to the user needs, and the users only need to set the initial state and the expected state (state description comprises the variable value and the variable quality bit) of the custom variable in the generated configuration file, so that the test can be started. Therefore, the configuration file in the invention does not have the problem of exposing excessive data information.
Further, the obtaining the corresponding version number from the version number configuration file includes the following judging process:
acquiring a corresponding version number from the version number configuration file, and if the version number is successfully acquired, acquiring original full-quantity configuration data under the version number according to the corresponding version number;
If the version number acquisition fails, prompting that the version number acquisition fails; according to the prompt, whether the test version number to be requested needs to be reset or not is carried out;
If the test version number needs to be reset, resetting the test version number to be requested by the user, and returning the version number configuration file to acquire the test version number; if the test version number to be requested is not required to be reset, the test version number to be requested is directly set to be an initial version number.
Further, the preset variable filtering rule is a selective filtering condition, and only relevant data required in the periodic test module are obtained;
the preset variable filtering rules comprise variable screening according to the test DCS system station number (only filtering out the variables 'held' by the DCS system station for the test); variable screening is carried out according to the engineering/system variable types (only engineering variables with preliminary testable conditions are filtered out); variable screening is performed according to the variable I/O type (only variables of types which can participate in the test are filtered, such as AI, DI, AO, DO and other variable types (late or continuous expansion)); and variable screening (filtering out only variables that can participate in non-inter-station communication of the test) based on single-station/multi-station variable types.
Further, the variable filtering rule configuration file is used as a second filtering condition, and the second filtering condition is a condition for filtering according to the type of the test variable, namely the variable filtering rule configuration file only comprises the type of the test variable and does not comprise a specific test variable or certain test variable.
The variable filtering rule configuration file is a test case template which is filled in by a user in advance before a periodic test starts; the test case template is provided by a function of deriving the test case template provided by software, and a user inputs according to information in a format of 'preset starting value-preset quality bit-expected value-expected quality bit'.
Further, according to the first filtering condition and the second filtering condition, generating a variable filtering rule; the method specifically comprises the following steps:
If the variable filtering rule and the variable filtering rule configuration file are successfully obtained, generating a variable filtering rule according to the first filtering condition and the second filtering condition; and if the variable filtering rule and the variable filtering rule configuration file are failed to be acquired, corresponding prompting is carried out, and the variable filtering rule configuration file are acquired again.
Further, the specific formats of the custom format are configuration file header information (fixed text), test DCS system station number, test DCS system station information, number of executed variables, variable names, variable information (variable type, variable condition, multiple test intervals, etc.), and variable test data stream (in the form of value-quality bit pairs, a plurality of test initial values and test expected values are stored).
Further, the method further comprises: after the final configuration data is read and saved according to a custom format, carrying out data verification on the custom format data and the obtained final configuration data;
the data verification comprises data format consistency verification, checking whether data is integrity verified, whether the data type is correct verified and whether illegal data verification exists;
Said checking whether the data integrity verification includes whether certain fields are contained, whether the data length is correct, etc.;
whether the data type is correct or not includes whether the data type corresponds to a floating point number, an integer, a character string or the like.
Further, the method is applied to the downloading process of the configuration data in the periodic test of the DCS system, and the obtained periodic test variable data are used for the periodic test variable data used in the subsequent periodic test of the DCS system.
In a second aspect, the present invention further provides a DCS-based periodic test data acquisition apparatus supporting the DCS-based periodic test data acquisition method, the apparatus comprising:
The request acquisition unit is used for acquiring a test version number to be requested;
the version number acquisition unit is used for acquiring a corresponding version number from the version number configuration file according to the test version number to be requested;
The original full-quantity configuration data unit is used for obtaining original full-quantity configuration data corresponding to the version number according to the version number;
The filtering condition acquisition unit is used for acquiring a preset variable filtering rule and a variable filtering rule configuration file, wherein the variable filtering rule is used as a first filtering condition, and the variable filtering rule configuration file is used as a second filtering condition;
The variable filtering rule generating unit is used for generating a variable filtering rule according to the first filtering condition and the second filtering condition if the variable filtering rule and the variable filtering rule configuration file are successfully acquired; if the variable filtering rule and the variable filtering rule configuration file are failed to be acquired, corresponding prompting is carried out, and the variable filtering rule configuration file are acquired again;
the matching unit is used for matching corresponding final configuration data from the original full configuration data according to the variable filtering rule and the version number;
The storage and verification unit is used for reading the final configuration data, storing the final configuration data according to a custom format and verifying the final configuration data; and the final configuration data after verification is used as a data source of the periodic test variable data of the DCS system.
In a third aspect, the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the DCS-based periodic test data acquisition method when executing the computer program.
In a fourth aspect, the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the DCS-based periodic test data acquisition method.
Compared with the prior art, the invention has the following advantages and beneficial effects:
The method, the device, the equipment and the medium for acquiring the data based on the periodic test of the DCS system are used in the periodic test of the security DCS system, and the data in the corresponding paths are automatically matched and acquired according to the version numbers in the version number configuration file according to the requirement of the timing test function on the data, so that the flexible acquisition of the multi-version data is realized. The acquired data is selectively filtered according to the types of rules in the variable filtering rule configuration file, so that the certainty, expandability and safety of the data are ensured. And the data is stored in a custom format, and the data is verified, so that the integrity and the correctness of the acquired data are ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings:
FIG. 1 is a flow chart of a periodic test data acquisition method based on a DCS system.
FIG. 2 is a schematic diagram of a periodic test data acquisition device based on a DCS system.
Detailed Description
For the purpose of making apparent the objects, technical solutions and advantages of the present invention, the present invention will be further described in detail with reference to the following examples and the accompanying drawings, wherein the exemplary embodiments of the present invention and the descriptions thereof are for illustrating the present invention only and are not to be construed as limiting the present invention.
Example 1
The invention designs a data acquisition method for automatically matching and acquiring the matching in the appointed path according to the version number in the version number configuration file aiming at the periodic test module in the security level DCS system, so that the data can be flexibly and accurately acquired in the multi-version configuration data, and simultaneously, a variable data selective acquisition method according to the requirement of the periodic test on the data is designed, on the basis, the expandability, the safety and the integrity are considered, the extensible design of the filtering condition set by adopting the configuration file is adopted, the filtering condition is filtered according to the variable type, and the acquired data is saved according to the custom format of the periodic test module, and the data verification is carried out. The innovation point is that: automatically matching according to the version number in the configuration file to obtain a matched data design in the designated path; the variable data selectively obtains the design according to the filtering condition; the filtering condition adopts an extensible design set by a configuration file; the filtering condition is filtered according to the variable type, so that the design of data safety is ensured; and storing the acquired data according to the self-defined format of the module, and carrying out data verification to ensure the data integrity design of the module.
As shown in FIG. 1, the method for acquiring periodic test data based on a DCS system comprises the following steps:
according to the test version number to be requested, a corresponding version number is obtained from a version number configuration file;
obtaining original full configuration data corresponding to the version number according to the version number;
acquiring a preset variable filtering rule and a variable filtering rule configuration file, wherein the variable filtering rule is used as a first filtering condition, and the variable filtering rule configuration file is used as a second filtering condition;
Generating a variable filtering rule according to the first filtering condition and the second filtering condition;
And according to the variable filtering rule and the version number, matching corresponding final configuration data from the original full-quantity configuration data, reading the final configuration data, and storing the final configuration data according to a custom format to be used as a data source of the DCS system periodic test variable data.
In this embodiment, the obtaining the corresponding version number from the version number configuration file includes the following determination process:
acquiring a corresponding version number from the version number configuration file, and if the version number is successfully acquired, acquiring original full-quantity configuration data under the version number according to the corresponding version number;
If the version number acquisition fails, prompting that the version number acquisition fails; according to the prompt, whether the test version number to be requested needs to be reset or not is carried out;
If the test version number needs to be reset, resetting the test version number to be requested by the user, and returning the version number configuration file to acquire the test version number; if the test version number to be requested is not required to be reset, the test version number to be requested is directly set to be an initial version number.
In this embodiment, the preset variable filtering rule is a selective filtering condition, and only relevant data required in the periodic test module is obtained;
the preset variable filtering rules comprise variable screening according to the test DCS system station number (only filtering out the variables 'held' by the DCS system station for the test); variable screening is carried out according to the engineering/system variable types (only engineering variables with preliminary testable conditions are filtered out); variable screening is performed according to the variable I/O type (only variables of types which can participate in the test are filtered, such as AI, DI, AO, DO and other variable types (late or continuous expansion)); and variable screening (filtering out only variables that can participate in non-inter-station communication of the test) based on single-station/multi-station variable types.
In this embodiment, the variable filtering rule configuration file is used as a second filtering condition, where the second filtering condition is a condition for filtering according to a test variable type, that is, the variable filtering rule configuration file includes only a type of a test variable, and does not include a specific test variable or some test variables.
The variable filtering rule configuration file is a test case template which is filled in by a user in advance before a periodic test starts; the test case template is provided by a function of deriving the test case template provided by software, and a user inputs according to information in a format of 'preset starting value-preset quality bit-expected value-expected quality bit'.
Specifically: before a periodic test starts, a user needs to finish filling of the variable filtering rule configuration file, the configuration file is provided by a function of deriving a test case template provided by software, in a main body, the test case template (namely, the variable filtering rule configuration file) needs to finish information input such as a format of 'variable name-preset start value-preset quality bit-expected value-expected quality bit', test case writing of the same variable repeated test is simplified, interaction friendliness is improved, and the test case template supports 'variable name-preset start value-preset quality bit-expected value-expected quality bit-preset start value-expected quality bit' is input in a format of 'preset start value-preset quality bit-expected value-expected quality bit' … ', wherein' appears in an interaction mode as a whole.
In order to ensure that the final presentation form of the experimental report is consistent with the form of the test case template so as to improve the intuitiveness of test result observation, software needs to acquire and store the template structure of the test case template before the test starts and after test source data are acquired.
In this embodiment, a variable filtering rule is generated according to the first filtering condition and the second filtering condition; the method specifically comprises the following steps:
If the variable filtering rule and the variable filtering rule configuration file are successfully obtained, generating a variable filtering rule according to the first filtering condition and the second filtering condition; and if the variable filtering rule and the variable filtering rule configuration file are failed to be acquired, corresponding prompting is carried out, and the variable filtering rule configuration file are acquired again.
In this embodiment, the specific format of the custom format is configuration file header information (fixed text), test DCS system station number, test DCS system station information, number of executed variables, variable name, variable information (variable type, variable condition, multiple test intervals, etc.), and variable test data stream (in the form of value-quality bit pair, storing multiple test initial values, test expected values).
In this embodiment, the method further includes: after the final configuration data is read and saved according to a custom format, carrying out data verification on the custom format data and the obtained final configuration data;
the data verification comprises data format consistency verification, checking whether data is integrity verified, whether the data type is correct verified and whether illegal data verification exists;
Said checking whether the data integrity verification includes whether certain fields are contained, whether the data length is correct, etc.;
whether the data type is correct or not includes whether the data type corresponds to a floating point number, an integer, a character string or the like.
The data format consistency check refers to checking whether the total amount of data and key information in the data are consistent (such as variable types and variable routing, which directly affect the test).
In the embodiment, the method is applied to the downloading process of the configuration data in the periodic test of the DCS system, and the obtained periodic test variable data are used for the periodic test variable data used in the subsequent periodic test of the DCS system.
According to the technical scheme, the matched data design in the appointed path is obtained according to the automatic matching of the version numbers in the version number configuration file, for the multi-version configuration data, the current version number or the version number of the data selected for periodic test is written into the version number configuration file, when the periodic test is carried out, the version number is obtained from the version number configuration file, and the data is obtained according to the automatic matching of the version number under the appointed path.
For a preset variable filtering rule, variable data are selectively obtained according to the preset variable filtering rule, and for the obtained data, the obtained data can be selectively obtained according to the preset variable filtering rule, only part of data needed by the periodic test module is obtained, and the certainty of the data of the periodic test module is ensured.
Aiming at the variable filtering rule configuration file, the filtering conditions adopt the extensible design set by the configuration file, the data acquisition filtering conditions are stored in the variable filtering rule configuration file, and the variable filtering rule configuration file can be modified, so that the dynamic configuration filtering conditions are realized, partial data can be conveniently filtered in scenes with different variable data requirements, and in terms of program design, if the variable data types are changed, the configuration file can be conveniently modified, and the extensible of the program is easy.
The filtering conditions in the variable filtering rule configuration file are filtered according to variable types, so that the data security design is ensured, partial data information is exposed because the configuration file is adopted to configure the filtering conditions, and the data security is considered here, so that the filtering conditions adopt the filtering conditions according to the variable types instead of a specific variable or a certain variable, and the configuration file cannot know which variable data exist and only which type of variable data information can be obtained.
And storing the acquired data according to the self-defined format of the module, carrying out data verification to ensure the design of the data integrity of the module, storing the acquired data according to the self-defined format of the module after filtering, verifying the self-defined format data and the acquired data after the storage is completed, judging whether key information in the data is consistent, judging whether illegal data exists in the self-defined format data, and the like.
Example 2
As shown in fig. 1, this embodiment differs from embodiment 1 in that the DCS-based periodic test data acquisition method provided according to embodiment 1 is implemented as follows:
In the periodic test of the DCS system, variable data are generated by configuration, the configuration generated data have multiple versions (such as L1V1H1 and L1V1H 2), when the configuration data are downloaded, the data of a designated version are required to be selected for downloading, the version number is recorded into a version number configuration file according to the version number of the downloading, and after the periodic test is started, the data initializing operation is carried out.
The initialization data includes: reading the version number in the version number configuration file, reading data from the variable filtering rule configuration file to generate a filtering rule, filtering the filtering rule according to the variable types (for example, the analog input and the analog output type of the variable need to be tested regularly, the system variable does not need to be tested regularly), and only the type of the variable in the filtering rule configuration file does not contain any specific variable information.
When the version number and the variable filtering rule are both successfully read, the data under the corresponding path is automatically matched according to the version number, then the data is read, meanwhile, partial data is filtered according to the filtering rule, the read data is stored in a custom format, meanwhile, whether the data is complete (such as whether certain fields are contained, whether the data length is correct or not) and whether the data type is correct (such as whether the data corresponds to floating point numbers, integers or character strings) are checked, and finally, the data initialization operation of the periodic test is completed.
Example 3
As shown in fig. 2, the difference between the present embodiment and embodiment 1 is that the present embodiment further provides a DCS-based periodic test data acquisition apparatus supporting the DCS-based periodic test data acquisition method of embodiment 1, the apparatus comprising:
The request acquisition unit is used for acquiring a test version number to be requested;
the version number acquisition unit is used for acquiring a corresponding version number from the version number configuration file according to the test version number to be requested;
The original full-quantity configuration data unit is used for obtaining original full-quantity configuration data corresponding to the version number according to the version number;
The filtering condition acquisition unit is used for acquiring a preset variable filtering rule and a variable filtering rule configuration file, wherein the variable filtering rule is used as a first filtering condition, and the variable filtering rule configuration file is used as a second filtering condition;
The variable filtering rule generating unit is used for generating a variable filtering rule according to the first filtering condition and the second filtering condition if the variable filtering rule and the variable filtering rule configuration file are successfully acquired; if the variable filtering rule and the variable filtering rule configuration file are failed to be acquired, corresponding prompting is carried out, and the variable filtering rule configuration file are acquired again;
the matching unit is used for matching corresponding final configuration data from the original full configuration data according to the variable filtering rule and the version number;
The storage and verification unit is used for reading the final configuration data, storing the final configuration data according to a custom format and verifying the final configuration data; and the final configuration data after verification is used as a data source of the periodic test variable data of the DCS system.
The execution process of each unit is performed according to the steps of the DCS-based periodic test data acquisition method described in embodiment 1, which is not described in detail.
Meanwhile, the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the periodic test data acquisition method based on the DCS system when executing the computer program.
Meanwhile, the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the periodic test data acquisition method based on the DCS system when being executed by a processor.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (8)

1. The method for acquiring the periodic test data based on the DCS system is characterized by comprising the following steps of:
according to the test version number to be requested, a corresponding version number is obtained from a version number configuration file;
obtaining original full configuration data corresponding to the version number according to the version number;
acquiring a preset variable filtering rule and a variable filtering rule configuration file, wherein the preset variable filtering rule is used as a first filtering condition, and the variable filtering rule configuration file is used as a second filtering condition;
Generating a variable filtering rule according to the first filtering condition and the second filtering condition;
According to the variable filtering rule and the version number, matching corresponding final configuration data from the original full-quantity configuration data, reading the final configuration data, and storing the final configuration data according to a custom format to be used as a data source of DCS system periodic test variable data;
the preset variable filtering rule is a selective filtering condition, and only relevant data required in a periodic test module is obtained; the preset variable filtering rules comprise variable screening according to the station number of the test DCS system, variable screening according to the variable type of the engineering/system, variable screening according to the variable I/O type and variable screening according to the single-station/multi-station variable type;
The variable filtering rule configuration file is used as a second filtering condition, and the second filtering condition is a condition for filtering according to the type of the test variable, namely the variable filtering rule configuration file only comprises the type of the test variable and does not comprise a specific test variable or a certain test variable;
The variable filtering rule configuration file is a test case template which is filled in by a user in advance before a periodic test starts; the test case template is provided by a function of exporting the test case template provided by software, and a user inputs according to format information of a preset starting value, a preset quality bit, an expected value and an expected quality bit;
The variable filtering rule is generated according to the first filtering condition and the second filtering condition, and specifically includes:
If the preset variable filtering rule and the variable filtering rule configuration file are successfully obtained, generating a variable filtering rule according to the first filtering condition and the second filtering condition; and if the preset variable filtering rules and the variable filtering rule configuration files are not obtained, corresponding prompting is carried out, and the preset variable filtering rules and the variable filtering rule configuration files are obtained again.
2. The method for obtaining periodic test data based on DCS system according to claim 1, wherein said obtaining the corresponding version number from the version number configuration file comprises the following steps:
acquiring a corresponding version number from the version number configuration file, and if the version number is successfully acquired, acquiring original full-quantity configuration data under the version number according to the corresponding version number;
If the version number acquisition fails, prompting that the version number acquisition fails; according to the prompt, whether the test version number to be requested needs to be reset or not is carried out;
If the test version number needs to be reset, resetting the test version number to be requested by the user, and returning the version number configuration file to acquire the test version number; if the test version number to be requested is not required to be reset, the test version number to be requested is directly set to be an initial version number.
3. The DCS system based periodic test data acquisition method of claim 1, wherein the specific format of the custom format is profile header information, test DCS system station number, test DCS system station information, number of variables performed, variable names, variable information and variable test data stream.
4. The DCS system-based periodic test data acquisition method of claim 1, further comprising: after the final configuration data is read and saved according to a custom format, carrying out data verification on the custom format data and the obtained final configuration data;
the data verification comprises data format consistency verification, checking whether data is integrity verified, whether the data type is correct verified and whether illegal data verification exists;
said checking whether the data integrity verification includes whether certain fields are included, whether the data length is correct;
the verification of whether the data type is correct includes whether the data type corresponds to a floating point number, an integer or a character string.
5. The method for acquiring periodic test data based on the DCS system according to claim 1, wherein the method is applied to a downloading process of configuration data in the periodic test of the DCS system, and the acquired periodic test variable data is used for periodic test variable data used in the subsequent periodic test of the DCS system.
6. A DCS-based periodic test data acquisition apparatus supporting the DCS-based periodic test data acquisition method according to any one of claims 1 to 5, comprising:
The request acquisition unit is used for acquiring a test version number to be requested;
the version number acquisition unit is used for acquiring a corresponding version number from the version number configuration file according to the test version number to be requested;
The original full-quantity configuration data unit is used for obtaining original full-quantity configuration data corresponding to the version number according to the version number;
the filtering condition acquisition unit is used for acquiring a preset variable filtering rule and a variable filtering rule configuration file, wherein the preset variable filtering rule is used as a first filtering condition, and the variable filtering rule configuration file is used as a second filtering condition;
The variable filtering rule generating unit is used for generating a variable filtering rule according to the first filtering condition and the second filtering condition if the preset variable filtering rule and the variable filtering rule configuration file are successfully acquired; if the preset variable filtering rules and the variable filtering rule configuration files are not obtained, corresponding prompting is carried out, and the preset variable filtering rules and the variable filtering rule configuration files are obtained again;
the matching unit is used for matching corresponding final configuration data from the original full configuration data according to the variable filtering rule and the version number;
The storage and verification unit is used for reading the final configuration data, storing the final configuration data according to a custom format and verifying the final configuration data; and the final configuration data after verification is used as a data source of the periodic test variable data of the DCS system.
7. Computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the DCS-based periodic test data acquisition method according to any of claims 1 to 5 when the computer program is executed by the processor.
8. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the DCS-based periodic test data acquisition method of any one of claims 1 to 5.
CN202210736073.1A 2022-06-27 2022-06-27 DCS-based periodic test data acquisition method, device, equipment and medium Active CN115047835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210736073.1A CN115047835B (en) 2022-06-27 2022-06-27 DCS-based periodic test data acquisition method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210736073.1A CN115047835B (en) 2022-06-27 2022-06-27 DCS-based periodic test data acquisition method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN115047835A CN115047835A (en) 2022-09-13
CN115047835B true CN115047835B (en) 2024-06-04

Family

ID=83162484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210736073.1A Active CN115047835B (en) 2022-06-27 2022-06-27 DCS-based periodic test data acquisition method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115047835B (en)

Citations (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364952A (en) * 2007-08-08 2009-02-11 华为技术有限公司 Transaction subscribing method, filtering rule configuring method and related equipment
CN102081398A (en) * 2004-05-04 2011-06-01 费舍-柔斯芒特系统股份有限公司 Method and apparatus for modifying process control data
CN102787976A (en) * 2011-04-29 2012-11-21 通用电气公司 Method, system and computer program product for dynamic rule engine for a wind turbine farm
CN103036956A (en) * 2012-11-30 2013-04-10 航天恒星科技有限公司 Filing system and implement method of distributed configured massive data
CN103488615A (en) * 2012-06-12 2014-01-01 北汽福田汽车股份有限公司 Automatic generation method and device for software and hardware interface-defined source file
WO2014000485A1 (en) * 2012-06-30 2014-01-03 华为技术有限公司 Content filtration method and device
WO2014191179A1 (en) * 2013-05-28 2014-12-04 Siemens Aktiengesellschaft Method and device for filtering a data packet
CN104331278A (en) * 2014-10-15 2015-02-04 南京航空航天大学 Instruction filtering method and device for specifications of ARINC661
CN105302545A (en) * 2015-09-02 2016-02-03 湖南三一智能控制设备有限公司 Method and device for custom control development of configuration software
WO2017008650A1 (en) * 2015-07-13 2017-01-19 阿里巴巴集团控股有限公司 Device and method for filtering data
US9595896B1 (en) * 2015-12-16 2017-03-14 Rockwell Automation Technologies, Inc. Methods and systems for sensorless closed loop motor speed and torque control
CN107910085A (en) * 2017-10-30 2018-04-13 福建福清核电有限公司 A kind of DCS configuration datas intelligent analysis adjustment method
CN107943872A (en) * 2017-11-13 2018-04-20 中国人民银行清算总中心 Graphical document generating method and system
CN109255093A (en) * 2018-10-24 2019-01-22 北京三快在线科技有限公司 Behavioral data processing method, device, electronic equipment and computer-readable medium
CN109995409A (en) * 2018-01-03 2019-07-09 华为技术有限公司 Measurement method, terminal device and the network equipment of channel state information
CN110442337A (en) * 2019-08-13 2019-11-12 中国核动力研究设计院 A kind of mask method based on nuclear power plant DCS platform logic algorithm pattern cloud atlas
CN110457029A (en) * 2019-08-13 2019-11-15 中国核动力研究设计院 A kind of Logical Configuration icon configuration method based on SCADE basic algorithm block
CN110489391A (en) * 2019-07-25 2019-11-22 深圳壹账通智能科技有限公司 A kind of data processing method and relevant device
CN110633120A (en) * 2019-08-30 2019-12-31 珠海格力电器股份有限公司 Configuration software control processing method, device, server, user terminal and system
CN110989515A (en) * 2019-11-21 2020-04-10 杭州和利时自动化有限公司 Configuration file generation method, device, equipment and readable storage medium
CN111107101A (en) * 2019-12-30 2020-05-05 微梦创科网络科技(中国)有限公司 Firewall system and method for multi-dimensional filtering request of nginx
CN111488631A (en) * 2020-06-28 2020-08-04 中国核动力研究设计院 Nuclear-level security display device and configuration-analysis system thereof
WO2020172913A1 (en) * 2019-02-28 2020-09-03 东北大学 Production index visual monitoring system and method based on configuration
CN111666211A (en) * 2020-05-26 2020-09-15 平安壹钱包电子商务有限公司 Dynamic service test method and device, computer equipment and storage medium
CN111694547A (en) * 2019-03-12 2020-09-22 湛江市霞山区新软佳科技有限公司 Automatic coding data processing application design tool based on data state change
CN112667476A (en) * 2020-12-30 2021-04-16 平安普惠企业管理有限公司 Task-based message filtering method, device, equipment and storage medium
CN112732466A (en) * 2021-01-26 2021-04-30 广州衡昊数据科技有限公司 Service calling method, device and system
CN113778041A (en) * 2021-11-11 2021-12-10 西安热工研究院有限公司 Method, system, equipment and storage medium for generating communication data between DCS controllers
CN114327406A (en) * 2021-12-30 2022-04-12 重庆允成互联网科技有限公司 Trigger data filtering method, trigger configuration method and computer storage medium
CN114637496A (en) * 2022-03-25 2022-06-17 阿里巴巴(中国)有限公司 Configuration data processing system, method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8025795B2 (en) * 2007-02-09 2011-09-27 Maritime Solutions, Inc. Ballast water treatment system
US8447718B2 (en) * 2007-11-09 2013-05-21 Vantrix Corporation Method and apparatus for filtering streaming data
US10817913B2 (en) * 2015-10-16 2020-10-27 Akamai Technologies, Inc. Server-side detection and mitigation of client-side content filters

Patent Citations (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081398A (en) * 2004-05-04 2011-06-01 费舍-柔斯芒特系统股份有限公司 Method and apparatus for modifying process control data
CN101364952A (en) * 2007-08-08 2009-02-11 华为技术有限公司 Transaction subscribing method, filtering rule configuring method and related equipment
CN102787976A (en) * 2011-04-29 2012-11-21 通用电气公司 Method, system and computer program product for dynamic rule engine for a wind turbine farm
CN103488615A (en) * 2012-06-12 2014-01-01 北汽福田汽车股份有限公司 Automatic generation method and device for software and hardware interface-defined source file
WO2014000485A1 (en) * 2012-06-30 2014-01-03 华为技术有限公司 Content filtration method and device
CN103036956A (en) * 2012-11-30 2013-04-10 航天恒星科技有限公司 Filing system and implement method of distributed configured massive data
WO2014191179A1 (en) * 2013-05-28 2014-12-04 Siemens Aktiengesellschaft Method and device for filtering a data packet
CN104331278A (en) * 2014-10-15 2015-02-04 南京航空航天大学 Instruction filtering method and device for specifications of ARINC661
WO2017008650A1 (en) * 2015-07-13 2017-01-19 阿里巴巴集团控股有限公司 Device and method for filtering data
CN105302545A (en) * 2015-09-02 2016-02-03 湖南三一智能控制设备有限公司 Method and device for custom control development of configuration software
US9595896B1 (en) * 2015-12-16 2017-03-14 Rockwell Automation Technologies, Inc. Methods and systems for sensorless closed loop motor speed and torque control
CN107910085A (en) * 2017-10-30 2018-04-13 福建福清核电有限公司 A kind of DCS configuration datas intelligent analysis adjustment method
CN107943872A (en) * 2017-11-13 2018-04-20 中国人民银行清算总中心 Graphical document generating method and system
CN109995409A (en) * 2018-01-03 2019-07-09 华为技术有限公司 Measurement method, terminal device and the network equipment of channel state information
CN109255093A (en) * 2018-10-24 2019-01-22 北京三快在线科技有限公司 Behavioral data processing method, device, electronic equipment and computer-readable medium
WO2020172913A1 (en) * 2019-02-28 2020-09-03 东北大学 Production index visual monitoring system and method based on configuration
CN111694547A (en) * 2019-03-12 2020-09-22 湛江市霞山区新软佳科技有限公司 Automatic coding data processing application design tool based on data state change
CN110489391A (en) * 2019-07-25 2019-11-22 深圳壹账通智能科技有限公司 A kind of data processing method and relevant device
CN110442337A (en) * 2019-08-13 2019-11-12 中国核动力研究设计院 A kind of mask method based on nuclear power plant DCS platform logic algorithm pattern cloud atlas
CN110457029A (en) * 2019-08-13 2019-11-15 中国核动力研究设计院 A kind of Logical Configuration icon configuration method based on SCADE basic algorithm block
CN110633120A (en) * 2019-08-30 2019-12-31 珠海格力电器股份有限公司 Configuration software control processing method, device, server, user terminal and system
CN110989515A (en) * 2019-11-21 2020-04-10 杭州和利时自动化有限公司 Configuration file generation method, device, equipment and readable storage medium
CN111107101A (en) * 2019-12-30 2020-05-05 微梦创科网络科技(中国)有限公司 Firewall system and method for multi-dimensional filtering request of nginx
CN111666211A (en) * 2020-05-26 2020-09-15 平安壹钱包电子商务有限公司 Dynamic service test method and device, computer equipment and storage medium
CN111488631A (en) * 2020-06-28 2020-08-04 中国核动力研究设计院 Nuclear-level security display device and configuration-analysis system thereof
CN112667476A (en) * 2020-12-30 2021-04-16 平安普惠企业管理有限公司 Task-based message filtering method, device, equipment and storage medium
CN112732466A (en) * 2021-01-26 2021-04-30 广州衡昊数据科技有限公司 Service calling method, device and system
CN113778041A (en) * 2021-11-11 2021-12-10 西安热工研究院有限公司 Method, system, equipment and storage medium for generating communication data between DCS controllers
CN114327406A (en) * 2021-12-30 2022-04-12 重庆允成互联网科技有限公司 Trigger data filtering method, trigger configuration method and computer storage medium
CN114637496A (en) * 2022-03-25 2022-06-17 阿里巴巴(中国)有限公司 Configuration data processing system, method and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
一种报文过滤设备配置管理系统的实现;张泽鑫, 陈曙晖, 苏金树;计算机工程与科学;20050530(第05期);第 17-19页 *
变量筛选方法对郁闭度遥感估测模型的影响比较;琚存勇;邸雪颖;蔡体久;;林业科学;20071215(第12期);第33-38页 *
基于ActiveX技术的矿用监控组态软件设计;孙业明;史宜巧;;矿业研究与开发;20070430(第02期);第63-65页 *
工控组态软件在大型热工领域的应用;袁斌 等;《计算机自动测量与控制》;20021025;第10卷(第10期);第690-691页 *

Also Published As

Publication number Publication date
CN115047835A (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN107943707B (en) Behavior tree testing method and device, storage medium and terminal
CN106502896B (en) A kind of generation method and device of function test code
CN109753289B (en) Art resource merging method and device, electronic equipment and storage medium
CN111767227A (en) Recording playback test method and device
CN104317618A (en) Firmware partitioning method and device
CN111177007B (en) Method and system for automatically generating BDD test cases based on test data
CN111143228B (en) Test code generation method and device based on decision table method
CN108628734B (en) Functional program debugging method and terminal
CN105867903A (en) Method and device or splitting code library
CN112363937A (en) Method and device for testing differential coverage rate, computer equipment and storage medium
CN108694049B (en) Method and equipment for updating software
CN110688823B (en) XML file verification method and device
CN110990051B (en) Maintenance method, device, medium and equipment for software package dependency relationship
CN114780135A (en) Project management method and device based on git, electronic equipment and storage medium
CN112948233A (en) Interface testing method, device, terminal equipment and medium
CN115047835B (en) DCS-based periodic test data acquisition method, device, equipment and medium
CN114141302A (en) Test method of solid state disk and electronic equipment
CN109684205B (en) System testing method, device, electronic equipment and storage medium
CN111858359A (en) Method and device for acquiring engineering code position of executable file
CN112052184B (en) Automatic generation method, automatic generation device and storage medium for test script
US20050177773A1 (en) Software method for exhaustive variation of parameters, independent of type
CN109508203A (en) Version consistency determines method, apparatus and system
CN115237789A (en) Validity verification method, system, equipment and medium for data destruction
CN111414194B (en) Interface information generation method, system, electronic equipment and storage medium
CN110795142B (en) Configuration file generation method and device

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