Configuration function block diagram measurement point description transfer method, display method, electronic equipment

By configuring the function block diagram measurement point description and delivery method, the problem of high complexity and risk of function block diagram operation is solved, real-time dynamic transmission and display of measurement point information is realized, and the efficiency and security of equipment debugging and operation and maintenance are improved.

CN119760173BActive Publication Date: 2025-09-02XIAN THERMAL POWER RES INST CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing functional block diagram is prone to operational errors due to human factors during equipment debugging and operation and maintenance stages, especially when forced operations are performed under special operating conditions. It is easy to cause operational errors due to human factors, and the operation complexity and risk are high. Especially in large equipment systems, the citation relationship between functional block diagram pages and the citation relationship between controllers make the problem more complicated, resulting in the inability to display the measurement point description in the cited functional block diagram.

Method used

The configuration function block diagram measurement point description transfer method is adopted. By reading the controller's measurement point and function block diagram information, a hash table is formed, the three-level classification of functional blocks and the reference rules are set, and the functional block description in the hash table is dynamically updated, so as to realize the automatic transmission and dynamic display of measurement point information.

Benefits of technology

It improves the operation efficiency and safety of the equipment debugging and operation and maintenance stages, reduces the risk of operation errors caused by human factors, realizes real-time dynamic transmission of the measurement point description in the functional block diagram, simplifies the operation process, and enhances the maintainability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760173B_ABST
    Figure CN119760173B_ABST
Patent Text Reader

Abstract

The present application relates to a display method. In view of the technical problems that in traditional function block diagram implementation, when a device is forcibly operated, there are operational errors easily caused by human factors, and the operation is complex and risky, a configuration function block diagram measurement point description transmission method, a display method, and an electronic device are provided. Function blocks are classified into three levels according to the reference situation, a measurement point hash table is established for all measurement point information, and based on the reference relationship and all function block diagram information, 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 are formed. 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 inter-station measurement point reference hash table, and the function block diagram inter-page output connection hash table are updated, so that the relevant changes can be automatically updated and reflected without human 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 widely used in industrial automation. In traditional FBD implementations, function blocks and data points are referenced through internal binding within the system, enabling data flow and precise control of field equipment.

[0003] However, during the equipment commissioning and maintenance phase, especially when forced operations are required under special operating conditions, existing function block diagram technology has some significant shortcomings: workers need to search and jump between multiple function block diagram pages based on the reference relationship between function blocks and data measurement points to locate the specific device or measurement point for forced operation. This operation method is not only technically demanding but also prone to human errors. Once an error occurs, it can cause the equipment and even the entire system to operate abnormally, resulting in huge economic losses to the company.

[0004] Especially in the control logic of large-scale equipment systems, references between function block diagram pages (inter-page references) and between controllers (inter-station references) further complicate the issue. Although the device measurement point description can be displayed on the function diagram after the function block is connected, the description information will no longer be displayed in the referenced function block diagram due to inter-page or inter-station references. This means that when performing forced operations, personnel need to manually track reference relationships and jump through hierarchical levels to find detailed information about the device measurement point, which undoubtedly increases the complexity and risk of the operation. Summary of the Invention

[0005] This application addresses the technical problems in traditional function block diagram implementation, where forced operation of equipment is prone to operational errors due to human factors, and the operation is complex and risky. It provides a configuration function block diagram measurement point description transmission method, display method, and electronic equipment.

[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 method for transferring configuration function block diagram measurement point descriptions, comprising:

[0008] Read all the measurement point information of the controller to form a measurement 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 inter-station measurement point reference hash table, and a function block diagram inter-page output connection hash table, which are sequentially recorded as the first hash table, the second hash table, and the third hash table;

[0010] When the measurement 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 measurement point hash table;

[0011] 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 the first-level classification results;

[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 three-level classification results and the two-level classification results respectively;

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

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

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

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

[0020] The inter-station measurement point reference class function block can reference measurement 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 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] Furthermore, the measuring point hash table includes measuring point tag names and a measuring point information linked list;

[0026] The measuring point tag 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] Furthermore, 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 function block information linked lists, and the function block information linked lists include function block label name, function block type, function block description, function block description transfer attribute, referenced measurement point label name, referenced function block instance name and 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 function block tag name, function block type, function block description, function block description transfer attribute, connection function block type and connection function block tag name.

[0034] Further, updating the function block description of the function block information linked table 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 flag in the function block information is 0: determine the referenced measurement point information in the first hash table using the referenced measurement point tag name in the function block information, and assign the measurement point description to the function block description;

