CN117009187B - CID file incremental compiling method, system and equipment for upper computer monitoring system - Google Patents

CID file incremental compiling method, system and equipment for upper computer monitoring system Download PDF

Info

Publication number
CN117009187B
CN117009187B CN202311261142.9A CN202311261142A CN117009187B CN 117009187 B CN117009187 B CN 117009187B CN 202311261142 A CN202311261142 A CN 202311261142A CN 117009187 B CN117009187 B CN 117009187B
Authority
CN
China
Prior art keywords
measuring point
product
current
generating
function block
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
CN202311261142.9A
Other languages
Chinese (zh)
Other versions
CN117009187A (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.)
Xian Thermal Power Research Institute Co Ltd
Original Assignee
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 Xian Thermal Power Research Institute Co Ltd filed Critical Xian Thermal Power Research Institute Co Ltd
Priority to CN202311261142.9A priority Critical patent/CN117009187B/en
Publication of CN117009187A publication Critical patent/CN117009187A/en
Application granted granted Critical
Publication of CN117009187B publication Critical patent/CN117009187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention belongs to the field of upper computer monitoring systems, and provides a CID file incremental compiling method, system and equipment for an upper computer monitoring system, comprising the following steps: s1, acquiring a measuring point product information list under an LCU device; s2, traversing all the measuring point products in the measuring point product information list, and deleting the current measuring point product of the measuring point product information list if the current measuring point product exists in the virtual measuring point list; the virtual measuring point table is obtained by inserting a measuring point product selected in advance on the interface configuration of the upper computer monitoring system into a virtual measuring point table established in advance; s3, selecting a measuring point product from the measuring point product information list, inserting the measuring point product into the virtual measuring point list, and distributing a fixed index value according to the rule of increasing the index; deleting the selected measuring point product from the measuring point product information list; s4, compiling the measuring point products in the virtual measuring point table to generate CID files. The invention solves the problems of association failure and frequent updating of the background database of the upper computer monitoring system caused by the addition and deletion of the measuring points.

Description

