CN113721577B - Data interaction method and system, equipment and storage medium for multitask cycle - Google Patents

Data interaction method and system, equipment and storage medium for multitask cycle Download PDF

Info

Publication number
CN113721577B
CN113721577B CN202111288800.4A CN202111288800A CN113721577B CN 113721577 B CN113721577 B CN 113721577B CN 202111288800 A CN202111288800 A CN 202111288800A CN 113721577 B CN113721577 B CN 113721577B
Authority
CN
China
Prior art keywords
controller
reference point
source
data
source end
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
CN202111288800.4A
Other languages
Chinese (zh)
Other versions
CN113721577A (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.)
China Huaneng Group Co Ltd
Xian Thermal Power Research Institute Co Ltd
Original Assignee
China Huaneng Group 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 China Huaneng Group Co Ltd, Xian Thermal Power Research Institute Co Ltd filed Critical China Huaneng Group Co Ltd
Priority to CN202111288800.4A priority Critical patent/CN113721577B/en
Publication of CN113721577A publication Critical patent/CN113721577A/en
Application granted granted Critical
Publication of CN113721577B publication Critical patent/CN113721577B/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/41845Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by system universality, reconfigurability, modularity
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33273DCS distributed, decentralised controlsystem, multiprocessor
    • 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 data interaction method, a system, equipment and a storage medium for a multitask cycle, which comprises the steps of obtaining basic information of a source end controller stored in a local controller; requesting the local controller from the source end controller to register the configured reference point data belonging to the source end controller and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point and updating the corresponding mark bit of the reference point; traversing the next source controller after the processing is finished; and loading the reference point in the corresponding inter-controller data interaction queue to a corresponding position in the algorithm page to participate in operation, and clearing the updated mark bit of the reference point after the operation is finished. The method can realize that the local controller efficiently requests the reference point data to other source-end controllers periodically according to the algorithm task period, so that the data displayed by the local controller is more reliable.

Description

