Logical canvas point mapping self-updating method, device and equipment and readable medium

By obtaining and updating the function block index in the canvas relationship table, the configuration logical connection failure problem caused by device point changes is solved, and automated logical relationship updates are realized, and system stability and security are improved.

CN119293056APending Publication Date: 2025-01-10GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411371587.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In building automatic control systems, changes in equipment points often lead to failure of configuration logic connections, and the prior art has failed to effectively solve this problem.

Method used

By obtaining the canvas relationship table, generating update function blocks, and positioning upstream and downstream indexes in the canvas relationship table according to the name of the target point, realizing self-updating of the configuration logic to ensure the consistency of the logical relationship.

Benefits of technology

It realizes that the functional blocks and logical relationships on the logical canvas are automatically updated after the device point is reconfigured, reducing human errors, improving system stability and security, and avoiding the failure of configuration logical connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119293056A_ABST
    Figure CN119293056A_ABST
Patent Text Reader

Abstract

The invention relates to a logic canvas point mapping self-updating method and device, equipment and a readable medium. The method comprises the steps that a canvas relation table is obtained, and original configuration logic relations between function blocks corresponding to all device point positions are stored in the canvas relation table; when configuration updating information of a target point location is received, generating an updating function block corresponding to the target point location according to the configuration updating information, and positioning an upstream index and a downstream index of an original function block corresponding to the target point location in the canvas relation table according to the name of the target point location; and inheriting the upstream index and the downstream index of the original function block by the updating function block of the target point location in the canvas relation table so as to perform self-updating on the configuration logic relation of the target point location when the point location configuration of the target point location is changed. The technical problem of configuration logic connection failure caused by the change of the equipment point location is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation control technology, and in particular to a method, device, equipment and readable medium for self-updating logic canvas point mapping. Background Art

[0002] In the building automation system, the integrated access and linkage control between electromechanical equipment are generally realized by controller configuration programming. The general process is to configure the equipment points one by one according to the electromechanical equipment in the engineering design drawings, then develop the graphical configuration logic, and finally verify the equipment points and logic at the project site. The objects of the graphical configuration configuration are diverse, and the data interaction methods with the equipment points are even more varied. The configuration logic consists of many basic logic algorithm units. In the graphical configuration software, each logic unit is connected by wiring according to certain rules to form a set of logic function diagrams that can realize its functions. However, due to the deviation between the actual equipment and the controller interface design drawings, most of them can only be manually configured and checked on site, which requires multiple rounds of adjustment. In addition, after changing the equipment point configuration, it is necessary to change the equipment points in the graphical configuration logic at the same time. The change content is cumbersome, the configuration and inspection efficiency is low, and it is difficult to avoid human errors, which often leads to the failure of the configuration logic connection.

[0003] Currently, no effective solution has been proposed to address the problem that changes in equipment locations often lead to failure of configuration logic connections. Summary of the invention

[0004] The present application provides a method, apparatus, device and readable medium for self-updating a logical canvas point mapping to solve the technical problem that changes in device points often lead to failure of configuration logic connections.

[0005] According to one aspect of an embodiment of the present application, the present application provides a method for self-updating a logical canvas point mapping, comprising: obtaining a canvas relationship table, wherein the canvas relationship table stores the original configuration logical relationship between the function blocks corresponding to each device point; upon receiving configuration update information of a target point, generating an updated function block corresponding to the target point according to the configuration update information, and locating the upstream index and downstream index of the original function block corresponding to the target point in the canvas relationship table according to the name of the target point; in the canvas relationship table, the updated function block of the target point inherits the upstream index and downstream index of the original function block, so as to self-update the configuration logical relationship of the target point when the point configuration of the target point changes.

[0006] Optionally, before obtaining the canvas relationship table, the method also includes: configuring equipment point parameters; generating function blocks corresponding to each equipment point according to the parameters of each equipment point, and saving the function blocks in a graphics library; upon receiving a function block addition instruction, responding to the function block addition instruction to obtain required function blocks from the graphics library and adding them to the logic canvas; upon receiving a configuration logic configuration instruction, responding to the configuration logic configuration instruction to establish a connection relationship between a source function block and a target function block indicated by the configuration logic configuration instruction; and completing the logic configuration of each equipment point in accordance with the topological operation order of the connection order in which each function block falls on the logic canvas.

