Processing method, device, electronic device and storage medium for load distribution port

By automatically configuring the optimal controller combination with port comparison library, the problem of inefficient and error-prone manual operations when the load is high is solved, and efficient automation and cost savings of load allocation are achieved.

CN115437291BActive Publication Date: 2025-08-19GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211161877.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2025-08-19
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

When the load is large, especially when the port can support the configuration of multiple load signals, the port can select which load signal to configure, and the manual operation configuration is inefficient and error-prone.

Method used

By obtaining the load number and load signal type of the port to be allocated, using the pre-established port comparison library, an optimal controller combination that meets the preset port allocation rules is configured from the controller module library, including the main module and the expansion module, and the corresponding controller ports are automatically configured for each load based on the optimal controller combination.

Benefits of technology

The load allocation is automated, which avoids manual allocation errors, improves allocation efficiency and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115437291B_ABST
    Figure CN115437291B_ABST
Patent Text Reader

Abstract

The present application relates to a processing method, device, electronic device and storage medium for load allocation ports, and belongs to the technical field of load allocation controller ports. Based on the number of loads and load signal types of the obtained ports to be allocated, the present application uses a pre-established port reference library to configure an optimal controller combination that meets the preset port allocation rules from the controller module library, wherein the controller module library has a variety of main modules and a variety of extension modules, and a controller combination includes a main module and at least one extension module; the port reference library indicates the set of load signal types that can be supported by each controller port type; then, based on the obtained optimal controller combination, the reference library is used to configure the corresponding controller port for each load. In this way, the automatic allocation of ports according to the load can be achieved, which can avoid errors in manual allocation of ports, improve the allocation efficiency of load allocation ports, and thus also help to reduce labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of load distribution controller ports, and specifically relates to a processing method, device, electronic device and storage medium for load distribution ports. Background Art

[0002] In the field of control engineering, when a user receives a control requirement, the user needs to select various loads based on the control requirement, compile a hardware requirement table, then evaluate the applicable controller based on the hardware requirement table, and arrange the loads in the hardware requirement table one by one on the controller's ports.

[0003] For a controller, there are multiple ports, each with a corresponding port type. A port may support multiple load signals, and different ports may support different load signals. For example, some ports can support either current or voltage signals, while some ports only support current signals, or only support voltage signals. In the above case, when the number of loads is small, the workload of manual operation configuration for the optimal selection of the controller and the optimal distribution of the load is not large. However, when the number of loads is large, especially when the port can support the configuration of multiple load signals, it takes a long time for the port to select which load signal to configure to achieve the optimal selection of the controller and the optimal distribution of the load. Manual operation configuration is very inefficient and prone to errors. Summary of the Invention

[0004] To this end, the present application provides a processing method, device, electronic device and storage medium for load distribution ports, which helps to solve the problem of which load signal to configure for the port when the number of loads is large, especially when the port can support the configuration of multiple load signals, to achieve the preferential selection of the controller and the preferential distribution of the load. Manual configuration takes a long time and is very inefficient and prone to errors.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a method for processing a load distribution port, the method comprising:

[0007] Obtain the number of loads and load signal types of the port to be allocated;

[0008] Based on the acquired number of loads and the load signal type of each load, an optimal controller combination that meets the preset port allocation rules is configured from a controller module library using a pre-established port reference library, wherein the controller module library has multiple main modules and multiple expansion modules, and a controller combination includes a main module and at least one expansion module; the port reference library indicates the set of configured load signal types that each controller port type can support;

[0009] Based on the obtained optimal controller combination, the corresponding controller port is configured for each load using the port reference library.

[0010] Furthermore, the configuration of an optimal controller combination that meets a preset port allocation rule from a controller module library based on the acquired number of loads and the load signal type of each load includes:

[0011] Based on the number of acquired loads and the load signal type of each load, a pre-established port comparison library is used to configure several candidate controller combinations from the controller module library;

[0012] According to the controller combination with the least number of modules, a controller combination with the least number of modules is selected from the plurality of candidate controller combinations; and according to the controller combination with the best price, a controller combination with the best price is selected from the plurality of candidate controller combinations;

[0013] Confirm whether the controller combination with the least number of modules and the controller combination with the best price are the same controller combination. If so, obtain the optimal controller combination.