Data interaction method and system, equipment and storage medium for multitask cycle
Technical Field
The invention belongs to the technical field of controller data processing, and particularly relates to a data interaction method and system for a multitask cycle, 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.
With the continuous improvement of the industrial automation control level, the calculation process of the logic configuration file in the distributed control system is complex, the requirement for data interaction among the process controllers is higher and higher, the logic of data interaction among a plurality of process controllers is not simple, the communication among the controllers is complex, the logic difficulty is high, the real-time performance is poor, and therefore when the logic configuration file is analyzed, how to update the reference points among the controllers in real time is a problem to be solved.
Disclosure of Invention
In order to solve the above problems, the present invention provides a data interaction method, system, device and storage medium for a multi-task cycle, which can implement that a local controller efficiently references point data to other source-side controllers periodically based on a task cycle of operation.
In order to achieve the purpose, the invention adopts the following technical scheme:
a data interaction method facing to a multitask cycle comprises the following steps:
acquiring basic information of a source end controller stored in a local controller;
requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information, and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
and loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in the algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is completed.
As a further improvement of the present invention, the acquiring the basic information of the source controller stored in the local controller specifically includes:
and entering a data interaction period among the controllers, traversing all other source-side controllers in the stored domain in the local controller, and acquiring the basic information of the source-side controllers stored in the local controller.
As a further improvement of the present invention, the basic information includes the number of reference points of the source controller, the IP address of the source controller, the network link state of the source controller, and a configuration change flag in the source controller; and judging the reference point number, the network link state and the configuration change mark of the source end controller.
As a further improvement of the present invention, the determining the reference point number, the network link state, and the configuration change flag of the source controller specifically includes:
if the number of the reference points of the source-side controller is 0, the local controller starts to traverse the next source-side controller;
if the network link states of the source-end controller are all bad, traversing the reference points belonging to the source-end controller in the inter-controller reference point queue stored in the local controller, acquiring the update marks of the reference points according to the algorithm page numbers of the reference points stored in the inter-controller reference point queue in the local controller and the data offsets of the reference points in the algorithm page data area, and judging the values:
if the updating mark of the reference point is 1 and the information of the reference point does not need to be updated, skipping the reference point and traversing the next reference point belonging to the source-end controller in the reference point queue between the controllers;
if the update mark of the reference point is 0, setting the quality of the reference point as bad in the interaction period, pressing the quality of the reference point into a data interaction queue between controllers corresponding to the algorithm task period, setting the update mark of the reference point as 1, and waiting for the algorithm task loading in the subsequent algorithm task period;
if the link state of the source end controller is good, requesting the source end controller to register the configured reference point belonging to the source end controller in the local controller;
if the configuration change mark of the source-side controller is 1, the configuration updating operation is carried out in the source-side controller, the local controller sends a request to the source-side controller again, the content of the request is data offset information of all reference points belonging to the source-side controller in the reference point queue between the controllers in the algorithm page data area in the source-side controller, after the data offset information is obtained, new data offset information is pressed into the data interaction queue between the controllers of the reference points in the algorithm task period corresponding to the local controller, and the updating mark of the reference points is set to 1.
As a further improvement of the present invention, the requesting, from the source controller, the local controller to register the configured reference point belonging to the source controller according to the basic information specifically includes:
pressing a current configuration check code of the source end controller stored in the local controller into a data request packet of the source end controller, and traversing reference points which belong to the source end controller and are stored in an inter-controller reference point queue of the local controller;
acquiring an updating mark of a reference point, the algorithm page number of the reference point in a source end controller and the data offset of the reference point in a data area of the algorithm page according to the algorithm page number of the reference point in a local controller and the data offset of the reference point in the data area of the algorithm page stored in a reference point queue between controllers;
when the update mark of the reference point is cleared to 0, the number of the source end controller to which the reference point belongs, the algorithm page number and the data offset of the data area in the algorithm page are pressed into a data request packet, and the next reference point belonging to the source end controller in the reference point queue among the controllers is traversed;
when the updating mark of the reference point is 1, the request is not needed in the interaction period, and the reference point is skipped to continue traversing the reference points belonging to the remote controllers in the inter-controller reference queue;
and after all the points belonging to the source end controller are traversed, sending a data request message to the source end controller according to the IP information of the source end controller stored in the local controller.
As a further improvement of the present invention, the analyzing the data response packet returned by the source controller specifically includes:
analyzing the state of the returned message, when the message state is that the configuration check codes are not matched, setting a configuration update mark 1 in the basic information of the source end controller stored in the local controller, then returning to wait for the next interaction period to re-request the data information of the reference point of the source end controller and starting traversing the next source end controller;
when the message state is normal, the local controller traverses the data value information of the reference point returned by the source controller, and when analyzing one reference point data value, the reference point data value is pressed into an inter-controller data interaction queue corresponding to the algorithm task period of the local controller where the reference point is located, waiting for the subsequent algorithm task to be loaded, and setting the updating mark of the reference point to be 1;
and after the data message returned by the source end controller is analyzed, traversing the next source end controller.
As a further improvement of the present invention, the clearing the updated flag bit of the reference point after the operation is completed specifically includes:
the local controller enters each algorithm task period according to time sequence, the reference point in the inter-controller data interaction queue corresponding to the algorithm task period is loaded to the corresponding position in the algorithm page in the algorithm task period to participate in algorithm operation, and after the operation is completed, the update mark of the reference point is cleared and is set to be 0.
A multitask cycle oriented data interaction system comprising:
the acquisition module is used for acquiring the basic information of the source terminal controller stored in the local controller;
the analysis module is used for requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
and the operation module is used for loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in the algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is finished.
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 multitask cycle oriented data interaction method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the multitask cycle oriented data interaction method.
The invention has the beneficial effects that:
the invention efficiently requests the reference point data based on the operation task period, in the data interaction period among the controllers, not every reference point in every source end controller needs to be requested, only when the referenced data exists in the source end controller or the update mark of the reference point in the algorithm task period of the local controller is cleared (representing that the requested data participates in the operation), the data request efficiency can be improved, the network load is reduced, and the reliability of the source end data is improved; the configuration updating condition in the source-side controller is detected in the data interaction period, and when the configuration in the source-side controller is updated, the local controller immediately requests new reference point data offset information and updates the data offset information of the reference point, so that the data requested by the local controller is more reliable.
Drawings
FIG. 1 is a flow chart of a data interaction method oriented to a multitask cycle according to the present invention;
FIG. 2 is a schematic diagram of a data interaction system oriented to a multitask cycle;
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.
As shown in fig. 1, the present invention provides a data interaction method oriented to a multitask cycle, which includes the following steps:
acquiring basic information of a source end controller stored in a local controller;
requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information, and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
and loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in the algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is completed.
The method can realize that the local controller efficiently quotes point data to other source-end controllers periodically according to the algorithm task period. And efficiently requesting the data of the reference point according to the algorithm task period, wherein in the data interaction period, not every reference point in each source end controller needs to request, and only when the referenced data exists in the source end controller or the update mark of the reference point in the algorithm task period of the local controller is updated, the request message is sent to the source end controller. And meanwhile, the configuration updating condition in the source-end controller is detected in the data interaction period, and when the configuration in the source-end controller is updated, the local controller immediately requests new reference point data offset information and updates new data, so that the data displayed by the local controller is more reliable.
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 data interaction method oriented to a multitask cycle, which includes the following steps:
s1, entering a data interaction period among the controllers, traversing all other source-side controllers i in the stored domain in the local controller, and acquiring the basic information of the source-side controller i stored in the local controller;
the acquisition process specifically comprises the following steps: the basic information includes the reference point number of the source controller i referenced by the local controller, the IP address of the source controller i, the network link state of the source controller i, and the configuration change flag cfgFlag in the source controller i, and the reference point number of the source controller i, the network link state, and the configuration change flag cfgFlag are judged.
Further, the step of judging the reference point number of the referenced source controller i, the network link state and the configuration change flag cfgFlag specifically includes:
if the number of the referenced points of the source-side controller i is 0, the local controller starts to traverse the next source-side controller, i = i + 1;
if the network link states of the source-side controller i are all bad, traversing the reference points belonging to the source-side controller i in the inter-controller reference point queue stored in the local controller, acquiring an update flag updataFlag of the reference points according to the algorithm page numbers of the reference points stored in the inter-controller reference point queue in the local controller and the data offset of the reference points in the algorithm page data area, and judging the value:
if the update mark updataFlag = 1 of the reference point proves that the information of the reference point does not need to be updated, skipping the reference point and traversing the next reference point belonging to the source-side controller i in the inter-controller reference point queue;
if the update mark updateFlag of the reference point = 0, in the interaction period, setting the quality of the reference point to be bad, then pressing the quality of the reference point into the inter-controller data interaction queue corresponding to the algorithm task period in which the reference point is located, setting the update mark updateFlag to be 1, and waiting for the algorithm task loading in the subsequent algorithm task period;
and if the link state of the source terminal controller i is good, performing the subsequent steps.
If the configuration change flag cfgFlag = 1 of the source-side controller i proves that the configuration updating operation is performed in the source-side controller i, the local controller needs to request the data offset information of the algorithm page data area of all the reference points belonging to the source-side controller i in the inter-controller reference point queue from the source-side controller i again, after the data offset information of all the reference points belonging to the source-side controller i is obtained, the new data offset information is pressed into the inter-controller data interaction queue of the reference points in the algorithm task period corresponding to the local controller, the update flag updateFlag is set to 1, and the algorithm task loading in the subsequent algorithm task period is waited.
S2, according to the traversed basic information of the source end controller, the local controller requests the source end controller i to register the configured reference point data belonging to the source end controller i in the local controller and analyzes the data response message returned by the source end controller, after the analysis is completed, the basic information of the reference point and the analysis result are stored in the data interaction queue between the controllers corresponding to the algorithm task period where the reference point is located, the corresponding mark bit of the reference point is updated, and after the processing is completed, the local controller traverses the next source end controller, namely i = i + 1.
As a preferred embodiment, requesting the data value of the reference point from the source-side controller i specifically includes:
pressing a current configuration check code of the source end controller i stored in a local controller into a data request packet of the source end controller i, and traversing reference points which are stored in an inter-controller reference point queue of the local controller and belong to the source end controller i;
according to the algorithm page number of the reference point in the local controller and the data offset of the reference point in the algorithm page data area, which are stored in the reference point queue between the controllers, obtaining an update mark updataFlag of the reference point, the algorithm page number of the reference point in the source end controller and the data offset of the reference point in the data area of the algorithm page, when the update mark updateFlag of the reference point is cleared 0, pressing the number of the source end controller i to which the reference point belongs, the algorithm page number of the reference point in the source end controller and the data offset of the reference point in the data area of the algorithm page into a data request packet, and traversing the next reference point in the reference point queue between the controllers;
when the update flag updateFlag of the point is 1, proving that the reference point belonging to the source-side controller i does not need to be requested in the interaction period, skipping the reference point and continuously traversing the reference point belonging to the remote controller i in the inter-controller reference queue;
and after all the points belonging to the source end controller i are traversed, sending a data request message to the source end controller according to the IP information of the source end controller i stored in the local controller.
The method specifically comprises the following steps of analyzing a data message returned by a source controller i:
analyzing the state of the returned message, setting a configuration updating mark cfgFlag in basic information of a source end controller i stored in a local controller to be 1 when the message state is that the configuration check codes are not matched, then returning to wait for the next interaction period to re-request data information of a reference point of the source end controller i and starting traversing the next source end controller;
when the message state is normal, the local controller traverses the data value information of the reference point returned by the source controller i, and when analyzing one reference point data value, the reference point data value is pressed into the data interaction queue between the controllers corresponding to the algorithm task period of the local controller where the reference point is located, the subsequent algorithm task is waited to be loaded, and the update mark updateFlag of the reference point is set to be 1.
After the data message returned by the source end controller i is analyzed, traversing the next source end controller;
s3, the local controller enters an algorithm task period according to time sequence, loads the data value of the reference point in the inter-controller data interaction queue corresponding to the algorithm task period to the corresponding position in the algorithm page in the algorithm task period, participates in the algorithm operation, and clears the update mark of the reference point after the operation is completed.
As a preferred embodiment, the calculation and the reference point list marking registered in the inter-controller reference point queue specifically include:
the local controller enters each algorithm task period according to time sequence, the reference point in the inter-controller data interaction queue corresponding to the algorithm task period is loaded to the corresponding position in the algorithm page in the algorithm task period to participate in algorithm operation, and the update mark of the reference point is cleared after the operation is finished, namely, when a certain reference point finishes the operation, the updateFlag of the reference point is set to 0.
Preferably, the data interaction period between the controllers is 50 ms; the numbers i of other controllers in the traversal domain satisfy that i is more than or equal to 0 and less than or equal to 80.
As shown in fig. 2, another objective of the present invention is to provide a multitask cycle oriented data interaction system, which includes:
the acquisition module is used for acquiring the basic information of the source terminal controller stored in the local controller;
the analysis module is used for requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
and the operation module is used for loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in the algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is finished.
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 data interaction method for multitask cycle.
In the figure, the communication interface is used for accessing an external device to acquire data.
The data interaction method facing the multitask cycle comprises the following steps:
acquiring basic information of a source end controller stored in a local controller;
requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information, and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
and loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in the algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is completed.
A fourth object of the present invention is to provide a computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the steps of the multitask cycle oriented data interaction method.
The data interaction method facing the multitask cycle comprises the following steps:
acquiring basic information of a source end controller stored in a local controller;
requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information, and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
and loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in the algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is completed.
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 (8)

