Method and apparatus for automatic interconnection between function blocks in an fbd program
The automatic connection method solves the problem of cumbersome operation of logical relationships between function blocks, realizes efficient and correct control logic establishment, and is suitable for programming complex control systems.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-16
- Publication Date
- 2026-03-17
AI Technical Summary
In existing technologies, establishing logical relationships between functional blocks is cumbersome and prone to errors, making it difficult to guarantee the correctness of control logic in complex control systems.
This paper provides an automatic connection method between function blocks in an FBD program. By parsing the function block ID number and pin information of the target function block, the method automatically adds connections using a network relationship file or preset connection rules to establish logical relationships between function blocks.
It improves configuration efficiency, reduces the possibility of errors in manual wiring, ensures the correctness of control logic, and is suitable for programming complex control systems.
Smart Images

Figure CN114594941B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for automatically connecting function blocks in an FBD program. Background Technology
[0002] Function Block Diagram (FBD) programming language is a commonly used programming language in modern industrial control. As a programming language similar to digital logic circuits, FBD uses logic block diagrams to form functional blocks, and connects these blocks to achieve system control. Its principle is to encapsulate functional functions within individual functional modules. Users do not need to concern themselves with the specific details of the function implementation; they only need to understand how to use the input and output parameters. When programming the control system, engineers only need to add connections between the input and output pins of each functional block to establish logical relationships, thus meeting engineering requirements.
[0003] The current method for establishing logical relationships between functional blocks involves manually adding connections between the corresponding input / output pins of two functional blocks. Specifically, this involves dragging the connection from the starting pin to the ending pin of the logical relationship to establish a connection. Because this manual connection operation is repeated, it becomes cumbersome and inefficient when there are many functional blocks and complex logical relationships. Furthermore, there is a possibility of connection errors, compromising correctness. Therefore, for complex control logic with numerous functional blocks and intricate inter-module logical relationships, engineers often add a large number and complex number of connections between the input / output pins of each functional block during configuration editing. Consequently, if a connection error occurs, the correctness of the control logic cannot be guaranteed, and troubleshooting becomes difficult. Summary of the Invention
[0004] To address the aforementioned technical problems, this application provides an automatic connection method and apparatus for functional blocks in an FBD program. This method utilizes automatic connection design to improve configuration efficiency, ensure the correctness of control logic, and is suitable for programming relatively complex control systems.
[0005] In a first aspect, embodiments of this application provide an automatic connection method between function blocks in an FBD program, including:
[0006] In response to a first target event triggered in the connection pool of the visualization window, the target functional block to be connected is obtained based on the first target event;
[0007] Analyze the target function block to obtain its function block ID number and pin information;
[0008] In response to a second target event triggered in the connection pool, determine whether to import the network relationship file associated with the target functional block based on the second target event, and output the determination result;
[0009] When importing the network relationship file associated with the target function block, the connection is added between the pins of the target function block and the pins of the function block that are determined to be associated, according to the logical relationship determined in the network relationship file.
[0010] If no network relationship file associated with the target function block is imported, the preset connection rule configuration is executed. According to the connection requirements, the target function block is automatically connected to the pins of other function blocks in the connection pool that meet the requirements using the function block ID number and pin information.
[0011] Furthermore, in response to the visualization window, a mapping relationship between each functional block and the functional modules in the FBD program is pre-established. Based on the function functions encapsulated in the functional modules, each functional block becomes a graphical identifier of the corresponding functional module that implements the preset function. The input and output of each functional module are identified by the pins configured in each functional block.
[0012] Furthermore, after parsing the target functional block, all pin information is obtained, including pin name, pin attribute, and data type; the pin attribute represents the input or output attribute of the functional module; the data type describes the data type of the input or output of the functional module.
[0013] Furthermore, the preset connection rules include, after determining the target functional block, traversing all other functional blocks in the connection pool, determining the program execution order of the target functional block and the functional modules corresponding to any other functional block in the connection pool according to the functional block ID number, and, based on the same data type, adding pin connections between the output pins of the previous functional block and the output pins of the subsequent functional block when adding pin connections.
[0014] Furthermore, the target functional block and any other functional block in the connection pool are automatically connected to the entire pin or to a portion of the pins according to the connection rules and connection requirements.
[0015] Furthermore, before automatically adding pin connections, the target function block is determined, and the pin information to be connected in the target function block is traversed.
[0016] Furthermore, when the connection requirement is configured as automatic connection of all pins, all first functional blocks that meet the association requirements are filtered according to the functional block ID number; the pin information in the first functional block is traversed sequentially according to the functional block ID number. If all pin information in the first functional block matches all pin information in the target functional block, a pin connection is automatically added between the two functional blocks; otherwise, the process jumps to the next first functional block and performs the comparison and analysis operation of all pin information again until the traversal of the first functional blocks is completed.
[0017] Furthermore, when the connection requirement is configured to automatically connect some pins, all second functional blocks that meet the association requirements are filtered according to the functional block ID number; the empty pin information in the second functional block is traversed sequentially according to the functional block ID number. If the empty pin information matches the pin information to be connected in the target functional block, a pin connection is automatically added between the two functional blocks; otherwise, the process jumps to the next second functional block and performs the comparison and analysis operation of the empty pin information again until the traversal of the second functional blocks is completed.
[0018] Furthermore, the logical relationships determined in the network relationship file are the function block ID number, pin information, associated function block ID number, and associated pin information of the target function block.
[0019] Secondly, embodiments of this application provide an automatic connection device between function blocks in an FBD program, employing the method described in any one of the first aspects, including:
[0020] The acquisition unit is configured to respond to a first target event triggered in the connection pool of the visualization window, and acquire the target functional block to be connected based on the first target event;
[0021] The parsing unit is configured to parse the target function block and obtain the function block ID number and pin information of the target function block.
[0022] The judgment unit is configured to respond to a second target event triggered in the connection pool, determine whether to import the network relationship file associated with the target function block based on the second target event, and output the judgment result;
[0023] The first execution unit is configured to add connections between the pins of the target function block and the pins of the function block that are determined to be associated, according to the logical relationship determined in the network relationship file when importing the network relationship file associated with the target function block.
[0024] The second execution unit is configured to, when no network relationship file associated with the target function block is imported, configure according to preset connection rules and connection requirements, and use the function block ID number and pin information to automatically connect the target function block with the pins of the first other function block in the connection pool that meets the requirements.
[0025] The technical solutions provided in this application embodiment have at least the following technical effects:
[0026] 1. The automatic connection method between function blocks in the FBD program provided by this invention can improve the configuration efficiency, ensure the correctness of the control logic, and is suitable for programming relatively complex control systems.
[0027] 2. This invention eliminates the time spent manually adding function block connections, improving configuration operation efficiency; it also reduces the possibility of errors in manual wiring, ensuring the correctness of control logic. Attached Figure Description
[0028] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0029] Figure 1 This is a flowchart of the automatic connection method in Embodiment 1 of this application;
[0030] Figure 2 This is a schematic diagram of the automatic connection operation in the FBD program in Embodiment 1 of this application;
[0031] Figure 3 This is a flowchart of the automatic wiring device unit in Embodiment 2 of this application. Detailed Implementation
[0032] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] In this application, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0034] This invention can be used in a wide variety of general-purpose or special-purpose computing environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor devices, distributed computing environments including any of the above devices, etc.
[0035] Example 1
[0036] This application provides an automatic connection method between function blocks in an FBD program. This method can be applied to various system platforms, and its execution entity can be a computer terminal or the processor of various mobile devices. (See attached document) Figure 1-2 The diagram shown is a flowchart of the automatic connection method between function blocks in the FBD program provided in this embodiment, which includes:
[0037] S101, in response to a first target event triggered in the connection pool of the visualization window, obtain the target function block to be connected according to the first target event.
[0038] In this embodiment, the first target event triggered is to determine the target function block to be connected. The target function block represents the object to be executed. The target function block can be any function block that needs to be connected. This embodiment does not limit this and only uses it to distinguish it from other function blocks.
[0039] In this embodiment, in response to the visualization window, a mapping relationship between each functional block and the functional modules in the FBD program is pre-established. Based on the function functions encapsulated in the functional modules, each functional block becomes a graphical identifier corresponding to the functional module that implements a preset function. Furthermore, pins configured in each functional block are used to identify the input and output of each functional module. That is, the functional blocks in this embodiment are not true functional modules of the FBD program, but they can be mapped to represent the flow relationship between functional modules. This embodiment uses functional blocks to graphically identify functional modules in the program and also uses pins to identify the input and output of functional modules. In other words, each pin information contains input / output attributes and the data type of the input / output. Therefore, it can be seen that the logical relationship between functional modules is already defined based on the pin information.
[0040] S102, parse the target function block to obtain the function block ID number and pin information of the target function block.
[0041] In this embodiment, the target functional block obtained can be a new functional block introduced from the interconnect pool, or it can be an existing functional block in the interconnect pool that needs to be connected. The parsed target functional block in this embodiment can be understood as parsing the unconnected pin information within the target functional block. That is, after parsing the target functional block, the functional block ID number and the unconnected pin information are obtained. The functional block ID number is configured for each functional block entering the interconnect pool. This serves two purposes: firstly, to identify the functional module of the program, and secondly, to reflect the execution order between two program functional modules. For example, the execution order between program functional modules can be reflected based on the functional block ID number.
[0042] In this embodiment, after parsing the target functional block, all pin information is obtained, including pin name, pin attribute, and data type; the pin attribute represents the input or output attribute of the functional module; the data type describes the data type of the input or output of the functional module.
[0043] S103, in response to the second target event triggered in the connection pool, determine whether to import the network relationship file associated with the target function block based on the second target event, and output the determination result.
[0044] In this embodiment, the second target event triggered is the pin connection event. There are two cases for the pin connection event: one is to directly determine the pin connection between two functional blocks based on the imported network relationship file, and the other is to automatically add pin connections between two functional blocks that meet the requirements by traversing the connection pool according to the preset connection rule configuration without importing the network relationship file.
[0045] S104, when importing the network relationship file associated with the target function block, the system executes the logical relationship determined in the network relationship file to add a connection between the pins of the target function block and the pins of the function block that are determined to be associated.
[0046] In this embodiment, the logical relationships determined in the network relationship file are the function block ID number, pin information, associated function block ID number, and associated pin information of the target function block. For example, the table below shows the logical relationship table determined in the network relationship file associated with the target function block.
[0047]
[0048] In the logical relationship table, the pin attributes at both ends of the connection are opposite, but the data types are the same. It can be seen that in this embodiment, the logical relationships between functional modules in the FBD program to be connected are stored in a network relationship file. The content determined from the network relationship file includes: the functional block ID number, pin name, pin input / output attributes, the associated functional block ID number connected to the pin, and the associated pin information for each functional block. When this network relationship file is imported into the FBD program's visual window, pin connections between functional blocks are automatically added based on the determined target functional blocks. When adding pin connections, the process can be as follows: Load all function block information (function block ID, pin information, associated function block ID, associated pin information) from the network relationship file; traverse all function blocks in the connection pool; parse the function block ID and pin information of each function block; if the function block ID and pin information of a function block in the connection pool satisfy the logical relationship in the network relationship file, then add a pin connection between the pins of these two function blocks; continue traversing the function block IDs and pin information of other function blocks; if a logical relationship exists that satisfies the network relationship file, then directly add a pin connection between the pins of the two function blocks according to the above steps; continue the above steps until all connection relationships in the network relationship file have been executed, that is, until all connection relationships of function blocks in the FBD program have been traversed. Therefore, this solution can make the connection relationships established between function blocks more efficient and logically correct.
[0049] S105, if no network relationship file associated with the target function block is imported, then the preset connection rule configuration is executed. According to the connection requirements, the target function block is automatically connected to the pins of other function blocks in the connection pool that meet the requirements using the function block ID number and pin information.
[0050] In this embodiment, without importing the network relationship file, it is impossible to receive the logical relationship between functional blocks. However, since a lower priority connection rule is preset in the connection pool in this embodiment, the connection between functional blocks can be matched according to the preset connection rule even without importing the network relationship file.
[0051] The preset connection rules in this embodiment include: after determining the target functional block, traversing all other functional blocks in the connection pool, determining the program execution order of the functional modules corresponding to the target functional block and any other functional block in the connection pool according to the functional block ID number, and adding pin connections between the output pins of the previous functional block and the output pins of the subsequent functional block when adding pin connections on the basis of the same data type.
[0052] In this context, identifying a target functional block can be understood as selecting the functional block as the target after it has been dragged to the connection pool, and then executing preset connection rules based on the connection relationships of the target functional block. In this embodiment, the target functional block and any other functional block in the connection pool are automatically connected to their pins, either as a whole or as a subset of pins, according to the connection rules and connection requirements. Furthermore, before automatically adding pin connections, the target functional block is identified, and the pin information to be connected within the target functional block is traversed.
[0053] When the connection requirement is configured for automatic overall pin connection, all first functional blocks that meet the association requirements are filtered according to the functional block ID number. The pin information in the first functional blocks is traversed sequentially according to the functional block ID number. If all pin information in the first functional block matches all pin information in the target functional block, a pin connection is automatically added between the two functional blocks; otherwise, the process jumps to the next first functional block and repeats the comparison and analysis of all pin information until the traversal of the first functional blocks is complete. It can be seen that the automatic overall connection between functional blocks first identifies a target functional block, traverses all pin information of the target functional block, and determines the pin attributes. If the determined pin attribute is input, then the pin attribute of the associated functional block is output, and the functional block ID number of the associated functional block is located before that of the target functional block. This means that in the FBD program, the functional modules of the associated functional blocks are executed first, followed by the functional modules of the target functional block. If the pin attribute of the target function block is determined to be output, then the pin attribute of the associated function block is input, and the function block ID number of the associated function block is located after the target function block. This means that in the FBD program, the function module of the target function block is executed first, followed by the function module of the associated function block. Since the traversal matching is performed according to the function block ID number, it can be understood that when the first function block that completes the match and meets the requirements is the associated function block of the target function block, and the traversal ends after a successful match, the process ends. In this embodiment, any two function blocks in the connection pool can be specified for automatic connection of all pins. That is, on the visualization interface of the connection pool, by selecting two function blocks, it is possible to determine whether they match based on the pin attributes and data types in the pin information, thereby achieving automatic connection between the specified two function blocks.
[0054] When the connection requirement is configured for partial automatic pin connection, all second functional blocks that meet the association requirements are filtered according to the functional block ID number. The remaining pin information in the second functional blocks is traversed sequentially according to the functional block ID number. If the remaining pin information matches the pin information to be connected in the target functional block, a pin connection is automatically added between the two functional blocks; otherwise, the process jumps to the next second functional block and repeats the comparison and analysis of the remaining pin information until the traversal of the second functional blocks is complete. In this embodiment, two functional blocks can be specified for partial automatic pin connection. In the visualization interface of the connection pool, partial pins of two functional blocks are selected for matching, i.e., between the specified pin sets of two functional blocks, automatic pin connection is completed according to the matching rules. Furthermore, automatic pin connection can also be completed according to the selected pin order and the specified pin order and matching rules.
[0055] The automatic connection method between functional blocks in the FBD program proposed in this embodiment utilizes the pin information of functional blocks in the FBD program page to match the pin information of other functional blocks in the connection pool, thereby establishing logical relationships between functional modules through connection relationships. In this embodiment, the connection relationships between functional blocks can be customized. The connection relationships between functional blocks can be written in a network relationship file and imported into the FBD program page as text. According to the logical relationships in the network relationship file, connections between functional blocks are automatically added to establish connections. Alternatively, pin connections between functional blocks can be added directly according to preset connection rules. It can be seen that this embodiment directly saves the time of manually adding pin connections between functional blocks, improves configuration operation efficiency, reduces the possibility of manual connection errors, and ensures the correctness of control logic.
[0056] Example 2
[0057] This embodiment provides an automatic connection device between function blocks in an FBD program, employing the method described in any one of the embodiments in Example 1, with reference to the appendix. Figure 3 As shown, it includes the following units.
[0058] The acquisition unit 101 is configured to respond to a first target event triggered in the connection pool of the visualization window and acquire the target function block to be connected based on the first target event.
[0059] The parsing unit 102 is configured to parse the target function block and obtain the function block ID number and pin information in the target function block.
[0060] The judgment unit 103 is configured to respond to a second target event triggered in the connection pool and determine whether to import the network relationship file associated with the target function block based on the second target event.
[0061] The first execution unit 104 is configured to add connections between the pins of the target function block and the pins of the function block that are determined to be associated, according to the logical relationship determined in the network relationship file when importing the network relationship file associated with the target function block.
[0062] The second execution unit 105 is configured to, when no network relationship file associated with the target function block is imported, configure according to preset connection rules and connection requirements, and use the function block ID number and pin information to automatically connect the target function block with the pins of the first other function block in the connection pool that meets the requirements.
[0063] Example 3
[0064] This application provides an electronic device, including: one or more processors; a memory; for storing one or more programs; and when the one or more programs are executed by the one or more processors, causing the one or more processors to implement the method as described in any of the embodiments in 1.
[0065] This application also provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any of the embodiments described in Example 1.
[0066] This causes the processor, during the execution of the method, to perform the following steps when executing the method in Embodiment 1:
[0067] S101, In response to a first target event triggered in the connection pool of the visualization window, obtain the target functional block to be connected according to the first target event; S102, parse the target functional block to obtain the functional block ID number and pin information of the target functional block; S103, In response to a second target event triggered in the connection pool, determine whether to import the network relationship file associated with the target functional block according to the second target event, and output the determination result; S104, When importing the network relationship file associated with the target functional block, add a connection between the pins of the target functional block and the pins of the determined associated functional block according to the logical relationship determined in the network relationship file; S105, When not importing the network relationship file associated with the target functional block, configure according to the preset connection rules and connection requirements, and use the functional block ID number and pin information to automatically connect the target functional block with the pins of the first functional block that meets the requirements in the connection pool.
[0068] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) in which computer-usable program code is incorporated.
[0069] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0070] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0071] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0072] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0073] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention is also intended to encompass these modifications and variations.
Claims
1. A method for automatic wiring between function blocks in a FBD program, characterized in that, The method comprises the following steps: In response to a first target event triggered in a connection pool of a visual window, a target function block to be connected is acquired according to the first target event; The target function block is parsed to acquire a function block ID number and pin information of the target function block; In response to a second target event triggered in the connection pool, it is judged whether to import a network relationship file associated with the target function block according to the second target event, and a judgment result is output; When the network relationship file associated with the target function block is imported, a connection is added between a pin of the target function block and a pin of a function block determined to be associated according to a logical relationship determined in the network relationship file; When the network relationship file associated with the target function block is not imported, a preset connection rule configuration is executed, and the target function block and pins of other function blocks in the connection pool that meet the requirements are automatically connected according to the function block ID number and the pin information; The preset connection rule comprises the following steps: after the target function block is determined, all other function blocks in the connection pool are traversed, the program execution order of the function modules corresponding to the target function block and any other function block in the connection pool is determined according to the function block ID number, and when the data types are the same, the pin connection is added between the output pin of the front function block and the output pin of the rear function block. According to the connection rule and the connection requirement, the whole pin automatic connection or the partial pin automatic connection is performed between the target function block and any other function block in the connection pool.
2. The method for automatic wiring between functional blocks in an FBD program according to claim 1, wherein, In response to the visual window, a mapping relationship between each function block and a function module in the FBD program is established in advance, each function block becomes a graphical identification of the function module that realizes a preset function according to a function function encapsulated in the function module, and the input and output of each function module are identified through the pins configured in each function block.
3. The method for automatic wiring between functional blocks in an FBD program according to claim 2, wherein, After the target function block is parsed, all pin information is acquired, which includes pin name, pin attribute and data type; the pin attribute represents the input or output attribute of the function module; and the data type represents the data type of the input or output of the function module.
4. The method for automatic wiring between functional blocks in an FBD program according to claim 1, wherein, Before the automatic pin connection is performed, the target function block is determined, and the pin information to be connected in the target function block is traversed.
5. The method for automatic wiring between functional blocks in an FBD program according to claim 4, wherein, When the connection requirement configuration is the whole pin automatic connection, all first function blocks meeting the association requirement are filtered out according to the function block ID number; the pin information in the first function blocks is traversed in sequence according to the function block ID number; if all pin information in the first function blocks matches all pin information in the target function block, the pin connection between the two function blocks is automatically added, otherwise, the next first function block is jumped to, and the all pin information comparison and analysis operation is performed again until the traversal of the first function blocks is completed.
6. The method for automatic wiring between functional blocks in an FBD program according to claim 1, wherein, When the connection requirement is configured as partial pin automatic connection, all second function blocks meeting the association requirement are screened according to the function block ID number; the spare pin information in the second function blocks is traversed in sequence according to the function block ID number, if the spare pin information matches the pin information to be connected in the target function block, then the pin connection between the two function blocks is automatically added, otherwise, jump to the next second function block, and the comparison and analysis operation of the spare pin information is performed again until the traversal of the second function blocks is completed.
7. The method for automatic wiring between functional blocks in an FBD program according to claim 1, wherein, The logical relationship determined in the network relationship file is the function block ID number, pin information, associated function block ID number and associated pin information of the target function block.
8. An automatic interconnection device between function blocks in a FBD program, using the method according to any one of claims 1 to 7, characterized in that The method comprises: an acquisition unit configured to acquire a target function block to be connected in response to a first target event triggered in a connection pool of a visual window; an analysis unit configured to analyze the target function block to acquire a function block ID number and pin information of the target function block; a judgment unit configured to judge whether to import a network relationship file associated with the target function block in response to a second target event triggered in the connection pool, and output a judgment result; a first execution unit configured to add a connection between the pins of the target function block and the pins of the function block determined to be associated according to the logical relationship determined in the network relationship file when the network relationship file associated with the target function block is imported; a second execution unit configured to complete automatic connection between the target function block and the pins of the first function block meeting the requirement in the connection pool according to the function block ID number and pin information according to a preset connection rule configuration and connection requirement configuration when the network relationship file associated with the target function block is not imported.
Citation Information
Patent Citations
Automatic generation method of graph for logic diagram of train network control system
CN106649230A
Program device of function block diagram
JP2006185015A