Configuration function block diagram measuring point description transmission method, configuration function block diagram measuring point description display method and electronic equipment

By forming a hash table in the function block diagram and updating the function block description of the function block information list, the problem of complex and high risk in the function block diagram operation is solved, and the dynamic transmission of the measurement point description is realized, which improves operation efficiency and safety.

CN119760173AActive Publication Date: 2025-04-04XIAN THERMAL POWER RES INST CO LTD +1

Patent Information

Application Number
CN202411636360.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-04-04
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

During the equipment debugging and operation and maintenance stage, especially in special operating conditions, the existing functional block diagram technology has problems of complex operation and high risk, which may lead to abnormal operation of the equipment and system.

Method used

A method for configuring the function block diagram measurement point description transmission is proposed. By reading all measurement points and function block diagram information of the controller, a hash table is formed, and the function block description of the function block information link list is updated, so as to realize the dynamic transmission of the measurement point description in the function block diagram.

Benefits of technology

Real-time and dynamic transmission of the measurement point description in the functional block diagram is realized, manual intervention is reduced, operation efficiency and safety is improved, and operation error risk caused by human factors is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760173A_ABST
    Figure CN119760173A_ABST
Patent Text Reader

Abstract

The invention belongs to a display method, and provides a configuration function block diagram measuring point description transmission method, a display method and electronic equipment, aiming at the technical problems that operation errors, operation complexity and high risk are easily caused by human factors when equipment is subjected to forced operation in the traditional function block diagram implementation. Performing three-level classification on the function blocks according to the reference condition, establishing a measurement point hash table for all measurement point information, and forming a function block diagram reference hash table, a function block diagram inter-station measurement point reference hash table and a function block diagram inter-page output connection hash table according to the reference relationship and all function block diagram information; when measuring point information or parameters in a controller change, function block description of a function block information chain table in a function block diagram reference hash table, a function block diagram inter-station measuring point reference hash table and a function block diagram inter-page output connection hash table is updated, and then relevant changes can be automatically updated and reflected without manual intervention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a display method, and specifically to a configuration function block diagram measurement point description transmission method, a display method, and an electronic device. Background Art

[0002] Function Block Diagram (FBD) is a standard graphical programming language that is widely used in the field of industrial automation. In the traditional implementation of function block diagrams, function blocks and data measurement points form a reference relationship through system internal binding to achieve data flow transmission, thereby achieving precise control of field equipment.

[0003] However, during the equipment debugging and operation and maintenance phase, especially when forced operation of equipment is required under special working conditions, the existing function block diagram technology has some obvious shortcomings: the staff needs to search and jump between multiple function block diagram pages through the reference relationship between function blocks and data measurement points to locate the specific equipment or measurement point location for forced operation. This operation method not only has high technical requirements, but is also prone to operational errors due to human factors. Once an error occurs, it may lead to abnormal operation of the equipment or even the entire system, causing huge economic losses to the enterprise.

[0004] Especially in the control logic of large equipment systems, the reference relationship between function block diagram pages (inter-page reference) and the reference relationship between controllers (inter-station reference) make the problem more complicated. Although the measurement point description can be displayed in the function diagram after the function block is connected to the device measurement point, the measurement point can no longer display the description information in the referenced function block diagram through inter-page reference or inter-station reference. This means that when performing forced operations, the staff needs to manually track the reference relationship and find the detailed information of the device measurement point through hierarchical jumps, which undoubtedly increases the complexity and risk of the operation. Summary of the invention

[0005] The present application aims to provide a configuration function block diagram measurement point description transmission method, display method and electronic device to address the technical problems that in traditional function block diagram implementation, when forced operation is performed on equipment, operation errors are easily caused by human factors, and the operation is complex and risky.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application proposes a configuration function block diagram measurement point description transfer method, comprising:

[0008] Read all the measuring point information of the controller to form a measuring point hash table;

[0009] Read all function block diagram information of the controller, and form a function block diagram reference hash table, a function block diagram station-to-station measurement point reference hash table, and a function block diagram page-to-page output connection hash table, which are recorded as a first hash table, a second hash table, and a third hash table respectively;

[0010] When the measuring point information or the parameters in the controller change, read all referenced function block information of the controller, and update the function block description of the function block information linked list in the first hash table, the second hash table and the third hash table in combination with the function block type, reference rule, description transfer attribute and measuring point hash table;

[0011] Among them, the division and setting of function block types include:

[0012] The function blocks are divided into reference function blocks and non-reference function blocks to obtain a first-level classification result;

[0013] The reference class function blocks are divided into measurement point reference class function blocks, inter-station measurement point reference class function blocks and inter-page reference class function blocks to obtain a secondary classification result;

[0014] The measuring point reference class function blocks are divided into measuring point reference input class function blocks and measuring point reference output class function blocks, and the inter-page reference class function blocks are divided into inter-page reference input class function blocks and inter-page reference output class function blocks, to obtain a three-level classification result;

