CN113671924B - DCS real-time value setting method and system, equipment and storage medium - Google Patents

DCS real-time value setting method and system, equipment and storage medium Download PDF

Info

Publication number
CN113671924B
CN113671924B CN202111237372.2A CN202111237372A CN113671924B CN 113671924 B CN113671924 B CN 113671924B CN 202111237372 A CN202111237372 A CN 202111237372A CN 113671924 B CN113671924 B CN 113671924B
Authority
CN
China
Prior art keywords
data
set value
value data
setting
value
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
CN202111237372.2A
Other languages
Chinese (zh)
Other versions
CN113671924A (en
Inventor
薛建中
翟亮晶
卢海松
程国栋
张勇
徐卫峰
张军
潘乐
王哲蓓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
Original Assignee
NR Electric Co Ltd
Xian Thermal Power Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, Xian Thermal Power Research Institute Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202111237372.2A priority Critical patent/CN113671924B/en
Publication of CN113671924A publication Critical patent/CN113671924A/en
Application granted granted Critical
Publication of CN113671924B publication Critical patent/CN113671924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • 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], computer integrated manufacturing [CIM]
    • G05B19/41865Total 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], computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides a DCS real-time value setting method, a system, equipment and a storage medium, wherein the method comprises the steps of obtaining a set value data message and analyzing a set value data message header to obtain a check code and a set value; and analyzing the data area information in the message to obtain the setting value information of each setting value data according to the setting value, and checking the setting value information of each setting value data. And pressing the data result of the setting data of the checked data area into a real-time value setting queue corresponding to the task level where the setting data is located. The method prevents the calculation process between POU pages from being disturbed due to the modification of the same real-time value by a plurality of clients at the same time, realizes the synchronization of the main machine and the standby machine, and improves the reliability and the stability of the system.

Description