[0007] Optionally, the configuration of equipment point parameters includes: obtaining a point name, a variable type, and address information of an equipment point; establishing a mapping relationship between the point name and the variable type and the address information; and storing the mapping relationship in a point table.

[0008] Optionally, the response to the configuration logic configuration instruction to establish a connection relationship between the source function block and the target function block indicated by the configuration logic configuration instruction includes: positioning the output logic configuration component in the logic block of the source function block, and positioning the input logic configuration component in the point block of the target function block, wherein each function block includes the point block and the logic block, and the output logic configuration component of the point block is fixedly connected to the input logic configuration component of the logic block, the input logic configuration component of the point block is used to connect to the upstream function block, and the output logic configuration component of the logic block is used to connect to the downstream function block; connecting the output logic configuration component of the logic block of the source function block to the input logic configuration component of the point block of the target function block to establish the data interaction logic between the source function block and the target function block.

[0009] Optionally, obtaining the canvas relationship table includes: after completing the logical configuration of each device point, combining the graphic arrays of all function blocks on the logic canvas to obtain the canvas relationship table, wherein the graphic array is synchronously called when executing the function block addition instruction to store the attribute information of the corresponding function block and is synchronously called when executing the configuration logic configuration instruction to store the upstream and downstream index information.

[0010] Optionally, the self-updating of the configuration logic relationship of the target point when the point configuration of the target point changes also includes: when it is detected that the point configuration of the target point has changed, determining the latest attribute information of the target point according to the configuration update information of the target point; in the logic code corresponding to the original function block of the target point, using the latest attribute information of the target point to replace the original attribute information, to obtain the logic code corresponding to the updated function block of the target point, so as to perform code update.

[0011] Optionally, the method also includes determining that the point configuration of the target point has changed in the following manner: loading the latest point table, and reading a first mapping relationship between the point name, variable type and address information of the target point from the point table; if a second mapping relationship between the point name, variable type and address information of the target point exists in the database, and the second mapping relationship is inconsistent with the first mapping relationship, then determining that the point configuration of the target point has changed; or, querying the database for a drag record of the target point, wherein the drag record is used to save an addition action of a function block of the target point; if a first drag record of the original function block of the target point and a second drag record of the updated function block of the target point are queried, and the second drag record is later than the first drag record, then determining that the point configuration of the target point has changed.

[0012] According to another aspect of an embodiment of the present application, the present application provides a logical canvas point mapping self-update device, including: an acquisition module, used to acquire a canvas relationship table, wherein the canvas relationship table stores the original configuration logical relationship between the function blocks corresponding to each device point; a generation module, used to generate an updated function block corresponding to the target point according to the configuration update information when receiving the configuration update information of the target point, and locate the upstream index and downstream index of the original function block corresponding to the target point in the canvas relationship table according to the name of the target point; an update module, used to inherit the upstream index and downstream index of the original function block of the updated function block of the target point in the canvas relationship table, so as to self-update the configuration logical relationship of the target point when the point configuration of the target point changes.

[0013] According to another aspect of an embodiment of the present application, the present application provides an electronic device, including a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, the memory and the processor communicate through the communication bus and the communication interface, and the steps of the above method are implemented when the processor executes the computer program.

[0014] According to another aspect of an embodiment of the present application, the present application also provides a computer-readable medium having a non-volatile program code executable by a processor, and the program code enables the processor to execute the above method.

