Task generation method, apparatus, device, medium, and product
By connecting and visualizing the logical function modules of the low-code platform, the problem of high developer dependence in existing technologies for battery cell production equipment is solved. It enables efficient generation and maintenance of task generation methods, devices, equipment, media and products, and facilitates adaptation to different PLC protocols and business scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2026-06-30
AI Technical Summary
The diverse control logic of existing battery cell production equipment leads to high developer dependence, low modification efficiency, and high maintenance pressure. Furthermore, general low-code platforms lack flexibility in specific scenarios.
By selecting and connecting multiple logical function modules, target tasks are generated. The low-code platform enables visualization of logical function modules and automatic port data type matching. It supports multiple PLC protocols, provides log output and execution time monitoring, reducing development costs and improving efficiency.
It enables task generation without the need for developers, reducing development costs and time, improving transformation efficiency, and facilitating operation and maintenance through visual logs and duration monitoring, while adapting to different PLC protocols and business scenarios.
Smart Images

Figure CN122308275A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of task generation technology, and in particular to a task generation method, apparatus, equipment, medium and product. Background Technology
[0002] Currently, there are many types of battery cell production equipment. Most of the host computers and data acquisition software for these devices are developed by suppliers. Different factories, production lines, and equipment will have different control logics. When the production line is upgraded or the product model is changed, the control logic also needs to be modified. This excessive reliance on software developers has led to a shortage of development manpower and low efficiency in modification. It has also increased the maintenance pressure on on-site maintenance personnel.
[0003] Therefore, a task generation solution that is less dependent on developers is needed. Summary of the Invention
[0004] This application provides a task generation method, apparatus, device, medium, and product, which can generate target tasks by selecting multiple logical function modules and connecting them, without the need for development, reducing development manpower and costs, and with high efficiency.
[0005] In a first aspect, this application provides a task generation method, comprising: displaying multiple logical function module identifiers in a second display area in response to input of multiple logical function module identifiers in a first display area; determining the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers in response to input of connection between the multiple logical function module identifiers in the second display area; generating a target task based on the logical function modules corresponding to the multiple logical function module identifiers and the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers; wherein, the multiple logical function module identifiers include at least the logical function module identifier of a first logical function module, the first logical function module being used to establish a connection between a target PLC and the logical function module connected to it through a target programmable logic controller (PLC) protocol, and the target PLC protocol corresponding to the first logical function module and the target PLC being determined based on user input.
[0006] Therefore, by selecting and connecting multiple logical function modules, a target task can be generated without requiring development, reducing development manpower and costs while maintaining high efficiency. Furthermore, the PLC and PLC protocol can be determined based on user input, allowing the generated task to be compatible with different PLC protocols.
[0007] In some embodiments, the plurality of logical function module identifiers include at least a first logical function module identifier and a second logical function module identifier. The above-mentioned determination of the connection relationship between the logical function modules corresponding to the plurality of logical function module identifiers in response to the input of connecting the plurality of logical function module identifiers in the second display area includes: in response to the input of connecting a first port of the first logical function module identifier and a second port of the second logical function module identifier, obtaining the data type corresponding to the first port and the data type corresponding to the second port; if the data type corresponding to the first port and the data type corresponding to the second port match, determining the connection relationship between the logical function module corresponding to the first logical function module identifier and the logical function module corresponding to the second logical function module identifier.
[0008] In this way, the data type of the port to which the user is connecting can be automatically detected, thus avoiding user connection errors.
[0009] In some embodiments, the method further includes: during the execution of the target task, identifying the log output ports of each logical function module through multiple logical function modules, and outputting log data of the logical function modules corresponding to the multiple logical function module identifiers.
[0010] In this way, by outputting the log data of the logical function modules through the log output port, the log data can be visualized, making it easier for users to troubleshoot abnormal problems during task execution, so as to quickly locate the abnormal logical function modules and improve operation and maintenance efficiency.
[0011] In some embodiments, the method further includes: during the execution of the target task, displaying the execution time of the logical function module corresponding to each logical function module identifier in each logical function module identifier.
[0012] Thus, by displaying the execution time of a logical function module in its identifier, it is easy to monitor the execution time of the logical function module in real time, thereby enabling users to promptly detect any abnormalities in the logical function module.
[0013] In some embodiments, displaying the execution time of the logical function module corresponding to each logical function module identifier in each logical function module identifier during the execution of the target task includes: during the execution of the target task, obtaining the execution time of the logical function modules corresponding to multiple logical function module identifiers respectively; if the execution time of the second logical function module among the multiple logical function modules exceeds the preset range corresponding to the second logical function module, displaying the execution time of the second logical function module in the logical function module identifier corresponding to the second logical function module based on the first display parameter; if the execution time of the second logical function module among the multiple logical function modules does not exceed the preset range corresponding to the second logical function module, displaying the execution time of the second logical function module in the logical function module identifier corresponding to the second logical function module based on the second display parameter.
[0014] In this way, by displaying the execution time that exceeds and does not exceed the preset range based on different display parameters, users can more intuitively understand whether the logical function module is abnormal.
[0015] In some embodiments, before displaying multiple logical function module identifiers in a second display area in response to input of an identifier of a target service, the method further includes: displaying a first configuration interface corresponding to the target service in response to input of an identifier of a target service, the first configuration interface including multiple task identifiers; and displaying a second configuration interface corresponding to the target task in response to input of an identifier of a target task among the multiple task identifiers, the second configuration interface including a first display area and a second display area, the first display area including at least multiple logical function module identifiers.
[0016] In this way, the low-code platform can be compatible with different businesses and tasks, and users can quickly and flexibly generate different tasks for different businesses through simple input.
[0017] In some embodiments, the method further includes: generating a logical function module identifier corresponding to the logical function module in response to input for creating a logical function module; and generating a logical function module based on the module parameters in response to input for configuring module parameters corresponding to the logical function module identifier, wherein the module parameters include the number of ports of the logical function module, the data type of each port, and the logical function algorithm of the logical function module.
[0018] In this way, the required logical function modules can be accurately generated through the above process, which facilitates the subsequent generation of corresponding tasks based on the logical function modules.
[0019] In some embodiments, the above-mentioned generation of a logical function module based on module parameters in response to input of module parameters corresponding to the configuration logical function module identifier includes: storing the module parameters in a dynamic link library in response to input of module parameters corresponding to the configuration logical function module identifier; binding the address of the dynamic link library to the logical function module identifier in response to input of configuration logical function module identifier; and loading the module parameters in the dynamic link library according to the address of the dynamic link library bound to the logical function module identifier in response to input of loading logical function module.
[0020] In this way, the above process can be used to load the logical function module, which will facilitate its smooth use in the future.
[0021] In some embodiments, the logical function module is the logical function module corresponding to a subtask in the battery production process.
[0022] In this way, by selecting the logical function modules corresponding to the sub-tasks in the battery production process and connecting them, tasks in the battery production process can be generated conveniently and quickly.
[0023] Secondly, this application provides a task generation apparatus, comprising: a first display module, configured to display multiple logical function module identifiers in a second display area in response to input of multiple logical function module identifiers in a first display area; a determination module, configured to determine the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers in response to input of connection to the multiple logical function module identifiers in the second display area; and a first generation module, configured to generate a target task based on the logical function modules corresponding to the multiple logical function module identifiers and the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers; wherein the multiple logical function module identifiers include at least the logical function module identifier of a first logical function module, the first logical function module is configured to establish a connection between a target PLC and the logical function module connected to it through a target programmable logic controller (PLC) protocol, and the target PLC protocol corresponding to the first logical function module and the target PLC are determined based on user input.
[0024] Therefore, by selecting and connecting multiple logical function modules, a target task can be generated without requiring development, reducing development manpower and costs while maintaining high efficiency. Furthermore, the PLC and PLC protocol can be determined based on user input, allowing the generated task to be compatible with different PLC protocols.
[0025] Thirdly, this application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0026] When the processor executes the computer program instructions, it implements the task generation method as shown in any embodiment of the first aspect.
[0027] Fourthly, this application provides a computer storage medium storing computer program instructions, which, when executed by a processor, implement the task generation method shown in any embodiment of the first aspect.
[0028] Fifthly, embodiments of this application provide a computer program product, wherein instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform the task generation method shown in any embodiment of the first aspect.
[0029] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0030] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0031] Figure 1 One of the flowcharts for a task generation method provided in some embodiments of this application;
[0032] Figure 2 A schematic diagram illustrating a scenario for a task generation method provided in some embodiments of this application;
[0033] Figure 3 A second flowchart illustrating a task generation method provided in some embodiments of this application;
[0034] Figure 4 A flowchart of a task generation method provided in some embodiments of this application is shown as the third one.
[0035] Figure 5 A flowchart of a task generation method provided in some embodiments of this application;
[0036] Figure 6 A flowchart of a task generation method provided in some embodiments of this application is shown as the fifth one.
[0037] Figure 7 A flowchart of a task generation method provided for some embodiments of this application is shown in Figure 6.
[0038] Figure 8 A flowchart of a task generation method provided for some embodiments of this application is shown in Figure 7.
[0039] Figure 9 Eighth flowchart of a task generation method provided for some embodiments of this application;
[0040] Figure 10 A flowchart of a task generation method provided in some embodiments of this application is shown as Flowchart 9;
[0041] Figure 11 This application provides a schematic diagram of the structure of a task generation device according to some embodiments;
[0042] Figure 12 This is a schematic diagram of the structure of an electronic device provided in some embodiments of this application.
[0043] The accompanying drawings are not necessarily drawn to scale. Detailed Implementation
[0044] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0045] Unless otherwise specified, all embodiments and optional embodiments of this application can be combined to form new technical solutions.
[0046] Unless otherwise specified, all technical features and optional technical features of this application may be combined to form new technical solutions.
[0047] Unless otherwise specified, all steps of this application may be performed sequentially or randomly, preferably sequentially. For example, the method includes steps (a) and (b), indicating that the method may include steps (a) and (b) performed sequentially, or it may include steps (b) and (a) performed sequentially. For example, the mention that the method may also include step (c) indicates that step (c) may be added to the method in any order; for example, the method may include steps (a), (b), and (c), or it may include steps (a), (c), and (b), or it may include steps (c), (a), and (b), etc.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0049] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0050] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0051] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0052] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0053] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0054] To facilitate understanding of the solutions in this application, the terms used in the embodiments of this application will be explained first.
[0055] Operator: The smallest logical unit in a project, also known as a logical function block. Multiple operators can be connected to form a specific logical task.
[0056] Dynamic Link Library (DLL): An executable file containing a shared function library that allows processes to call functions that are not part of its executable code. A DLL file can contain one or more functions that have been compiled, linked, and stored separately from the processes that use them, facilitating the sharing of data and resources.
[0057] PLC Protocol: In computer networks, a protocol is a formal description of the data format and rules that must be followed when computers exchange data. For computers in a network to communicate smoothly with each other, they must adhere to the same protocols, which ensure the correct and error-free exchange of data between different computers.
[0058] Low-code: Low-code development is a software development approach that allows software developers to achieve their goals without having to manually code.
[0059] Currently, there are many types of battery cell production equipment, and the host computer and data acquisition software for most of these devices are developed by suppliers. Different factories, production lines, and equipment have different control logics. Upgrading production lines or changing product models also requires modifications to the control logic. This over-reliance on software developers has led to a shortage of development personnel, low modification efficiency, and increased maintenance workload for on-site personnel. Therefore, a task generation solution with lower dependence on developers is needed.
[0060] Research has found that in commonly used task generation methods, simple information can be modified by changing configuration files, while slightly more complex logical changes require direct code modification. After code modification, it's necessary to confirm whether it affects existing modules and whether the new function is usable, and on-site integration testing is also required. Logic modifications require software developers to modify and debug the code, demanding high engineer skills. Widespread adoption may lead to low development efficiency and maintenance difficulties. Therefore, continued reliance on software developers will result in a shortage of development personnel, low modification efficiency, and increased maintenance pressure on on-site personnel.
[0061] In addition, there is a development approach using a low-code platform similar to LabVIEW. This approach utilizes built-in libraries and pre-packaged functional modules, which are then connected according to specific logic. Modifications to the logic and the addition of new features can be accomplished simply by dragging and dropping. However, LabVIEW is a general-purpose low-code platform, and because software development needs to consider maximum compatibility, it can lack flexibility in certain scenarios and modes. For example, when applied to battery production scenarios, this method is not compatible with multiple PLC protocols.
[0062] To address the aforementioned technical problems, embodiments of this application provide a task generation method, apparatus, device, medium, and product. The method includes: displaying multiple logical function module identifiers in a second display area in response to input of multiple logical function module identifiers in a first display area; determining connection relationships between logical function modules corresponding to the multiple logical function module identifiers in the second display area in response to input of connections between the multiple logical function module identifiers; and generating a target task based on the logical function modules corresponding to the multiple logical function module identifiers and the connection relationships between the logical function modules corresponding to the multiple logical function module identifiers; wherein the multiple logical function module identifiers include at least the logical function module identifier of a first logical function module, the first logical function module being used to establish a connection between a target PLC and a logical function module connected to it via a target PLC protocol, and the target PLC protocol corresponding to the first logical function module and the target PLC being determined based on user input.
[0063] Therefore, by selecting and connecting multiple logical function modules, a target task can be generated without requiring development, reducing development manpower and costs while maintaining high efficiency. Furthermore, the PLC and PLC protocol can be determined based on user input, allowing the generated task to be compatible with different PLC protocols.
[0064] First, combined Figure 1 The task generation method provided in the embodiments of this application will be described in detail.
[0065] Figure 1 The diagram shows one of the flowcharts of a task generation method provided in one embodiment of this application. It should be noted that the execution subject of this task generation method can be a task generation device or a low-code platform, which can be implemented based on the C# language.
[0066] like Figure 1 As shown, the task generation method may include the following steps:
[0067] S110, in response to input of multiple logical function module identifiers in the first display area, display multiple logical function module identifiers in the second display area;
[0068] S120, in response to the input of connecting multiple logical function module identifiers in the second display area, determine the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers respectively;
[0069] S130, generate the target task based on the logical function modules corresponding to the multiple logical function module identifiers and the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers.
[0070] Among them, the multiple logical function module identifiers may include at least the logical function module identifier of the first logical function module. The first logical function module can be used to establish a connection between the target PLC and the logical function module connected to it through the target PLC protocol. The target PLC protocol and the target PLC corresponding to the first logical function module can be determined based on user input.
[0071] Therefore, by selecting and connecting multiple logical function modules, a target task can be generated without requiring development, reducing development manpower and costs while maintaining high efficiency. Furthermore, the PLC and PLC protocol can be determined based on user input, allowing the generated task to be compatible with different PLC protocols.
[0072] Regarding S110, the input to the identifiers of multiple logical function modules in the first display area can be the input that triggers the display of the identifiers of the multiple logical function modules in the second display area.
[0073] The identifier of the same logical function module displayed in the first display area may be different from the identifier of the logical function module displayed in the second display area.
[0074] Logical function module identifiers can make logical function modules visible.
[0075] Logical function modules can be operators. Each logical function module is independent and does not affect the others.
[0076] For example, such as Figure 2 As shown, multiple logical function module identifiers 211 can be displayed in the first display area 210. Users can drag and drop multiple logical function module identifiers from the first display area 210 to the second display area 220, so that multiple logical function module identifiers 221 can be displayed in the second display area 220.
[0077] Regarding S120, the input that connects multiple logical function module identifiers in the second display area can be an input that triggers the determination of the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers.
[0078] For example, such as Figure 2 As shown, in the second display area, users can connect multiple logical function module identifiers by connecting lines, thereby determining the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers.
[0079] In some embodiments, in order to conveniently and quickly generate tasks in the battery production process, the logic function module can be the logic function module corresponding to the sub-tasks in the battery production process.
[0080] Tasks in the battery production process can be generated based on multiple sub-tasks.
[0081] In this way, by selecting the logical function modules corresponding to the sub-tasks in the battery production process and connecting them, tasks in the battery production process can be generated conveniently and quickly.
[0082] In some embodiments, to avoid connection errors between logical function modules, the multiple logical function module identifiers may include at least a first logical function module identifier and a second logical function module identifier, such as... Figure 3 As shown, S120 may include:
[0083] S121, in response to the input of the first port identified by the first logical function module and the second port identified by the second logical function module, obtain the data type corresponding to the first port and the data type corresponding to the second port;
[0084] S122, if the data types corresponding to the first port and the second port match, determine the connection relationship between the logical function module corresponding to the first logical function module identifier and the logical function module corresponding to the second logical function module identifier.
[0085] Here, each logical function module identifier may have at least one port, which may include an output port and / or an input port. Each port may have its specific data type.
[0086] The port identified by the logical function module can correspond to the port of the logical function module.
[0087] Specifically, when a user connects the first port of the first logical function module identifier and the second port of the second logical function module identifier via a connection, the user can obtain the data type corresponding to the first port and the data type corresponding to the second port, and check whether the data types corresponding to the first port and the second port match. If they match, the connection between the first port of the first logical function module identifier and the second port of the second logical function module identifier can be successfully established, thereby determining the connection relationship between the logical function module corresponding to the first logical function module identifier and the logical function module corresponding to the second logical function module identifier. If they do not match, the connection between the first port of the first logical function module identifier and the second port of the second logical function module identifier cannot be successfully established, and the connection relationship between the logical function module corresponding to the first logical function module identifier and the logical function module corresponding to the second logical function module identifier cannot be determined.
[0088] For example, such as Figure 2 As shown, the user connects the "output signal" port of the first logic function module "StarStopNode" and the "Trig" port of the second logic function module "PLC Heartbeat" by connecting the wires. After testing, the data type corresponding to the "output signal" port and the data type corresponding to the "Trig" port match, so the connection can be successful. Thus, the connection relationship between the logic function module "StarStopNode" and the logic function module "PLC Heartbeat" can be determined.
[0089] In this way, the data type of the port to which the user is connecting can be automatically detected, thus avoiding user connection errors.
[0090] Regarding S130, the target task can be generated based on multiple logical functional modules and the connection relationships between these multiple logical functional modules.
[0091] Multiple logical function modules may include a first logical function module. Users can pre-set the target PLC protocol and target PLC corresponding to the first logical function module, so that the first logical function module can establish a connection between the target PLC and the logical function module connected to the first logical function module through the target PLC protocol.
[0092] The PLC protocol of the first logic function module can be flexibly set by the user, so that the PLC protocol applicable to the target task can be flexibly determined by the user input, making the task compatible with multiple PLC protocols.
[0093] In related technologies, the underlying driver module is usually not exposed to the outside world, so it is impossible to troubleshoot when anomalies occur during task execution.
[0094] In some embodiments, to facilitate troubleshooting of abnormal issues, such as Figure 4As shown, after S130, the method may further include:
[0095] S140, during the execution of the target task, uses multiple logical function modules to identify their respective log output ports and outputs log data corresponding to the logical function modules identified by the multiple logical function modules.
[0096] Here, each logical function module can have a log output port, which can be used to output the log data of the logical function module. The execution status of the logical function module can be monitored in real time through the log data.
[0097] For example, such as Figure 2 As shown, the logical function module identifiers such as "StarStopNode", "Get PLC Object" and "PLC Heartbeat" all have a "log" port, which is the log output port.
[0098] In this way, by outputting the log data of the logical function modules through the log output port, the log data can be visualized, making it easier for users to troubleshoot abnormal problems during task execution, so as to quickly locate the abnormal logical function modules and improve operation and maintenance efficiency.
[0099] In some embodiments, to facilitate timely detection of anomalies in logical functional modules, such as... Figure 5 As shown, after S130, the method may further include:
[0100] S150, during the execution of the target task, the execution time of the logical function module corresponding to each logical function module identifier is displayed in each logical function module identifier.
[0101] Here, the execution time can be the execution time of a certain piece of data by a logical function module.
[0102] Specifically, each logical function module identifier can display the execution time of that logical function module. The execution time can be used to determine whether the execution of the logical function module has timed out. If it has timed out, it indicates that there is an anomaly in the logical function module.
[0103] Thus, by displaying the execution time of a logical function module in its identifier, it is easy to monitor the execution time of the logical function module in real time, thereby enabling users to promptly detect any abnormalities in the logical function module.
[0104] In some embodiments, to help users more intuitively understand whether a logical functional module is malfunctioning, such as... Figure 6 As shown, S150 may include:
[0105] S151, During the execution of the target task, obtain the execution time of the logical function modules corresponding to the identifiers of multiple logical function modules respectively;
[0106] S152, if the execution time of the second logical function module in multiple logical function modules exceeds the preset range corresponding to the second logical function module, the execution time of the second logical function module is displayed in the logical function module identifier corresponding to the second logical function module based on the first display parameter.
[0107] S153, if the execution time of the second logical function module in the multiple logical function modules does not exceed the preset range corresponding to the second logical function module, the execution time of the second logical function module is displayed in the logical function module identifier corresponding to the second logical function module based on the second display parameter.
[0108] Here, the preset ranges corresponding to different logical function modules can be different, and can be set according to actual needs.
[0109] The second logical function module can be any one of multiple logical function modules.
[0110] Specifically, for each of the multiple logical function modules, if the execution time of the logical function module exceeds the preset range corresponding to the logical function module, the execution time of the logical function module can be displayed based on the first display parameter; if the execution time of the logical function module does not exceed the preset range corresponding to the logical function module, the execution time of the logical function module can be displayed based on the second display parameter.
[0111] Display parameters can include at least one of color, font, and font size. The first display parameter and the second display parameter can be different. For example, the first display parameter can be red, and the second display parameter can be green.
[0112] For example, such as Figure 2 As shown, the execution time of the logic function module "PLC Heartbeat" is 0ms, which exceeds the preset range. Therefore, "0ms" in red font can be displayed in the logic function module identifier. The execution time of the logic function module "Get PLC Object" is 1009ms, which does not exceed the preset range. Therefore, "1009ms" in green font can be displayed in the logic function module identifier.
[0113] In this way, by displaying the execution time that exceeds and does not exceed the preset range based on different display parameters, users can more intuitively understand whether the logical function module is abnormal.
[0114] In some embodiments, in order to quickly and flexibly generate different tasks for different businesses, such as Figure 7As shown, prior to S110, the method may further include:
[0115] S103, in response to the input of the identifier of the target service, displays the first configuration interface corresponding to the target service;
[0116] S104, in response to input of the identifier of the target task among multiple task identifiers, displays the second configuration interface corresponding to the target task.
[0117] Here, different services can correspond to different business scenarios, and different business scenarios can correspond to different devices. The target service can be one of multiple services.
[0118] A business scenario can be understood as a project, and each project in a low-code platform corresponds to a business scenario. Each business scenario can have multiple solutions, which can be understood as tasks. Each solution can be obtained by connecting different operators based on specific business logic. An operator can be understood as a logical functional module with specific logic.
[0119] The first configuration interface may include multiple task identifiers. The second configuration interface may include a first display area and a second display area. The first display area may include at least multiple logical function module identifiers.
[0120] Different tasks can correspond to different task identifiers. The target task can be one of multiple tasks.
[0121] For example, such as Figure 2 As shown, when a user clicks on a business scenario, multiple icons corresponding to each business scenario can be displayed. When a user clicks on the icon "Clink3.0 Plus" 230 of the target business scenario, multiple task icons 240 can be displayed. When a user clicks on the icon "PLC Heartbeat" 241 of the target task scenario, multiple logical function module icons corresponding to the target business scenario 211 can be displayed.
[0122] This low-code platform can support multiple different types of projects, i.e. multiple services, depending on the actual application needs, such as edge data acquisition, host computer, closed-loop control, etc.
[0123] In this way, the low-code platform can be compatible with different businesses and tasks, and users can quickly and flexibly generate different tasks for different businesses through simple input.
[0124] In some embodiments, in order to accurately generate the required logical functional modules, such as Figure 8 As shown, the method may further include:
[0125] S101, in response to the input for creating a logical function module, generates a logical function module identifier corresponding to the logical function module;
[0126] S102, in response to the input of the module parameters corresponding to the configuration logic function module identifier, generate the logic function module based on the module parameters.
[0127] Here, the input for creating a logical function module can trigger the generation of the corresponding logical function module identifier. The input for configuring the module parameters corresponding to the logical function module identifier can trigger the generation of the logical function module based on those parameters, and associate the logical function module identifier with the logical function module.
[0128] Module parameters may include the number of ports of the logic function module, the data type of each port, and the logic function algorithm of the logic function module.
[0129] The ports of a logic function module represent various input and output ports. Dynamically configuring the number of input and output ports can reasonably accommodate application scenarios where a logic function module outputs multiple types of data or receives multiple types of data.
[0130] Users can identify all possible logical scenarios in advance based on the actual situation and prepare the logical function modules in advance. Operation and maintenance personnel can switch logical function modules according to the actual situation on site, thereby greatly improving the efficiency of development and operation and maintenance.
[0131] In this way, the required logical function modules can be accurately generated through the above process, which facilitates the subsequent generation of corresponding tasks based on the logical function modules.
[0132] In some embodiments, for the smooth use of logical functional modules, such as Figure 9 As shown, S102 may include:
[0133] S1021, In response to the input of the module parameters corresponding to the configuration logic function module identifier, the module parameters are stored in the dynamic link library;
[0134] S1022, in response to the input of configuring the logical function module identifier, bind the address of the dynamic link library to the logical function module identifier;
[0135] S1023, in response to the input of loading the logical function module, load the module parameters in the dynamic link library according to the address of the dynamic link library bound to the logical function module identifier.
[0136] Here, the input for configuring the logical function module identifier can be the address of the dynamic link library corresponding to that logical function module identifier.
[0137] Specifically, the address of the dynamic link library corresponding to the generated dynamic link library of the logical function module can be configured in the generation event of the logical function module to achieve unified management of DLLs. In the logical function module interface, check the "Add New Logical Function Module" option; after checking, the program will automatically load the logical function module at startup. This will allow the identifier of the logical function module to be displayed in the first display area.
[0138] In this way, the above process can be used to load the logical function module, which will facilitate its smooth use in the future.
[0139] To better describe the overall solution, based on the above embodiments, a specific example is given, such as... Figure 10 As shown, the task generation method may include S1001-S1014. Wherein:
[0140] S1001, in response to the input for creating a logical function module, generates the logical function module identifier corresponding to the logical function module.
[0141] S1002, in response to the input of module parameters corresponding to the configuration logic function module identifier, stores the module parameters in the dynamic link library.
[0142] S1003, in response to the input of configuring the logical function module identifier, binds the address of the dynamic link library to the logical function module identifier.
[0143] S1004, in response to the input of loading the logical function module, load the module parameters in the dynamic link library according to the address of the dynamic link library bound to the logical function module identifier.
[0144] S1005, in response to the input of the identifier of the target service, displays the first configuration interface corresponding to the target service.
[0145] S1006, in response to input of the identifier of the target task among multiple task identifiers, the second configuration interface corresponding to the target task is displayed.
[0146] S1007, in response to input of multiple logical function module identifiers in the first display area, multiple logical function module identifiers are displayed in the second display area.
[0147] S1008, in response to the input of the first port identified by the first logical function module and the second port identified by the second logical function module, obtain the data type corresponding to the first port and the data type corresponding to the second port.
[0148] S1009, if the data types corresponding to the first port and the second port match, determine the connection relationship between the logical function module corresponding to the first logical function module identifier and the logical function module corresponding to the second logical function module identifier.
[0149] S1010: Generate the target task based on the logical function modules corresponding to the multiple logical function module identifiers and the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers.
[0150] S1011, during the execution of the target task, log output ports are identified by multiple logical function modules, and log data of the corresponding logical function modules are output.
[0151] S1012, during the execution of the target task, obtain the execution time of the logical function modules corresponding to the identifiers of multiple logical function modules.
[0152] S1013, if the execution time of the second logical function module in multiple logical function modules exceeds the preset range corresponding to the second logical function module, the execution time of the second logical function module is displayed in the logical function module identifier corresponding to the second logical function module based on the first display parameter.
[0153] S1014, if the execution time of the second logical function module in the multiple logical function modules does not exceed the preset range corresponding to the second logical function module, the execution time of the second logical function module is displayed in the logical function module identifier corresponding to the second logical function module based on the second display parameter.
[0154] The specific processes of S1001-S1014 can be found in the above embodiments, and will not be repeated here.
[0155] In this embodiment, the low-code platform achieves high software configurability and adapts to various PLC protocols, different data acquisition and processing logics, and different device control logics. It also solves problems such as large monitoring data volumes, high real-time requirements, and high data accuracy requirements. Each logical function module is displayed visually on the interface, and the modules are independent of each other with clearly defined ports, facilitating maintenance and upgrades.
[0156] Based on the same inventive concept, embodiments of this application also provide a task generation apparatus. The following, in conjunction with... Figure 11 The task generation apparatus provided in the embodiments of this application will be described in detail.
[0157] Figure 11 A schematic diagram of the structure of a task generation apparatus provided in one embodiment of this application is shown.
[0158] like Figure 11 As shown, the task generation device may include:
[0159] The first display module 1101 is configured to display multiple logical function module identifiers in a second display area in response to input of multiple logical function module identifiers in a first display area;
[0160] The determining module 1102 is used to determine the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers in response to the input of multiple logical function module identifiers in the second display area.
[0161] The first generation module 1103 is used to generate a target task based on the logical function modules corresponding to the multiple logical function module identifiers and the connection relationship between the logical function modules corresponding to the multiple logical function module identifiers.
[0162] Among them, the multiple logical function module identifiers include at least the logical function module identifier of the first logical function module. The first logical function module is used to establish a connection between the target PLC and the logical function module connected to it through the target PLC protocol. The target PLC protocol and the target PLC corresponding to the first logical function module are determined based on user input.
[0163] Therefore, by selecting and connecting multiple logical function modules, a target task can be generated without requiring development, reducing development manpower and costs while maintaining high efficiency. Furthermore, the PLC and PLC protocol can be determined based on user input, allowing the generated task to be compatible with different PLC protocols.
[0164] In some embodiments, to avoid connection errors between logical function modules, the multiple logical function module identifiers include at least a first logical function module identifier and a second logical function module identifier, and the determining module 1102 may include:
[0165] The first acquisition submodule is used to acquire the data type corresponding to the first port and the data type corresponding to the second port in response to the input of the first port identified by the first logical function module and the second port identified by the second logical function module.
[0166] The determination submodule is used to determine the connection relationship between the logical function module corresponding to the first logical function module identifier and the logical function module corresponding to the second logical function module identifier, provided that the data types corresponding to the first port and the second port are matched.
[0167] In some embodiments, to facilitate troubleshooting, the device may further include:
[0168] The output module is used to output log data of the corresponding logical function module by identifying the log output port of each logical function module through multiple logical function modules during the execution of the target task.
[0169] In some embodiments, to facilitate timely detection of anomalies in the logic function modules, the device may further include:
[0170] The second display module is used to display the execution time of the logical function module corresponding to each logical function module identifier in the logical function module identifier during the execution of the target task.
[0171] In some embodiments, to help users understand more intuitively whether a logical function module is malfunctioning, the second display module may include:
[0172] The second acquisition submodule is used to acquire the execution time of multiple logical function module identifiers corresponding to the logical function modules during the execution of the target task.
[0173] The first display submodule is used to display the execution time of the second logical function module in the logical function module identifier corresponding to the second logical function module based on the first display parameters when the execution time of the second logical function module in the multiple logical function modules exceeds the preset range corresponding to the second logical function module.
[0174] The second display submodule is used to display the execution time of the second logical function module in the logical function module identifier corresponding to the second logical function module based on the second display parameters, provided that the execution time of the second logical function module in the multiple logical function modules does not exceed the preset range corresponding to the second logical function module.
[0175] In some embodiments, in order to quickly and flexibly generate different tasks for different businesses, the apparatus may further include:
[0176] The third display module is used to display a first configuration interface corresponding to the target service in response to input of the target service identifier before displaying the multiple logical function module identifiers in the second display area in response to input of the target service identifier. The first configuration interface includes multiple task identifiers.
[0177] The fourth display module is used to display the second configuration interface corresponding to the target task in response to input of the target task identifier among multiple task identifiers. The second configuration interface includes a first display area and a second display area. The first display area includes at least multiple logical function module identifiers.
[0178] In some embodiments, in order to accurately generate the required logical function modules, the apparatus may further include:
[0179] The second generation module is used to generate the logical function module identifier corresponding to the logical function module in response to the input for creating the logical function module;
[0180] The third generation module is used to generate logical function modules based on the module parameters corresponding to the configuration logical function module identifier in response to the input. The module parameters include the number of ports of the logical function module, the data type of each port, and the logical function algorithm of the logical function module.
[0181] In some embodiments, for the smooth use of the logical function modules, the third generation module may include:
[0182] The storage submodule is used to store module parameters in a dynamic link library in response to input of module parameters corresponding to the configuration logic function module identifier;
[0183] The binding submodule is used to bind the address of the dynamic link library to the logical function module identifier in response to the input of the configuration logical function module identifier;
[0184] The load submodule is used in response to the input of the load logic function module, and loads the module parameters in the dynamic link library according to the address of the dynamic link library bound to the logic function module identifier.
[0185] In some embodiments, in order to conveniently and quickly generate tasks in the battery production process, the logic function module is the logic function module corresponding to the sub-tasks in the battery production process.
[0186] Figure 12 A schematic diagram of the structure of an electronic device provided in one embodiment of this application is shown.
[0187] like Figure 12 As shown, the electronic device 12 is capable of implementing an exemplary hardware architecture of the electronic device according to the task generation method and task generation apparatus in the embodiments of this application. This electronic device may refer to the electronic device in the embodiments of this application.
[0188] The electronic device 12 may include a processor 1201 and a memory 1202 storing computer program instructions.
[0189] Specifically, the processor 1201 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0190] Memory 1202 may include mass storage for data or instructions. For example, and not limitingly, memory 1202 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1202 may include removable or non-removable (or fixed) media. Where appropriate, memory 1202 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 1202 is non-volatile solid-state memory. In a particular embodiment, memory 1202 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory 1202 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this application.
[0191] The processor 1201 implements any of the task generation methods described in the above embodiments by reading and executing computer program instructions stored in the memory 1202.
[0192] In one example, the electronic device may also include a communication interface 1203 and a bus 1204. Wherein, as... Figure 12 As shown, the processor 1201, memory 1202, and communication interface 1203 are connected through bus 1204 and complete communication with each other.
[0193] The communication interface 1203 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0194] Bus 1204 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 1204 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.
[0195] The electronic device can execute the task generation method in the embodiments of this application, thereby achieving the combination Figures 1 to 11 The described task generation method and apparatus.
[0196] Furthermore, in conjunction with the task generation methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the task generation methods in the above embodiments.
[0197] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0198] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0199] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0200] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in 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, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0201] Although this application has been described with reference to preferred embodiments, various modifications can be made thereto and components can be replaced with equivalents without departing from the scope of this application. In particular, the technical features mentioned in the various embodiments can be combined in any manner, provided there is no structural conflict. This application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A task generation method, characterized in that, include: In response to input of multiple logical function module identifiers in the first display area, the multiple logical function module identifiers are displayed in the second display area; In response to the input of the plurality of logical function module identifiers connected in the second display area, the connection relationship between the logical function modules corresponding to the plurality of logical function module identifiers is determined; Based on the logical function modules corresponding to the multiple logical function module identifiers and the connection relationships between the logical function modules corresponding to the multiple logical function module identifiers, a target task is generated. The plurality of logical function module identifiers include at least the logical function module identifier of the first logical function module. The first logical function module is used to establish a connection between the target PLC and the logical function module connected to it through the target programmable logic controller (PLC) protocol. The target PLC protocol corresponding to the first logical function module and the target PLC are determined based on user input.
2. The method according to claim 1, characterized in that, The plurality of logical function module identifiers include at least a first logical function module identifier and a second logical function module identifier. The step of determining the connection relationship between the logical function modules corresponding to the plurality of logical function module identifiers in response to input connecting the plurality of logical function module identifiers in the second display area includes: In response to the input connecting the first port identified by the first logical function module and the second port identified by the second logical function module, the data type corresponding to the first port and the data type corresponding to the second port are obtained; If the data types corresponding to the first port and the second port match, the connection relationship between the logical function module corresponding to the first logical function module identifier and the logical function module corresponding to the second logical function module identifier is determined.
3. The method according to claim 1, characterized in that, The method further includes: During the execution of the target task, the log output ports of the multiple logical function modules are identified, and the log data of the logical function modules corresponding to the multiple logical function module identifiers are output.
4. The method according to claim 1, characterized in that, The method further includes: During the execution of the target task, the execution time of the logical function module corresponding to each logical function module identifier is displayed in each logical function module identifier.
5. The method according to claim 4, characterized in that, During the execution of the target task, displaying the execution time of the logical function module corresponding to each logical function module identifier in each logical function module identifier includes: During the execution of the target task, the execution time of the logical function modules corresponding to the multiple logical function module identifiers is obtained; If the execution time of the second logical function module in a plurality of logical function modules exceeds the preset range corresponding to the second logical function module, the execution time of the second logical function module is displayed in the logical function module identifier corresponding to the second logical function module based on the first display parameter. If the execution time of the second logical function module in the multiple logical function modules does not exceed the preset range corresponding to the second logical function module, the execution time of the second logical function module is displayed in the logical function module identifier corresponding to the second logical function module based on the second display parameter.
6. The method according to claim 1, characterized in that, Before displaying the plurality of logical function module identifiers in a second display area in response to input of an input in a first display area, the method further includes: In response to the input of an identifier for a target service, a first configuration interface corresponding to the target service is displayed, the first configuration interface including multiple task identifiers; In response to input of the identifier of the target task among multiple task identifiers, a second configuration interface corresponding to the target task is displayed. The second configuration interface includes the first display area and the second display area. The first display area includes at least the identifiers of the multiple logical function modules.
7. The method according to claim 1, characterized in that, The method further includes: In response to the input for creating a logical function module, a logical function module identifier corresponding to the logical function module is generated; In response to the input of module parameters corresponding to the configuration of the logical function module identifier, the logical function module is generated based on the module parameters, wherein the module parameters include the number of ports of the logical function module, the data type of each port, and the logical function algorithm of the logical function module.
8. The method according to claim 7, characterized in that, The step of generating the logical function module based on the module parameters corresponding to the configuration of the logical function module identifier in response to input includes: In response to the input of the module parameters corresponding to the configuration of the logical function module identifier, the module parameters are stored in the dynamic link library; In response to the input configuring the logical function module identifier, the address of the dynamic link library is bound to the logical function module identifier; In response to the input of loading the logical function module, the module parameters in the dynamic link library are loaded according to the address of the dynamic link library bound to the identifier of the logical function module.
9. The method according to claim 1, characterized in that, The logical function modules are the logical function modules corresponding to the sub-tasks in the battery production process.
10. A task generation device, characterized in that, The device includes: A first display module is configured to display the multiple logical function module identifiers in a second display area in response to input of multiple logical function module identifiers in a first display area; The determining module is configured to determine the connection relationship between the logical function modules corresponding to the plurality of logical function module identifiers in response to the input of the input of the plurality of logical function module identifiers connected in the second display area; The first generation module is used to generate a target task based on the logical function modules corresponding to the plurality of logical function module identifiers and the connection relationship between the logical function modules corresponding to the plurality of logical function module identifiers. The plurality of logical function module identifiers include at least the logical function module identifier of the first logical function module. The first logical function module is used to establish a connection between the target PLC and the logical function module connected to it through the target programmable logic controller (PLC) protocol. The target PLC protocol corresponding to the first logical function module and the target PLC are determined based on user input.
11. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the task generation method as described in any one of claims 1-9.
12. A computer storage medium, characterized in that, The computer storage medium stores computer program instructions, which, when executed by a processor, implement the task generation method as described in any one of claims 1-9.
13. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device causes the electronic device to perform the task generation method as described in any one of claims 1-9.