DCS real-time value setting method and system, equipment and storage medium
Technical Field
The invention belongs to the technical field of processing of DCS transmission data, and particularly relates to a DCS real-time value setting method, a system, equipment and a storage medium.
Background
A Distributed Control System (DCS) is a specially designed Control System for controlling complex and large-scale applications in industrial processes. The controller is the brain of a distributed control system that controls various parts of the control area geographically distributed and that executes control algorithms and configurations for various devices, processes and engineering network communications between PCs, which is done through simplex or redundant configurations to better control the performance of complex processes. The reliability, stability and high timeliness of the controller are the guarantee of high reliability, flexibility, coordination and stability of the distributed control system, so the design and implementation of any function in the controller must be premised on the reliability, stability and high timeliness.
In the field of industrial process control, particularly during electric digital data processing, an upper computer frequently performs value setting operation on a lower computer, and an operation object may not be unique at the same time, so that the lower computer needs to respond to the operation process in time and needs to be carefully executed, an effective period of a real-time value corresponding to set value data can be ensured, and the lower computer needs to ensure that the process is an atomic operation to prevent influence on a calculation result when responding to the process.
Particularly, a distributed control system has a plurality of upper computers and lower computers, so that the algorithm task of the lower computers is easily influenced, the arithmetic page operation logic is incorrect, and the system is disturbed.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method, a system, a device and a storage medium for setting values in real time of DCS, which prevents the calculation process between POU pages from being disturbed at the same time due to the multiple upper computers setting values in real time, improves the operational synchronization between the main and standby computers, and improves the reliability and stability of the system.
In order to achieve the purpose, the invention adopts the following technical scheme:
a DCS real-time value setting method, comprising the steps of:
acquiring a set value data message, and analyzing a set value data message header to obtain a check code and a set value; performing preliminary verification on the verification code;
after the check code passes the preliminary check, analyzing a set value data of a data area in the set value data message by taking the set value as the traversal number to obtain data information of the set value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
pressing the data information of the set value data which passes the two-time verification into a real-time value set value queue corresponding to the task level where the set value data is located;
after the pressing is finished, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data; and completing the real-time value setting of the DCS until the traversal times are used up or the data area in the setting data message is empty.
As a further improvement of the present invention, the performing the preliminary verification on the check code specifically includes:
comparing the check code in the set value data message header with a current check code stored in a controller:
if the check codes are the same, the setting value values corresponding to the check codes are stored, and the check codes pass the preliminary check.
As a further improvement of the present invention, the comparing the check code in the set value data packet header with the current check code stored in the controller further includes:
if the values are different, setting all real-time values in the setting value response message with failure marks, and exiting after sending the setting value response message; the check code does not pass the preliminary check.
As a further improvement of the present invention, the analyzing a set value data of a data area in the set value data message to obtain data information of the set value data specifically includes:
starting from a set value data of a data area in the set value data message, setting an offset pointer at the initial position of data information of the set value data, and pointing to the data information to be analyzed in the set value data; analyzing the data information of the set value data, and after each item of data information of the set value data is analyzed, shifting a pointer backwards to shift the digit corresponding to the data information of the set value data until all the data information of the set value data is analyzed, and storing the data information corresponding to the set value data to the local.
In a further improvement of the present invention, the analyzing of the data information of the set value data is performed in order of a POU page number, a data index value, a data type, and a data value.
As a further improvement of the present invention, after the analysis is completed, the two-time verification of the data information of the set value data specifically includes:
performing a first check, specifically, screening the set value data stored locally, and determining whether the size of the POU page number of the set value data is reasonable and whether the data index value is reasonable:
if the verification is reasonable, the first verification is passed;
performing a second check, specifically, screening the set value data stored locally and passing the first check, locating to an existing POU page object in a controller memory according to the POU page number and the data index value of the set value data, finding an original value of the set value data corresponding to the POU page object, and checking whether the data type of the set value data is the same as the data type of the original value in the POU object:
if the two are the same, the second check is passed.
As a further improvement of the present invention, the first verification further includes:
judging whether the POU page number of the set value data is reasonable or not and judging whether the data index value is reasonable or not, if so, setting a real-time value in a set value response message with a failure mark, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data;
the second check-up further comprises:
and checking whether the data type of the set value data is the same as the data type of the original value in the POU object, if not, setting the real-time set value in the set value response message with a failure mark, and returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data.
As a further improvement of the present invention, the data information of the set value data passing through the two-time verification is pressed into a real-time value queue corresponding to the task level where the set value data is located, which specifically includes:
pressing the data information of the set value data into a real-time value set value queue corresponding to the task level where the POU page number corresponding to the set value data is located; and judging whether the pressing-in of the real-time value queue is successful:
if the result is successful, the real-time value in the value setting response message is set as a success mark;
if not, the real-time value in the value-setting response message is set with a failure mark.
A DCS real-time value setting system comprising:
the acquisition module is used for acquiring the setting value data message and analyzing the header of the setting value data message to obtain a check code and a setting value; performing preliminary verification on the verification code;
the analysis module is used for analyzing the setting value data of the data area in the setting value data message by taking the setting value as the traversal times after the initial check of the check code is passed to obtain the data information of the setting value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
the pressing-in module is used for pressing the data information of the set value data which passes the two-time verification into a real-time value queue corresponding to the task level where the set value data is located;
the traversing module is used for returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data after the pressing is finished; and completing the real-time value setting of the DCS until the traversal times are used up or the data area in the setting data message is empty.
An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the DCS real-time value setting method when executing the computer program.
A computer-readable storage medium, storing a computer program which, when executed by a processor, implements the steps of the DCS real-time value setting method.
The invention has the beneficial effects that:
the controller receives the setting value data message of the upper computer, analyzes the setting value information of the real-time value in the setting value data message according to a data arrangement mode and verifies the setting value information, and only after the verification is passed, the controller carries out subsequent setting operation, otherwise, the controller returns a setting value failure response message upwards. After the verification is passed, the controller does not directly place the setting value in the corresponding position in the POU file, but pushes the setting value information into the corresponding setting value queue to wait for subsequent loading processing. The method realizes an efficient value setting process, a value setting data message sent by an upper computer can contain a plurality of value setting data, the value setting information related to the value setting data is a POU page number, a data index value, a data type and a data value, and the subsequent operation can be carried out only after the value setting information is checked, so that the message size is reduced by a data arrangement mode, the network transmission rate is improved, and meanwhile, the reliability of the value setting process is improved by a multiple checking mechanism; meanwhile, in order to avoid that a plurality of clients operate a real-time value at the same time, the controller loads the setting information into the corresponding setting queue instead of directly writing the setting information into the corresponding position in the POU file, so that the calculation process between the POU files is prevented from being disturbed due to the fact that the plurality of clients set the same real-time value at the same time, the synchronization of the main and standby computers is realized, and the reliability and the stability of the system are improved.
Drawings
FIG. 1 is a flow chart of a DCS real-time value setting method of the present invention;
FIG. 2 is a schematic diagram of a DCS real-time value setting system;
fig. 3 is a schematic structural diagram of an electronic device.
Detailed Description
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The following detailed description is exemplary in nature and is intended to provide further details of the invention. Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention.
The noun explains:
a message (message) is a data unit exchanged and transmitted in the network, i.e. a data block to be sent by a station at one time. The message contains complete data information to be sent, and the message is very inconsistent in length, unlimited in length and variable.
The message header is an information segment which is continuously encapsulated into packets, packets and frames in the message transmission process and is added in the encapsulation process.
As shown in fig. 1, the present invention provides a DCS real-time value setting method, which includes the following steps:
acquiring a set value data message, and analyzing a set value data message header to obtain a check code and a set value; performing preliminary verification on the verification code;
after the check code passes the preliminary check, analyzing a set value data of a data area in the set value data message by taking the set value as the traversal number to obtain data information of the set value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
pressing the data information of the set value data which passes the two-time verification into a real-time value set value queue corresponding to the task level where the set value data is located;
after the pressing is finished, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data; and completing the real-time value setting of the DCS until the traversal times are used up or the data area in the setting data message is empty.
The method of the invention receives the setting value data message of the upper computer through the controller, analyzes the setting value information corresponding to the real-time value in the setting value data message according to a data arrangement mode and checks the setting value information, and only the subsequent setting operation is carried out through the check controller, otherwise, the setting value failure response message is returned upwards. The setting message sent by the upper computer can contain a plurality of setting data, the setting information related to the setting data is a POU page number, a data index value, a data type and a data value, the setting data can be placed at corresponding positions by the controller through the information after the setting information is checked, and the message size is reduced through a data arrangement mode, so that the network transmission rate is improved; meanwhile, in order to avoid that a plurality of clients simultaneously carry out value setting operation on a real-time value, the controller loads the set value data into a corresponding value setting queue instead of directly placing the set value data at a corresponding position in the POU file, so that the calculation process among POU pages is prevented from being disturbed by the fact that the plurality of clients carry out the same real-time value at the same time, the operational synchronism among the main and standby machines is improved, and the reliability and the stability of the system are improved.
In order to make the aforementioned, characteristic and advantages of the present invention more comprehensible, a detailed description of the steps of the present invention is provided below with reference to the accompanying drawings.
Examples
As shown in fig. 1, the present invention provides a DCS real-time value setting method, which comprises the following steps:
step a) the controller obtains a set value data message sent by an upper computer and analyzes a set value data message header;
the set value data message comprises a set value data message header and a data area. The set value data message header comprises a check code and a set value, wherein the check code and the set value are both numbers and are obtained by calculation of an upper computer. The checksum is a 32-bit integer value.
Analyzing the set value data message header, acquiring data information related to the set value in the set value data message header, wherein the data information related to the set value comprises a check code and a set value quantity value, and storing the set value quantity value after the check code is preliminarily checked.
The preliminary verification of the check code specifically includes:
comparing the check code in the set value data message header with a current check code stored in a controller:
if the results are different, setting all real-time values in the setting value response message with failure marks, and exiting after sending the setting value response message; the check code does not pass the preliminary check;
if the result is the same, the setting value corresponding to the check code is stored, the check code passes the preliminary check, and the next step is carried out.
The purpose of this step is because the set value data message header will show that the set value data message is from engineer station or operator station, different check codes will be used in different station controllers to compare with the check code in the set value data message, if the comparison result is different, all real-time value failure marks are set in the response message and returned to the upper computer, and then the set value process is exited.
Step b) after the preliminary check of the check code passes, analyzing the setting value data of the data area in the setting value data message by taking the setting value as the traversal times to obtain data information of the setting value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; and after the analysis is finished, checking the data information of the set value data for two times.
And traversing and analyzing the data area information in the set value data message to obtain a data result of each set value data according to the set value data value, and checking the data result of each set value data.
Analyzing a set value data of a data area in the set value data message to obtain data information of the set value data, specifically comprising:
starting from a set value data of a data area in the set value data message, setting an offset pointer at the initial position of data information of the set value data, and pointing to the data information to be analyzed in the set value data; analyzing the data information of the set value data, and after analyzing one item of data information related to the set value data, shifting a pointer backwards to shift the digit corresponding to the data information of the set value data until all the data information of the set value data is analyzed, and storing the data information corresponding to the set value data to the local.
Specifically, the data information for analyzing the set value data is sequentially analyzed according to the order of the POU page number, the data index value, the data type, and the data value.
After the analysis is completed, the data information of the set value data is checked twice, which specifically includes:
checking for the first time, screening the setting value data stored to the local, judging whether the POU page number of the setting value data is reasonable and judging whether the data index value is reasonable:
if the data area in the data area is not reasonable, setting a real-time value in the value setting response message with a failure mark, returning to the step of analyzing the value setting data of the data area in the value setting data message, and analyzing the next value setting data;
if the verification is reasonable, the next step is carried out through the first verification;
second checking, screening the set value data which is stored locally and passes the first checking, locating the set value data into an existing POU page object in a controller memory according to the POU page number and the data index value of the set value data, finding an original value of the set value data corresponding to the POU page object, checking whether the data type of the set value data is the same as the data type of the original value in the POU object:
if not, setting the real-time value in the value-setting response message with a failure mark, returning to the step of analyzing the value-setting data of the data area in the value-setting data message and analyzing the next value-setting data;
if the two verification methods are the same, the next step is carried out through the second verification.
The concrete description is as follows: for the data information of the set value data, a first check (POU page number limit check, data index value check) is performed, specifically, two results, pass/fail, are determined.
The passed data results are again checked for two results-pass/fail.
For example, the process of the verification is:
the data information which is stored to the local and is related to the set value data is checked for the first time, and the check content of the first check comprises:
judging whether the size of the POU page is reasonable according to the fact that the size of the POU page is larger than 0 and smaller than 1364;
judging whether the data index value is reasonable according to the fact that the data index value must be smaller than the maximum data quantity 3072;
in the checking process, if a certain checking content is unreasonable, the setting value data setting failure mark is set in the setting value response message, and the next setting value data in the setting value message is returned to be traversed and analyzed.
And c) pressing the data information of the set value data which passes the two-time verification into a real-time value queue corresponding to the task level where the set value data is located.
The data information of the set value data passing the two-time verification is pressed into a real-time value set value queue corresponding to the task level where the set value data is located, and the method specifically comprises the following steps:
pressing the data information of the set value data into a real-time value set value queue corresponding to the task level where the POU page number corresponding to the set value data is located; and judging whether the pressing-in of the real-time value queue is successful:
if the result is successful, the real-time value in the value setting response message is set as a success mark;
if not, the real-time value in the value-setting response message is set with a failure mark.
Step d), after the pressing is finished, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data; and completing the real-time value setting of the DCS until the traversal times are used up or the data area in the setting data message is empty.
Another object of the present invention is to provide a DCS real-time value setting system, as shown in fig. 2, comprising:
the acquisition module is used for acquiring the setting value data message and analyzing the header of the setting value data message to obtain a check code and a setting value; performing preliminary verification on the verification code;
the analysis module is used for analyzing the setting value data of the data area in the setting value data message by taking the setting value as the traversal times after the initial check of the check code is passed to obtain the data information of the setting value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
the pressing-in module is used for pressing the data information of the set value data which passes the two-time verification into a real-time value queue corresponding to the task level where the set value data is located;
the traversing module is used for returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data after the pressing is finished; and completing the real-time value setting of the DCS until the traversal times are used up or the data area in the setting data message is empty.
A third object of the present invention is to provide an electronic device, as shown in fig. 3, including a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the DCS real-time value setting method when executing the computer program.
In the figure, the communication interface is used for accessing an external device to acquire data.
The DCS real-time value setting method comprises the following steps:
acquiring a set value data message, and analyzing a set value data message header to obtain a check code and a set value; performing preliminary verification on the verification code;
after the check code passes the preliminary check, analyzing a set value data of a data area in the set value data message by taking the set value as the traversal number to obtain data information of the set value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
pressing the data information of the set value data which passes the two-time verification into a real-time value set value queue corresponding to the task level where the set value data is located;
after the pressing is finished, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data; and completing the real-time value setting of the DCS until the traversal times are used up or the data area in the setting data message is empty.
It is a fourth object of the present invention to provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the DCS real-time value setting method.
The DCS real-time value setting method comprises the following steps:
acquiring a set value data message, and analyzing a set value data message header to obtain a check code and a set value; performing preliminary verification on the verification code;
after the check code passes the preliminary check, analyzing a set value data of a data area in the set value data message by taking the set value as the traversal number to obtain data information of the set value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
pressing the data information of the set value data which passes the two-time verification into a real-time value set value queue corresponding to the task level where the set value data is located;
after the pressing is finished, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data; and completing the real-time value setting of the DCS until the traversal times are used up or the data area in the setting data message is empty.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.