[0014] Furthermore, the configuring of an optimal controller combination that satisfies a preset port allocation rule from a controller module library based on the acquired number of loads and the load signal type of each load also includes:

[0015] If the controller combination with the least number of modules and the controller combination with the best price are not the same controller combination;

[0016] Then obtain the priority of configuring the controller combination with the least number of modules in the controller combination, and obtain the priority of configuring the controller combination with the best price;

[0017] From the two options of configuring a controller combination with the least number of modules in the controller combination and configuring a controller combination with the best price of the controller combination, select the one with higher priority, and based on the one with higher priority, select a candidate controller combination from the several candidate controller combinations as the optimal controller combination.

[0018] Furthermore, configuring a corresponding controller port for each load using the port reference library based on the obtained optimal controller combination includes:

[0019] Based on the obtained optimal controller combination and according to the preset allocation preference, the corresponding controller port is configured for each load using the port reference library.

[0020] Furthermore, the allocation preferences include:

[0021] Assign associated load wirings together, and / or assign different load wirings of the same data type in a preset assignment order.

[0022] Furthermore, the method further comprises:

[0023] Get the load signal type and controller port type as samples;

[0024] Classify the load signal type according to the data type to obtain the data type to which the load signal type belongs;

[0025] According to the data types supported by each controller port type, a load signal type is configured for each controller port type to obtain the port reference library, wherein different controller port types support different data types, and each controller port type supports one or more data types.

[0026] Furthermore, the method further comprises:

[0027] When the configuration of the corresponding controller port for each load is completed, the configuration result of the corresponding controller port for each load is also output in the form of graphics and text.

[0028] In a second aspect, the present application provides a processing device for a load distribution port, the device comprising:

[0029] An acquisition module is used to obtain the number of loads and load signal types of the port to be allocated;

[0030] Obtaining an optimal controller combination module, which is used to configure an optimal controller combination that meets preset port allocation rules from a controller module library based on the number of acquired loads and the load signal type of each load, using a pre-established port reference library, wherein the controller module library has multiple main modules and multiple extension modules, and a controller combination includes a main module and at least one extension module; the port reference library indicates the set of configured load signal types that can be supported by each controller port type;

[0031] A configuration module is used to configure a corresponding controller port for each load using the port reference library based on the obtained optimal controller combination.

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

[0033] at least one processor; and

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the first aspect mentioned above.

[0036] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the method of the first aspect when executed.

[0037] This application adopts the above technical solution, which has at least the following beneficial effects:

[0038] Through the solution of this application, based on the number of loads and load signal types of the ports to be allocated, a pre-established port reference library is used to configure the optimal controller combination that meets the preset port allocation rules from the controller module library, wherein the controller module library has multiple main modules and multiple extension modules, and a controller combination includes a main module and at least one extension module; the port reference library indicates the set of load signal types that each controller port type can support; then, based on the obtained optimal controller combination, the reference library is used to configure the corresponding controller port for each load. In this way, the port is automatically allocated according to the load, which can avoid errors in manual port allocation, improve the allocation efficiency of the load allocation port, and thus also help reduce labor costs.

[0039] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0041] Figure 1 is a flow chart showing a method for processing load distribution ports according to an exemplary embodiment;

[0042] Figure 2 is a block diagram illustrating a processing device for a load distribution port according to an exemplary embodiment;

[0043] Figure 3 The figure is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0044] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be described in detail below. Obviously, the embodiments described are only some of the embodiments of this application, rather than all of them. Based on the embodiments in this application, all other implementation methods obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.

[0045] See also Figure 1 , Figure 1 The present invention is a flowchart showing a method for processing a load distribution port according to an exemplary embodiment. The method for processing a load distribution port includes the following steps:

[0046] Step S11: Obtain the number of loads to be allocated to the port and the type of load signal;

[0047] Step S12: Based on the acquired number of loads and the load signal type of each load, an optimal controller combination that satisfies a preset port allocation rule is configured from a controller module library using a pre-established port reference library, wherein the controller module library includes a plurality of main modules and a plurality of expansion modules, and a controller combination includes a main module and at least one expansion module; the port reference library indicates the set of load signal types that can be configured for each controller port type;

[0048] Step S13: Based on the obtained optimal controller combination, the corresponding controller port is configured for each load using the port reference library.