[0015] Set reference rules for the inter-station measurement point reference function blocks in the third-level classification results and the second-level classification results respectively;

[0016] Set the description transfer properties for each function block separately.

[0017] Furthermore, the setting of the reference rule includes:

[0018] The measuring point reference input type function block can reference the measuring point of input type;

[0019] The measuring point reference output type function block can reference the measuring point of output type;

[0020] The inter-station measuring point reference class function block can reference measuring points of other controller input types;

[0021] The inter-page reference input class function block can reference a reference class function block instance other than its own;

[0022] The inter-page reference output class function block does not set a reference relationship.

[0023] Furthermore, the step of respectively setting description transfer attributes for each functional block includes:

[0024] Set the description transfer attribute fbTrans, the corresponding values ​​are 1 or 0. When fbTrans is 1, the function block object can transfer the description of the referenced object. When fbTrans is 0, the function block object cannot transfer the description of the referenced object.

[0025] Further, the measuring point hash table includes measuring point tag names and a measuring point information linked list;

[0026] The measuring point label name is used to obtain measuring point information;

[0027] The measuring point information linked list includes measuring point type and measuring point description.

[0028] Furthermore, the data structures of the first hash table, the second hash table and the third hash table are the same.

[0029] Further, the first hash table includes a function block icon signature and a first function block diagram information linked list, and the second hash table includes a function block icon signature and a second function block diagram information linked list;

[0030] The function block diagram tag is used to obtain function block diagram information;

[0031] The first function block diagram information linked list and the second function block diagram information linked list both include a function block information linked list, and the function block information linked list includes a function block label name, a function block type, a function block description, a function block description transfer attribute, a referenced measurement point label name, a referenced function block instance name, and a referenced function block real type;

[0032] The third hash table includes a function block diagram label and a third function block diagram information linked list;

[0033] The third function block diagram information linked list includes an inter-page output function block information linked list, and the inter-page output function block information linked list includes a function block tag name, a function block type, a function block description, a function block description transfer attribute, a connection function block type and a connection function block tag name.

[0034] Further, updating the function block description of the function block information linked list in the first hash table and the second hash table includes:

[0035] (1.1) If the function block is a measurement point reference type function block, the function block information is determined in the first hash table by the function block tag name;

[0036] (1.2) If the call mark in the function block information is 0: determine the referenced measurement point information in the first hash table through the referenced measurement point label name in the function block information, and assign the measurement point description to the function block description;

[0037] If the call mark in the function block information is 1: determine the value corresponding to the description transfer attribute. If the value corresponding to the description transfer attribute is 0, call the original description and assign it to the function block description. If the value corresponding to the description transfer attribute is 1, determine the referenced measurement point information in the first hash table through the referenced measurement point label name in the function block information, and assign the measurement point description to the function block description.

[0038] (2.1) If the function block is an inter-station measurement point reference type function block, the function block information is determined in the second hash table by the function block tag name;

[0039] (2.2) If the call flag in the function block information is 0: return the function block description;

[0040] (2.3) If the call mark in the function block information is 1: determine the description transfer attribute. If the value corresponding to the description transfer attribute is 0, call the original description and assign it to the function block description. If the value corresponding to the description transfer attribute is 1, return the function block description.

[0041] (3.1) If the function block is an inter-page reference input type function block, the function block information is determined in the first hash table by the function block tag name;

[0042] (3.2) If the call mark in the function block information is 0: set the call mark to 1, and assign the function block description to the original description, and determine the real type of the referenced function block in the function block information: if the real type of the referenced function block is a measurement point reference type function block, execute step (1.1); if the real type of the referenced function block is an inter-station measurement point reference type function block, execute step (2.1); if the real type of the referenced function block is an inter-page reference output type function block, determine the function block information and the function block connection information in the third hash table by referencing the function block instance name; if the function block information If the value corresponding to the transfer attribute in the description in the function block information is 0, the original description is returned. If the value corresponding to the transfer attribute in the description in the function block information is 1, the connection function block type in the function block connection information is determined. If the connection function block type is a measuring point reference type function block, step (1.1) is executed. If the connection function block type is an inter-station measuring point reference type function block, step (2.1) is executed. If the connection function block type is an inter-page reference input type function block, the function block description is returned. If the connection function block type is a non-reference type function block, the function block description is returned.

[0043] If the call mark in the function block information is 1: determine whether the function block description is equal to the original description. If they are equal, return the original description. Otherwise, determine the description transfer attribute in the function block information. If the value corresponding to the description transfer attribute is 0, return the original description. If the value corresponding to the description transfer attribute is 1, execute step (3.2).

[0044] Update the function block description in the function block information linked list in the third hash table, including:

[0045] (4.1) If the function block is an inter-page reference output type function block, determine the third function block diagram information linked list in the function block information and the function block connection information in the third hash table according to the function block tag name;

[0046] (4.2) Determine the type of connected function blocks in the third function block diagram information linked list:

[0047] If the type of the connected function block is a measurement point reference type function block, determine the first function block diagram information linked list in the first hash table through the connection function block label name of the third function block diagram information linked list, if the value corresponding to the description transfer attribute in the first function block diagram information linked list is 0, return the original description of the first function block diagram information linked list, if the value corresponding to the description transfer attribute in the first function block diagram information linked list is 1, assign the function block description in the first function block diagram information linked list to the function block description in the third function block diagram information linked list;

[0048] If the type of the connected function block is an inter-station measurement point reference class function block, determine the second function block diagram information linked list in the second hash table through the connection function block label name of the third function block diagram information linked list, if the value corresponding to the description transfer attribute in the second function block diagram information linked list is 0, return the original description of the first function block diagram information linked list, if the value corresponding to the description transfer attribute in the second function block diagram information linked list is 1, assign the function block description in the second function block diagram information linked list to the function block description in the third function block diagram information linked list;

[0049] If the connected function block type is empty or a non-reference function block, the function block description is returned.

[0050] In a second aspect, the present application proposes a dynamic display method, comprising:

[0051] The above configuration function block diagram measurement point description transfer method is adopted to update the function block description of the function block information linked list in the first hash table, the second hash table and the third hash table. After running FBD, the function block description of all function blocks in the function block diagram is dynamically drawn and displayed.

[0052] Furthermore, it also includes:

[0053] (A) When the measuring point information in the controller changes, the corresponding measuring point information in the measuring point hash table is synchronously updated, and other controllers are caused to synchronously update the function block information that references the corresponding measuring point information in the second hash table;

[0054] When the function block in the controller and / or the function block information between stations changes, the function block reference information in the first hash table and the second hash table is synchronously updated;

[0055] When the inter-page output function block information or connection information in the controller changes, the function block information or connection information in the third hash table is synchronously updated;

[0056] (B) Redrawn based on the results of step (A).

[0057] In a third aspect, the present application provides an electronic device, comprising:

[0058] Memory for storing computer programs;

[0059] A processor is used to implement the steps of the above-mentioned configuration function block diagram measurement point description transfer method when executing the computer program.

[0060] Compared with the prior art, this application has the following beneficial effects:

[0061] The present application proposes a method for transmitting the description of the measurement point of the configuration function block diagram, which classifies the function blocks into three levels according to the reference situation, establishes a measurement point hash table for all the measurement point information, and forms a function block diagram reference hash table, a function block diagram station measurement point reference hash table, and a function block diagram page output connection hash table according to the reference relationship and all the function block diagram information. When the measurement point information or the parameters in the controller change, the function block description of the function block information link table in the function block diagram reference hash table, the function block diagram station measurement point reference hash table, and the function block diagram page output connection hash table is updated, and the relevant changes can be automatically updated and reflected. Without manual intervention, the measurement point description information can be transmitted in real time and dynamically in the function block diagram of the industrial automation system. By optimizing the visualization of the function block diagram, improving the tracking ability of the reference relationship, and enhancing the real-time display of the measurement point description, the operation efficiency and safety of the staff in the equipment debugging and operation and maintenance stages are significantly improved, and the risk of operation errors caused by human factors is reduced.

[0062] The present application also proposes a dynamic display method and an electronic device, which possess all the advantages of the above-mentioned configuration function block diagram measurement point description transmission method. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0064] Figure 1 A first flow chart of the method for transferring the configuration function block diagram measurement point description of this application;

[0065] Figure 2A first flow chart of the method for transferring the configuration function block diagram measurement point description of this application;

[0066] Figure 3 Schematic diagram of classification and reference rules of function blocks in this embodiment;

[0067] Figure 4 A connection diagram of a configuration function block diagram measuring point description transmission system in an embodiment of the present application;

[0068] Figure 5 A schematic diagram of the flow of the dynamic transmission mechanism in the embodiment of the present application;

[0069] Figure 6 This is a flow chart of the dynamic transfer mechanism when the functional block is FB-RPO in the embodiment of the present application. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0071] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0072] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0073] In the description of the embodiments of the present application, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invented product is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0074] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0075] In the description of the embodiments of the present application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0076] FBD describes and controls the dynamic behavior of industrial processes in a configuration method that connects graphical function blocks. With its intuitiveness and ease of use, FBD enables engineers to design and debug systems more quickly, thereby improving work efficiency and system reliability.

[0077] In FBD, function blocks are basic units used to represent specific functions or operations. Each function block has one or more inputs or outputs, which are connected to other function blocks through connecting lines to achieve the required control logic. Function blocks can perform various operations, such as mathematical operations, logical judgments, and data conversion. In FBD, function blocks are graphically represented as a rectangular box, which contains information such as the name of the function block, input / output ports, parameter settings, etc., and complex control systems can be built by combining and connecting different function blocks. Data measurement points are locations in FBD for obtaining or outputting data. In automation systems, data measurement points usually correspond to actual physical quantities and are used to monitor and control the changes of these physical quantities in real time. In addition, data measurement points can be input measurement points for obtaining external data or output measurement points for outputting control signals. Data measurement points are usually connected to the input / output ports of function blocks. When external data changes, the corresponding input measurement points will receive the data and process and calculate them through the function blocks. The processed data can be output to external devices or systems through output measurement points to achieve control functions.