1. A data interaction method facing to a multitask cycle is characterized by comprising the following steps:
acquiring basic information of a source end controller stored in a local controller;
requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information, and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in an algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is completed;
the basic information comprises the number of reference points of the source end controller, the IP address of the source end controller, the network link state of the source end controller and a configuration change mark in the source end controller; judging the reference point number, the network link state and the configuration change mark of the source end controller;
the judging the reference point number, the network link state and the configuration change mark of the source end controller specifically comprises the following steps:
if the number of the reference points of the source-side controller is 0, the local controller starts to traverse the next source-side controller;
if the network link states of the source-end controller are all bad, traversing the reference points belonging to the source-end controller in the inter-controller reference point queue stored in the local controller, acquiring the update marks of the reference points according to the algorithm page numbers of the reference points stored in the inter-controller reference point queue in the local controller and the data offsets of the reference points in the algorithm page data area, and judging the values:
if the updating mark of the reference point is 1 and the information of the reference point does not need to be updated, skipping the reference point and traversing the next reference point belonging to the source-end controller in the reference point queue between the controllers;
if the update mark of the reference point is 0, setting the quality of the reference point as bad in the interaction period, pressing the quality of the reference point into a data interaction queue between controllers corresponding to the algorithm task period, setting the update mark of the reference point as 1, and waiting for the algorithm task loading in the subsequent algorithm task period;
if the link state of the source end controller is good, requesting the source end controller to register the configured reference point belonging to the source end controller in the local controller;
if the configuration change mark of the source-side controller is 1, the configuration updating operation is carried out in the source-side controller, the local controller sends a request to the source-side controller again, the content of the request is data offset information of all reference points belonging to the source-side controller in the reference point queue between the controllers in the algorithm page data area in the source-side controller, after the data offset information is obtained, new data offset information is pressed into the data interaction queue between the controllers of the reference points in the algorithm task period corresponding to the local controller, and the updating mark of the reference points is set to 1.
2. The multitask cycle oriented data interaction method of claim 1, wherein:
the acquiring of the basic information of the source controller stored in the local controller specifically includes:
and entering a data interaction period among the controllers, traversing all other source-side controllers in the stored domain in the local controller, and acquiring the basic information of the source-side controllers stored in the local controller.
3. The multitask cycle oriented data interaction method of claim 1, wherein:
the requesting, from the source controller, the local controller for the reference point belonging to the source controller, which is registered and configured in the local controller according to the basic information specifically includes:
pressing a current configuration check code of the source end controller stored in the local controller into a data request packet of the source end controller, and traversing reference points which belong to the source end controller and are stored in an inter-controller reference point queue of the local controller;
acquiring an updating mark of a reference point, the algorithm page number of the reference point in a source end controller and the data offset of the reference point in a data area of the algorithm page according to the algorithm page number of the reference point in a local controller and the data offset of the reference point in the data area of the algorithm page stored in a reference point queue between controllers;
when the update mark of the reference point is cleared to 0, the number of the source end controller to which the reference point belongs, the algorithm page number and the data offset of the data area in the algorithm page are pressed into a data request packet, and the next reference point belonging to the source end controller in the reference point queue among the controllers is traversed;
when the updating mark of the reference point is 1, the request is not needed in the interaction period, and the reference point is skipped to continue traversing the reference points belonging to the remote controllers in the inter-controller reference queue;
and after all the points belonging to the source end controller are traversed, sending a data request message to the source end controller according to the IP information of the source end controller stored in the local controller.
4. The multitask cycle oriented data interaction method of claim 1, wherein:
the analyzing the data response packet returned by the source controller specifically includes:
analyzing the state of the returned message, when the message state is that the configuration check codes are not matched, setting a configuration update mark 1 in the basic information of the source end controller stored in the local controller, then returning to wait for the next interaction period to re-request the data information of the reference point of the source end controller and starting traversing the next source end controller;
when the message state is normal, the local controller traverses the data value information of the reference point returned by the source controller, and when analyzing one reference point data value, the reference point data value is pressed into an inter-controller data interaction queue corresponding to the algorithm task period of the local controller where the reference point is located, waiting for the subsequent algorithm task to be loaded, and setting the updating mark of the reference point to be 1;
and after the data message returned by the source end controller is analyzed, traversing the next source end controller.
5. The multitask cycle oriented data interaction method of claim 1, wherein:
clearing the updated mark bit of the reference point after the operation is completed, specifically:
the local controller enters each algorithm task period according to time sequence, the reference point in the inter-controller data interaction queue corresponding to the algorithm task period is loaded to the corresponding position in the algorithm page in the algorithm task period to participate in algorithm operation, and after the operation is completed, the update mark of the reference point is cleared and is set to be 0.
6. A multitask cycle oriented data interaction system comprising:
the acquisition module is used for acquiring the basic information of the source terminal controller stored in the local controller;
the analysis module is used for requesting a local controller to register the configured reference points belonging to the source end controller according to the basic information and analyzing a data response message returned by the source end controller; after the analysis is finished, storing the data information of the reference point and the analysis result into the inter-controller data interaction queue corresponding to the reference point, and updating the corresponding mark bit of the reference point;
the operation module is used for loading the reference points in the corresponding inter-controller data interaction queues to corresponding positions in the algorithm page to participate in operation, and clearing the updated mark bits of the reference points after the operation is finished;
the basic information comprises the number of reference points of the source end controller, the IP address of the source end controller, the network link state of the source end controller and a configuration change mark in the source end controller; judging the reference point number, the network link state and the configuration change mark of the source end controller;
the judging the reference point number, the network link state and the configuration change mark of the source end controller specifically comprises the following steps:
if the number of the reference points of the source-side controller is 0, the local controller starts to traverse the next source-side controller;
if the network link states of the source-end controller are all bad, traversing the reference points belonging to the source-end controller in the inter-controller reference point queue stored in the local controller, acquiring the update marks of the reference points according to the algorithm page numbers of the reference points stored in the inter-controller reference point queue in the local controller and the data offsets of the reference points in the algorithm page data area, and judging the values:
if the updating mark of the reference point is 1 and the information of the reference point does not need to be updated, skipping the reference point and traversing the next reference point belonging to the source-end controller in the reference point queue between the controllers;
if the update mark of the reference point is 0, setting the quality of the reference point as bad in the interaction period, pressing the quality of the reference point into a data interaction queue between controllers corresponding to the algorithm task period, setting the update mark of the reference point as 1, and waiting for the algorithm task loading in the subsequent algorithm task period;
if the link state of the source end controller is good, requesting the source end controller to register the configured reference point belonging to the source end controller in the local controller;
if the configuration change mark of the source-side controller is 1, the configuration updating operation is carried out in the source-side controller, the local controller sends a request to the source-side controller again, the content of the request is data offset information of all reference points belonging to the source-side controller in the reference point queue between the controllers in the algorithm page data area in the source-side controller, after the data offset information is obtained, new data offset information is pressed into the data interaction queue between the controllers of the reference points in the algorithm task period corresponding to the local controller, and the updating mark of the reference points is set to 1.
7. 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 multitask cycle oriented data interaction method according to any of claims 1-6 when executing the computer program.
8. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the multitask cycle oriented data interaction method according to any one of the claims 1-6.
CN202111288800.4A 2021-11-02 2021-11-02 Data interaction method and system, equipment and storage medium for multitask cycle Active CN113721577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111288800.4A CN113721577B (en) 2021-11-02 2021-11-02 Data interaction method and system, equipment and storage medium for multitask cycle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111288800.4A CN113721577B (en) 2021-11-02 2021-11-02 Data interaction method and system, equipment and storage medium for multitask cycle