[0049] Specifically, in practical applications, loads may include, but are not limited to, the following devices: various sensors, switching devices such as relays, electronically controlled valves, and so on. Load signal types may include, but are not limited to, the following examples: 4-20mA current input signal, 0-10V voltage input signal, 4-20mA current output signal, 0-10V voltage output signal, high- and low-level input signals, and high- and low-level output signals. A controller has multiple ports, each with a corresponding port type. A port may support multiple load signal types, and different ports may support different load signal types. For example, some ports may support any of the aforementioned example signals, while others may only support a subset, such as one or two. When there are a large number of loads, such as hundreds of ports, and especially when a port supports multiple load signal types, manual configuration is time-consuming, inefficient, and prone to errors.

[0050] In order to solve the above problem, the present application sets a port reference library, which indicates the set of load signal types that can be configured for each controller port type. For example, controller port type A supports the configuration of all the following load signal types: 4-20mA current input signal, 0-10V voltage input signal, 4-20mA current output signal, 0-10V voltage output signal, high and low level input signal, and high and low level output signal. Then, all the load signal types supported by the above controller port type A form a set. For another example, controller port type B supports the configuration of all the following load signal types: 4-20mA current input signal, 0-10V voltage input signal, 4-20mA current output signal, and 0-10V voltage output signal. Then, all the load signal types supported by the above controller port type B form a set.

[0051] In practical applications, since the actual number of loads is not fixed, the controller combination adopts a main module + n expansion modules to adapt to different application scenarios with different load quantities. In this application, the controller module library has multiple main modules and multiple expansion modules. A controller combination includes one main module and at least one expansion module. There are multiple main modules and expansion modules to choose from, which can form various controller combinations, such as: a combination of main module a1 + expansion module b1 + expansion module b2, another combination of main module a2 + 3 expansion modules b1, and so on. Therefore, based on the number of loads and load signal types obtained for the ports to be assigned, using a pre-established port comparison library, the optimal controller combination that meets the preset port allocation rules can be configured from the controller module library. The port allocation rules may include but are not limited to: the controller combination with the least number of modules and / or the controller combination with the best price. Then, based on the obtained optimal controller combination, the comparison library is used to assign corresponding controller ports to each load. This achieves automatic port allocation based on load, avoids errors in manual port allocation, improves the efficiency of port allocation to loads, and further helps reduce labor costs.

[0052] In one embodiment, the method further comprises:

[0053] Get the load signal type and controller port type as samples;

[0054] Classify the load signal type according to the data type to obtain the data type to which the load signal type belongs;

[0055] According to the data types supported by each controller port type, a load signal type is configured for each controller port type to obtain the port reference library, wherein different controller port types support different data types, and each controller port type supports one or more data types.

[0056] Specifically, this solution is a pre-derived solution from a port reference library. This solution uses data types as a bridge between load signal types and controller port types, associating load signal types with corresponding controller port types. Different controller port types support different data types, with each controller port type supporting one or more data types. In one embodiment, data types can be categorized by analog input (AI), analog output (AO), digital input (DI), and digital output (DO). For example, controller port type I can support analog input (AI), analog output (AO), digital input (DI), and digital output (DO); for another example, controller port type II can support analog input (AI) and analog output (AO); for another example, controller port type III can support digital input (DI) and digital output (DO); for another example, controller port type IV can support analog input (AI) and digital input (DI), and so on. In another embodiment, data types can be categorized by inductive and non-inductive loads. For example, controller port type I may support configuration of inductive and non-inductive loads, controller port type II may support configuration of inductive loads, and so on.

[0057] The data types are divided into analog input (AI), analog output (AO), digital input (DI), and digital output (DO). For the following load signal type examples: 4-20mA current input signal, 0-10V voltage input signal, 4-20mA current output signal, 0-10V voltage output signal, high and low level input signals, and high and low level output signals. According to the four controller port types given above, controller port type I can support the configuration of all the above load signal type examples. Controller port type II can support the configuration of 4-20mA current input signal, 0-10V voltage input signal, 4-20mA current output signal, and 0-10V voltage output signal. Controller port type III can support the configuration of high and low level input signals and high and low level output signals. Controller port type IV can support the configuration of 4-20mA current input signal, 0-10V voltage input signal, and high and low level input signals.

[0058] In one embodiment, in step S12, configuring an optimal controller combination that satisfies a preset port allocation rule from a controller module library based on the acquired number of loads and the load signal type of each load includes the following steps:

[0059] Step S121: Based on the acquired number of loads and the load signal type of each load, a plurality of candidate controller combinations are configured from a controller module library using a pre-established port comparison library;

[0060] Step S122: selecting a controller combination with the least number of modules from the candidate controller combinations based on the controller combination having the least number of modules, and selecting a controller combination with the best price from the candidate controller combinations based on the controller combination having the best price;

[0061] Step S123: confirm whether the controller combination with the least number of modules and the controller combination with the best price are the same controller combination; if so, obtain the optimal controller combination.

[0062] Specifically, based on the acquired number of loads and the load signal type of each load, a pre-established port comparison library is used to configure several candidate controller combinations from the controller module library. These candidate controller combinations can all meet the load distribution requirements of the assigned ports. Then, from these candidate controller combinations, the controller combination with the fewest modules and the controller combination with the best price are selected. The controller combination with the fewest modules often represents the optimal size, saving space. If it is confirmed that the controller combination with the fewest modules and the controller combination with the best price are the same controller combination, then this controller combination is the best choice, achieving both the fewest modules and the best price, and can be considered the optimal controller combination.

[0063] In practical applications, it is easy for the controller combination to fail to take into account both the minimum number of modules and the optimal price. In this case, new considerations are needed to obtain the optimal controller combination.

[0064] In this regard, further, in one embodiment, configuring an optimal controller combination that satisfies a preset port allocation rule from a controller module library based on the acquired number of loads and the load signal type of each load also includes:

[0065] Step S124: If the controller combination with the least number of modules and the controller combination with the best price are not the same controller combination;

[0066] Step S125: obtaining the priority of configuring the controller combination with the least number of modules in the controller combination, and obtaining the priority of configuring the controller combination with the best price;

[0067] Step S126: Select the one with higher priority from the controller combination configured with the least number of modules in the controller combination and the controller combination configured with the best price of the controller combination, and based on the one with higher priority, select a candidate controller combination from the several candidate controller combinations as the optimal controller combination.

[0068] Specifically, for the controller combination with the least number of modules and the controller combination with the best price, the two are each pre-set with a corresponding priority, and the priorities are different. For example, the priority corresponding to the controller combination with the least number of modules is high, while the priority corresponding to the controller combination with the best price is low; or, the priority corresponding to the controller combination with the least number of modules is low, while the priority corresponding to the controller combination with the best price is high. When it is determined that the controller combination cannot take into account both the least number of modules and the best price, the priorities corresponding to the controller combination with the least number of modules and the controller combination with the best price are obtained instead, and the one with the higher priority is selected. The one with the higher priority is considered, and a candidate controller combination is selected from several candidate controller combinations as the optimal controller combination. In this way, when saving space and optimizing price cannot be taken into account at the same time, the user can determine the optimal controller combination based on whether he needs to save space or prioritize the best price.

[0069] Regarding step S13, in one embodiment, configuring corresponding controller ports for each load using the port reference library based on the obtained optimal controller combination includes:

[0070] Based on the obtained optimal controller combination and according to the preset allocation preference, the corresponding controller port is configured for each load using the port reference library.

[0071] Specifically, configuring a corresponding controller port for each load according to a preset allocation preference can make the load distribution arrangement of the controller port conform to the user's design habits, which is convenient for the user to search and manage. In one embodiment, the allocation preference includes: allocating load wirings that have a correlation relationship together, for example, the control signal and feedback signal of the same load are allocated together as much as possible, and can be allocated in the same area of the same module for unified management. In another embodiment, the allocation preference includes: allocating different load wirings belonging to the same data type according to a preset allocation order, for example, the temperature and humidity sensor signal is often allocated in front of the analog port, followed by other sensors or temperature sensing packages. In actual applications, various allocation preferences can be set to be optional, and the user can select all allocation preferences for consideration at the same time, or select part of them for consideration according to their own needs.

[0072] In one embodiment, the method further comprises:

[0073] When the configuration of the corresponding controller port for each load is completed, the configuration result of the corresponding controller port for each load is also output in the form of graphics and text.

[0074] Specifically, using the above-mentioned related methods, when the corresponding controller port is automatically configured for each load, the configuration results of the corresponding controller port of each load are also output in the form of graphics and text, and presented to the user in the form of graphics and text, so that the user can perform actual configuration operations according to the instructions of the graphic output results.

