CN115047835A - Method, device, equipment and medium for acquiring periodic test data based on DCS (distributed control System) - Google Patents
Method, device, equipment and medium for acquiring periodic test data based on DCS (distributed control System) Download PDFInfo
- Publication number
- CN115047835A CN115047835A CN202210736073.1A CN202210736073A CN115047835A CN 115047835 A CN115047835 A CN 115047835A CN 202210736073 A CN202210736073 A CN 202210736073A CN 115047835 A CN115047835 A CN 115047835A
- Authority
- CN
- China
- Prior art keywords
- data
- variable
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 157
- 230000000737 periodic effect Effects 0.000 title claims abstract description 69
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000001914 filtration Methods 0.000 claims abstract description 180
- 238000004590 computer program Methods 0.000 claims description 20
- 238000013524 data verification Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 claims description 9
- 238000012795 verification Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 6
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 238000013461 design Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 9
- 238000012216 screening Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total 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/41845—Total 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/33—Director till display
- G05B2219/33273—DCS 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, comprising the following steps: acquiring a corresponding version number from a version number configuration file according to a test version number to be requested; 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 matching corresponding final configuration data from the original full configuration data according to the variable filtering rule and the version number, 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 periodic test variable data. The invention is beneficial to the data acquisition of multi-version configuration data and has high safety.
Description
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 data is acquired and analyzed from a DCS periodic test, the acquired data is derived from configuration module data, namely the data of the periodic test needs to be compatible with the configuration module data, most other similar designs currently adopt the mode of directly acquiring the current configuration module data, but when the configuration module data with multiple versions exists, the problem of correspondence between the versions and the data needs to be considered so as to ensure that correct data is acquired.
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 part of the data may be needed. At present, the following two methods mainly exist for acquiring the periodic test data of the DCS: the first method mostly adopts the corresponding interface provided according to the requirement, but for the variable data types, a plurality of interfaces are required to be provided, which is not favorable for the expansion of the program from the aspect of program design. The second method adopts the extensible design of the configuration file, but also causes that the template derived by the test itself contains the current value of the preset test variable, the current quality bit and the variable configuration routing information because of the problem of the initial template of the configuration file, so that the current operation state of the whole engineering system and the current configuration information of the whole engineering are exposed in a phase change manner, and the current value of the preset test variable, the current quality bit and the information of the variable configuration routing are useless for the periodic test itself, so that the second method has the problems of too much data information exposure and safety.
The method for acquiring the relevant test data has some defects in the aspect that the acquired data is partially directly adopted and is not processed into a data structure which is convenient for the module to process, and the data is partially not checked; thereby causing a security problem of exposing too much data information, and being not beneficial to data acquisition of multi-version configuration data.
Disclosure of Invention
The invention aims to solve the technical problems that the conventional method for acquiring the periodic test data of the DCS has the safety problems of difficult program expansion and too much data information exposure, is not beneficial to acquiring the data of multi-version configuration data, and has to be perfected in flexibility, certainty, expandability and safety.
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). aiming at a periodic test module in a security-level DCS, the invention automatically matches and acquires the matched data in the designated path according to the version number in the version number configuration file, thereby meeting the requirement of flexibly and accurately acquiring the data in multi-version configuration data. According to the requirement on the configuration data, an extensible design that the filtering condition is combined with the configuration file is adopted, the filtering condition is filtered according to the variable type, the acquired data is stored according to the custom format of the periodic test module, and data verification is carried out, so that the required data can be acquired in an extensible, safe and complete manner.
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 including:
acquiring a corresponding version number from a version number configuration file according to a test version number to be requested;
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 matching corresponding final configuration data from the original full configuration data according to the variable filtering rule and the version number, 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 periodic test variable data.
The above technical solution is different from the extensible design of the configuration file adopted in the second method in the prior art, the configuration file (version number configuration file, variable filtering rule configuration file) in the present invention only provides some other information, such as site information (e.g. site number, site type, site name of the current test site), variable information (e.g. variable name, variable type) and the like, which will not expose the operation state of the engineering system and the engineering configuration too much to the user according to the user's needs, and the user only needs to set information, which is strongly associated with the test itself, such as the initial state and the expected state (state description including variable value, variable quality bit) of the custom variable in the generated configuration file. Therefore, the configuration file in the invention does not have the problem of exposing excessive data information.
Further, the obtaining of the corresponding version number from the version number configuration file includes 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 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 version number needs to be reset, the user resets the test version number to be requested and returns the configuration file of the version number to acquire the test version number; and if the test version number to be requested does not need to be reset, directly setting the test version number to be requested as the initial version number.
Furthermore, the preset variable filtering rule is a selective filtering condition, and only the relevant data required in the periodic test module is acquired;
the preset variable filtering rule comprises the steps of performing variable screening according to the station number of the test DCS (only filtering out the variables held by the station of the test DCS); performing variable screening (only filtering out the engineering variables with preliminary testable conditions) according to the engineering/system variable types; performing variable screening according to the type of the variable I/O (only filtering out variables of types which can participate in the test, such as variable types of AI, DI, AO, DO and the like (later or continued expansion)); and performing variable screening (only filtering out variables that can participate in non-inter-station communication of the test) according to the single-station/multi-station variable types.
Further, the variable filter rule configuration file is used as a second filter condition, where the second filter condition is a condition for filtering according to a test variable type, that is, the variable filter rule configuration file only includes the type of the 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 the start of a periodic test; the test case template is provided by the function of deriving the test case template provided by software, and a user inputs information in a format of 'preset initial value-preset quality bit-expected value-expected quality bit'.
Further, generating a variable filtering rule 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 fail to be acquired, performing corresponding prompt and acquiring the variable filtering rule and the variable filtering rule configuration file again.
Further, 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 name, variable information (variable type, variable condition, multiple test interval time and the like), and variable test data stream (storing multiple test initial values and test expected values in the form of value-quality bit pairs).
Further, the method further comprises: after the final configuration data are read and stored according to a custom format, data verification is carried out on the custom format data and the obtained final configuration data;
the data verification comprises data format consistency verification, checking whether data is integrity verification, whether data type is correct verification and whether illegal data verification exists;
the checking whether the data integrity is verified comprises whether certain fields are contained, whether the data length is correct and the like;
whether the data type is correct or not is verified and comprises whether the data type corresponds to a floating point number, an integer or a character string and the like.
Further, the method is applied to the downloading process of the configuration data in the periodic test of the DCS, and the acquired periodic test variable data is used for periodic test variable data used in the subsequent periodic test of the DCS.
In a second aspect, the present invention further provides a device for acquiring periodic test data based on a DCS system, which supports the method for acquiring periodic test data based on a DCS system, and the device includes:
the request acquisition unit is used for acquiring a test version number to be requested;
the version number obtaining unit is used for obtaining a corresponding version number from a version number configuration file according to the test version number to be requested;
the original full configuration data unit is used for obtaining original full 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;
a variable filtering rule generating unit, configured to generate 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 fail to be acquired, carrying out corresponding prompt and acquiring the variable filtering rule and the variable filtering rule configuration file 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 user-defined format and verifying the final configuration data; and the verified final configuration data is used as a data source of the DCS periodic test variable data.
In a third aspect, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer device implements the method for acquiring periodic test data based on a DCS system.
In a fourth aspect, the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for acquiring periodic test data based on a DCS system.
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 DCS system are used in the periodic test of the safe DCS system, and the data in the corresponding path is automatically matched and acquired according to the version number in the version number configuration file according to the requirement of the timing test function on the data, so that the flexible acquisition of multi-version data is realized. The acquired data is selectively filtered according to types according to rules in the variable filtering rule configuration file, so that the certainty, expandability and safety of the data are guaranteed. 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 the embodiments 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 principles of the invention. In the drawings:
FIG. 1 is a flow chart of a method for acquiring periodic test data based on a DCS system according to the present invention.
Fig. 2 is a schematic structural diagram of a device for acquiring periodic test data based on a DCS system according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Example 1
The invention designs a data acquisition method for automatically matching and acquiring matching in a designated path according to the version number in a version number configuration file aiming at a periodic test module in a security level DCS system, so that the data can be flexibly and accurately acquired in multi-version configuration data, and simultaneously designs a variable data selective acquisition method according to a filtering condition according to the requirement of a periodic test on the data. The innovation points are as follows: automatically matching and acquiring the matched data design in the designated path according to the version number in the configuration file; selectively acquiring the design according to the filtering condition by variable data; the filtering condition adopts an extensible design set by a configuration file; filtering conditions are filtered according to variable types, so that the data security design is ensured; and storing the acquired data according to the self-defined format of the module, and verifying the data 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 of the present invention includes:
acquiring a corresponding version number from a version number configuration file according to a test version number to be requested;
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 matching corresponding final configuration data from the original full configuration data according to the variable filtering rule and the version number, 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 periodic test variable data.
In this embodiment, the obtaining of the corresponding version number from the version number configuration file includes 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 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 version number needs to be reset, the user resets the test version number to be requested and returns the configuration file of the version number to acquire the test version number; and if the test version number to be requested does not need to be reset, directly setting the test version number to be requested as the initial version number.
In this embodiment, the preset variable filtering rule is a selective filtering condition, and only the relevant data required in the periodic test module is acquired;
the preset variable filtering rule comprises the steps of performing variable screening according to the station number of the test DCS (only filtering out the variables held by the station of the test DCS); performing variable screening (only filtering out the engineering variables with preliminary testable conditions) according to the engineering/system variable types; performing variable screening according to the type of the variable I/O (only filtering out variables of types which can participate in the test, such as variable types of AI, DI, AO, DO and the like (later or continued expansion)); and performing variable screening (only filtering out the variables of non-inter-station communication which can participate in the test) according to the variable types of the single station/multi-station.
In this embodiment, the variable filter rule configuration file is used as a second filter condition, where the second filter condition is a condition for filtering according to a test variable type, that is, the variable filter rule configuration file only includes the type of the 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 the start of a periodic test; the test case template is provided by the function of deriving the test case template provided by software, and a user inputs information in a format of 'preset initial value-preset quality bit-expected value-expected quality bit'.
Specifically, the method comprises the following steps: before the periodic test is started, a user needs to complete filling of the variable filtering rule configuration file, the configuration file is provided by a function of 'exporting a test case template' provided by software, on the main body, the test case template (namely the variable filtering rule configuration file) needs the user to complete information input in a format of 'variable name-preset initial value-preset quality bit-expected value-expected quality bit', in order to simplify test case writing of the same variable repeated test and improve interaction friendliness, the test case template supports the format of 'variable name-preset initial value-preset quality bit-expected value-expected quality bit-preset initial value-preset quality bit-expected value-expected quality bit …', wherein "preset start value-preset quality bit-desired value-desired quality bit" appears interactively as a whole.
In order to ensure that the finally presented form of the experimental report is consistent with the table form of the test case template and improve the intuitiveness of the observation of the test result, the software needs to acquire and store the template structure of the test case template before the test starts and after the test source data is 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 fail to be acquired, performing corresponding prompt and acquiring the variable filtering rule and the variable filtering rule configuration file 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 (storing multiple test initial values and test expected values in the form of value-quality bit pairs).
In this embodiment, the method further includes: after the final configuration data are read and stored according to a custom format, data verification is carried out 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 data types are correct verified and whether illegal data verification exists;
the checking whether the data integrity is verified comprises whether certain fields are contained, whether the data length is correct or not and the like;
whether the data type is correct or not is verified and comprises whether the data type corresponds to a floating point number, an integer or a character string and the like.
The data format consistency check refers to checking whether the total data amount and key information in the data are consistent (such as variable types and variable routes which directly influence the test).
In this embodiment, the method is applied to the downloading process of the 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.
According to the technical scheme, the matched data design in the appointed path is automatically matched and obtained according to the version number in the version number configuration file, for 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, the version number is obtained from the version number configuration file when the periodic test is carried out, and the data is automatically matched and obtained according to the version number to the appointed path.
And for the acquired data, the selective acquisition can be carried out according to the preset variable filtering rule, only partial data required by the periodic test module is acquired, and the certainty of the data of the periodic test module is ensured.
Aiming at the variable filtering rule configuration file, the filtering condition adopts the extensible design set by the configuration file, the data acquisition filtering condition is stored in the variable filtering rule configuration file and can be modified through the variable filtering rule configuration file, so that the dynamic configuration of the filtering condition is realized, partial data can be conveniently filtered in scenes with different variable data requirements, and in terms of program design, if the type of the variable data changes, the variable data can be conveniently modified through the configuration file, so that the program is easy to extend.
The filtering conditions in the variable filtering rule configuration file are filtered according to the types of the variables, so that the data security design is ensured, partial data information can be exposed because the filtering conditions are configured by the configuration file, and the filtering conditions are configured according to the types of the variables instead of specific variables or certain variables, so that the variable data which exist in the configuration file cannot be known, and only the variable data information of which types can be obtained.
The acquired data is stored according to the self-defined format of the module and is subjected to data verification, the data integrity design of the module is guaranteed, the acquired data is stored according to the self-defined format of the module after being filtered, and after the data is stored, the data in the self-defined format and the acquired data are verified, so that the total data amount, whether key information in the data is consistent, whether illegal data exist in the data in the self-defined format and the like are judged.
Example 2
As shown in fig. 1, the present embodiment is different from embodiment 1 in that the method for acquiring data based on the DCS system periodic test provided in embodiment 1 is implemented as follows:
in the DCS system periodic test, variable data is generated by configuration, the configuration generated data has a plurality of versions (such as L1V1H1 and L1V1H2), when the configuration data is downloaded, data of a specified version needs to be downloaded, the version number is recorded in a version number configuration file according to the downloaded version number, and after the periodic test is started, initialization data operation is carried out.
Initializing the data includes: reading the version number in the version number configuration file, reading data from the variable filtering rule configuration file, generating a filtering rule, filtering according to the variable type (for example, the variables of the analog input and analog output types need to be tested regularly, and the system variables do not need to be tested regularly), and only the variable type but not any specific variable information in the filtering rule configuration file.
When the version number and the variable filtering rule are read successfully, the data under the corresponding path are automatically matched according to the version number, then the data are read, meanwhile, partial data are filtered according to the filtering rule, the read data are stored in a user-defined format, meanwhile, whether the data are complete (such as whether certain fields are contained, whether the data length is correct and the like) and whether the data type is correct (such as whether the data correspond 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, this embodiment is different from embodiment 1 in that this embodiment further provides a device for acquiring periodic test data based on a DCS system, which supports the method for acquiring periodic test data based on a DCS system described in embodiment 1, and the device includes:
the request acquisition unit is used for acquiring a test version number to be requested;
the version number obtaining unit is used for obtaining a corresponding version number from a version number configuration file according to the test version number to be requested;
the original full configuration data unit is used for obtaining original full configuration data corresponding to the version number according to the version number;
the filtering condition obtaining unit is used for obtaining 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;
a variable filtering rule generating unit, configured to generate 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 fail to be acquired, carrying out corresponding prompt and acquiring the variable filtering rule and the variable filtering rule configuration file 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 user-defined format and verifying the final configuration data; and the verified final configuration data is used as a data source of the DCS periodic test variable data.
The execution process of each unit is executed according to the flow steps of the method for acquiring periodic test data based on the DCS system described in embodiment 1, and details are not repeated in this embodiment.
Meanwhile, the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the method for acquiring the periodic test data based on the DCS system when executing the computer program.
Meanwhile, the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the method for acquiring the periodic test data based on the DCS.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for acquiring periodic test data based on a DCS (distributed control System) is characterized by comprising the following steps:
acquiring a corresponding version number from a version number configuration file according to a test version number to be requested;
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 matching corresponding final configuration data from the original full configuration data according to the variable filtering rule and the version number, 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 periodic test variable data.
2. The method of claim 1, wherein the obtaining of 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 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 version number needs to be reset, the user resets the test version number to be requested and returns the configuration file of the version number to acquire the test version number; and if the test version number to be requested does not need to be reset, directly setting the test version number to be requested as the initial version number.
3. The method of claim 1, wherein the predetermined variable filtering rule is a selective filtering condition, and only the relevant data required by the periodic test module is obtained;
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 some test variables;
the variable filtering rule configuration file is a test case template which is filled in by a user in advance before the start of a periodic test; the test case template is provided by the function of deriving the test case template provided by software, and a user inputs the test case template according to format information of a preset initial value, a preset quality bit, an expected value and an expected quality bit.
4. The method of claim 1, wherein the generating of the variable filter rule according to the first filter condition and the second filter condition specifically includes:
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 fail to be acquired, performing corresponding prompt and acquiring the variable filtering rule and the variable filtering rule configuration file again.
5. The method of claim 1, wherein the specific format of the custom format is configuration file header information, test DCS system station number, test DCS system station information, number of executed variables, variable name, variable information, and variable test data stream.
6. The method of claim 1, further comprising: after the final configuration data are read and stored according to a custom format, data verification is carried out 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 data types are correct verified and whether illegal data verification exists;
the checking whether the data integrity is verified comprises whether certain fields are contained and whether the data length is correct;
whether the data type is correct or not is verified and comprises whether the data type corresponds to a floating point number, an integer or a character string.
7. The method of claim 1, wherein the method is applied to a process of downloading configuration data in the periodic test of the DCS system, and the acquired periodic test variable data is used as periodic test variable data for a subsequent periodic test of the DCS system.
8. An apparatus for acquiring periodic test data based on a DCS, the apparatus supporting the method for acquiring periodic test data based on a DCS according to any one of claims 1 to 7, the apparatus comprising:
the request acquisition unit is used for acquiring a test version number to be requested;
the version number obtaining unit is used for obtaining a corresponding version number from a version number configuration file according to the test version number to be requested;
the original full configuration data unit is used for obtaining original full configuration data corresponding to the version number according to the version number;
the filtering condition obtaining unit is used for obtaining 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;
a variable filtering rule generating unit, configured to generate 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 fail to be acquired, carrying out corresponding prompt and acquiring the variable filtering rule and the variable filtering rule configuration file 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 user-defined format and verifying the final configuration data; and the verified final configuration data is used as a data source of the DCS periodic test variable data.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the DCS-based system periodic test data acquisition method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the DCS-based system periodic test data acquisition method of any one of claims 1 to 7.
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 true CN115047835A (en) | 2022-09-13 |
CN115047835B 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 (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080190826A1 (en) * | 2007-02-09 | 2008-08-14 | Miner Jeffery G | Ballast water treatment system |
CN101364952A (en) * | 2007-08-08 | 2009-02-11 | 华为技术有限公司 | Transaction subscribing method, filtering rule configuring method and related equipment |
US20100332618A1 (en) * | 2007-11-09 | 2010-12-30 | Norton Richard Elliott | Method and apparatus for filtering streaming data |
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 |
US20170109797A1 (en) * | 2015-10-16 | 2017-04-20 | Akamai Technologies, Inc. | Server-side detection and mitigation of client-side content filters |
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 |
-
2022
- 2022-06-27 CN CN202210736073.1A patent/CN115047835B/en active Active
Patent Citations (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081398A (en) * | 2004-05-04 | 2011-06-01 | 费舍-柔斯芒特系统股份有限公司 | Method and apparatus for modifying process control data |
US20080190826A1 (en) * | 2007-02-09 | 2008-08-14 | Miner Jeffery G | Ballast water treatment system |
CN101364952A (en) * | 2007-08-08 | 2009-02-11 | 华为技术有限公司 | Transaction subscribing method, filtering rule configuring method and related equipment |
US20100332618A1 (en) * | 2007-11-09 | 2010-12-30 | Norton Richard Elliott | Method and apparatus for filtering streaming data |
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 |
US20170109797A1 (en) * | 2015-10-16 | 2017-04-20 | Akamai Technologies, Inc. | Server-side detection and mitigation of client-side content filters |
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 |
CN110457029A (en) * | 2019-08-13 | 2019-11-15 | 中国核动力研究设计院 | A kind of Logical Configuration icon configuration method based on SCADE basic algorithm block |
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 |
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)
Title |
---|
孙业明;史宜巧;: "基于ActiveX技术的矿用监控组态软件设计", 矿业研究与开发, no. 02, 30 April 2007 (2007-04-30), pages 63 - 65 * |
张泽鑫, 陈曙晖, 苏金树: "一种报文过滤设备配置管理系统的实现", 计算机工程与科学, no. 05, 30 May 2005 (2005-05-30), pages 17 - 19 * |
琚存勇;邸雪颖;蔡体久;: "变量筛选方法对郁闭度遥感估测模型的影响比较", 林业科学, no. 12, 15 December 2007 (2007-12-15), pages 33 - 38 * |
袁斌 等: "工控组态软件在大型热工领域的应用", 《计算机自动测量与控制》, vol. 10, no. 10, 25 October 2002 (2002-10-25), pages 690 - 691 * |
Also Published As
Publication number | Publication date |
---|---|
CN115047835B (en) | 2024-06-04 |
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 | |
CN107341102B (en) | Test case file generation method and device | |
CN115167891B (en) | Data updating method, device and equipment of interface control file and storage medium | |
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 | |
CN100483429C (en) | Verification operation supporting system and method of the same | |
CN111767227A (en) | Recording playback test method and device | |
CN104899070B (en) | Implementation method, system and the device of device command row | |
CN105867903A (en) | Method and device or splitting code library | |
CN111125067B (en) | Data maintenance method and device | |
CN108628734A (en) | A kind of function program adjustment method and terminal | |
CN110990051B (en) | Maintenance method, device, medium and equipment for software package dependency relationship | |
CN108694049B (en) | Method and equipment for updating software | |
CN110688823B (en) | XML file verification method and device | |
CN114780135A (en) | Project management method and device based on git, electronic equipment and storage medium | |
CN108566549A (en) | The method of calibration and device of set-top box device parameter information | |
CN115047835B (en) | DCS-based periodic test data acquisition method, device, equipment and medium | |
CN113031944B (en) | Business opening device and method based on template | |
CN115904480B (en) | Code reconstruction method, device, electronic equipment and storage medium | |
CN112036142A (en) | Real-time report generation method and system based on data configuration | |
CN112052184B (en) | Automatic generation method, automatic generation device and storage medium for test script | |
CN116860322A (en) | Front-end data source processing method, device, equipment and storage medium | |
US20050177773A1 (en) | Software method for exhaustive variation of parameters, independent of type | |
CN108287788A (en) | A kind of use-case step matching method based on test case, system |
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 |