[0037] If the call flag 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 reference measurement point information in the first hash table based on the reference measurement point tag 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 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 flag 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 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 reference function block real type in the function block information: if the reference function block real type is a measurement point reference class function block, execute step (1.1); if the reference function block real type is an inter-station measurement point reference class function block, execute step (2.1); if the reference function block real type is an inter-page reference output class function block, determine the function block information and function block connection information in the third hash table by referencing the function block instance name, and if the function block information If the value corresponding to the transfer attribute in the description information is 0, the original description is returned. If the value corresponding to the transfer attribute 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 process returns to the beginning of step (3.1). If the connection function block type is a non-reference type function block, the function block description is returned.

[0043] If the call flag in the function block information is 1: determine whether the function block description is equal to the original description. If so, 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 function block, determine the function block information and the third function block diagram information linked list in 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 connected function block type is a measurement point reference type function block, determine the first function block diagram information linked list in the first hash table using the connected function block tag name in 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 connected function block type is an inter-station measurement point reference function block, determine the second function block diagram information linked list in the second hash table using the connected function block tag name in 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 used to update the function block description of the function block information linked table 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 measurement point information in the controller changes, the corresponding measurement point information in the measurement point hash table is updated synchronously, and other controllers are caused to synchronously update the function block information that references the corresponding measurement 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] The 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] This application proposes a method for transferring measurement point descriptions in a configuration function block diagram (FBD). Function blocks are classified into three levels based on references, and a measurement point hash table is established for all measurement point information. Based on the reference relationships, a FBD reference hash table, a FBD inter-station measurement point reference hash table, and a FBD inter-page output connection hash table are generated based on all FBD information. When measurement point information or controller parameters change, the function block descriptions in the function block information linked tables in the FBD reference hash table, the FBD inter-station measurement point reference hash table, and the FBD inter-page output connection hash table are automatically updated to reflect the changes. This allows for real-time and dynamic transfer of measurement point description information within the FBD of an industrial automation system. By optimizing the visualization of FBDs, enhancing the tracking capabilities of reference relationships, and enhancing the real-time display of measurement point descriptions, the method significantly improves the operational efficiency and safety of personnel during equipment commissioning and maintenance, while reducing the risk of operational errors caused by human factors.