[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:

[0016] The present application provides a method for self-updating point mapping of a logical canvas, comprising: obtaining a canvas relationship table, wherein the canvas relationship table stores the original configuration logic relationship between the function blocks corresponding to each device point; upon receiving the configuration update information of the target point, generating the update function block corresponding to the target point according to the configuration update information, and locating the upstream index and downstream index of the original function block corresponding to the target point in the canvas relationship table according to the name of the target point; in the canvas relationship table, the update function block of the target point inherits the upstream index and downstream index of the original function block, so as to self-update the configuration logic relationship of the target point when the point configuration of the target point changes. After the device point is reconfigured, the present application can automatically update the relevant function blocks and their logical relationships on the logic canvas according to the name mapping, maintain the effective connection of the configuration logic, and no longer need to manually reconfigure the point components in the graphical configuration logic, thereby reducing errors caused by human factors, improving the stability and security of the entire system, and solving the technical problem that the change of the device point often leads to the failure of the configuration logic connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 A schematic diagram of an optional logical canvas point mapping self-update method flow according to an embodiment of the present application;

[0020] Figure 2 A graphical configuration logic diagram provided according to an embodiment of the present application;

[0021] Figure 3 A schematic diagram of point configuration change provided according to an embodiment of the present application;

[0022] Figure 4 A schematic diagram of updating configuration logic provided according to an embodiment of the present application;

[0023] Figure 5 A schematic diagram of editing a function block code of a device point provided according to an embodiment of the present application;

[0024] Figure 6A block diagram of an optional logic canvas point mapping self-update device provided according to an embodiment of the present application;

[0025] Figure 7 A schematic diagram of an optional electronic device structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0027] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.

[0028] In order to solve the problem mentioned in the background technology, according to one aspect of the embodiment of the present application, an embodiment of a method for self-updating a logical canvas point mapping is provided, such as Figure 1 As shown, the method may include the following steps:

[0029] Step S102, obtaining a canvas relationship table, wherein the canvas relationship table stores the original configuration logic relationship between the function blocks corresponding to each device point;

[0030] Step S104, when receiving the configuration update information of the target point, generating an updated function block corresponding to the target point according to the configuration update information, and locating the upstream index and downstream index of the original function block corresponding to the target point in the canvas relationship table according to the name of the target point;

[0031] Step S106, in the canvas relationship table, the updated function block of the target point inherits the upstream index and the downstream index of the original function block, so as to self-update the configuration logic relationship of the target point when the point configuration of the target point changes.

[0032] After the user configures the equipment point parameters one by one according to the equipment drawings and related equipment manuals in the drawings, writes the configuration logic for the equipment's linkage logic, and verifies the functions, he needs to go to the site for actual testing. In related technologies, if the actual situation on site requires changing the equipment point, the configuration logic points need to be reconnected and configured manually. This application implements the update of configuration points on the canvas by name mapping, and can automatically update the point information in the configuration logic when the equipment point attributes change, ensuring that the points on the logic canvas are consistent with the actual configuration.

[0033] In an embodiment of the present application, the logic canvas is a visual configuration interface for drawing and configuring the connection relationship between logic units. A logic unit can be a hardware device, a software function block, or other logical entity. A point refers to the input or output of a specific function in the system, such as "exhaust rate". Each point has its own attributes, such as IO sequence number, variable type address, access physical properties, variable properties, etc. A function block is a graphic element that represents a certain function on the logic canvas. It can be customized and contains input and output interfaces for implementing specific logical functions. The canvas relationship table records the connection relationship between all function blocks on the logic canvas, including the location information and logical order of the function blocks.

[0034] In the embodiment of the present application, the system first reads and parses the canvas relationship table to understand the configuration logic relationship between the current device point and the function block. When the device point changes (such as interface change, address change, etc.), the system receives the corresponding configuration update information. According to the configuration update information, the system automatically generates a new updated function block, updates the mapping relationship between the new updated function block and the point to the canvas relationship table, and updates the connection relationship between all related function blocks at the same time. Based on the updated canvas relationship table, the system automatically regenerates the graphical configuration logic to ensure the correctness and consistency of the logical function after the point change.

[0035] After the device points are reconfigured, the present application can automatically update the relevant functional blocks and their logical relationships on the logic canvas according to the name mapping, maintain the effective connection of the configuration logic, and no longer need to manually reconfigure the point components in the graphical configuration logic, thereby reducing errors caused by human factors, improving the stability and security of the entire system, and solving the technical problem that changes in device points often lead to failure of configuration logic connections.

[0036] In the embodiment of the present application, a version management mechanism can also be established for the canvas relationship table, and the record of the old version is retained each time the point configuration is updated. The user can view the historical version at any time, and perform backtracking operations to restore to any old version of the configuration logic state, so that in complex projects or long-term maintenance processes, the configuration logic versions at different stages can be effectively managed, which is convenient for problem tracking and version control.