CID file incremental compiling method, system and equipment for upper computer monitoring system
Technical Field
The invention belongs to the field of upper computer monitoring systems, and particularly relates to a CID file incremental compiling method, system and equipment for an upper computer monitoring system.
Background
In order to realize the communication between the upper computer monitoring system and the Local Control Unit (LCU), the equipment configuration information of different manufacturers is conveniently obtained, the configuration flow of equipment communication is simplified, the difficulty of system maintenance and upgrading is reduced, the compatibility with other equipment and the expandability of the upper computer monitoring system are improved, and the design of the upper computer monitoring system strictly conforms to the IEC61850 protocol. And regarding the LCU as an intelligent electronic device, and associating the interface configuration in the upper computer monitoring system with the measuring point in the LCU device through the measuring point number (namely, a short address). In the prior art, when a new measurement point is added or deleted (for example, a measurement point in the middle of a measurement point list is deleted or a measurement point is inserted into a middle position) in a logic configuration of an LCU device, a corresponding IEC61850 ICD file (intelligent electronic device capability description file) also changes, so that a CID (configured IED description, IED instance configuration) file generated by compiling the corresponding IEC61850 ICD file also changes, the interface configuration of an upper computer monitoring system is associated with the measurement point in the LCU device through the CID file, the CID file changes, so that the measurement point of the upper computer monitoring system interface configuration associated with the LCU device fails, data cannot be received, and a background database of the upper computer monitoring system needs to be frequently updated in order to enable the measurement point of the upper computer monitoring system interface configuration associated with the LCU device to be successful, thereby achieving the consistency of an upper computer model and a lower computer model.
Disclosure of Invention
Aiming at the problem that when the upper computer monitoring system adopts IEC61850 protocol to realize the communication between the interface configuration of the upper computer monitoring system and the LCU device, the change of the measuring points in the LCU device causes the association failure of the interface configuration of the upper computer monitoring system and the measuring points in the LCU device, the invention provides the CID file incremental compiling method, system and equipment of the upper computer monitoring system, solves the problems of association failure caused by the addition and deletion of the measuring points and frequent updating of the background database of the upper computer monitoring system, and realizes the conciseness and standardization of the upper computer monitoring system in the aspects of architecture, communication, connection and the like.
The invention is realized by the following technical scheme:
the CID file incremental compiling method of the upper computer monitoring system comprises the following steps:
s1, acquiring a measuring point product information list under an LCU device;
s2, traversing all the measuring point products in the measuring point product information list, deleting the current measuring point product of the measuring point product information list if the current measuring point product exists in the virtual measuring point list, and carrying out S3 after traversing is completed; the virtual measuring point table is obtained by inserting measuring point products selected in advance on the interface configuration of the upper computer monitoring system into a virtual measuring point table which is established in advance;
s3, selecting a measuring point product from the measuring point product information list, inserting the selected measuring point product into the virtual measuring point table, and distributing a fixed index value for the measuring point product inserted into the virtual measuring point table according to the rule of increasing the index; deleting the selected measuring point product from the measuring point product information list;
s4, compiling the measuring point products in the virtual measuring point table obtained in the S3 to generate CID files of the upper computer monitoring system.
Preferably, in S1, the obtaining a measurement point product information list under the LCU device specifically includes:
reading all measuring point data in the logic configuration of the LCU device, wherein the measuring point data comprises input and output variables, global variables and logic configuration pages;
generating a measuring point product by using the input and output variables, generating a measuring point product by using the global variables, and generating a measuring point product by using the logic configuration page;
and storing all the generated measuring point products as a measuring point product information list.
Further, the generating the measurement point product by the logic configuration page specifically includes:
and traversing all the logic configuration pages, and sequencing all the functional blocks in the current logic configuration page to generate a logic configuration page product corresponding to the current logic configuration page, wherein the logic configuration page product is a measuring point product.
Further, the sorting all the function blocks in the current logical configuration page to generate a logical configuration page product corresponding to the current logical configuration page specifically includes:
s1.1.1, traversing all connecting lines in a current logic configuration page, searching an initial function block instance name of the current connecting line, searching a corresponding function block in the current logic configuration page according to the searched initial function block instance name, setting the function block as the initial function block of the current connecting line if the corresponding function block is found, and prompting error reporting information of 'the current connecting line has no initial function block' if the corresponding function block is not found; searching a termination function block instance name of the current connecting line, searching a corresponding function block in the current logic configuration page according to the searched termination function block instance name, setting the searched function block as a termination function block of the current connecting line if the corresponding function block is found, and prompting error reporting information of 'the current connecting line has no termination function block' if the corresponding function block is not found; executing S1.1.2 after all connecting line traversal is completed;
s1.1.2 the functional blocks in the current logical configuration page are ordered according to the order of the functional blocks on the interface configuration of the upper computer monitoring system, and the principle of ordering is as follows: from top to bottom, from left to right; executing S1.1.3 after the sorting is completed;
s1.1.3 traverses all the functional blocks in the current logical configuration page to generate a temporary functional block list, and the generation principle is that: arranging the function blocks without input connection in front of a temporary function block list, and arranging the function blocks with input connection in back of the temporary function block list; executing S1.1.4 after all the functional blocks are traversed;
s1.1.4 the temporary function block list generated in S1.1.3 is traversed, and the output node connecting lines of the current function block are ordered according to the following principle: sorting the output node connecting wires according to the position of the termination functional block of the output node connecting wires and the principle from top to bottom and from left to right; and after the temporary function block list is traversed, obtaining a logical configuration page product corresponding to the current logical configuration page.
Further, the generating the global variable into the measurement point product specifically includes:
s1.2.1, acquiring all functional blocks which refer to global variables, wherein the method comprises the following steps: traversing all the functional blocks in the logical configuration page, and considering that the current functional block refers to a global variable if the Tag attribute of the functional block is not null and the POU number to which the functional block belongs is not zero;
s1.2.2 traversing all global variables, and generating a corresponding global variable product according to the type of the current global variable, wherein the method specifically comprises the following steps:
s1.2.2.1 if the global variable is a switching value, generating a global variable switching value input product;
s1.2.2.2 if the global variable is a switching value and the global variable is referenced by a function block, or the global variable is of a manually operable type, generating a global variable switching value output product;
s1.2.2.3 if the global variable is analog, generating a global variable analog input product;
s1.2.2.4 if the global variable is analog and the global variable is referenced by a function block, or the global variable is of a manually operable type, generating a global variable analog output product;
s1.2.2.5 if the global variable is integer, a global variable integer input product is generated.
Further, the generating the measurement point product by the input and output variables specifically includes:
according to the input and output variables, traversing all boards under the LCU device according to the nesting sequence of the LCU device, the nodes, the branches and the boards, generating a measuring point product from the input variables corresponding to the input channels in the boards, and generating the measuring point product from the output variables corresponding to the output channels in the boards.
Further, according to the input and output variables, according to the nesting order of the LCU device, the node, the branch and the board card, traversing all the board cards under the LCU device, generating a measurement point product from the input variables corresponding to the input channels in the board card, and generating a measurement point product from the output variables corresponding to the output channels in the board card, specifically including:
assuming that the number of nodes under the LCU device is N, the number of branches under the nodes is M, the number of boards under the branches is K, traversing all boards under the LCU device according to the following flow, generating a measuring point product by using input variables corresponding to input channels in the boards, and generating the measuring point product by using output variables corresponding to output channels in the boards:
s1.3.1 accessing the node i, if i is less than or equal to N, acquiring the branch number M under the node i, executing S1.3.2, otherwise, ending the flow of traversing all the boards under the LCU device;
s1.3.2 accesses branch j, if j is less than or equal to M, then obtaining the number K of boards under branch j, executing S1.3.3, otherwise, letting i=i+1, and returning to executing S1.3.1;
s1.3.3 accesses the board K, if K > K, then let j=j+1, return execution S1.3.2, otherwise execute S1.3.4;
s1.3.4 traversing all parameter channels of the board k, if the parameter name of the current parameter channel is SOE, generating SOE products aiming at the KKS code non-empty channel of the board k, and executing S1.3.5 after traversing all parameter channels of the board k;
s1.3.5 if SOE product is not generated in S1.3.4, traversing all input channels and output channels of the board card k, generating an input channel product according to input variables corresponding to the input channels, and generating an output channel product according to output variables corresponding to the output channels; execution S1.3.6;
s1.3.6 let k=k+1, return execution S1.3.3.
Preferably, S3 specifically includes: displaying the measuring point products in the virtual measuring point table in a first interface window of a KKS code picking interface, displaying the measuring point products in the measuring point product information list in a second interface window of the KKS code picking interface, selecting the measuring point products from the second interface window, moving the selected measuring point products to the first interface window through a selecting button, and distributing fixed index values for the measuring point products moved to the first interface window according to an index increasing rule.
The CID file incremental compiling system of the upper computer monitoring system comprises:
the information acquisition module is used for acquiring a measuring point product information list under the LCU device;
the duplicate removal module is used for traversing all the measuring point products in the measuring point product information list, and deleting the current measuring point product of the measuring point product information list if the current measuring point product exists in the virtual measuring point list; the virtual measuring point table is obtained by inserting measuring point products selected in advance on the interface configuration of the upper computer monitoring system into a virtual measuring point table which is established in advance;
the point picking module is used for picking the measuring point products from the measuring point product information list obtained by the weight removing module, inserting the picked measuring point products into the virtual measuring point table, and distributing fixed index values for the measuring point products inserted into the virtual measuring point table according to the rule of increasing indexes; deleting the selected measuring point product from the measuring point product information list;
and the compiling module is used for compiling the measuring point products in the virtual measuring point table obtained by the point picking module to generate CID files of the upper computer monitoring system.
The computer equipment comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the incremental compiling method of the CID file of the upper computer monitoring system when executing the computer program.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a CID file incremental separation compiling technology, which inserts the existing measuring point products in a measuring point product information list under an LCU device into a virtual measuring point table in a manual selection mode, distributes fixed index values for the measuring points after the measuring points are inserted into the virtual measuring point table, adds new measuring point products into the virtual measuring point table according to the rule of increasing the index, and deletes the measuring point products added into the virtual measuring point table from the measuring point product information list under the LCU device. When the ICD file is generated, the CID file is generated by taking the measurement point products in the virtual measurement point table as the reference, and the method realizes the separation of the compiling flow of the measurement point library of the interface configuration of the upper computer monitoring system and the compiling generation flow of the CID file. Because the measuring point products in the virtual measuring point table have fixed index values, if a user deletes or adds the measuring point products in the virtual measuring point table, short addresses (namely numbers) of other measuring point products are not affected, so that the generated CID file is not changed, the problem that the measuring points of the LCU device are invalid due to interface configuration of the upper computer monitoring system is not caused, the problem that the background database of the upper computer monitoring system is frequently updated due to adding and deleting the measuring points is effectively avoided, and the configuration efficiency and the stability of the upper computer monitoring system are improved. Based on IEC61850 protocol, the system is effectively ensured to have good compatibility, meanwhile, the conversion cost of equipment data among different protocols is avoided, and the equipment data integration and maintenance cost is greatly reduced.
Drawings
FIG. 1 is a flow chart of the CID file incremental compiling method of the upper computer monitoring system of the invention.
Detailed Description
For a further understanding of the present invention, the present invention is described below in conjunction with the following examples, which are provided to further illustrate the features and advantages of the present invention and are not intended to limit the claims of the present invention.
Referring to fig. 1, the incremental compiling method of CID files of the monitoring system of the present invention includes:
s1, acquiring a measuring point product information list under an LCU device;
s2, traversing all the measuring point products in the measuring point product information list, deleting the current measuring point product of the measuring point product information list if the current measuring point product exists in the virtual measuring point list, and carrying out S3 after traversing is completed; the virtual measuring point table is obtained by inserting measuring point products selected in advance on the interface configuration of the upper computer monitoring system into a virtual measuring point table which is established in advance;
s3, selecting a measuring point product from the measuring point product information list, inserting the selected measuring point product into the virtual measuring point table, and distributing a fixed index value for the measuring point product inserted into the virtual measuring point table according to the rule of increasing the index; deleting the selected measuring point product from the measuring point product information list;
s4, compiling the measuring point products in the virtual measuring point table obtained in the S3 to generate CID files of the upper computer monitoring system.
The invention relates to a CID file incremental compiling method of an upper computer monitoring system, which specifically comprises the following steps of the following detailed description.
Step 1, reading all measurement point data in the logic configuration of a current LCU device, wherein the measurement point data comprises an input variable, an output variable, a global variable and a logic configuration page, and the input variable comprises the input variable and the output variable; splitting each read variable according to the attribute, storing a single attribute as an IEC_DATA, and storing all IEC_DATA of a certain scale variable as a program organization unit (Program Organization Unit, hereinafter referred to as POU) to obtain the POU of the input and output variable, the global variable and the logic configuration page respectively. The content of the single attribute includes: attribute name, attribute value type. Specific: if the variables are IO measuring points, the variables possibly comprise input variables, output variables and parameter variables, and the variables are converted into IEC_DATA in the compiling process, and finally the POU of the input and output variables is formed; if the variable is a global variable, the variable may include four types of variables including switching value, analog value, integer value and structural variable, and these variables are converted into IEC_DATA in the compiling process, and finally form the POU of the global variable. If the logical configuration page is a logical configuration page, the variables include input variables, output variables and parameter variables, and the variables are converted into IEC_DATA in the compiling process, so that the POU of the logical configuration page is finally formed.
Step 2, traversing all the logic configuration pages of the LCU device according to the logic configuration pages obtained in the step 1, sequencing all the functional blocks in the current logic configuration page, generating a logic configuration page product corresponding to the current logic configuration page, and forming a logic configuration page product corresponding to each logic configuration page after traversing all the logic configuration pages.
All the functional blocks in the current logical configuration page are ordered, and a logical configuration page product corresponding to the current logical configuration page is generated, which specifically comprises:
step 2.1, traversing all connecting lines in a current logic configuration page, searching an initial function block instance name of the current connecting line, searching a corresponding function block in the current logic configuration page according to the searched initial function block instance name, setting the function block as the initial function block of the current connecting line if the corresponding function block is found, and prompting error information that the current connecting line has no initial function block if the corresponding function block is not found; searching a termination function block instance name of the current connecting line, searching a corresponding function block in the current logic configuration page according to the searched termination function block instance name, setting the searched function block as a termination function block of the current connecting line if the corresponding function block is found, and prompting error information of 'the current connecting line has no termination function block' if the corresponding function block is not found; step 2.2 is carried out after all the connecting lines are traversed;
step 2.2, sorting the function blocks in the current logical configuration page according to the order of the function blocks on the interface configuration of the upper computer monitoring system, wherein the sorting principle is as follows: from top to bottom, from left to right, after finishing the sequencing, carrying out step 2.3;
step 2.3, traversing all the functional blocks in the current logical configuration page to generate a temporary functional block list, wherein the generation principle is as follows: arranging the functional blocks without input connection in front of a temporary functional block list, arranging the functional blocks with input connection in back of the temporary functional block list, and performing step 2.4 after all the functional blocks are traversed;
step 2.4, traversing the temporary function block list generated in the step 2.3, and sequencing the output node connecting lines of the current function block according to the following sequencing principle: and ordering the output node connecting lines according to the positions of the termination functional blocks of the output node connecting lines and the sequence from top to bottom and from left to right, and obtaining a logical configuration page product corresponding to the current logical configuration page after the temporary functional block list is traversed.
And 3, traversing all boards under the current LCU device according to the nesting sequence of the LCU device, the nodes, the branches and the boards according to the input and output variables obtained in the step 1, obtaining modeling information (comprising POU numbers of the input and output variables, POU page internal offset of the input and output variables, measuring point KKS (Kraffwerk-Kennzeichen system) codes of the input and output variables, measuring point virtual addresses (index numbers in a virtual measuring point table) of the input and output variables) corresponding to the input and output channels in the boards, and generating measuring point products from the input variables and the output variables corresponding to the input and output channels in the boards.
It should be noted that: before incremental compiling of the CID file of the upper computer monitoring system, a user needs to perform a point picking operation on the interface configuration of the upper computer monitoring system, namely, selecting a point product, inserting the selected point product into a virtual point table established in advance, after inserting the point product into the virtual point table, distributing a fixed index value to the point product, and adding a new point product into the virtual point table according to an index increment rule.
Assuming that the number of nodes under the current LCU device is N, the number of branches under the nodes is M, the number of boards under the branches is K, traversing all boards under the LCU device according to the following flow, generating a measuring point product by using input variables corresponding to input channels in the boards, and generating the measuring point product by using output variables corresponding to output channels in the boards:
step 3.1, accessing a node i, if i is less than or equal to N, acquiring the branch number M under the node i, executing the step 3.2, otherwise, ending the traversal flow of all the boards, and executing the step 4;
step 3.2, accessing the branch j, if j is less than or equal to M, acquiring the number K of the boards under the branch j, executing the step 3.3, otherwise, enabling i=i+1, and returning to execute the step 3.1;
step 3.3, accessing the board K, if K is greater than K, making j=j+1, returning to execute step 3.2, otherwise executing step 3.4;
step 3.4, traversing all parameter channels of the board k, if the parameter name of the current parameter channel is SOE, generating SOE products aiming at the non-empty channel of the KKS code of the board k, wherein the SOE products comprise the POU number of the current board, the index value of the current parameter channel, the description of the current parameter channel and the KKS code of the current parameter channel, and executing step 3.5 after the traversal of all parameter channels of the board k is completed;
step 3.5, if the SOE product is not generated in the step 3.4, traversing all the input channels and the output channels of the board card k, generating an input channel product according to the type (switching value or analog value) of the input channel and an output channel product according to the type (switching value or analog value) of the output channel; executing the step 3.6; the content of the input channel product comprises a POU number where the board card k is located, an index number of the current input channel, description information of the current input channel and a KKS code of the current input channel; the content of the output channel product comprises a POU number where the board card k is located, an index number of the current output channel, description information of the current output channel and a KKS code of the current output channel;
step 3.6, let k=k+1, return to step 3.3.
And 4, traversing the global variable obtained in the step 1, and generating a corresponding global variable product according to the global variable type.
The step 4 specifically comprises the following steps:
step 4.1, traversing all the global variables obtained in the step 1, and obtaining all the functional blocks which refer to the global variables; the method comprises the following steps: traversing all the functional blocks in the logical configuration page, and considering that the current functional block refers to a global variable if the Tag attribute of the functional block is not null and the POU number to which the functional block belongs is not zero;
step 4.2, traversing all global variables, and generating corresponding global variable products according to the current global variable types, wherein the steps are as follows:
step 4.2.1, if the global variable is the switching value, generating a global variable switching value input product, wherein the content of the global variable switching value input product comprises: POU number where the global variable is located, index number of the global variable, description information of the global variable and KKS code of the global variable;
step 4.2.2, if the global variable is a switching value and the global variable is referenced by the functional block, or the global variable is of a manually operable type, generating a global variable switching value output product, wherein the content of the global variable switching value output product comprises: POU number where the global variable is located, index number of the global variable, description information of the global variable and KKS code of the global variable;
and 4.2.3, if the global variable is analog, generating a global variable analog input product, wherein the content of the global variable analog input product comprises: POU number where the global variable is located, index number of the global variable, description information of the global variable and KKS code of the global variable;
step 4.2.4, if the global variable is an analog quantity and the global variable is referenced by the functional block, or the global variable is of a manually operable type, generating a global variable analog quantity output product, wherein the content of the global variable analog quantity output product comprises: POU number where the global variable is located, index number of the global variable, description information of the global variable and KKS code of the global variable;
and 4.2.5, if the global variable is integer, generating a global variable integer input product, wherein the content of the global variable integer input product comprises: POU number where global variable is located, index number of global variable, description information of global variable and KKS code of global variable.
And 5, storing the measuring point products generated in the step 2, the step 3 and the step 4 into a memory according to the type of the measuring point, and generating a measuring point product information list. All measuring points under the LCU device are classified according to types, and the total of the six types of switching value input, analog value input, switching value output, analog value output, integer value input and SOE (sequence of events record, sequence Of Event) are provided. Each measuring point product comprises a logic configuration page product, an SOE product, an input channel product, an output channel product and a global variable product, wherein the global variable product comprises: global variable switching value input product, global variable switching value output product, global variable analog input product, global variable analog output product, and global variable integer input product.
And 6, reading the selected measuring point products in the virtual measuring point table, and displaying the measuring point products in the virtual measuring point table on a first interface window of the KKS code picking point interface according to the type of the measuring point products.
The KKS code picking interface is divided into two parts, namely a first interface window and a second interface window. The second interface window is used for dividing all measuring point products in the LCU device into different Tab pages according to types for display. The first interface window is used for displaying selected measuring point products, and classified display of the measuring point products is also carried out according to the same type of the second interface window.
And 7, acquiring the measurement point product information list stored in the memory in the step 5, traversing all the measurement point products in the measurement point product information list, judging that if the current measurement point product exists in the virtual measurement point list, deleting the current measurement point product of the measurement point product information list. The method specifically comprises the following steps: acquiring a measurement point product information list stored in a memory in the step 5, displaying all measurement point products in the measurement point product information list in a second interface window, traversing all the measurement point products in the second interface window, judging that if the measurement point products exist in the first interface window, the current measurement point products are selected, setting the selection zone bit of the current measurement point products at the moment, refreshing the second interface window after traversing all the measurement point products, and if the selection zone bit of the measurement point products is set, displaying the measurement point products in the second interface window no longer.
Step 8, selecting a measuring point product from the measuring point product information list, inserting the selected measuring point product into the virtual measuring point table, and distributing a fixed index value for the measuring point product inserted into the virtual measuring point table according to the rule of increasing the index; and deleting the selected measuring point product from the measuring point product information list. The method specifically comprises the following steps: selecting a measuring point product from the second interface window, moving the selected measuring point product to the first interface window through a selecting button, distributing a fixed index value for the measuring point product moved to the first interface window according to the rule of increasing the index, and deleting the selected measuring point product from the measuring point product information list and the second interface window. When the measuring point product of the second interface window is selected to the first interface window, the index value of the measuring point product is distributed according to the mode that the index value is increased.
And 9, deleting the measuring point products in the virtual measuring point table and the first interface window, wherein when deleting the measuring point products, the index values of other measuring point products in the virtual measuring point table are not influenced, namely, the middle measuring point products are deleted, and the index values of the subsequent measuring point products are kept unchanged.
And 10, storing the selected measuring point products of the first interface window into a file, calling a configuration compiling interface to compile the measuring point products in the virtual measuring point table to generate logic node data of IEC61850 protocol, and compiling the logic node data to generate a CID file of the upper computer monitoring system.
The invention selects the measuring points in the interface configuration of the upper computer monitoring system, which is firstly put into the virtual measuring point table, the sequence of the selecting measuring points in the interface configuration of the upper computer monitoring system is possibly inconsistent with the existing sequence of the measuring points, when the selected measuring points are put into the virtual measuring point table, the address is reassigned according to the put sequence, if a user needs to delete or insert new measuring points in the configuration library (the measuring point library of the interface configuration of the upper computer monitoring system), the sequence of the measuring point library after the measuring points are inserted in the original configuration library is changed, if the technology of the picking point is adopted, the later inserted measuring points can be firstly added into the virtual measuring point table, new addresses are allocated for the measuring points according to the rule that the addresses of the existing measuring points are sequentially increased, if the measuring points in the configuration library are deleted, the corresponding addresses in the virtual measuring point table are deleted synchronously, but the corresponding addresses are still reserved in the virtual measuring point table and are not released. And regenerating an ICD file by taking the measuring points in the virtual measuring point table as the basis, and calling an ICD file compiling interface to generate a corresponding measuring point data model (CID file). The newly generated measuring point data model file ensures that the incremental update is performed on the basis of the measuring point data model in the upper computer monitoring system, and all the measuring point communication is not completely invalid.
The following are device embodiments of the present invention that may be used to perform method embodiments of the present invention. For details of the device embodiment that are not careless, please refer to the method embodiment of the present invention.
In still another embodiment of the present invention, a system for incremental compiling a CID file of a monitoring system of a host computer is provided, which can be used to implement the above method for incremental compiling a CID file of a monitoring system of a host computer, and specifically, the system for incremental compiling a CID file of a monitoring system of a host computer includes:
the information acquisition module is used for acquiring a measuring point product information list under the LCU device;
the duplicate removal module is used for traversing all the measuring point products in the measuring point product information list, and deleting the current measuring point product of the measuring point product information list if the current measuring point product exists in the virtual measuring point list; the virtual measuring point table is obtained by inserting measuring point products selected in advance on the interface configuration of the upper computer monitoring system into a virtual measuring point table which is established in advance;
the point picking module is used for picking the measuring point products from the measuring point product information list obtained by the weight removing module, inserting the picked measuring point products into the virtual measuring point table, and distributing fixed index values for the measuring point products inserted into the virtual measuring point table according to the rule of increasing indexes; deleting the selected measuring point product from the measuring point product information list;
and the compiling module is used for compiling the measuring point products in the virtual measuring point table obtained by the point picking module to generate CID files of the upper computer monitoring system.
In yet another embodiment of the present invention, a computer device is provided that includes a processor and a memory for storing a computer program including program instructions, the processor for executing the program instructions stored by the computer storage medium. The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., which are the computational core and control core of the terminal adapted to implement one or more instructions, in particular adapted to load and execute one or more instructions in a computer storage medium to implement a corresponding method flow or a corresponding function; the processor provided by the embodiment of the invention can be used for the operation of the CID file incremental compiling method of the upper computer monitoring system.
In yet another embodiment of the present invention, a storage medium, specifically a computer readable storage medium (Memory), is a Memory device in a computer device, for storing a program and data. It is understood that the computer readable storage medium herein may include both built-in storage media in a computer device and extended storage media supported by the computer device. The computer-readable storage medium provides a storage space storing an operating system of the terminal. Also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor. The computer readable storage medium herein may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. One or more instructions stored in a computer-readable storage medium may be loaded and executed by a processor to implement the corresponding steps of the method for incremental compiling of CID files for a supervisory control system in accordance with the above embodiments.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.