Claims (7)

1. A DCS real-time value setting method is characterized by comprising the following steps:
acquiring a set value data message, and analyzing a set value data message header to obtain a check code and a set value; performing preliminary verification on the verification code;
after the check code passes the preliminary check, analyzing a set value data of a data area in the set value data message by taking the set value as the traversal number to obtain data information of the set value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
pressing the data information of the set value data which passes the two-time verification into a real-time value set value queue corresponding to the task level where the set value data is located;
after the pressing is finished, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data; completing the real-time value setting of the DCS until the traversal times are used up or the data area in the set value data message is empty;
analyzing a set value data of a data area in the set value data message to obtain data information of the set value data, specifically comprising:
starting from a set value data of a data area in the set value data message, setting an offset pointer at the initial position of data information of the set value data, and pointing to the data information to be analyzed in the set value data; analyzing the data information of the set value data, and after each item of data information of the set value data is analyzed, shifting a pointer backwards to shift the digit corresponding to the data information of the set value data until all the data information of the set value data is analyzed, and storing the data information corresponding to the set value data to the local;
after the analysis is completed, the data information of the set value data is checked twice, which specifically includes:
performing a first check, specifically, screening the set value data stored locally, and determining whether the size of the POU page number of the set value data is reasonable and whether the data index value is reasonable:
if the verification is reasonable, the first verification is passed;
performing a second check, specifically, screening the set value data stored locally and passing the first check, locating to an existing POU page object in a controller memory according to the POU page number and the data index value of the set value data, finding an original value of the set value data corresponding to the POU page object, and checking whether the data type of the set value data is the same as the data type of the original value in the POU page object:
if the two are the same, passing the second verification;
the data information of the set value data passing the two-time verification is pressed into a real-time value set value queue corresponding to the task level where the set value data is located, and the method specifically comprises the following steps:
pressing the data information of the set value data into a real-time value set value queue corresponding to the task level where the POU page number corresponding to the set value data is located; and judging whether the pressing-in of the real-time value queue is successful:
if the result is successful, the real-time value in the value setting response message is set as a success mark;
if not, the real-time value in the value-setting response message is set with a failure mark.
2. The DCS real-time value setting method of claim 1, wherein:
the preliminary verification of the check code specifically includes:
comparing the check code in the set value data message header with a current check code stored in a controller:
if the check codes are the same, the setting value values corresponding to the check codes are stored, and the check codes pass the preliminary check.
3. The DCS real-time value setting method of claim 2, wherein:
the comparing the check code in the set value data packet header with the current check code stored in the controller further comprises:
if the values are different, setting all real-time values in the setting value response message with failure marks, and exiting after sending the setting value response message; the check code does not pass the preliminary check.
4. The DCS real-time value setting method of claim 1, wherein:
and the data information for analyzing the set value data is analyzed sequentially according to the POU page number, the data index value, the data type and the data value.
5. The DCS real-time value setting method of claim 1, wherein:
the first verifying further comprises:
judging whether the POU page number of the set value data is reasonable or not and judging whether the data index value is reasonable or not, if so, setting a real-time value in a set value response message with a failure mark, returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data;
the second check-up further comprises:
and checking whether the data type of the set value data is the same as the data type of the original value in the POU page object, if not, setting the real-time set value in the set value response message as a failure mark, returning to the step of analyzing the set value data of the data area in the set value data message, and analyzing the next set value data.
6. A DCS real-time value setting system, comprising:
the acquisition module is used for acquiring the setting value data message and analyzing the header of the setting value data message to obtain a check code and a setting value; performing preliminary verification on the verification code;
the analysis module is used for analyzing the setting value data of the data area in the setting value data message by taking the setting value as the traversal times after the initial check of the check code is passed to obtain the data information of the setting value data, wherein the data information comprises a POU page number, a data index value, a data type and a data value; after the analysis is finished, the data information of the set value data is checked for two times;
the pressing-in module is used for pressing the data information of the set value data which passes the two-time verification into a real-time value queue corresponding to the task level where the set value data is located;
the traversing module is used for returning to the step of analyzing the set value data of the data area in the set value data message and analyzing the next set value data after the pressing is finished; completing the real-time value setting of the DCS until the traversal times are used up or the data area in the set value data message is empty;
analyzing a set value data of a data area in the set value data message to obtain data information of the set value data, specifically comprising:
starting from a set value data of a data area in the set value data message, setting an offset pointer at the initial position of data information of the set value data, and pointing to the data information to be analyzed in the set value data; analyzing the data information of the set value data, and after each item of data information of the set value data is analyzed, shifting a pointer backwards to shift the digit corresponding to the data information of the set value data until all the data information of the set value data is analyzed, and storing the data information corresponding to the set value data to the local;
after the analysis is completed, the data information of the set value data is checked twice, which specifically includes:
performing a first check, specifically, screening the set value data stored locally, and determining whether the size of the POU page number of the set value data is reasonable and whether the data index value is reasonable:
if the verification is reasonable, the first verification is passed;
performing a second check, specifically, screening the set value data stored locally and passing the first check, locating to an existing POU page object in a controller memory according to the POU page number and the data index value of the set value data, finding an original value of the set value data corresponding to the POU page object, and checking whether the data type of the set value data is the same as the data type of the original value in the POU page object:
if the two are the same, passing the second verification;
the data information of the set value data passing the two-time verification is pressed into a real-time value set value queue corresponding to the task level where the set value data is located, and the method specifically comprises the following steps:
pressing the data information of the set value data into a real-time value set value queue corresponding to the task level where the POU page number corresponding to the set value data is located; and judging whether the pressing-in of the real-time value queue is successful:
if the result is successful, the real-time value in the value setting response message is set as a success mark;
if not, the real-time value in the value-setting response message is set with a failure mark.
7. A computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the DCS real-time value setting method of any one of claims 1-5.
CN202111237372.2A 2021-10-25 2021-10-25 DCS real-time value setting method and system, equipment and storage medium Active CN113671924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111237372.2A CN113671924B (en) 2021-10-25 2021-10-25 DCS real-time value setting method and system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111237372.2A CN113671924B (en) 2021-10-25 2021-10-25 DCS real-time value setting method and system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113671924A CN113671924A (en) 2021-11-19
CN113671924B true CN113671924B (en) 2022-01-25