[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 following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

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

[0065] Figure 2This is a 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 the classification and reference rules of the functional blocks in this embodiment;

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

[0068] Figure 5 This is a flow chart of the dynamic transmission mechanism in an 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 an embodiment of the present application. DETAILED DESCRIPTION

[0070] To make the objectives, technical solutions, and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Generally, the components of the embodiments of the present application described and shown in the drawings herein 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 protection, but merely represents selected embodiments of the present application. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application 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, it does not require further definition or explanation 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 accompanying drawings, or the orientation or position relationship in which the product of the invention is usually placed when in use. This 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 operate in a specific orientation. Therefore, it should not be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are only used to distinguish the description and should not 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", and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0075] In the description of the embodiments of this application, it should also be noted that, unless otherwise expressly specified or limited, the terms "disposed," "installed," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to internal connections between two components. Those skilled in the art can understand the specific meanings of the above terms in this application based on specific circumstances.

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

[0077] In FBD, a function block is a basic unit that represents a specific function or operation. Each function block has one or more inputs or outputs, which are connected to other function blocks via connecting lines to implement the desired control logic. Function blocks can perform various operations, such as mathematical calculations, logical judgments, and data conversions. In FBD, a function block is graphically represented as a rectangular box, which contains information such as the function block name, input / output ports, and parameter settings. Complex control systems can be constructed by combining and connecting different function blocks. A data point is a location in FBD used to acquire or output data. In automation systems, data points typically correspond to actual physical quantities and are used to monitor and control their changes in real time. Data points can be input points for acquiring external data or output points for outputting control signals. Data points are typically connected to the input / output ports of a function block. When external data changes, the corresponding input point receives the data, which is then processed and calculated by the function block. The processed data can then be output to external devices or systems through output points to implement control functions.

[0078] Data flow typically remains continuous across multiple FBD pages. Cross-page references are used when a function block in one FBD page references a function block or data in another. Furthermore, in large-scale equipment systems, control systems are often distributed and managed by multiple controllers, which may be located in different physical locations and interconnected via a communication network. In the control logic of large-scale equipment systems, references between function block diagram pages and between controllers are crucial for achieving system collaboration and correct data flow.

[0079] Therefore, for large-scale equipment systems, when forced operation of equipment is required, 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. The present application is further described in detail below with reference to the embodiments and drawings.

[0080] like Figure 1 As shown, the first flow chart of the configuration function block diagram measurement point description transfer method of this application may include:

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

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

[0083] S102, read all function block diagram information of the controller, and form 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, which are recorded as the first hash table, the second hash table, and the third hash table respectively.

[0084] In FBD, function block diagram reference hash tables are used to store and reference data between different locations or function blocks. Function block diagram inter-station measurement point reference hash tables reference measurement point information at different stations or locations. Function block diagram inter-page output connection hash tables establish output connections between different pages and use hash tables to store and manage the data structure of these connections. Hash tables enable storage and indexing.

[0085] S103, when the measurement 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 the measurement point hash table.

[0086] 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 the first-level classification results;

[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 three-level classification results and the two-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, the second flow chart of the configuration function block diagram measurement point description transfer method of the present application 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 different 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 measurement point reference function blocks (FB-RH) are divided into two categories based on the referenced measurement point attributes: measurement point reference input function blocks (FB-RHI) and measurement point reference output function blocks (FB-RHO). Furthermore, the inter-page reference function blocks (FB-RP) are divided into two categories based on the inter-page data transfer requirements: inter-page reference input function blocks (FB-RPI) and inter-page reference output function blocks (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), 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 property (fbTrans) for the function block, setting its value to 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. In other words, when a referenced object exists, the function block description is determined by the corresponding value of fbTrans. If fbTrans is 1, the function block description is the description of the referenced object; if fbTrans is 0, the function block description is the description of the object itself. The default value of fbTrans for FB-R objects is 1 and can be modified. The default value of fbTrans for FB-NR objects is 0 and cannot be modified.

[0101] S203, implement a dynamic transmission mechanism.

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

[0103] 1. Read all the measurement point information of the controller and form a measurement point hash table, recorded as ptHash<ptName,ptInfoList> In the measurement point hash table, ptName is the measurement point tag name, and the measurement point information can be obtained through ptName. ptInfoList is the measurement point information list, which can include the point type (ptType) and 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 for connecting output between function block diagram pages <fbdName,fbdInfoList3 <fblinklist>>, respectively denoted as the first hash table fbdHash, the second hash table fbdDevHash and the third hash table fbdPageOutHash.

[0105] In practical applications, the data structures of fbdHash, fbdDevHash, and fbdPageOutHash can be consistent, with only different contents. fbdHash stores function block information excluding inter-station reference function blocks, fbdDevHash stores only inter-station reference function block information, and fbdPageOutHash stores inter-page output function block information and its connection information (key information about the parent function block of the output function block connection line in the function block diagram). fbdName is the function block icon signature, and function block diagram information can be obtained through fbdName. fbdInfoList1 and fbdInfoList2 are the first and second function block diagram information linked lists corresponding to the corresponding hash tables, containing information about all function blocks in the function block diagram. fbInfoList1 and fbInfoList2 are the corresponding first and second function block information linked lists, respectively, containing the function block tag name (fbName), function block type (fbType), function block description (fbDesc), function block description transfer attribute (fbTrans), reference measurement point tag name (referPtName), reference function block instance name (referFbName), and reference function block real type (referFbType). fbLinkList is the inter-page output function block information linked list, containing the function block tag 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 tag 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 flag 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, check the fbTrans in the function block information. If fbTrans is 0, assign the original description (OrgDesc) to fbDesc and return fbDesc. If fbTrans is 1, find the reference point information in ptHash using referPtName in the function block information, assign ptDesc to fbDesc, and return fbDesc.

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

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

[0112] When the call flag bCall is 1, the fbTrans in the function block information is judged. When fbTrans is 0, the original call description (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 flag bCall:

[0114] When the call flag 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, determine if fbTrans in the function block information is 0, and return OrgDesc. If 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 flag bCall is 1: determine whether fbDesc is equal to OrgDesc. If so, return OrgDesc. If not, determine fbTrans in the function block information. If fbTrans is 0, return OrgDesc. If 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 The figure shows a flow chart of the dynamic transfer mechanism 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, and 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, use the fbLinkName in fbLinkList to find the connection function block information fbInfoList2 in fbdDevHash and determine the fbTrans in fbInfoList2. If fbTrans2 is 0, return fbDesc from fbLinkList; if fbTrans2 is 1, assign fbDesc from fbInfoList2 to fbDesc in fbLinkList and return fbDesc.

[0120] (1.3) If fbLinkType is null 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] Among them, 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 dynamic transfer of description.

[0126] The method for transferring measurement point descriptions in a configured function block diagram (FBD) proposed in this application implements dynamic transfer of measurement point descriptions, enabling real-time, dynamic transfer of measurement point description information within the function block diagram (FBD) of an industrial automation system. This means that when measurement point data or related parameters change, the FBD automatically updates to reflect these changes without manual intervention. However, the traditional process of creating and managing measurement point descriptions is often cumbersome and error-prone. This application significantly simplifies this process, reducing the workload for engineers when configuring and maintaining the system. When the control system configuration program is opened, the method for transferring measurement point descriptions in this application automatically initiates, requiring no additional configuration or operation, further streamlining the operational process. Furthermore, because modifications to measurement point descriptions and function block references are automatically synchronized with the FBD, the system can quickly adapt to changes, increasing flexibility. This reduces the potential for errors associated with manual modifications, enhances system maintainability, and reduces maintenance costs. During the commissioning and maintenance phases, engineers can view device measurement point descriptions directly within the FBD, helping them more accurately understand the device's operating status and parameters, improving operational efficiency and accuracy. By automatically updating the measurement point descriptions in the function block diagram, engineers can avoid the tedious process of repeatedly entering or modifying information in multiple locations, reducing errors caused by human factors. This automated process 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 inter-station measurement point reference hash table, and a function block diagram inter-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 measurement point information or parameters in the controller change, and update the function block description in the function block information chain table in the first hash table, the second hash table and the third hash table based on the function block type, reference rule, description transfer attribute and measurement point hash table.

[0131] 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 the first-level classification results;

[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 three-level classification results and the two-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 an embodiment of the present application may further include: an input port connected to the processor for transmitting multimodal data collected by an external acquisition device to the processor; a display unit connected to the processor for displaying the processing results of the processor to the outside world; and a communication module connected to the processor for enabling communication between the electronic device and the outside world. The display unit may be a display panel, a laser scanning display, etc.; the communication method 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 merely preferred embodiments of the present application and are not intended to limit the present application. Those skilled in the art will readily appreciate that various modifications and variations are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.< / fblinklist>

Claims

1. A configuration function block diagram measurement point description transfer method, characterized in that: include: Read all the measurement point information of the controller to form a measurement 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 inter-station measurement point reference hash table, and a function block diagram inter-page output connection hash table, which are sequentially recorded as the first hash table, the second hash table, and the third hash table; When the measurement 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 measurement point hash table; 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 the first-level classification results; 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 three-level classification results and the two-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 class function block can reference the input type measuring point; The measuring point reference output type function block can reference the output type measuring point; The inter-station measurement point reference class function block can reference measurement 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 function 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 tag 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 table, and the second hash table includes a function block icon signature and a second function block diagram information linked table; 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 function block information linked lists, and the function block information linked lists include function block label name, function block type, function block description, function block description transfer attribute, referenced measurement point label name, referenced function block instance name and 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 function block tag name, function block type, function block description, function block description transfer attribute, connection function block type and 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 table 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 flag in the function block information is 0: determine the referenced measurement point information in the first hash table using the referenced measurement point tag name in the function block information, and assign the measurement point description to the function block description; If the call flag 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 reference measurement point information in the first hash table based on the reference measurement point tag 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 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 flag 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 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 reference function block real type in the function block information: if the reference function block real type is a measurement point reference class function block, execute step (1.1); if the reference function block real type is an inter-station measurement point reference class function block, execute step (2.1); if the reference function block real type is an inter-page reference output class function block, determine the function block information and function block connection information in the third hash table by referencing the function block instance name, and if the function block information If the value corresponding to the transfer attribute in the description information is 0, the original description is returned. If the value corresponding to the transfer attribute 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 process returns to the beginning of step (3.1). If the connection function block type is a non-reference type function block, the function block description is returned. If the call flag in the function block information is 1: determine whether the function block description is equal to the original description. If so, 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 function block, determine the function block information and the third function block diagram information linked list in 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 connected function block type is a measurement point reference type function block, determine the first function block diagram information linked list in the first hash table using the connected function block tag name in 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 connected function block type is an inter-station measurement point reference function block, determine the second function block diagram information linked list in the second hash table using the connected function block tag name in 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 the configuration function block diagram measurement point description transmission method described in any one of claims 1 to 7, update the function block description of the function block information linked table in the first hash table, the second hash table and the third hash table, and dynamically draw and display the function block description 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 measurement point information in the controller changes, the corresponding measurement point information in the measurement point hash table is updated synchronously, and other controllers are caused to synchronously update the function block information that references the corresponding measurement 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 configured to implement the steps of the configuration function block diagram measurement point description transfer method as claimed 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