[0037] In the embodiment of the present application, big data analysis and machine learning technology can also be used to mine and analyze historical configuration logic data to extract common logic patterns and optimization strategies. When users develop configuration logic, they can intelligently recommend relevant function blocks and wiring methods, and provide optimization suggestions, thereby helping users to quickly build high-quality configuration logic, reduce unnecessary trial and error processes, and improve development efficiency and logic performance.

[0038] In an optional embodiment, before step S102 of obtaining the canvas relationship table, the method further includes:

[0039] Step 1: Configure equipment point parameters;

[0040] Step 2, generating a function block corresponding to each device point according to the parameters of each device point, and saving the function block into a graphics library;

[0041] Step 3, when receiving a function block adding instruction, in response to the function block adding instruction, obtaining a required function block from the graphic library and adding the function block to the logic canvas;

[0042] Step 4, upon receiving the configuration logic configuration instruction, establishing a connection relationship between the source function block and the target function block indicated by the configuration logic configuration instruction in response to the configuration logic configuration instruction;

[0043] Step 5, completing the logic configuration of each device point according to the topological operation order of the connection sequence of each functional block falling on the logic canvas.

[0044] In the embodiment of the present application, the device point parameter refers to the unique identification and related attributes of the device in the control system, such as the device address, input and output type, data type, etc. The graphic library is a database for storing and managing various function blocks, and the user can select the required function blocks from the graphic library to develop the configuration logic.

[0045] In the embodiment of the present application, the above steps are the process of developing the configuration logic of the equipment point. In the actual configuration process of the automated control system, the developer sets the parameters of each control point, such as input and output type, address, variable name, etc., according to the needs and drawings of the on-site equipment, and generates a corresponding function block for each point, and saves it to the graphics library. Each function block contains logical information about the point, such as input and output data type, value size, function block type and location information. The developer selects the required function block on the logic canvas and places it (i.e., triggers the function block addition instruction), and uses the wiring tool to establish a logical connection between the source function block and the target function block (i.e., triggers the configuration logic configuration instruction). Taking the point "exhaust rate" as an example, if Figure 2As shown in the figure, the IO port type of the point "exhaust rate" is configured as UI (universal input), which means that the IO interface can be configured to detect current, voltage or resistance input. The IO number is configured as 5, corresponding to the fifth hardware input interface of the controller. The IO interface mode is configured as analog voltage input, and the variable type address is configured as AI.1. Generate the corresponding function block according to the configuration information of the point "exhaust rate", that is, Figure 2 As shown in the figure, each function block is composed of a point block and a logic block. The OUT (output logic configuration component) of each function block is connected to the IN (input logic configuration component) of the logic block. The IN of the point block is connected to the upstream function block, and the OUT of the logic block is connected to the downstream function block. When all function blocks complete the logic configuration, all function blocks are automatically combined to form a canvas relationship table, and the configuration logic development phase ends and enters the testing phase.

[0046] This application reduces the time consumption of manual operations through automated configuration, improves the efficiency of configuration work, avoids errors caused by human factors, and improves the stability and reliability of the system.

[0047] In the embodiment of the present application, a simulation environment can be provided after the configuration logic is completed to test the configuration logic before actual deployment to ensure that it meets expectations and provide optimization suggestions.

[0048] In an optional embodiment, the configuration device point parameters include:

[0049] Step 1, obtain the point name, variable type and address information of the equipment point;

[0050] Step 2, establishing a mapping relationship between the point name and the variable type and the address information;

[0051] Step 3: store the mapping relationship in a point table.

[0052] In the embodiment of the present application, a mapping relationship is established between the point name and the point parameter, and the point parameter is used to generate the function block corresponding to the point. Then, the function block generated using the point parameter can be found on the logic canvas through the point name. Therefore, once the point configuration changes, the original function block of the target point can be quickly located according to the point name, and then a new updated function block is generated based on the configuration update information of the target point. The new updated function block inherits the upstream and downstream index relationship of the original function block, and the corresponding configuration logic can be automatically updated without manual intervention, thereby greatly improving the flexibility and maintainability of the system. The original function block is the function block of the device point before the point configuration is modified, and the updated function block is the new function block corresponding to the device point after the point configuration of the device point is modified.

[0053] In an optional embodiment, the establishing a connection relationship between a source function block and a target function block indicated by the configuration logic configuration instruction in response to the configuration logic configuration instruction comprises:

[0054] Step 1, locating the output logic configuration component in the logic block of the source function block, and locating the input logic configuration component in the point block of the target function block, wherein each function block includes the point block and the logic block, and the output logic configuration component of the point block is fixedly connected to the input logic configuration component of the logic block, the input logic configuration component of the point block is used to connect to the upstream function block, and the output logic configuration component of the logic block is used to connect to the downstream function block;

[0055] Step 2: Connect the output logic configuration component of the logic block of the source function block with the input logic configuration component of the point block of the target function block to establish data interaction logic between the source function block and the target function block.

[0056] In the present application embodiment, Figure 2 As shown, each functional block includes the point block and the logic block (logic component), and the output logic configuration component of the point block is fixedly connected to the input logic configuration component of the logic block, the input logic configuration component of the point block is used to connect to the upstream functional block, and the output logic configuration component of the logic block is used to connect to the downstream functional block.

[0057] In the embodiment of the present application, the source function block and the target function block are two function blocks corresponding to the configuration connection operation, the starting point of the connection is the source function block, and the end point of the connection is the target function block. The user can specify the source function block and the target function block for which data interaction logic needs to be established through a selection operation on the graphical interface, or directly specify the source function block and the target function block for which data interaction logic needs to be established through a connection operation, and establish the data interaction logic.

[0058] This application can establish data interaction logic between different function blocks by connecting the output logic configuration component of the logic block of the source function block with the input logic configuration component of the point block of the target function block on the graphical interface, thereby reducing the difficulty of configuration logic development and improving the flexibility and development efficiency of configuration logic. Through the technical solution of this application, users do not need to manually write complex codes or perform cumbersome configurations. They only need to simply drag and connect function blocks on the graphical interface to quickly realize the association between device points and logic algorithm units. This intuitive and visual operation method greatly reduces the difficulty of configuration logic development, making it easy for non-professionals to get started. At the same time, since all operations are completed on the graphical interface, the operation results can be seen in real time, which facilitates timely discovery and resolution of problems, thereby improving development efficiency.

[0059] In an optional embodiment, step S102 of obtaining the canvas relationship table includes: after completing the logical configuration of each device point, combining the graphic arrays of all function blocks on the logical canvas to obtain the canvas relationship table, wherein the graphic array is synchronously called when executing the function block addition instruction to store the attribute information of the corresponding function block and is synchronously called when executing the configuration logic configuration instruction to store the upstream and downstream index information.

[0060] In an embodiment of the present application, when the function block adding instruction is executed, the graphic array is synchronously called to store the attribute information of the corresponding function block, and when the configuration logic configuration instruction is executed, the graphic array is synchronously called to store the upstream and downstream index information. Therefore, the graphic array completely saves the attribute information and upstream and downstream logical relationships of each function block on the logic canvas. Therefore, after completing the logical configuration of each device point, the graphic arrays of all function blocks on the logic canvas are combined to obtain the canvas relationship table.

[0061] This application not only simplifies user operations by automatically combining the graphic arrays of all function blocks on the logic canvas, but also ensures that the logical relationships between function blocks are completely and accurately recorded in the canvas relationship table. In this way, when the equipment point changes, the system can quickly and automatically update the point mapping according to the canvas relationship table without manual intervention, thereby greatly improving the flexibility of the configuration logic and development efficiency.

[0062] In step S104, Figure 3 As shown in the figure, the point attributes are changed according to the configuration update information of the point. For example, the IO interface mode is changed from analog voltage input to analog current input, the IO sequence number is changed from 5 to 4, and the variable type and address are changed from AI.1 to AI.2, etc. Figure 4 As shown, a new function block is generated according to the updated point attributes, including a new point block and a new logic block. In step S106, the new function block inherits the upstream and downstream indexes of the original function block, so as to self-update the configuration logic relationship of the target point when the point configuration of the target point changes.

[0063] The update of the entire configuration logic includes the update of the point mapping relationship mentioned above, and also includes the update of the function block code. The code of the original function block refers to the data of the original point and needs to be updated to the data of the new point. Otherwise, even if the point mapping relationship is updated, the code still refers to the data of the original point and there is still a logic failure problem.

[0064] In an optional embodiment, the self-updating of the configuration logic relationship of the target point when the point configuration of the target point changes further includes:

[0065] Step 1: when it is detected that the point configuration of the target point has changed, the latest attribute information of the target point is determined according to the configuration update information of the target point;

[0066] Step 2: In the logic code corresponding to the original function block of the target point, the original attribute information is replaced with the latest attribute information of the target point to obtain the logic code corresponding to the updated function block of the target point for code update.

[0067] In the embodiment of the present application, in the original function block logic code of the target point, the system finds all code fragments related to the point through specific identifiers (such as variable names, addresses, etc.), and then replaces the old attribute information in these code fragments one by one according to the latest attribute information of the point. Finally, the system applies the updated logic code to the configuration logic where the target point is located, and synchronously updates it to the corresponding controller or execution unit. In this way, once the device point configuration changes, the code of the corresponding function block is automatically updated, and the configuration logic can maintain consistency with the actual device state, thereby avoiding the problem of logic failure caused by the update of the point mapping relationship but the failure to update the reference data.

[0068] In the present application embodiment, Figure 5 As shown, in the code editing stage of the function block, the user selects the required point from the list on the left and puts it into the code editing box. At this time, the editing box automatically brings out the attribute information of the selected point and reads it into the code, that is, the system automatically completes the point data reading. In the code update stage, when the point change is found, the data referenced by the function block code is automatically updated to the latest point data.

[0069] In an optional embodiment, the method further includes determining that the point configuration of the target point has changed in the following manner:

[0070] Load the latest point table, and read the first mapping relationship between the point name, variable type and address information of the target point from the point table; if a second mapping relationship between the point name, variable type and address information of the target point exists in the database, and the second mapping relationship is inconsistent with the first mapping relationship, it is determined that the point configuration of the target point has changed; or,

[0071] Query the database for the drag record of the target point, wherein the drag record is used to save the adding action of the function block of the target point; if a first drag record of the original function block of the target point and a second drag record of the updated function block of the target point are queried, and the second drag record is later than the first drag record, it is determined that the point configuration of the target point has changed.

[0072] This application provides two ways to detect changes in the point configuration of the target point. The first is to establish a mapping relationship between the point name and the point parameters and store them persistently. Once the point configuration changes, a mapping relationship between the point name and the new point parameters will be generated. When the system trains the database, it can find that the point has changed based on the inconsistency of the previous and subsequent mapping relationships. The second is to use a database file to record the dragging action of the point. When there are multiple dragging records for the same point, it can be determined that the point has changed.

[0073] Compared with the traditional manual inspection and update method, this application adopts an automated detection mechanism to reduce human intervention, thereby reducing the configuration inconsistency problem caused by human negligence or error.

[0074] The two change detection methods provided in this application can be flexibly selected according to different application scenarios and requirements. For example, in the scenario where the point configuration changes frequently, you can choose the real-time detection method based on the mapping relationship; and in the scenario where you need to trace the historical records of point changes, you can choose the detection method based on drag records.

[0075] After the device points are reconfigured, the present application can automatically update the relevant functional blocks and their logical relationships on the logic canvas according to the name mapping, maintain the effective connection of the configuration logic, and no longer need to manually reconfigure the point components in the graphical configuration logic, thereby reducing errors caused by human factors, improving the stability and security of the entire system, and solving the technical problem that changes in device points often lead to failure of configuration logic connections.

[0076] According to another aspect of the embodiment of the present application, Figure 6 As shown, a logical canvas point mapping self-update device is provided, comprising:

[0077] The acquisition module 601 is used to acquire a canvas relationship table, wherein the canvas relationship table stores the original configuration logic relationship between the function blocks corresponding to each device point;

[0078] A generating module 603 is used for, when receiving configuration update information of a target point, generating an updated function block corresponding to the target point according to the configuration update information, and locating an upstream index and a downstream index of an original function block corresponding to the target point in the canvas relationship table according to the name of the target point;

[0079] The updating module 605 is used to inherit the upstream index and downstream index of the original function block to the updated function block of the target point in the canvas relationship table, so as to self-update the configuration logic relationship of the target point when the point configuration of the target point changes.

[0080] It should be noted that the acquisition module 601 in this embodiment can be used to execute step S102 in the embodiment of the present application, the generation module 603 in this embodiment can be used to execute step S104 in the embodiment of the present application, and the update module 605 in this embodiment can be used to execute step S106 in the embodiment of the present application.