Family

ID=78550935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111237372.2A Active CN113671924B (en) 2021-10-25 2021-10-25 DCS real-time value setting method and system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113671924B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107992376A (en) * 2017-11-24 2018-05-04 西安微电子技术研究所 Dsp processor data storage Active Fault Tolerant method and apparatus
CN109450680A (en) * 2018-11-05 2019-03-08 南京国电南自维美德自动化有限公司 A kind of method and system for realizing DCS warning message filtering display and historical query

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7707387B2 (en) * 2005-06-01 2010-04-27 Microsoft Corporation Conditional execution via content addressable memory and parallel computing execution model
CA2599471A1 (en) * 2007-08-31 2009-02-28 Alexandre Cervinka Underground communication network system for personal tracking and hvac control
CN106383693B (en) * 2016-08-30 2018-07-24 武汉阿迪克电子股份有限公司 A kind of intelligent concentrator and using measurement point as the data processing method of label
CN112713964B (en) * 2020-12-22 2022-08-05 潍柴动力股份有限公司 Data verification acceleration method and device, computer equipment and storage medium
CN113064703B (en) * 2021-03-17 2022-09-30 西安热工研究院有限公司 Batch downloading configuration method oriented to multiple operation cycles
CN113189961B (en) * 2021-04-21 2022-09-02 西安热工研究院有限公司 Forced state searching processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107992376A (en) * 2017-11-24 2018-05-04 西安微电子技术研究所 Dsp processor data storage Active Fault Tolerant method and apparatus
CN109450680A (en) * 2018-11-05 2019-03-08 南京国电南自维美德自动化有限公司 A kind of method and system for realizing DCS warning message filtering display and historical query