[0078] The data flow usually maintains continuity between multiple FBD pages. When a function block in one FBD page needs to reference a function block or data in another FBD page, a cross-page reference is used. In addition, in large-scale equipment systems, the control system is usually distributed and managed by multiple controllers. These controllers may be located in different physical locations and connected to each other through a communication network. In the control logic of large-scale equipment systems, the reference relationship between function block diagram pages and the reference relationship between controllers are the key to achieving system collaboration and correct data flow transmission.

[0079] Therefore, for large equipment systems, when it is necessary to perform forced operations on the equipment, it is difficult, complex and risky. Based on this situation, the present application proposes a configuration function block diagram measurement point description transmission method, display method and electronic device, which will be further described in detail below in conjunction with the embodiments and drawings.

[0080] like Figure 1 As shown, it is a first flow chart of the configuration function block diagram measurement point description transmission method of the present application, which may include:

[0081] S101, reading all the measuring point information of the controller to form a measuring point hash table.

[0082] It should be noted that by establishing a measurement point hash table, the corresponding value can be quickly found in the measurement point hash table.

[0083] S102, read all function block diagram information of the controller, and form a function block diagram reference hash table, a function block diagram station-to-station measurement point reference hash table, and a function block diagram page-to-page output connection hash table, which are recorded as the first hash table, the second hash table, and the third hash table respectively.

[0084] In FBD, the function block diagram reference hash table is used to store and reference data between different locations or function blocks. The function block diagram station-to-station measurement point reference hash table references the measurement point information at different stations or locations. The function block diagram page-to-page output connection hash table is used to establish output connection relationships between different pages, and use hash tables to store and manage the data structure of these connection relationships. Hash tables can be used for storage and indexing.

[0085] S103, when the measuring point information or the parameters in the controller change, read all referenced function block information of the controller, and update the function block description in the function block information linked list in the first hash table, the second hash table and the third hash table in combination with the function block type, reference rule, description transfer attribute and measuring point hash table.

[0086] Among them, the division and setting of function block types include:

[0087] The function blocks are divided into reference function blocks and non-reference function blocks to obtain a first-level classification result;

[0088] The reference class function blocks are divided into measurement point reference class function blocks, inter-station measurement point reference class function blocks and inter-page reference class function blocks to obtain a secondary classification result;

[0089] The measuring point reference class function blocks are divided into measuring point reference input class function blocks and measuring point reference output class function blocks, and the inter-page reference class function blocks are divided into inter-page reference input class function blocks and inter-page reference output class function blocks, to obtain a three-level classification result;

[0090] Set reference rules for the inter-station measurement point reference function blocks in the third-level classification results and the second-level classification results respectively;

[0091] Set the description transfer properties for each function block separately.

[0092] The function blocks are classified, reference rules are set, and a new index structure is built. Then, description transfer properties are set for each function block, and dynamic transfer rules are configured. When the measurement point information or parameters in the controller change, dynamic transfer can be performed based on the above-built framework.

[0093] like Figure 2 As shown, it is a second flow chart of the configuration function block diagram measurement point description transmission method of the present application, which may include:

[0094] S201, classify the function blocks and set reference rules.

[0095] In the function block diagram, all function blocks (FB) of the system are first divided into two categories: reference function blocks (FB-R) and non-reference function blocks (FB-NR).

[0096] Then, the reference class function blocks (FB-R) are divided into three categories according to the reference objects: measurement point reference class function blocks (FB-RH), inter-station measurement point reference class function blocks (FB-RN) and inter-page reference class function blocks (FB-RP).

[0097] Finally, the measuring point reference type function block (FB-RH) is divided into two categories according to the different reference measuring point attributes: measuring point reference input type function block (FB-RHI) and measuring point reference output type function block (FB-RHO). And the inter-page reference type function block (FB-RP) is divided into two categories according to the requirements of inter-page data transmission: inter-page reference input type function block (FB-RPI) and inter-page reference output type function block (FB-RPO).

[0098] Set reference rules for the above function block classifications. FB-RHI can reference input type measurement points (PT-I), FB-RHO can reference output type measurement points (PT-O), FB-RN can reference input type measurement points (PT-NI) of other controllers, FB-RPI can reference FB-R instances other than itself (FB-R is a specific object in the function block diagram), and FB-RPO has no reference relationship, but can connect FB-RHI, FB-RN and FB-RPI. Figure 3 FIG. 1 is a schematic diagram of the classification and reference rules of the functional blocks in this embodiment.

[0099] S202: Configure dynamic transmission rules.