Publications (2)

Publication Number Publication Date
CN113721577A CN113721577A (en) 2021-11-30
CN113721577B true CN113721577B (en) 2022-02-11

Family

ID=78686469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111288800.4A Active CN113721577B (en) 2021-11-02 2021-11-02 Data interaction method and system, equipment and storage medium for multitask cycle

Country Status (1)

Country Link
CN (1) CN113721577B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308213A (en) * 2017-07-27 2019-02-05 南京南瑞继保电气有限公司 Based on the multitask breakpoint debugging method for improving Task Scheduling Mechanism
CN113468303A (en) * 2021-06-25 2021-10-01 北京房江湖科技有限公司 Dialogue interaction processing method and computer-readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE516678T1 (en) * 2004-03-26 2011-07-15 Ericsson Telefon Ab L M METHOD AND DEVICE FOR SENDING A MESSAGE TO A MOBILE STATION BY ADDRESSING THE HARDWARE PART
CN104865904B (en) * 2014-02-20 2017-08-04 南京南瑞继保电气有限公司 A kind of unperturbed configuration method towards multicycle processor active task
CN108733476B (en) * 2017-04-20 2021-04-30 北京京东尚科信息技术有限公司 Method and device for executing multiple tasks
CN108965054B (en) * 2018-07-12 2019-12-10 南瑞集团有限公司 Method for quickly interacting data between client and server
CN111385292B (en) * 2020-03-04 2022-08-16 西安旌旗电子股份有限公司 Descriptor-based protocol message and data interaction method and system
CN111478900A (en) * 2020-04-07 2020-07-31 中国民航信息网络股份有限公司 Data processing method and system
CN112398714B (en) * 2020-10-22 2022-06-14 北京和利时系统工程有限公司 Backboard bus master station, system and data communication method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308213A (en) * 2017-07-27 2019-02-05 南京南瑞继保电气有限公司 Based on the multitask breakpoint debugging method for improving Task Scheduling Mechanism
CN113468303A (en) * 2021-06-25 2021-10-01 北京房江湖科技有限公司 Dialogue interaction processing method and computer-readable storage medium