[0081] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be implemented by software or hardware.

[0082] Optionally, the logic canvas point mapping self-update device also includes a configuration development module, which is specifically used to: configure equipment point parameters; generate function blocks corresponding to each equipment point according to the parameters of each equipment point, and save the function blocks in a graphics library; when receiving a function block addition instruction, respond to the function block addition instruction to obtain the required function blocks from the graphics library and add them to the logic canvas; when receiving a configuration logic configuration instruction, respond to the configuration logic configuration instruction to establish a connection relationship between the source function block and the target function block indicated by the configuration logic configuration instruction; complete the logic configuration of each equipment point in accordance with the topological operation order of the connection order in which each function block falls on the logic canvas.

[0083] Optionally, the configuration development module is also used to: obtain the point name, variable type and address information of the equipment point; establish a mapping relationship between the point name and the variable type and address information; and store the mapping relationship in a point table.

[0084] Optionally, the configuration development module is also used to: locate the output logic configuration component in the logic block of the source function block, and locate the input logic configuration component in the point block of the target function block, wherein each function block includes the point block and the logic block, and the output logic configuration component of the point block is fixedly connected to the input logic configuration component of the logic block, the input logic configuration component of the point block is used to connect to the upstream function block, and the output logic configuration component of the logic block is used to connect to the downstream function block; connect the output logic configuration component of the logic block of the source function block to the input logic configuration component of the point block of the target function block to establish the data interaction logic between the source function block and the target function block.

[0085] Optionally, the acquisition module is specifically used to: after completing the logical configuration of each device point, combine the graphic arrays of all function blocks on the logic canvas to obtain the canvas relationship table, wherein the graphic array is synchronously called when executing the function block addition instruction to store the attribute information of the corresponding function block and is synchronously called when executing the configuration logic configuration instruction to store the upstream and downstream index information.

[0086] Optionally, the update module is also used to: when a change in the point configuration of the target point is detected, determine the latest attribute information of the target point based on the configuration update information of the target point; in the logic code corresponding to the original function block of the target point, use the latest attribute information of the target point to replace the original attribute information, and obtain the logic code corresponding to the updated function block of the target point to perform code update.

[0087] Optionally, the update module is also used to: load the latest point table, and read a first mapping relationship between the point name, variable type and address information of the target point from the point table; if a second mapping relationship between the point name, variable type and address information of the target point exists in the database, and the second mapping relationship is inconsistent with the first mapping relationship, then it is determined that the point configuration of the target point has changed; or, query the database for the drag record of the target point, wherein the drag record is used to save the addition action of the function block of the target point; if a first drag record of the original function block of the target point and a second drag record of the updated function block of the target point are queried, and the second drag record is later than the first drag record, then it is determined that the point configuration of the target point has changed.

[0088] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Figure 7 As shown, it includes a memory 701, a processor 703, a communication interface 705 and a communication bus 707. The memory 701 stores a computer program that can be run on the processor 703. The memory 701 and the processor 703 communicate through the communication interface 705 and the communication bus 707. When the processor 703 executes the computer program, the steps of the above method are implemented.

[0089] The memory and processor in the above electronic device communicate via a communication bus and a communication interface. The communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.

[0090] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0091] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0092] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any of the above embodiments.

[0093] Optionally, in an embodiment of the present application, the computer-readable medium is configured to store program codes for the processor to perform the following steps:

[0094] Obtaining a canvas relationship table, wherein the canvas relationship table stores the original configuration logic relationship between the function blocks corresponding to each device point;

[0095] When receiving configuration update information of a target point, generating an updated function block corresponding to the target point according to the configuration update information, and locating the upstream index and downstream index of the original function block corresponding to the target point in the canvas relationship table according to the name of the target point;

[0096] In the canvas relationship table, the updated function block of the target point inherits the upstream index and the downstream index of the original function block, so as to self-update the configuration logic relationship of the target point when the point configuration of the target point changes.

[0097] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0098] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.