[0100] Set the description transfer attribute (fbTrans) for the function block, and set the value of the description transfer attribute to 1 or 0 respectively. When fbTrans is 1, the function block object can transfer the description of the referenced object. When fbTrans is 0, the function block object cannot transfer the description of the referenced object. In other words, when there is a referenced object, the description of the function block is determined by the value corresponding to fbTrans. If fbTrans is 1, the description of the function block is the description of the referenced object. If fbTrans is 0, the description of the function block is the description of its own object. The default value of fbTrans for FB-R objects is 1, and the value can be modified. The default value of fbTrans for FB-NR objects is 0, and the value cannot be modified.

[0101] S203, implement a dynamic transmission mechanism.

[0102] After the function block diagram configuration tool loads the configuration project, the dynamic storage area can be established in steps:

[0103] 1. Read all the measurement point information of the controller to form a measurement point hash table, recorded as ptHash<ptName,ptInfoList> In the measurement point hash table, ptName is the measurement point label name, and the measurement point information can be obtained through ptName. ptInfoList is the measurement point information linked list, which can include the point type (ptType) and the measurement point description (ptDesc).

[0104] 2. Read all the function block diagram information of the controller and form the function block diagram reference hash table fbdHash <fbdName,fbdInfoList1 <fbinfolist1>>、Function block diagram station inter-station measurement point reference hash table fbdDevHash <fbdName,fbdInfoList2 <fbinfolist2>>Hash table fbdPageOutHash connected to the output of the function block diagram page <fbdName,fbdInfoList3 <fblinklist>>, respectively recorded as the first hash table fbdHash, the second hash table fbdDevHash and the third hash table fbdPageOutHash.

[0105] In actual applications, the data structures of fbdHash, fbdDevHash and fbdPageOutHash can be consistent, with only different contents. Among them, fbdHash stores function block information that does not include inter-station measurement point reference function blocks, fbdDevHash stores only inter-station measurement point reference function block information, and fbdPageOutHash stores inter-page output function block information and its connection information (key information of the upper-level function block of the output function block connection line in the function block diagram). fbdName is the function block icon signature, and the function block diagram information can be obtained through fbdName. fbdInfoList1 and fbdInfoList2 are the first function block diagram information linked list and the second function block diagram information linked list corresponding to the corresponding hash table, which contain all function block information in the function block diagram. fbInfoList1 and fbInfoList2 are the corresponding first function block information linked list and the second function block information linked list, respectively, which contain the function block label name (fbName), function block type (fbType), function block description (fbDesc), function block description transfer attribute (fbTrans), reference measurement point label name (referPtName), reference function block instance name (referFbName), reference function block real type (referFbType). fbLinkList is the inter-page output function block information linked list, which contains the function block label name (fbName), function block type (fbType), function block description (fbDesc), function block description transfer attribute (fbTrans), connection function block type (fbLinkType), and connection function block label name (fbLinkName).

[0106] After forming the controller fbdHash, fbdDevHash, and fbdPageOutHash, read all referenced function block information of the controller again, and update the fbDesc of fbInfoList1 and fbInfoList2 in fbdHash and fbdDevHash. That is, the relevant measurement point description can be found in fbdHash and fbdDevHash respectively through the function block classification and reference rules, or the relevant measurement point description can be recursively found through the information in fbdPageOutHash. The specific method may include:

[0107] (1) The function block is FB-RH: Find the function block information in fbdHash through fbName and determine the call tag bCall:

[0108] When bCall is 0, the reference measurement point information is found in ptHash through referPtName in the function block information, ptDesc is assigned to fbDesc, and fbDesc is returned.

[0109] When bCall is 1, fbTrans in the function block information is judged. If fbTrans is 0, the original description (OrgDesc) is assigned to fbDesc and fbDesc is returned. If fbTrans is 1, the reference point information is found in ptHash through referPtName in the function block information, ptDesc is assigned to fbDesc and fbDesc is returned.

[0110] (2) The function block is FB-RN: Find the function block information in fbdDevHash through fbName and determine the call tag bCall:

[0111] When the call flag bCall is 0, fbDesc is returned.

[0112] When the call mark bCall is 1, the fbTrans in the function block information is judged. When fbTrans is 0, the original description of the call (OrgDesc) is assigned to fbDesc and fbDesc is returned. When fbTrans is 1, fbDesc is returned.

[0113] (3) The function block is FB-RPI: Find the function block information in fbdHash through fbName and determine the call tag bCall:

[0114] When the call mark bCall is 0: (A) Set bCall to 1, assign fbDesc to OrgDesc, and determine referFbType in the function block information. If referFbType is FB-RH, execute step (1); if referFbType is FB-RN, execute step (2); if referFbType is FB-RPO, find the function block information and function block connection information in fbdPageOutHash through referFbName, and return OrgDesc when fbTrans is 0 in the function block information. When fbTrans is 1, determine fbLinkType in the function block connection information. If fbLinkType is FB-RH, execute step (1); if fbLinkType is FB-RN, execute step (2); if fbLinkType is FB-RPI, return to the beginning of step (3); if fbLinkType is empty or FB-NR, return fbDesc.