[0075] See also Figure 2 , Figure 2 1 is a block diagram of a processing device for a load distribution port according to an exemplary embodiment. The processing device 2 for a load distribution port includes:

[0076] An acquisition module 201 is used to acquire the number of loads to be allocated to the port and the type of load signals;

[0077] Obtaining an optimal controller combination module 202, configured to configure an optimal controller combination that meets preset port allocation rules from a controller module library based on the acquired number of loads and the load signal type of each load, using a pre-established port reference library, wherein the controller module library has multiple main modules and multiple extension modules, and a controller combination includes a main module and at least one extension module; the port reference library indicates the set of load signal types that can be configured for each controller port type;

[0078] The configuration module 203 is configured to configure corresponding controller ports for each load using the port reference library based on the obtained optimal controller combination.

[0079] Furthermore, the optimal controller combination module 202 is specifically used to: configure several candidate controller combinations from the controller module library based on the number of acquired loads and the load signal type of each load using a pre-established port comparison library; select the controller combination with the least number of modules from the several candidate controller combinations according to the least number of modules in the controller combination, and select the controller combination with the best price from the several candidate controller combinations according to the best controller combination price; confirm whether the controller combination with the least number of modules and the controller combination with the best price are the same controller combination, and if so, obtain the optimal controller combination.

[0080] Furthermore, the optimal controller combination module 202 is also specifically used to: if the confirmed controller combination with the least number of modules and the controller combination with the best price are not the same controller combination; then obtain the priority of configuring the controller combination with the least number of modules in the controller combination, and obtain the priority of configuring the controller combination with the best price of the controller combination; select the one with higher priority from the controller combination with the least number of modules in the controller combination and the controller combination with the best price of the controller combination, and based on the one with higher priority, select a candidate controller combination from the several candidate controller combinations as the optimal controller combination.

[0081] Furthermore, the configuration module 203 is specifically configured to: configure corresponding controller ports for each load using the port reference library based on the obtained optimal controller combination and according to a preset allocation preference.

[0082] Furthermore, the allocation preferences include:

[0083] Assign associated load wirings together, and / or assign different load wirings of the same data type in a preset assignment order.

[0084] Furthermore, the processing device 2 for the load distribution port further includes:

[0085] Establish a port reference library module: obtain the load signal type and controller port type as samples; classify the load signal type according to the data type to obtain the data type to which the load signal type belongs; configure the load signal type for each controller port type according to the data type supported by each controller port type to obtain the port reference library, wherein different controller port types support different data types, and each controller port type supports one or more data types.

[0086] Furthermore, the processing device 2 for the load distribution port further includes:

[0087] Graphics and text output module: After completing the configuration of the corresponding controller port for each load, the configuration results of the corresponding controller port for each load are also output in the form of graphics and text.

[0088] Regarding the processing device 2 for the load distribution port in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiments of the above related methods and will not be elaborated on here.

[0089] See also Figure 3 , Figure 3 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. The electronic device 3 includes:

[0090] at least one processor 301; and

[0091] A memory 302 in communication with the at least one processor 301; wherein,

[0092] The memory 302 stores instructions that can be executed by the at least one processor 301. The instructions are executed by the at least one processor 301 to enable the at least one processor 301 to perform the above-mentioned related methods.

[0093] The electronic device 3 is the executor of the above-mentioned related methods. The electronic device 3 may include but is not limited to a server, a computer, a PAD, etc. The specific application embodiments of the electronic device 3 are described in detail in the above-mentioned related embodiments and will not be elaborated here.

[0094] In addition, the present application provides a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to implement the above-mentioned related methods when executed.

[0095] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0096] It should be noted that, in the description of this application, the terms "first," "second," etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" or "multiple" is at least two.

[0097] It should be understood that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or there may be an intermediate element at the same time; when an element is referred to as being "connected to" another element, it can be directly connected to the other element or there may be an intermediate element at the same time. In addition, the "connection" used here may include wireless connection; the wording "and / or" used includes any unit and all combinations of one or more associated listed items.

[0098] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.