Also Published As

Publication number Publication date
CN113721577A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN109144696B (en) Task scheduling method and device, electronic equipment and storage medium
US11188380B2 (en) Method and apparatus for processing task in smart device
CN110908788B (en) Spark Streaming based data processing method and device, computer equipment and storage medium
US8301935B2 (en) Distributed batch runner
CN110445828B (en) Data distributed processing method based on Redis and related equipment thereof
CN112968815B (en) Method for realizing continuous transmission in broken network
CN114610499A (en) Task scheduling method and device, computer readable storage medium and electronic equipment
CN113703413A (en) Data interaction method, system, equipment and storage medium based on secondary index
CN113721577B (en) Data interaction method and system, equipment and storage medium for multitask cycle
US20150185723A1 (en) Facility controlling system and history recording method
CN105306182A (en) Data request processing method and system
CN114201458B (en) Information updating method, micro-service system and computer readable storage medium
CN107800780B (en) Data service method, device, storage medium and computer equipment
CN113778041B (en) Method, system, equipment and storage medium for generating communication data between DCS controllers
CN109379212B (en) Nginx route configuration information updating method and system, readable storage medium and terminal
JP2002073354A (en) Task control device and task contol method
CN109814904B (en) HMI configuration synchronization system and method
CN112434044A (en) Industrial internet platform monitoring data transmission and exchange method and system
CN106598721B (en) Media asset data streaming method and device
CN101945045B (en) Method for updating status information of data stream, system and equipment thereof
CN116567095B (en) Cloud computing distributed scheduling third party service grid system and method
CN113411336B (en) Firewall strategy position optimization method, system, terminal and storage medium
CN113671924A (en) DCS real-time value setting method and system, equipment and storage medium
CN105264944B (en) Statistical information report method and device
CN114237180B (en) Industrial control system attack detection method and device

Legal Events

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