[0115] When the call mark bCall is 1: determine whether fbDesc is equal to OrgDesc. If so, return OrgDesc. If not, determine fbTrans in the function block information. When fbTrans is 0, return OrgDesc. When fbTrans is 1, execute step (A).

[0116] After the above steps (1), (2) and (3) are completed, the fbDesc of fbInfoList in fbdPageOutHash is updated, that is, the functional block description of FB-RPO, such as Figure 6 As shown, it is a schematic diagram of the dynamic transfer mechanism flow when the function block is FB-RPO. The specific method may include:

[0117] The function block is FB-RPO: Find the function block connection information fbLinkList in fbdPageOutHash through fbName, and determine the fbLinkType in fbLinkList:

[0118] (1.1) If fbLinkType is FB-RH, find the connection function block information fbInfoList1 in fbdHash through fbLinkName in fbLinkList, judge fbTrans in fbInfoList1, when fbTrans in fbInfoList1 is 0, return fbDesc of fbLinkList, when fbTrans1 in fbInfoList1 is 1, assign fbDesc in fbInfoList1 to fbDesc of fbLinkList, and return fbDesc.

[0119] (1.2) If fbLinkType is FB-RN, find the connection function block information fbInfoList2 in fbdDevHash through fbLinkName in fbLinkList, and judge fbTrans in fbInfoList2. When fbTrans is 0, return fbDesc of fbLinkList; when fbTrans2 is 1, assign fbDesc in fbInfoList2 to fbDesc of fbLinkList, and return fbDesc.

[0120] (1.3) If fbLinkType is empty or FB-NR, return fbDesc.

[0121] like Figure 5 The figure shows a flow chart of the above dynamic transmission mechanism.

[0122] Based on the above-mentioned configuration function block diagram measurement point description transfer method, this application also proposes a dynamic display method. After executing the above steps, when opening FBD, the program can directly find the function block description in fbdHash, fbdDevHash, and fbdPageOutHash according to the function block type and can draw and display it.

[0123] When the measurement point information in the controller changes, the corresponding measurement point information in ptHash is updated synchronously, and at the same time, other controllers are notified to synchronously update the function block information that references the measurement point in fbdDevHash.

[0124] When the function block information in the controller or between stations changes, the function block reference information in fbdHash and fbdDevHash is updated synchronously.

[0125] When the inter-page output function block information or its connection information in the controller changes, the function block information or its connection information in fbdPageOutHash is updated synchronously, and the opened FBD is redrawn to realize the dynamic transfer of description.

[0126] The configuration function block diagram measurement point description transmission method proposed in the above application realizes the dynamic transmission of measurement point description, so that the measurement point description information can be transmitted in real time and dynamically in the function block diagram of the industrial automation system. This also means that when the measurement point data or related parameters change, the function block diagram can automatically update and reflect these changes without manual intervention. At the same time, the traditional measurement point description creation and management process is often cumbersome and error-prone. The present application greatly simplifies this process and reduces the workload of engineers when configuring and maintaining the system. When the control system configuration program is opened, the configuration function block diagram measurement point description transmission method of the present application will automatically start without additional configuration or operation, further simplifying the operation process. In addition, since the modification of the measurement point description and the function block reference can be automatically synchronized to the function block diagram, the system can quickly adapt to changes and improve flexibility. It reduces the errors that may occur in manual modification, enhances the maintainability of the system, and reduces maintenance costs. During the debugging and operation and maintenance stage, engineers can directly view the measurement point description of the equipment in the function block diagram, which helps to more accurately understand the working status and parameters of the equipment and improve operational efficiency and accuracy. By automatically updating the measurement point description of the function block diagram, the tedious process of engineers repeatedly entering or modifying information in multiple places is avoided, reducing errors caused by human factors. The above-mentioned automated processing reduces human intervention, thereby reducing the possibility of errors and improving the stability and reliability of the entire system.

[0127] like Figure 4 As shown, the embodiment of the present application also proposes a configuration function block diagram measurement point description transmission system, which may include:

[0128] The measuring point module is used to read all measuring point information of the controller and form a measuring point hash table.

[0129] The reference connection module is used to read all the function block diagram information of the controller, and form a function block diagram reference hash table, a function block diagram station-to-station measurement point reference hash table, and a function block diagram page-to-page output connection hash table, which are respectively recorded as the first hash table, the second hash table, and the third hash table.

[0130] The update module is used to read all referenced function block information of the controller when the measuring point information or parameters in the controller change, and update the function block description in the function block information linked list in the first hash table, the second hash table and the third hash table in combination with the function block type, reference rule, description transfer attribute and measuring point hash table.

[0131] Among them, the division and setting of function block types include:

[0132] The function blocks are divided into reference function blocks and non-reference function blocks to obtain a first-level classification result;

[0133] The reference class function blocks are divided into measurement point reference class function blocks, inter-station measurement point reference class function blocks and inter-page reference class function blocks to obtain a secondary classification result;

[0134] The measuring point reference class function blocks are divided into measuring point reference input class function blocks and measuring point reference output class function blocks, and the inter-page reference class function blocks are divided into inter-page reference input class function blocks and inter-page reference output class function blocks, to obtain a three-level classification result;

[0135] Set reference rules for the inter-station measurement point reference function blocks in the third-level classification results and the second-level classification results respectively;

[0136] Set the description transfer properties for each function block separately.

[0137] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the configuration function block diagram measurement point description transfer method described in any of the above embodiments are implemented.

[0138] Another electronic device provided in the embodiment of the present application may also include: an input port connected to the processor, used to transmit multimodal data collected by an external acquisition device to the processor; and a display unit connected to the processor, used to display the processing results of the processor to the outside world; a communication module connected to the processor, used to realize communication between the electronic device and the outside world. The display unit can be a display panel, a laser scanning display, etc.; the communication mode adopted by the communication module includes but is not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0139] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.< / fblinklist>

Claims

1. A configuration function block diagram measurement point description transfer method, characterized in that: include: Read all the measuring point information of the controller to form a measuring point hash table; Read all function block diagram information of the controller, and form a function block diagram reference hash table, a function block diagram station-to-station measurement point reference hash table, and a function block diagram page-to-page output connection hash table, which are recorded as a first hash table, a second hash table, and a third hash table respectively; When the measuring point information or the parameters in the controller change, read all referenced function block information of the controller, and update the function block description of the function block information linked list in the first hash table, the second hash table and the third hash table in combination with the function block type, reference rule, description transfer attribute and measuring point hash table; Among them, the division and setting of function block types include: The function blocks are divided into reference function blocks and non-reference function blocks to obtain a first-level classification result; The reference class function blocks are divided into measurement point reference class function blocks, inter-station measurement point reference class function blocks and inter-page reference class function blocks to obtain a secondary classification result; The measuring point reference class function blocks are divided into measuring point reference input class function blocks and measuring point reference output class function blocks, and the inter-page reference class function blocks are divided into inter-page reference input class function blocks and inter-page reference output class function blocks, to obtain a three-level classification result; Set reference rules for the inter-station measurement point reference function blocks in the third-level classification results and the second-level classification results respectively; Set the description transfer properties for each function block separately.

2. The configuration function block diagram measurement point description transfer method according to claim 1, characterized in that: The setting of reference rules includes: The measuring point reference input type function block can reference the measuring point of input type; The measuring point reference output type function block can reference the measuring point of output type; The inter-station measuring point reference class function block can reference measuring points of other controller input types; The inter-page reference input class function block can reference a reference class function block instance other than its own; The inter-page reference output class function block does not set a reference relationship.

3. The configuration function block diagram measurement point description transfer method according to claim 2, characterized in that: The description transfer attributes are set for each functional block respectively, including: Set the description transfer attribute fbTrans, the corresponding values ​​are 1 or 0. When fbTrans is 1, the function block object can transfer the description of the referenced object. When fbTrans is 0, the function block object cannot transfer the description of the referenced object.

4. The configuration function block diagram measurement point description transfer method according to claim 3, characterized in that: The measuring point hash table includes measuring point tag names and measuring point information linked lists; The measuring point label name is used to obtain measuring point information; The measuring point information linked list includes measuring point type and measuring point description.

5. The configuration function block diagram measurement point description transfer method according to claim 4, characterized in that: The data structures of the first hash table, the second hash table and the third hash table are the same.

6. The configuration function block diagram measurement point description transfer method according to claim 5, characterized in that: The first hash table includes a function block icon signature and a first function block diagram information linked list, and the second hash table includes a function block icon signature and a second function block diagram information linked list; The function block diagram tag is used to obtain function block diagram information; The first function block diagram information linked list and the second function block diagram information linked list both include a function block information linked list, and the function block information linked list includes a function block label name, a function block type, a function block description, a function block description transfer attribute, a referenced measurement point label name, a referenced function block instance name, and a referenced function block real type; The third hash table includes a function block diagram label and a third function block diagram information linked list; The third function block diagram information linked list includes an inter-page output function block information linked list, and the inter-page output function block information linked list includes a function block tag name, a function block type, a function block description, a function block description transfer attribute, a connection function block type and a connection function block tag name.

