A method for dynamically allocating addresses, a coupler and a backplane
Through the method of dynamic address allocation, the problem of inflexible address allocation in PLC control systems is solved, hardware costs and operational risks are reduced, system flexibility and scalability are improved, and it is suitable for industrial automation and other networking systems.
Patent Information
- Application Number
- CN202310262106.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-03-16
AI Technical Summary
In the existing PLC control system, address allocation is not flexible enough, which affects system stability, increases operational risks and hardware costs, and the interface circuits on the backplane slot side are complex.
Adopt the method of dynamic address allocation, configure the coupler, store the backplane type and location information, broadcast the message to make the backplane enter the ready state, register the message information, and compare it successively to the stored device type list, and dynamically allocate address to avoid the complexity of redundant lines on the slot side.
It improves the flexibility and operability of the system, reduces hardware costs, avoids system operation risks, and enables flexible expansion of backplane modules, making it suitable for industrial automation and other networking systems.
Smart Images

Figure CN116319680B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial communications, and more specifically, to a method for dynamically allocating addresses, a coupler and a backplane. Background Art
[0002] In medium and large PLC control systems, a remote expansion bus module structure is generally used. The PLC controller accesses the coupler and backplane modules through the bus. Before accessing, the coupler must first assign addresses to each backplane module.
[0003] In order to realize a reasonable address allocation mechanism, software bus hand-in-hand address transfer allocation or hardware address bus shift automatic fixed address bus encoding is usually adopted. However, the address allocation of these related technologies must be passed one by one in address sequence, the address allocation is not flexible enough, and the interface circuit connection on the backplane slot side is complicated, which brings uncontrollable factors to the system stability and increases the risk of system operation.
[0004] Therefore, it is necessary to propose effective solutions to solve the above problems. Summary of the invention
[0005] In order to overcome the defects of the prior art, the present invention provides a method, coupler and backplane for dynamically allocating addresses to solve the problem of not increasing the operation risk and cost, and adopts the technology of dynamic allocation between addresses to improve the flexibility and operability of the system. To achieve this purpose, the present invention adopts the following technical solutions:
[0006] The present invention provides a method for dynamically allocating addresses, comprising the following steps:
[0007] S101: The coupler configures and stores the type and position information of the backplane corresponding to each slot, and forms a list of configured device types;
[0008] S102: The coupler broadcasts a message to the mounted backplane to make the mounted backplane enter a ready state;
[0009] S103: The mounted backplane registers message information with the coupler, wherein the registration message information at least includes the type of the mounted backplane;
[0010] S104: the coupler compares the registration message information one by one to see whether it exists in the stored configuration device type list;
[0011] If it does not exist, execute S105; if it does exist, execute S106;
[0012] S105: The coupler indicates a configuration error and ends the dynamic address allocation;
[0013] S106: The coupler determines whether there are multiple mounting backplanes of the same type in the mounted backplanes;
[0014] If it exists, execute S107; if it does not exist, execute S112;
[0015] S107: the coupler searches for the position of the mounting backplane of the same type in the configuration device type list;
[0016] S108: The coupler distributes a first allocation address message to the mounting backplane of the same type;
[0017] S109: Each mounting backplane of the same type responds to the first address allocation message sent by the coupler, generates a first address setting message, and sends it to the coupler;
[0018] S110: The coupler determines whether the first address is set successfully;
[0019] If successful, execute S111; if unsuccessful, execute S108;
[0020] S111: The coupler determines whether the address allocated to the mounting backplane of the same type is successful;
[0021] If successful, execute S112; if unsuccessful, execute S108;
[0022] S112: the coupler sends a second allocation address message to different types of mounting backplanes;
[0023] S113: The different types of mounting backplanes respond to the second address allocation message sent by the coupler, generate a second address setting message, and send it to the coupler;
[0024] S114: the coupler determines whether the second address is set successfully;
[0025] If successful, execute S115; if unsuccessful, execute S112;
[0026] S115: The coupler determines whether the addresses allocated to the different types of mounting backplanes are successful;
[0027] If successful, execute S116; if unsuccessful, execute S112;
[0028] S116: End.
[0029] Preferably, before the coupler configures and stores the type and position information of the backplane corresponding to each slot, it also includes:
[0030] The PLC controller allocates the type and position information of the backplane corresponding to each slot and sends it to the coupler.
[0031] Preferably, after the coupler sends the first allocation address message to the mounting backplane of the same type, it further includes:
[0032] S201: If there is an unassigned mounting backplane of the same device type, the unassigned mounting backplane of the same device type preempts the bus;
[0033] S202: the coupler allocates a third allocation address message to the unallocated mounting backplane of the same device type;
[0034] S203: The unassigned mounting backplane of the same device type generates a third address setting message in response to the third allocation address message assigned by the coupler, and sends the message to the coupler.
[0035] The present invention also provides a coupler, applicable to the above-mentioned method of dynamically allocating addresses, comprising a first main controller, a first communication unit for transmitting signals, a first interface unit for converting received and transmitted signals and exchanging information with the backplane, and a bus protocol unit connected to a main control PLC system;
[0036] The first main controller is connected to the first interface unit via the first communication unit;
[0037] The first main controller, the first communication unit, and the first interface unit are all electrically connected to the bus protocol unit.
[0038] The present invention also provides a backplane, applicable to the above-mentioned method of dynamically allocating addresses, comprising a second main controller, a second communication unit for transmitting signals, a second interface unit for converting received and transmitted signals and exchanging information with the coupler, and a control and collection unit connected to a terminal and used for controlling or collecting terminal signals;
[0039] The second main controller is connected to the second interface unit via the second communication unit;
[0040] The control and collection unit is electrically connected to the second communication unit.
[0041] The beneficial effects of the present invention are:
[0042] The present invention provides a method for dynamically allocating addresses, a coupler and a backplane. The method for dynamically allocating addresses comprises the following steps: S101: the coupler configures and stores the type and position information of the backplane corresponding to each slot, and forms a list of configured device types; S102: the coupler broadcasts a message to the mounted backplane to make the mounted backplane enter a ready state; S103: the mounted backplane registers message information with the coupler, wherein the registered message information at least includes the type of the mounted backplane; S104: the coupler compares the registered message information one by one with the type of the mounted backplane; Whether the registration message information exists in the stored configuration device type list; if not, execute S105; if so, execute S106; S105: the coupler indicates a configuration error and ends the dynamic address allocation; S106: the coupler determines whether there are multiple mounted backplanes of the same type in the mounted backplane; if so, execute S107; if not, execute S112; S107: the coupler searches for the position of the mounted backplane of the same type in the configuration device type list; S108: the coupler sends a The mounting backplane of the same type sends a first address allocation message; S109: each mounting backplane of the same type responds to the first address allocation message sent by the coupler, generates a first address setting message, and sends it to the coupler; S110: the coupler determines whether the first address setting is successful; if successful, execute S111; if unsuccessful, execute S108; S111: the coupler determines whether the address allocated to the mounting backplane of the same type is successful; if successful, execute S112; if unsuccessful, execute S108; S112: the coupler sends a first address setting message to the mounting backplane of the same type. The same type of mounting backplane sends a second address allocation message; S113: different types of mounting backplanes respond to the second address allocation message sent by the coupler, generate a second address setting message, and send it to the coupler; S114: the coupler determines whether the second address setting is successful; if successful, execute S115; if unsuccessful, execute S112; S115: the coupler determines whether the addresses allocated to different types of mounting backplanes are successful; if successful, execute S116; if unsuccessful, execute S112; S116: end. The present invention can flexibly and dynamically allocate addresses for the mounted backplane according to the type of the coupler and the configuration device list by registering the type of the mounted backplane to the coupler, without connecting lines on the slot side. Therefore, the problem of connecting redundant lines on the backplane slot side as in the prior art can be avoided, thereby reducing the system hardware cost and improving the convenience of on-site application. The present invention is a method for fully autonomous dynamic address allocation, which can flexibly expand the backplane module, solve the limitation of on-site expansion system nodes, and facilitate system integration. The dynamic address allocation method of the present invention is not only suitable for the industrial automation industry, but can also be flexibly applied to the field of vehicle-mounted, consumer and other networking systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1It is a flow chart of a method for dynamically allocating addresses provided by a specific embodiment of the present invention;
[0044] Figure 2 is a flow chart of another method for dynamically allocating addresses provided by a specific embodiment of the present invention;
[0045] Figure 3 is a flow chart of another method for dynamically allocating addresses provided by a specific embodiment of the present invention;
[0046] Figure 4 It is a functional implementation block diagram of a coupler provided in a specific embodiment of the present invention;
[0047] Figure 5 It is a functional implementation block diagram of a backplane provided by a specific embodiment of the present invention;
[0048] Figure 6 It is a functional block diagram of information interaction between a coupler and a backplane provided by a specific embodiment of the present invention;
[0049] Figure 7 It is a functional implementation block diagram between a slot and a backplane provided by a specific embodiment of the present invention;
[0050] Figure 8 It is a system block diagram of a coupler and a backplane provided in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0051] The technical solution of the present invention is further described below with reference to the accompanying drawings and through specific implementation methods.
[0052] Figure 1 is a flowchart of a method for dynamically allocating addresses provided by a specific embodiment of the present invention, such as Figure 1 The present invention proposes a method for dynamically allocating addresses, a coupler and a backplane, wherein the method for dynamically allocating addresses comprises the following steps:
[0053] S101: The coupler configures and stores the type and position information of the backplane corresponding to each slot, and forms a list of configured device types;
[0054] S102: The coupler broadcasts a message to the mounted backplane to make the mounted backplane enter a ready state;
[0055] S103: The mounted backplane registers message information with the coupler, wherein the registration message information at least includes the type of the mounted backplane;
[0056] S104: The coupler compares the registration message information successively to see whether it exists in the stored configuration device type list;
[0057] If it does not exist, execute S105; if it does exist, execute S106;
[0058] S105: The coupler indicates a configuration error and ends the dynamic address allocation;
[0059] S106: The coupler determines whether there are multiple mounted backplanes of the same type among the mounted backplanes;
[0060] If it exists, execute S107; if it does not exist, execute S112;
[0061] S107: The coupler searches for the position of the same type of mounting backplane in the configuration device type list;
[0062] S108: The coupler sends a first allocation address message to a mounting backplane of the same type;
[0063] S109: Each mounting backplane of the same type responds to the first address allocation message sent by the coupler, generates a first address setting message, and sends it to the coupler;
[0064] S110: The coupler determines whether the first address is set successfully;
[0065] If successful, execute S111; if unsuccessful, execute S108;
[0066] S111: The coupler determines whether the address allocated to the mounting backplane of the same type is successful;
[0067] If successful, execute S112; if unsuccessful, execute S108;
[0068] S112: The coupler sends a second allocation address message to different types of mounting backplanes;
[0069] S113: The mounting backplanes of different types respond to the second address allocation message sent by the coupler, generate a second address setting message, and send it to the coupler;
[0070] S114: The coupler determines whether the second address is set successfully;
[0071] If successful, execute S115; if unsuccessful, execute S112;
[0072] S115: The coupler determines whether the addresses allocated to the different types of mounting backplanes are successful;
[0073] If successful, execute S116; if unsuccessful, execute S112;
[0074] S116: End.
[0075] In the above implementation, specifically, in step S101, the coupler configures and stores the type and position information of the backplane corresponding to each slot, and forms a list of configured device types. Assume that in the specific implementation, there are 8 slots, namely slot 1, slot 2, slot 3, slot 4, slot 5, slot 6, slot 7, and slot 8, and the corresponding backplanes of each slot are backplane 1, backplane 2, backplane 3, backplane 4, backplane 5, backplane 6, backplane 7, and backplane 8, respectively. Assume that the type and position information of each backplane corresponding to each slot are as shown in Table 1, which is an execution table of a method for dynamically allocating addresses; specifically: the position of backplane 1 is 1, and the corresponding type is a; the position of backplane 2 is 2, and the corresponding type is b; the position of backplane 3 is 3, and the corresponding type is The type is c; the position of backplane 4 is 4, and the corresponding type is d; the position of backplane 5 is 5, and the corresponding type is e; the position of backplane 6 is 6, and the corresponding type is f; the position of backplane 7 is 7, and the corresponding type is g; the position of backplane 8 is 8, and the corresponding type is h; in step S102, the coupler broadcasts a message to the mounted backplane to make the mounted backplane enter the ready state; specifically, after the coupler stores the type and position information of the backplane corresponding to each slot and forms a list of configuration device types, the coupler broadcasts a message to the mounted backplane. Assuming that there are a total of 8 slots, corresponding to 8 backplanes, at this time, assuming that 6 backplanes are mounted, namely backplanes 1 to 6, then the coupler broadcasts a message to these 6 mounted backplanes, so that these 6 backplanes enter the ready state. The board enters the ready state and prepares to register message information with the coupler; in step S103, the 6 mounted backplanes register message information with the coupler, wherein the registration message information at least includes the type of the mounted backplane; specifically, the 6 mounted backplanes register message information with the coupler, wherein the registration message information at least includes the type of the mounted backplane, that is, the 6 mounted backplanes register their respective backplane types with the coupler, and the mounted backplanes register b, c, b, e, w, and f with the coupler respectively; in step S104, the coupler compares the registration message information one by one to see if it exists in the stored list of configured device types; the coupler compares the registration message information b, c, b, e, w, and f one by one to see if they exist in the stored list If a exists in the list of configured device types, then, through successive comparison, b, c, b, e, and f exist in the stored list of configured device types, and w does not exist in the stored list of configured device types. If a does not exist, the coupler executes an indication configuration error and ends the dynamic address allocation; if a exists, then step S106 is executed. In step S106, the coupler determines whether there are multiple mounting backplanes of the same type in the mounted backplane; through the judgment of the coupler, it is determined that there are mounting backplanes of the same type, which are b and b, then step S108 is executed. If there are no mounting backplanes of the same type, step S112 is executed; in step S108, the coupler sends a first allocation address message to the mounting backplane of the same type;That is, a first address allocation message is sent to the mounting backplane of the same type b; then in step S109, each mounting backplane of the same type responds to the first address allocation message sent by the coupler, generates a first address setting message, and sends it to the coupler; that is, two mounting backplanes of the same type b, namely backplane 1 and backplane 3, respond to the first address allocation message sent by the coupler, generate a first address setting message, and send the first address setting message to the coupler; in step S110, the coupler determines whether the first address set for backplane 1 and backplane 3 is successful; if successful, the coupler executes a judgment on whether the addresses 21 and 22 allocated to backplane 1 and backplane 3 with the same address b are successful; wherein, in a specific implementation, it can be set according to the software program, if the same backplane appears, and the position of the same type b in the configuration device type list is 2, then according to the software program setting, addresses are allocated to backplane 1 and backplane 3, and addresses will be allocated to backplane 1 in sequence. address 21, assign address 22 to backplane 3; if the coupler determines that the first address setting is unsuccessful, go back and re-execute step S108; if the addresses assigned to backplane 1 and backplane 3 with the same address b are successful, then execute step S112, step S112 is that the coupler sends a second address assignment message to different types of mounting backplanes; that is, the coupler sends a second address assignment message to the remaining different types of mounting backplanes, that is, the backplanes corresponding to types c, e, and f; then execute step S113, step S113 is: different types of mounting backplanes respond to the second address assignment message sent by the coupler, generate a second address setting message, and send it to the coupler; then execute S114, step S114 is that the coupler determines whether the second address setting is successful, if successful, execute S115, step S115 is that the coupler determines whether the addresses assigned to the different types of mounting backplanes are successful; if unsuccessful, go back and re-execute S112; if successful, end. ;
[0076]
[0077] Table 1
[0078] Of course, if in the specific implementation, the types of the mounted backplanes are b, c, d, e, w, and f, that is, there is no mounted backplane of the same type, then after step S106, step S112 is directly executed, and steps S107 to S111 do not need to be executed. Specifically, as shown in Table 2, Table 2 is an execution table of another method for dynamically allocating addresses.
[0079]
[0080] Table 2
[0081] From the above implementation, it can be seen that by registering the type of mounted backplane to the coupler, the address can be flexibly and dynamically allocated to the mounted backplane according to the type of coupler and the configuration device list, without the need to connect lines on the slot side. Therefore, the complex problem of connecting redundant lines on the backplane slot side as in the prior art can be avoided, thereby reducing the system hardware cost and improving the convenience of on-site application. The present invention is a method for fully autonomous dynamic address allocation, which can flexibly expand the backplane module, solve the limitations of on-site expansion system nodes, and facilitate system integration. The dynamic address allocation method of the present invention is not only suitable for the industrial automation industry, but can also be flexibly applied to vehicle-mounted, consumer and other networking system fields.
[0082] Preferably, before the coupler configures and stores the type and position information of the backplane corresponding to each slot, it also includes: the PLC controller allocates the type and position information of the backplane corresponding to each slot, and sends it to the coupler. The PLC controller is the main controller in the PLC control system. The PLC controller is pre-allocated with the type and position information of the backplane corresponding to the slot. For example, as shown in Table 1 and Table 2 above, assuming that in a specific implementation, there are a total of 8 slots, namely slot 1, slot 2, slot 3, slot 4, slot 5, slot 6, slot 7, and slot 8; the backplane corresponding to slot 1 is backplane 1, the backplane corresponding to slot 2 is backplane 2, the backplane corresponding to slot 3 is backplane 3, the backplane corresponding to slot 4 is backplane 4, the backplane corresponding to slot 5 is backplane 5, the backplane corresponding to slot 6 is backplane 6, and the backplane corresponding to slot 7 is backplane 8. The corresponding backplane is backplane 7, and the backplane corresponding to slot 8 is backplane 8; the position assigned to backplane 1 is 1, and the corresponding type is a; the position of backplane 2 is 2, and the corresponding type is b; the position of backplane 3 is 3, and the corresponding type is c; the position of backplane 4 is 4, and the corresponding type is d; the position of backplane 5 is 5, and the corresponding type is e; the position of backplane 6 is 6, and the corresponding type is f; the position of backplane 7 is 7, and the corresponding type is g; the position of backplane 8 is 8, and the corresponding type is h; the above information is pre-assigned by the PLC controller and sent to the coupler, and the coupler saves and configures it.
[0083] Preferably, after the coupler allocates the first allocation address message to the mounting backplane of the same type, it also includes: S201: if there is an unallocated mounting backplane of the same device type, the unallocated mounting backplane of the same device type seizes the bus; S202: the coupler allocates a third allocation address message to the unallocated mounting backplane of the same device type; S203: the unallocated mounting backplane of the same device type corresponds to the third allocation address message allocated by the coupler, generates a third address setting message, and sends it to the coupler. Table 3 is an execution table of another method for dynamically allocating addresses, as shown in Table 3.
[0084]
[0085] Table 3
[0086] Assuming that after the coupler allocates an address message to a mounting backplane of the same type b, if there is a mounting backplane of the same device type d that has not been allocated an address message, the present invention can be implemented in the following manner: Figure 2 As shown, Figure 2 It is a flowchart of another method for dynamically allocating addresses provided by a specific embodiment of the present invention. The mounting backplane of the same type d seizes the bus; then steps S202 and S203 are executed, and the coupler allocates an address message to the unallocated mounting backplane of type d; then the mounting backplane of type d responds to the third allocation address message allocated by the coupler, generates a third address setting message, and sends it to the coupler; then the coupler determines whether the first address setting and the third address setting are successful, that is, executes step S204: the coupler determines whether the first address setting and the third address setting are successful. Method 2, such as Figure 3 As shown, Figure 3 1 is a flow chart of another method for dynamically allocating addresses provided by a specific embodiment of the present invention. In each mounting backplane of the same type responds to the first allocation address message allocated by the coupler, generates a first address message, and sends it to the coupler; then the coupler determines whether the first address setting is successful. It is assumed that the determination is whether the first address setting of the same mounting backplane of type b is successful. At the same time, if there is an unallocated mounting backplane of the same device type d, the unallocated mounting backplane of the same device type d seizes the bus. At this time, it should be noted that this method of the present invention, such as Figure 3 As shown in , step S110 and step S201 can be performed simultaneously, and at this time are divided into two paths, such as Figure 3 In the method, the left one and the right one are executed to judge whether the first address setting and the third address setting are successful respectively. The right one judges whether the third address setting is successful, and executes step S205: the coupler judges whether the third address setting is successful; and in method one, after executing step S109, if there is an unallocated mounting backplane of the same type d, then continue to execute steps S201, S202, and S203, and then judge whether the first address setting and the third address setting are successful. In the above steps, in the process of executing the judgment of the allocation address of the same type of mounting betrayal, both method one and method two can be used, and the flexibility and practicality of the system operation are effectively improved. At the same time, the flexible allocation of addresses for unallocated mounting backplanes can also be realized. Therefore, the present invention has the characteristics of flexibility, practicality, and diversity of methods.
[0087] In addition, in the specific implementation, the bus can adopt all industrial buses such as profibus, ethercat, profinet, etc. The backplane includes digital output module, digital input module, analog output module, editor acquisition module, temperature acquisition module, etc.
[0088] The present invention also provides a coupler, which is applicable to the above-mentioned method of dynamically allocating addresses, including a first main controller, a first communication unit for transmitting signals, a first interface unit for converting received and transmitted signals and exchanging information with the backplane, and a bus protocol unit connected to the main control PLC system; the first main controller is connected to the first interface unit through the first communication unit; the first main controller, the first communication unit, and the first interface unit are all electrically connected to the bus protocol unit. In a specific implementation, the first main controller can use an STM32 single-chip microcomputer as the main core; the first communication unit can be a CAN communication unit; the first interface unit can be an MLVDS interface; the transmission signal is output through the first communication unit, and converted into a differential signal through the MLVDS interface, and the backplane is exchanged with information, and the main control PLC system is synchronously connected through the bus protocol unit, so that the main control PLC system can understand and store information in time, and it is convenient for subsequent operations.
[0089] The present invention also provides a backplane, which is applicable to the above-mentioned method of dynamically allocating addresses. A coupler includes a second main controller, a second communication unit for transmitting signals, a second interface unit for converting received and transmitted signals and exchanging information with the coupler, and a control acquisition unit connected to the terminal and used to control or collect terminal signals; the second main controller is connected to the second interface unit through the second communication unit; the control acquisition unit is electrically connected to the second communication unit. In a specific implementation, the second main controller can use an STM32 single-chip microcomputer as the main core; the second communication unit can also be a CAN communication unit; the second interface unit can be an MLVDS interface; the transmission signal is output through the second communication unit, and converted into a differential signal through the MLVDS interface, and the coupler is exchanged with information, and the terminal signal and data are synchronously controlled or collected through the control acquisition unit.
[0090] Figure 4 It is a functional implementation block diagram of a coupler provided in a specific embodiment of the present invention; Figure 5 It is a functional implementation block diagram of a backplane provided by a specific embodiment of the present invention; Figure 6 It is a functional block diagram of information interaction between a coupler and a backplane provided by a specific embodiment of the present invention; Figure 7 It is a functional implementation block diagram between a slot and a backplane provided by a specific embodiment of the present invention; Figure 8: is a system block diagram of a coupler and a backplane provided by a specific embodiment of the present invention. Figure 8 The number of backplanes n in the may be determined according to the specific implementation situation.
[0091] The present invention is described by preferred embodiments, and those skilled in the art will appreciate that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. The present invention is not limited to the specific embodiments disclosed herein, and other embodiments falling within the claims of this application are within the scope of protection of the present invention.
Claims
1. A method for dynamically allocating addresses, characterized in that: The following steps are involved: S101: The coupler configures and stores the type and position information of the backplane corresponding to each slot, and forms a list of configured device types; S102: The coupler broadcasts a message to the mounted backplane to make the mounted backplane enter a ready state; S103: The mounted backplane registers message information with the coupler, wherein the registration message information at least includes the type of the mounted backplane; S104: the coupler compares the registration message information one by one to see whether it exists in the stored configuration device type list; If it does not exist, execute S105; if it does exist, execute S106; S105: The coupler indicates a configuration error and ends the dynamic address allocation; S106: The coupler determines whether there are multiple mounting backplanes of the same type in the mounted backplanes; If it exists, execute S107; if it does not exist, execute S112; S107: the coupler searches for the position of the mounting backplane of the same type in the configuration device type list; S108: The coupler distributes a first allocation address message to the mounting backplane of the same type; S109: Each mounting backplane of the same type responds to the first address allocation message sent by the coupler, generates a first address setting message, and sends it to the coupler; S110: The coupler determines whether the first address is set successfully; If successful, execute S111; if unsuccessful, execute S108; S111: The coupler determines whether the address allocated to the mounting backplane of the same type is successful; If successful, execute S112; if unsuccessful, execute S108; S112: the coupler sends a second allocation address message to different types of mounting backplanes; S113: The different types of mounting backplanes respond to the second address allocation message sent by the coupler, generate a second address setting message, and send it to the coupler; S114: the coupler determines whether the second address is set successfully; If successful, execute S115; if unsuccessful, execute S112; S115: The coupler determines whether the addresses allocated to the different types of mounting backplanes are successful; If successful, execute S116; if unsuccessful, execute S112; S116: End.
2. A method for dynamically allocating addresses as claimed in claim 1, characterized in that: Before the coupler is configured and stores the type and position information of the backplane corresponding to each slot, it also includes: The PLC controller allocates the type and position information of the backplane corresponding to each slot and sends it to the coupler.
3. A method for dynamically allocating addresses as claimed in claim 2, characterized in that: After the coupler sends the first allocation address message to the mounting backplane of the same type, the method further includes: S201: If there is an unassigned mounting backplane of the same device type, the unassigned mounting backplane of the same device type preempts the bus; S202: the coupler allocates a third allocation address message to the unallocated mounting backplane of the same device type; S203: The unassigned mounting backplane of the same device type generates a third address setting message in response to the third allocation address message assigned by the coupler, and sends the message to the coupler.
4. A coupler, applicable to a method for dynamically allocating addresses as claimed in any one of claims 1 to 3, characterized in that: It includes a first main controller, a first communication unit for transmitting signals, a first interface unit for converting received and sent signals and exchanging information with the backplane, and a bus protocol unit connected to the main control PLC system; The first main controller is connected to the first interface unit via the first communication unit; The first main controller, the first communication unit, and the first interface unit are all electrically connected to the bus protocol unit.
5. A backplane, applicable to the method for dynamically allocating addresses as claimed in any one of claims 1 to 3, characterized in that: It includes a second main controller, a second communication unit for transmitting signals, a second interface unit for converting received and transmitted signals and exchanging information with the coupler, and a control and collection unit connected to the terminal and used for controlling or collecting terminal signals; The second main controller is connected to the second interface unit via the second communication unit; The control and collection unit is electrically connected to the second communication unit.
Citation Information
Patent Citations
Allocating method of hardware address, back panel and system
CN102521172A
Module address allocation method and device and data interaction system
CN112988639A
Fault tolerant backplane slot allocation
CN114518739A
Field bus coupler for connecting modules to a field bus and method for addressing such modules
WO2015036567A1