Claims (9)

1. The CID file incremental compiling method of the upper computer monitoring system is characterized by comprising the following steps of:
s1, acquiring a measuring point product information list under an LCU device;
s2, traversing all the measuring point products in the measuring point product information list, deleting the current measuring point product of the measuring point product information list if the current measuring point product exists in the virtual measuring point list, and carrying out S3 after traversing is completed; the virtual measuring point table is obtained by inserting measuring point products selected in advance on the interface configuration of the upper computer monitoring system into a virtual measuring point table which is established in advance;
s3, selecting a measuring point product from the measuring point product information list, inserting the selected measuring point product into the virtual measuring point table, and distributing a fixed index value for the measuring point product inserted into the virtual measuring point table according to the rule of increasing the index; deleting the selected measuring point product from the measuring point product information list;
s4, compiling the measuring point products in the virtual measuring point table obtained in the S3 to generate CID files of the upper computer monitoring system;
in S1, the obtaining a measurement point product information list under the LCU device specifically includes:
reading all measuring point data in the logic configuration of the LCU device, wherein the measuring point data comprises input and output variables, global variables and logic configuration pages;
generating a measuring point product by using the input and output variables, generating a measuring point product by using the global variables, and generating a measuring point product by using the logic configuration page;
and storing all the generated measuring point products as a measuring point product information list.
2. The incremental compiling method of a CID file of a monitoring system of a host computer according to claim 1, wherein the generating the measurement point product from the logical configuration page specifically includes:
and traversing all the logic configuration pages, and sequencing all the functional blocks in the current logic configuration page to generate a logic configuration page product corresponding to the current logic configuration page, wherein the logic configuration page product is a measuring point product.
3. The incremental compiling method of CID file of the monitoring system of a host computer according to claim 2, wherein the sorting all function blocks in the current logical configuration page to generate a logical configuration page product corresponding to the current logical configuration page specifically includes:
s1.1.1, traversing all connecting lines in a current logic configuration page, searching an initial function block instance name of the current connecting line, searching a corresponding function block in the current logic configuration page according to the searched initial function block instance name, setting the function block as the initial function block of the current connecting line if the corresponding function block is found, and prompting error reporting information of 'the current connecting line has no initial function block' if the corresponding function block is not found; searching a termination function block instance name of the current connecting line, searching a corresponding function block in the current logic configuration page according to the searched termination function block instance name, setting the searched function block as a termination function block of the current connecting line if the corresponding function block is found, and prompting error reporting information of 'the current connecting line has no termination function block' if the corresponding function block is not found; executing S1.1.2 after all connecting line traversal is completed;
s1.1.2 the functional blocks in the current logical configuration page are ordered according to the order of the functional blocks on the interface configuration of the upper computer monitoring system, and the principle of ordering is as follows: from top to bottom, from left to right; executing S1.1.3 after the sorting is completed;
s1.1.3 traverses all the functional blocks in the current logical configuration page to generate a temporary functional block list, and the generation principle is that: arranging the function blocks without input connection in front of a temporary function block list, and arranging the function blocks with input connection in back of the temporary function block list; executing S1.1.4 after all the functional blocks are traversed;
s1.1.4 the temporary function block list generated in S1.1.3 is traversed, and the output node connecting lines of the current function block are ordered according to the following principle: sorting the output node connecting wires according to the position of the termination functional block of the output node connecting wires and the principle from top to bottom and from left to right; and after the temporary function block list is traversed, obtaining a logical configuration page product corresponding to the current logical configuration page.
4. The incremental compiling method of a CID file of a monitoring system of a host computer according to claim 1, wherein the generating the measurement point product from the global variable specifically includes:
s1.2.1, acquiring all functional blocks which refer to global variables, wherein the method comprises the following steps: traversing all the functional blocks in the logical configuration page, and considering that the current functional block refers to a global variable if the Tag attribute of the functional block is not null and the POU number to which the functional block belongs is not zero;
s1.2.2 traversing all global variables, and generating a corresponding global variable product according to the type of the current global variable, wherein the method specifically comprises the following steps:
s1.2.2.1 if the global variable is a switching value, generating a global variable switching value input product;
s1.2.2.2 if the global variable is a switching value and the global variable is referenced by a function block, or the global variable is of a manually operable type, generating a global variable switching value output product;
s1.2.2.3 if the global variable is analog, generating a global variable analog input product;
s1.2.2.4 if the global variable is analog and the global variable is referenced by a function block, or the global variable is of a manually operable type, generating a global variable analog output product;
s1.2.2.5 if the global variable is integer, a global variable integer input product is generated.
5. The incremental compiling method of a CID file of a monitoring system of an upper computer according to claim 1, wherein the generating the measurement point product from the input and output variables specifically includes:
according to the input and output variables, traversing all boards under the LCU device according to the nesting sequence of the LCU device, the nodes, the branches and the boards, generating a measuring point product from the input variables corresponding to the input channels in the boards, and generating the measuring point product from the output variables corresponding to the output channels in the boards.
6. The incremental compiling method of CID file of upper computer monitoring system according to claim 5, wherein traversing all boards under LCU device according to nesting order of LCU device, node, branch, board according to input/output variable, generating test point product from input variable corresponding to input channel in board, generating test point product from output variable corresponding to output channel in board, specifically comprising:
assuming that the number of nodes under the LCU device is N, the number of branches under the nodes is M, the number of boards under the branches is K, traversing all boards under the LCU device according to the following flow, generating a measuring point product by using input variables corresponding to input channels in the boards, and generating the measuring point product by using output variables corresponding to output channels in the boards:
s1.3.1 accessing the node i, if i is less than or equal to N, acquiring the branch number M under the node i, executing S1.3.2, otherwise, ending the flow of traversing all the boards under the LCU device;
s1.3.2 accesses branch j, if j is less than or equal to M, then obtaining the number K of boards under branch j, executing S1.3.3, otherwise, letting i=i+1, and returning to executing S1.3.1;
s1.3.3 accesses the board K, if K > K, then let j=j+1, return execution S1.3.2, otherwise execute S1.3.4;
s1.3.4 traversing all parameter channels of the board k, if the parameter name of the current parameter channel is SOE, generating SOE products aiming at the KKS code non-empty channel of the board k, and executing S1.3.5 after traversing all parameter channels of the board k;
s1.3.5 if SOE product is not generated in S1.3.4, traversing all input channels and output channels of the board card k, generating an input channel product according to input variables corresponding to the input channels, and generating an output channel product according to output variables corresponding to the output channels; execution S1.3.6;
s1.3.6 let k=k+1, return execution S1.3.3.
7. The incremental compiling method for CID files of a monitoring system of an upper computer according to claim 1, wherein S3 specifically comprises: displaying the measuring point products in the virtual measuring point table in a first interface window of a KKS code picking interface, displaying the measuring point products in the measuring point product information list in a second interface window of the KKS code picking interface, selecting the measuring point products from the second interface window, moving the selected measuring point products to the first interface window through a selecting button, and distributing fixed index values for the measuring point products moved to the first interface window according to an index increasing rule.
8. The CID file incremental compiling system of the upper computer monitoring system is characterized by comprising:
the information acquisition module is used for acquiring a measuring point product information list under the LCU device, and specifically comprises the following steps: reading all measuring point data in the logic configuration of the LCU device, wherein the measuring point data comprises input and output variables, global variables and logic configuration pages; generating a measuring point product by using the input and output variables, generating a measuring point product by using the global variables, and generating a measuring point product by using the logic configuration page; storing all the generated measuring point products as a measuring point product information list;
the duplicate removal module is used for traversing all the measuring point products in the measuring point product information list, and deleting the current measuring point product of the measuring point product information list if the current measuring point product exists in the virtual measuring point list; the virtual measuring point table is obtained by inserting measuring point products selected in advance on the interface configuration of the upper computer monitoring system into a virtual measuring point table which is established in advance;
the point picking module is used for picking the measuring point products from the measuring point product information list obtained by the weight removing module, inserting the picked measuring point products into the virtual measuring point table, and distributing fixed index values for the measuring point products inserted into the virtual measuring point table according to the rule of increasing indexes; deleting the selected measuring point product from the measuring point product information list;
and the compiling module is used for compiling the measuring point products in the virtual measuring point table obtained by the point picking module to generate CID files of the upper computer monitoring system.
9. Computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the incremental compiling method of a CID file of a supervisory control system for a host computer according to any of claims 1 to 7 when executing the computer program.
CN202311261142.9A 2023-09-27 2023-09-27 CID file incremental compiling method, system and equipment for upper computer monitoring system Active CN117009187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311261142.9A CN117009187B (en) 2023-09-27 2023-09-27 CID file incremental compiling method, system and equipment for upper computer monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311261142.9A CN117009187B (en) 2023-09-27 2023-09-27 CID file incremental compiling method, system and equipment for upper computer monitoring system