7. The configuration function block diagram measurement point description transfer method according to claim 6, characterized in that: Updating the function block description of the function block information linked list in the first hash table and the second hash table includes: (1.1) If the function block is a measurement point reference type function block, the function block information is determined in the first hash table by the function block tag name; (1.2) If the call mark in the function block information is 0: determine the referenced measurement point information in the first hash table through the referenced measurement point label name in the function block information, and assign the measurement point description to the function block description; If the call mark in the function block information is 1: determine the value corresponding to the description transfer attribute. If the value corresponding to the description transfer attribute is 0, call the original description and assign it to the function block description. If the value corresponding to the description transfer attribute is 1, determine the referenced measurement point information in the first hash table through the referenced measurement point label name in the function block information, and assign the measurement point description to the function block description. (2.1) If the function block is an inter-station measurement point reference type function block, the function block information is determined in the second hash table by the function block tag name; (2.2) If the call flag in the function block information is 0: return the function block description; (2.3) If the call mark in the function block information is 1: determine the description transfer attribute. If the value corresponding to the description transfer attribute is 0, call the original description and assign it to the function block description. If the value corresponding to the description transfer attribute is 1, return the function block description. (3.1) If the function block is an inter-page reference input type function block, the function block information is determined in the first hash table by the function block tag name; (3.2) If the call mark in the function block information is 0: set the call mark to 1, and assign the function block description to the original description, and determine the real type of the referenced function block in the function block information: if the real type of the referenced function block is a measurement point reference type function block, execute step (1.1); if the real type of the referenced function block is an inter-station measurement point reference type function block, execute step (2.1); if the real type of the referenced function block is an inter-page reference output type function block, determine the function block information and the function block connection information in the third hash table by referencing the function block instance name; if the function block information If the value corresponding to the transfer attribute in the description in the function block information is 0, the original description is returned. If the value corresponding to the transfer attribute in the description in the function block information is 1, the connection function block type in the function block connection information is determined. If the connection function block type is a measuring point reference type function block, step (1.1) is executed. If the connection function block type is an inter-station measuring point reference type function block, step (2.1) is executed. If the connection function block type is an inter-page reference input type function block, the function block description is returned. If the connection function block type is a non-reference type function block, the function block description is returned. If the call mark in the function block information is 1: determine whether the function block description is equal to the original description. If they are equal, return the original description. Otherwise, determine the description transfer attribute in the function block information. If the value corresponding to the description transfer attribute is 0, return the original description. If the value corresponding to the description transfer attribute is 1, execute step (3.2). Update the function block description in the function block information linked list in the third hash table, including: (4.1) If the function block is an inter-page reference output type function block, determine the third function block diagram information linked list in the function block information and the function block connection information in the third hash table according to the function block tag name; (4.2) Determine the type of connected function blocks in the third function block diagram information linked list: If the type of the connected function block is a measurement point reference type function block, determine the first function block diagram information linked list in the first hash table through the connection function block label name of the third function block diagram information linked list, if the value corresponding to the description transfer attribute in the first function block diagram information linked list is 0, return the original description of the first function block diagram information linked list, if the value corresponding to the description transfer attribute in the first function block diagram information linked list is 1, assign the function block description in the first function block diagram information linked list to the function block description in the third function block diagram information linked list; If the type of the connected function block is an inter-station measurement point reference class function block, determine the second function block diagram information linked list in the second hash table through the connection function block label name of the third function block diagram information linked list, if the value corresponding to the description transfer attribute in the second function block diagram information linked list is 0, return the original description of the first function block diagram information linked list, if the value corresponding to the description transfer attribute in the second function block diagram information linked list is 1, assign the function block description in the second function block diagram information linked list to the function block description in the third function block diagram information linked list; If the connected function block type is empty or a non-reference function block, the function block description is returned.

8. A dynamic display method, characterized in that: include: Adopt any one of the configuration function block diagram measurement point description transmission methods described in claims 1 to 7, update the function block descriptions of the function block information linked lists in the first hash table, the second hash table and the third hash table, and dynamically draw and display the function block descriptions of all function blocks in the function block diagram.

9. The dynamic display method according to claim 8, characterized in that: Also includes: (A) When the measuring point information in the controller changes, the corresponding measuring point information in the measuring point hash table is synchronously updated, and other controllers are caused to synchronously update the function block information that references the corresponding measuring point information in the second hash table; When the function block in the controller and / or the function block information between stations changes, the function block reference information in the first hash table and the second hash table is synchronously updated; When the inter-page output function block information or connection information in the controller changes, the function block information or connection information in the third hash table is synchronously updated; (B) Redrawn based on the results of step (A).

10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the configuration function block diagram measurement point description transfer method as described in any one of claims 1 to 7 when executing the computer program.

Citation Information

Patent Citations

  • Real-time clustering extreme value calculation method based on graphic configuration

    CN113282065A

  • Configuration tool data point reference jump method and system, equipment and medium

    CN113778043A

  • Cross reference synchronization processing method, system, equipment and medium

    CN113779324A

  • Inter-station bit number direct reference method, device and equipment and storage medium

    CN117724424A

  • System and method for implementing safety instrumented systems in a fieldbus architecture

    CN1802612A

Cited By

  • Heat supply network system measuring point information synchronization method and device

    CN121833729A

  • Heat network system measuring point information synchronization method and device

    CN121833729B