[0099] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0100] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0101] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0102] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0103] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0106] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0107] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for self-updating logical canvas point mapping, characterized in that: include: Obtaining a canvas relationship table, wherein the canvas relationship table stores the original configuration logic relationship between the function blocks corresponding to each device point; When receiving configuration update information of a target point, generating an updated function block corresponding to the target point according to the configuration update information, and locating the upstream index and downstream index of the original function block corresponding to the target point in the canvas relationship table according to the name of the target point; In the canvas relationship table, the updated function block of the target point inherits the upstream index and the downstream index of the original function block, so as to self-update the configuration logic relationship of the target point when the point configuration of the target point changes.

2. The method according to claim 1, characterized in that Before obtaining the canvas relationship table, the method further includes: Configure equipment point parameters; Generate a function block corresponding to each equipment point according to the parameters of each equipment point, and save the function block into a graphic library; When receiving a function block adding instruction, in response to the function block adding instruction, obtaining a required function block from the graphic library and adding the function block to the logic canvas; When receiving a configuration logic configuration instruction, establishing a connection relationship between a source function block and a target function block indicated by the configuration logic configuration instruction in response to the configuration logic configuration instruction; The logical configuration of each device point is completed according to the topological operation sequence of the connection sequence of each functional block falling on the logic canvas.

3. The method according to claim 2, characterized in that The configuration equipment point parameters include: Get the point name, variable type and address information of the equipment point; Establishing a mapping relationship between the point name and the variable type and the address information; The mapping relationship is stored in a point table.

4. The method according to claim 2, characterized in that: The step of establishing a connection relationship between a source function block and a target function block indicated by the configuration logic configuration instruction in response to the configuration logic configuration instruction comprises: Positioning an output logic configuration component in the logic block of the source function block, and positioning an input logic configuration component in the point block of the target function block, wherein each function block includes the point block and the logic block, and the output logic configuration component of the point block is fixedly connected to the input logic configuration component of the logic block, the input logic configuration component of the point block is used to connect to an upstream function block, and the output logic configuration component of the logic block is used to connect to a downstream function block; The output logic configuration component of the logic block of the source function block is connected to the input logic configuration component of the point block of the target function block to establish data interaction logic between the source function block and the target function block.

5. The method according to claim 2, characterized in that: The obtaining of the canvas relationship table comprises: After completing the logical configuration of each device point, the graphic arrays of all function blocks on the logic canvas are combined to obtain the canvas relationship table, wherein the graphic array is synchronously called when executing the function block addition instruction to store the attribute information of the corresponding function block and synchronously called when executing the configuration logic configuration instruction to store the upstream and downstream index information.

6. The method according to claim 1, characterized in that The self-updating of the configuration logic relationship of the target point when the point configuration of the target point changes also includes: When a change is detected in the point configuration of the target point, the latest attribute information of the target point is determined according to the configuration update information of the target point; In the logic code corresponding to the original function block of the target point, the original attribute information is replaced with the latest attribute information of the target point to obtain the logic code corresponding to the updated function block of the target point, so as to perform code update.

7. The method according to claim 6, characterized in that The method further includes determining that the point configuration of the target point has changed in the following manner: Load the latest point table, and read the first mapping relationship between the point name, variable type and address information of the target point from the point table; if a second mapping relationship between the point name, variable type and address information of the target point exists in the database, and the second mapping relationship is inconsistent with the first mapping relationship, it is determined that the point configuration of the target point has changed; or, Query the database for the drag record of the target point, wherein the drag record is used to save the adding action of the function block of the target point; if a first drag record of the original function block of the target point and a second drag record of the updated function block of the target point are queried, and the second drag record is later than the first drag record, it is determined that the point configuration of the target point has changed.

8. A logical canvas point mapping self-update device, characterized in that: include: An acquisition module, used to acquire a canvas relationship table, wherein the canvas relationship table stores the original configuration logic relationship between the function blocks corresponding to each device point; A generation module, configured to generate an updated function block corresponding to the target point according to the configuration update information when receiving the configuration update information of the target point, and locate the upstream index and downstream index of the original function block corresponding to the target point in the canvas relationship table according to the name of the target point; The updating module is used to inherit the upstream index and downstream index of the original function block in the canvas relationship table so as to self-update the configuration logic relationship of the target point when the point configuration of the target point changes.

9. An electronic device, comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate through the communication bus and the communication interface, characterized in that: When the processor executes the computer program, the logical canvas point mapping self-update method described in any one of claims 1 to 7 is implemented.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the logical canvas point mapping self-update method described in any one of claims 1 to 7.