Publications (2)

Publication Number Publication Date
CN117009187A CN117009187A (en) 2023-11-07
CN117009187B true CN117009187B (en) 2024-01-19

Family

ID=88576540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311261142.9A Active CN117009187B (en) 2023-09-27 2023-09-27 CID file incremental compiling method, system and equipment for upper computer monitoring system

Country Status (1)

Country Link
CN (1) CN117009187B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014044621A1 (en) * 2012-09-19 2014-03-27 Prema Semiconductor Gmbh Device for detecting angle or position changes
CN113434519A (en) * 2021-08-26 2021-09-24 西安热工研究院有限公司 Method, system and storage medium for updating label names of measuring points
CN113741411A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 Generation method and system of global variable point product file of distributed control system
CN114024426A (en) * 2021-11-10 2022-02-08 北京航空航天大学 Novel information encoder of linear electric motor and linear electric motor detection system
CN115757689A (en) * 2022-09-21 2023-03-07 中国人民解放军军事科学院军事科学信息研究中心 Information query system, method and equipment
WO2023160082A1 (en) * 2022-02-25 2023-08-31 浙江中控技术股份有限公司 Method and apparatus for displaying running logic of distributed control system, device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014044621A1 (en) * 2012-09-19 2014-03-27 Prema Semiconductor Gmbh Device for detecting angle or position changes
CN113434519A (en) * 2021-08-26 2021-09-24 西安热工研究院有限公司 Method, system and storage medium for updating label names of measuring points
CN113741411A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 Generation method and system of global variable point product file of distributed control system
CN114024426A (en) * 2021-11-10 2022-02-08 北京航空航天大学 Novel information encoder of linear electric motor and linear electric motor detection system
WO2023160082A1 (en) * 2022-02-25 2023-08-31 浙江中控技术股份有限公司 Method and apparatus for displaying running logic of distributed control system, device, and storage medium
CN115757689A (en) * 2022-09-21 2023-03-07 中国人民解放军军事科学院军事科学信息研究中心 Information query system, method and equipment