Also Published As

Publication number Publication date
CN113671924A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN112000355B (en) Method and device for firmware upgrading and household appliance
US9122269B2 (en) Method and system for operating a machine from the field of automation engineering
CN113671924B (en) DCS real-time value setting method and system, equipment and storage medium
CN101986282A (en) Topological adaptation method and device
CN114285695A (en) Communication method, device, equipment, system and storage medium
CN105334756A (en) Agile satellite mission interpretation closed loop simulation verification system and method
CN112579452A (en) Software automation test method, device, equipment and storage medium
CN113778041B (en) Method, system, equipment and storage medium for generating communication data between DCS controllers
CN111176992A (en) Method and device for testing process engine, computer equipment and storage medium
CN105677331A (en) Task execution method and device
CN115840616A (en) Method and device for creating kinematic pair object and storage medium
US8554966B2 (en) Method for data exchange
CN106326310B (en) Resource encryption updating method for mobile phone client software
CN113721577B (en) Data interaction method and system, equipment and storage medium for multitask cycle
CN112422693A (en) User online short video draft queue exporting method
CN112055058A (en) Data storage method and device and computer readable storage medium
CN113985826B (en) Multi-operation-cycle-oriented real-time value loading method, system, equipment and storage medium
CN114840178B (en) Process file generation method, device and equipment based on digital simulation platform
CN112532750B (en) Big data push processing method and system and cloud platform
CN111538714B (en) Instruction execution method and device, electronic equipment and storage medium
CN114238055A (en) Task data processing method and device, electronic equipment and storage medium
JP3233687B2 (en) Communication control device
CN117893638A (en) Timing diagram generation method, device and equipment of fusion state machine and storage medium
CN115883020A (en) Communication adaptation method, communication adaptation apparatus, control device, and storage medium
CN115633006A (en) Method and device for solving data overrun of core service 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