[0099] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0100] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0101] In addition, the functional units in the various embodiments of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into a module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0102] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0103] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0104] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for processing a load distribution port, characterized in that: The method comprises: Obtain the number of loads and load signal types of the port to be allocated; Based on the number of acquired loads and the load signal type of each load, the optimal controller combination that meets the preset port allocation rules is configured from the controller module library using the pre-established port comparison library. The method of configuring an optimal controller combination that meets a preset port allocation rule from a controller module library based on the acquired number of loads and the load signal type of each load includes: Based on the number of acquired loads and the load signal type of each load, a plurality of candidate controller combinations are configured from a controller module library using a pre-established port comparison library; According to the controller combination with the least number of modules, a controller combination with the least number of modules is selected from the plurality of candidate controller combinations; and according to the controller combination with the best price, a controller combination with the best price is selected from the plurality of candidate controller combinations; confirming whether the controller combination with the least number of modules and the controller combination with the best price are the same controller combination; if so, obtaining the optimal controller combination; Also includes: If the controller combination with the least number of modules and the controller combination with the best price are not the same controller combination; Then obtain the priority of configuring the controller combination with the least number of modules in the controller combination, and obtain the priority of configuring the controller combination with the best price; Selecting a controller combination with a higher priority from among configuring the controller combination with the least number of modules in the controller combination and configuring the controller combination with the best controller combination price, and selecting a candidate controller combination from the plurality of candidate controller combinations as the optimal controller combination based on the higher priority; The controller module library has a variety of main modules and a variety of expansion modules. A controller combination includes a main module and at least one expansion module. The port control library indicates the set of configuration load signal types that each controller port type can support. Based on the obtained optimal controller combination, the corresponding controller port is configured for each load using the port reference library.

2. The method according to claim 1, characterized in that The configuring corresponding controller ports for each load using the port reference library based on the obtained optimal controller combination includes: Based on the obtained optimal controller combination and according to the preset allocation preference, the corresponding controller port is configured for each load using the port reference library.

3. The method according to claim 2, characterized in that The allocation preferences include: Assign associated load wirings together, and / or assign different load wirings of the same data type in a preset assignment order.

4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Get the load signal type and controller port type as samples; Classify the load signal type according to the data type to obtain the data type to which the load signal type belongs; According to the data types supported by each controller port type, a load signal type is configured for each controller port type to obtain the port reference library, wherein different controller port types support different data types, and each controller port type supports one or more data types.

5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: When the configuration of the corresponding controller port for each load is completed, the configuration result of the corresponding controller port for each load is also output in the form of graphics and text.

6. A processing device for a load distribution port, characterized in that: The device comprises: An acquisition module is used to obtain the number of loads and load signal types of the port to be allocated; The optimal controller combination module is obtained, which is used to configure the optimal controller combination that meets the preset port allocation rules from the controller module library based on the number of acquired loads and the load signal type of each load, using the pre-established port comparison library. The method of configuring an optimal controller combination that meets a preset port allocation rule from a controller module library based on the acquired number of loads and the load signal type of each load includes: Based on the number of acquired loads and the load signal type of each load, a plurality of candidate controller combinations are configured from a controller module library using a pre-established port comparison library; According to the controller combination with the least number of modules, a controller combination with the least number of modules is selected from the plurality of candidate controller combinations; and according to the controller combination with the best price, a controller combination with the best price is selected from the plurality of candidate controller combinations; confirming whether the controller combination with the least number of modules and the controller combination with the best price are the same controller combination; if so, obtaining the optimal controller combination; Also includes: If the controller combination with the least number of modules and the controller combination with the best price are not the same controller combination; Then obtain the priority of configuring the controller combination with the least number of modules in the controller combination, and obtain the priority of configuring the controller combination with the best price; Selecting a controller combination with a higher priority from among configuring the controller combination with the least number of modules in the controller combination and configuring the controller combination with the best controller combination price, and selecting a candidate controller combination from the plurality of candidate controller combinations as the optimal controller combination based on the higher priority; The controller module library has a variety of main modules and a variety of expansion modules. A controller combination includes a main module and at least one expansion module. The port control library indicates the set of configuration load signal types that each controller port type can support. A configuration module is used to configure a corresponding controller port for each load using the port reference library based on the obtained optimal controller combination.

7. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which are used to implement the method according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Optical fiber physical loop automatic mapping method and device suitable for intelligent substation

    CN110704992A

  • Interface list, instance program intelligent generation method and automatic integrated intelligent system

    CN112415930A