Also Published As

Publication number Publication date
CN117009187A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
WO2018095299A1 (en) Time sequence data management method, device and apparatus
EP4105793A1 (en) Signature-based cache optimization for data preparation
CN109508355A (en) A kind of data pick-up method, system and terminal device
CN102118281A (en) Method, device and network equipment for automatic testing
CN113254451B (en) Data index construction method and device, electronic equipment and storage medium
CN110046181A (en) The method and apparatus of data routing based on database distributed storage
CN116662019B (en) Request distribution method and device, storage medium and electronic device
CN117009187B (en) CID file incremental compiling method, system and equipment for upper computer monitoring system
CN111666302A (en) User ranking query method, device, equipment and storage medium
CN116560629A (en) Serialization method, device, medium and equipment for data transmission object
CN116010345A (en) Method, device and equipment for realizing table service scheme of flow batch integrated data lake
CN109710698A (en) A kind of data assemblage method, device, electronic equipment and medium
CN115454353A (en) High-speed writing and query method for space application data
CN115017161A (en) Method, device and application for updating tree data structure by combining virtual DOM
CN110222105B (en) Data summarization processing method and device
CN115221360A (en) Tree structure configuration method and system
CN113950145B (en) Data processing method and device
CN110309152A (en) A kind of date storage method and device based on HBase
CN109992701B (en) Chain table implementation method, device and equipment and readable storage medium
CN114385584A (en) Data writing method and data reading method
CN114201487A (en) Storage device and method of intelligent contract
CN113535714A (en) Data storage method, data reading method and computer equipment
CN112579533A (en) Small file storage method and device and computer equipment
CN113535404A (en) Data management and control method, system, device and medium
CN115757636A (en) Method and system for synchronizing relational database and memory database and electronic equipment

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