CN116319680A - Method for dynamically distributing addresses, coupler and backboard - Google Patents

Method for dynamically distributing addresses, coupler and backboard Download PDF

Info

Publication number
CN116319680A
CN116319680A CN202310262106.8A CN202310262106A CN116319680A CN 116319680 A CN116319680 A CN 116319680A CN 202310262106 A CN202310262106 A CN 202310262106A CN 116319680 A CN116319680 A CN 116319680A
Authority
CN
China
Prior art keywords
coupler
backboard
message
type
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310262106.8A
Other languages
Chinese (zh)
Inventor
张荣玉
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Maizhichen Technology Co ltd
Original Assignee
Shanghai Maizhichen Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Maizhichen Technology Co ltd filed Critical Shanghai Maizhichen Technology Co ltd
Priority to CN202310262106.8A priority Critical patent/CN116319680A/en
Publication of CN116319680A publication Critical patent/CN116319680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The method for dynamically distributing the address, the coupler and the backboard relate to the field of industrial communication, the type of the mounting backboard is registered to the coupler, the address can be flexibly and dynamically distributed for the mounting backboard according to the type of the coupler and the configuration equipment list, and a line is not required to be connected to the slot side of the slot, so that the problem that a redundant line is required to be connected to the slot side of the backboard in the prior art is solved, the hardware cost of the system is reduced, and the convenience of field application is improved; the invention relates to a method for dynamically distributing full-autonomous addresses, which can flexibly expand a back plate module, solve the node limitation of a field expansion system and facilitate system integration; the address dynamic allocation method is not only suitable for the industrial automation industry, but also can be flexibly applied to the networking system fields of vehicle-mounted, consumption and the like.

Description

Method for dynamically distributing addresses, coupler and backboard
Technical Field
The present invention relates to the field of industrial communications, and more particularly, to a method for dynamically allocating addresses, a coupler, and a back plane.
Background
In a medium-large-sized PLC control system, a remote expansion bus module structure is generally adopted, a PLC accesses a coupler and back plate modules through a bus, and before the PLC accesses, the coupler must assign addresses to the back plate modules.
In order to realize a reasonable address allocation mechanism, a software bus hand-held address transmission allocation mode or a hardware address bus shift automatic fixed address bus coding mode is generally adopted, but the related technology allocation addresses are required to be transmitted successively according to an address sequence, the address allocation is not flexible enough, the connection of a backboard slot side interface circuit is complex, uncontrollable factors are brought to the system stability, and the system operation risk is increased.
Therefore, an effective solution is required to solve the above problems.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims at the limitations and the defects of the prior art, and provides a method for dynamically distributing addresses, a coupler and a backboard, so that the problems of no increase of operation risk and cost are solved, and meanwhile, an inter-address dynamic distribution technology is adopted, so that the flexibility and operability of a system are improved. To achieve the purpose, the invention adopts the following technical scheme:
the invention provides a method for dynamically distributing addresses, which comprises the following steps:
s101: the configuration of the coupler, the type and position information of the backboard corresponding to each slot are stored, and a configuration equipment type list is formed;
s102: the coupler broadcasts a message to the mounted backboard so that the mounted backboard enters a ready state;
s103: the mounted backboard registers message information to the coupler, wherein the registration message information at least comprises the type of the mounted backboard;
s104: the coupler successively compares whether the registration message information exists in the stored configuration equipment type list or not;
if not, executing S105; if so, executing S106;
s105: the coupler indicates a configuration error and ends dynamic allocation of addresses;
s106: the coupler judges whether a plurality of mounting backboard with the same type exist in the mounting backboard;
if so, S107 is performed; if not, executing S112;
s107: the coupler searches the positions of the mounting backboard of the same type in the configuration equipment type list;
s108: the coupler distributes a first distribution address message to the mounting backboard of the same type;
s109: each mounting backboard of the same type responds to a first address allocation message sent by the coupler, generates a first address setting message and sends the first address setting message to the coupler;
s110: the coupler judges whether the first address setting is successful or not;
if successful, executing S111; if not, executing S108;
s111: the coupler judges whether the addresses distributed to the mounting backboard of the same type are successful or not;
if successful, executing S112; if not, executing S108;
s112: the coupler sends a second distribution address message to the mounting backboard of different types;
s113: the mounting backboard of the different type responds to the second distribution address message sent by the coupler, generates a second address setting message and sends the second address setting message to the coupler;
s114: the coupler judges whether the second address setting is successful or not;
if successful, execute S115; if not, executing S112;
s115: the coupler judges whether addresses distributed to the mounting backboard of different types are successful or not;
if successful, executing S116; if not, executing S112;
s116: and (5) ending.
Preferably, before the coupler configures and stores the type and position information of the back plate corresponding to each slot, the method further comprises:
and the PLC controller distributes the type and position information of the backboard corresponding to each slot and sends the information to the coupler.
Preferably, after the coupler sends the first address allocation message to the mounting backboard of the same type, the method further includes:
s201: if the unassigned mounting backboard of the same equipment type exists, the unassigned mounting backboard of the same equipment type preempting the bus;
s202: the coupler distributes a third distribution address message to the non-distributed mounting backboard with the same equipment type;
s203: and the unassigned mounting backboard of the same equipment type corresponds to a third assignment address message assigned by the coupler, generates a third address setting message and sends the third address setting message to the coupler.
The invention also provides a coupler, which is suitable for the method for dynamically allocating addresses, and comprises 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 backboard, and a bus protocol unit connected with a main control PLC system;
the first main controller is connected with 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 with the bus protocol unit.
The invention also provides a backboard, which is suitable for the method for dynamically distributing the address, and comprises a second main controller, a second communication unit for transmitting signals, a second interface unit for converting the received and transmitted signals and exchanging information with the coupler, and a control acquisition unit which is connected with the terminal and is used for controlling or acquiring the terminal signals;
the second main controller is connected with the second interface unit through the second communication unit;
the system acquisition unit is electrically connected with the second communication unit.
The beneficial effects of the invention are as follows:
the invention provides a method for dynamically distributing addresses, a coupler and a backboard, and the method for dynamically distributing addresses comprises the following steps: s101: the configuration of the coupler, the type and position information of the backboard corresponding to each slot are stored, and a configuration equipment type list is formed; s102: the coupler broadcasts a message to the mounted backboard so that the mounted backboard enters a ready state; s103: the mounted backboard registers message information to the coupler, wherein the registered message information at least comprises the type of the mounted backboard; s104: the coupler successively compares whether the registered message information exists in a stored configuration equipment type list; if not, executing S105; if so, executing S106; s105: the coupler indicates a configuration error and ends dynamic allocation of addresses; s106: the coupler judges whether a plurality of mounting backboard with the same type exist in the mounting backboard; if so, S107 is performed; if not, executing S112; s107: the coupler searches the position of the mounting backboard of the same type in the configuration equipment type list; s108: the coupler sends a first distribution address message to the mounting backboard of the same type; s109: each mounting backboard of the same type responds to a first address allocation message sent by the coupler, generates a first address setting message and sends the first address setting message to the coupler; s110: the coupler judges whether the first address setting is successful or not; if successful, executing S111; if not, executing S108; s111: the coupler judges whether the addresses distributed by the mounting backboard of the same type are successful or not; if successful, executing S112; if not, executing S108; s112: the coupler sends a second distribution address message to the mounting backboard of different types; s113: the mounting backboard of different types responds to a second distribution address message sent by the coupler, generates a second address setting message and sends the second address setting message to the coupler; s114: the coupler judges whether the second address is set successfully or not; if successful, execute S115; if not, executing S112; s115: the coupler judges whether addresses distributed to the mounting backboard of different types are successful or not; if successful, executing S116; if not, executing S112; s116: and (5) ending. The invention registers the type of the mounting backboard to the coupler, can flexibly and dynamically allocate the address for the mounting backboard according to the type of the coupler and the configuration equipment list, and does not need to flank the circuit on the slot position of the slot, thus avoiding the problem that the redundant circuit is to be flanked on the slot position of the backboard in the prior art, reducing the hardware cost of the system and improving the convenience of field application; the invention relates to a method for dynamically distributing full-autonomous addresses, which can flexibly expand a back plate module, solve the node limitation of a field expansion system and facilitate system integration; the address dynamic allocation method is not only suitable for the industrial automation industry, but also can be flexibly applied to the networking system fields of vehicle-mounted, consumption and the like.
Drawings
FIG. 1 is a flow chart of a method for dynamically allocating addresses according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for dynamically assigning addresses according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for dynamically assigning addresses according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a coupler according to an embodiment of the present invention;
FIG. 5 is a functional block diagram of a back plate according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of information interaction between a coupler and a back plane provided by an embodiment of the present invention;
FIG. 7 is a block diagram of a functional implementation between a socket and a backplane according to an embodiment of the present invention;
fig. 8 is a system block diagram of a coupler and a back plate according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further described below by the specific embodiments with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method for dynamically allocating addresses according to an embodiment of the present invention, as shown in fig. 1. The invention provides a method for dynamically distributing addresses, a coupler and a backboard, wherein the method for dynamically distributing addresses comprises the following steps:
s101: the configuration of the coupler, the type and position information of the backboard corresponding to each slot are stored, and a configuration equipment type list is formed;
s102: the coupler broadcasts a message to the mounted backboard so that the mounted backboard enters a ready state;
s103: the mounted backboard registers message information to the coupler, wherein the registered message information at least comprises the type of the mounted backboard;
s104: the coupler successively compares whether the registered message information exists in a stored configuration equipment type list;
if not, executing S105; if so, executing S106;
s105: the coupler indicates a configuration error and ends dynamic allocation of addresses;
s106: the coupler judges whether a plurality of mounting backboard with the same type exist in the mounting backboard;
if so, S107 is performed; if not, executing S112;
s107: the coupler searches the position of the mounting backboard of the same type in the configuration equipment type list;
s108: the coupler sends a first distribution address message to the mounting backboard of the same type;
s109: each mounting backboard of the same type responds to a first address allocation message sent by the coupler, generates a first address setting message and sends the first address setting message to the coupler;
s110: the coupler judges whether the first address setting is successful or not;
if successful, executing S111; if not, executing S108;
s111: the coupler judges whether the addresses distributed by the mounting backboard of the same type are successful or not;
if successful, executing S112; if not, executing S108;
s112: the coupler sends a second distribution address message to the mounting backboard of different types;
s113: the mounting backboard of different types responds to a second distribution address message sent by the coupler, generates a second address setting message and sends the second address setting message to the coupler;
s114: the coupler judges whether the second address is set successfully or not;
if successful, execute S115; if not, executing S112;
s115: the coupler judges whether addresses distributed to the mounting backboard of different types are successful or not;
if successful, executing S116; if not, executing S112;
s116: and (5) ending.
In the above implementation, specifically, in step S101, the coupler configuration and the type and position information of the backboard corresponding to each slot are stored, and a configuration device type list is formed, and in the specific implementation, 8 slots are assumed, namely slot 1, slot 2, slot 3, slot 4, slot 5, slot 6, slot 7, and slot 8, respectively, each slot is plugged with the backboard corresponding to each slot, namely backboard 1, backboard 2, backboard 3, backboard 4, backboard 5, backboard 6, backboard 7, and backboard 8, and the type and position information of each backboard corresponding to each slot are assumed, as shown in table 1, table 1 is an execution table of a method for dynamically allocating addresses; the method comprises the following specific steps: the position of the backboard 1 is 1, and the corresponding type is a; the position of the backboard 2 is 2, and the corresponding type is b; the position of the backboard 3 is 3, and the corresponding type is c; the position of the backboard 4 is 4, and the corresponding type is d; the position of the backboard 5 is 5, and the corresponding type is e; the position of the backboard 6 is 6, and the corresponding type is f; the position of the backboard 7 is 7, and the corresponding type is g; the position of the backboard 8 is 8, and the corresponding type is h; in step S102, the coupler broadcasts a message to the mounted back plate, so that the mounted back plate enters a ready state; specifically, after the coupler stores the type and position information of the backboard corresponding to each slot and forms a configuration equipment type list, the coupler broadcasts a message to the mounted backboard, and if 8 slots are total, corresponding to 8 backboard, at this time, if 6 backboard are mounted, namely backboard 1 to 6 respectively, the coupler broadcasts a message to the 6 mounted backboard, so that the 6 backboard enters a ready state, and prepares to register message information to the coupler; in step S103, the mounted 6 backplates register message information with the coupler, where the register message information at least includes the type of the mounted backplates; specifically, the 6 mounted backplanes register message information with the coupler, wherein the register message information at least comprises the type of the mounted backplanes, namely, the mounted backplanes register respective backplane types with the coupler, and the mounted backplanes register b, c, b, e, w, f with the coupler respectively; in step S104, the coupler compares successively whether the registration message information exists in the stored configuration device type list; the coupler compares whether the registration message information b, c, b, e, w, f exists in the stored configuration equipment type list successively, if b, c, b, e, f exists in the stored configuration equipment type list by comparing every time, and if w does not exist in the stored configuration equipment type list, the coupler executes instruction configuration error and dynamic allocation of addresses is ended; if yes, executing step S106, in step S106, the coupler judging whether there are a plurality of mounting backplates of the same type in the mounting backplates; judging that the mounting backboard of the same type exists through the judgment of the coupler, if b and b are the same, executing the step S108, and if the mounting backboard of the same type does not exist, executing the step S112; in step S108, the coupler sends a first address allocation message to the mounting backboard of the same type; namely, sending a first distribution address message for the mounting backboard of the same type b; next, in step S109, each mounting backboard of the same type responds to the first address allocation message sent by the coupler, and generates a first address setting message, and sends the first address setting message to the coupler; that is, two mounting backplates with the same type b, namely, a backplate 1 and a backplate 3, respond to a first address allocation message sent by a 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 addresses set by the back plane 1 and the back plane 3 are successful; if so, the coupler executes the judgment of whether the addresses 21 and 22 allocated to the back plate 1 and the back plate 3 with the same address b are successful or not; in a specific implementation, if the same backboard appears, the same type is that the position of b in the configuration equipment type list is 2, addresses are allocated to backboard 1 and backboard 3 according to the software program setting, and address 21 is allocated to backboard 1 and address 22 is allocated to backboard 3 in sequence; if the coupler judges that the first address setting is unsuccessful, the step S108 is executed again; if the addresses allocated to the backboard 1 and the backboard 3 with the same address b are successful, executing step S112, wherein in step S112, the coupler sends a second allocation address message to the mounting backboard of different types; the coupler sends a second distribution address message to the rest mounting backboard of different types, namely backboard corresponding to types c, e and f; step S113 is then executed, where step S113 is: the mounting backboard of different types responds to the second distribution address message sent by the coupler, generates a second address setting message and sends the second address setting message to the coupler; then executing S114, wherein the step S114 is to judge whether the second address setting is successful for the coupler, if so, executing S115, and the step S115 is to judge whether the addresses distributed for the mounting backboard of the different types are successful for the coupler; if not, returning to re-execution S112; if successful, the process is finished.
Figure BDA0004131718930000091
TABLE 1
Of course, in the specific implementation, if the type of the mounted backboard is b, c, d, e, w, f, that is, the mounted backboard of the same type does not exist, then after step S106, steps S112, S107 to S111 are directly executed, and the execution of steps S107 to S111 is not required. Specifically, as shown in table 2, table 2 is an execution table of another method of dynamically allocating addresses.
Figure BDA0004131718930000101
TABLE 2
From the above implementation, it can be seen that, by registering the type of the mounting backboard to the coupler, the mounting backboard can be flexibly and dynamically allocated with an address according to the type of the coupler and the configuration equipment list, and the line is not required to be connected with the slot side of the slot, so that the problem that in the prior art, the redundant line is complicated to be connected with the slot side of the backboard is avoided, the hardware cost of the system is reduced, and the convenience of field application is improved; the invention relates to a method for dynamically distributing full-autonomous addresses, which can flexibly expand a back plate module, solve the node limitation of a field expansion system and facilitate system integration; the address dynamic allocation method is not only suitable for the industrial automation industry, but also can be flexibly applied to the networking system fields of vehicle-mounted, consumption and the like.
Preferably, before the coupler configures and stores the type and position information of the back plate corresponding to each slot, the method further comprises: and the PLC controller distributes the type and position information of the backboard corresponding to each slot and sends the information to the coupler. The PLC controller is a master controller in the PLC control system, and is pre-allocated with type and position information of the back plate corresponding to the slot, for example, as shown in the above table 1 and table 2, and in the specific implementation, it is assumed that there are 8 slots in total, namely, slot 1, slot 2, slot 3, slot 4, slot 5, slot 6, slot 7 and slot 8; the corresponding backboard allocated by the slot 1 is backboard 1, the backboard corresponding to the slot 2 is backboard 2, the backboard corresponding to the slot 3 is backboard 3, the backboard corresponding to the slot 4 is backboard 4, the backboard corresponding to the slot 5 is backboard 5, the backboard corresponding to the slot 6 is backboard 6, the backboard corresponding to the slot 7 is backboard 7, and the backboard corresponding to the slot 8 is backboard 8; the allocated position of the backboard 1 is 1, and the corresponding allocated type is a; the position of the backboard 2 is 2, and the corresponding type is b; the position of the backboard 3 is 3, and the corresponding type is c; the position of the backboard 4 is 4, and the corresponding type is d; the position of the backboard 5 is 5, and the corresponding type is e; the position of the backboard 6 is 6, and the corresponding type is f; the position of the backboard 7 is 7, and the corresponding type is g; the position of the backboard 8 is 8, and the corresponding type is h; the information is distributed in advance by the PLC controller and sent to the coupler, and the coupler is stored and configured.
Preferably, after the coupler distributes the first distribution address message to the mounting backboard of the same type, the method further includes: s201: if the unassigned mounting backboard of the same equipment type exists, the unassigned mounting backboard of the same equipment type preempting the bus; s202: the coupler distributes a third distribution address message to the mounting backboard of the same unassigned equipment type; s203: and generating a third address setting message corresponding to the third distributed address message distributed by the coupler by the mounting backboard of the same equipment type which is not distributed, and sending the third address setting message to the coupler. Table 3 is an execution table of another method of dynamically assigning addresses, as shown in table 3.
Figure BDA0004131718930000111
TABLE 3 Table 3
Assuming that after the coupler allocates an address message for a mounting backboard with the same type b, if there is a mounting backboard with the same equipment type d without the same type b, the method can be implemented in the following manner, and first, as shown in fig. 2, fig. 2 is a schematic flow diagram of another method for dynamically allocating addresses provided in the embodiment of the present invention, where the mounting backboard with the same type d preempting a bus; step S202 and step S203 are executed, and the coupler distributes address messages for the unassigned mounting backboard with the type d; then the mounting backboard with the type d responds to a third address allocation message allocated by the coupler, generates a third address setting message and sends the third address setting message to the coupler; the coupler will then determine whether the first address setting and the third address setting are successful, i.e. execute step S204: the coupler judges whether the first address setting and the third address setting are successful or not. In a second mode, as shown in fig. 3, fig. 3 is a schematic flow chart of another method for dynamically allocating addresses provided in the embodiment of the present invention, where each mounting backboard of the same type responds to a first address allocation message allocated by a coupler, and generates a first address message and sends the first address message to the coupler; then the coupler determines whether the first address setting is successful, and if the first address setting of the same mounting backboard with the type b is determined to be successful, and if there is a mounting backboard with the type d of the same device which is not allocated, the mounting backboard with the type d of the same device which is not allocated preempts the bus, it should be noted that this is to say that, in this way, as shown in fig. 3, the steps S110 and S201 may be performed simultaneously, and two paths are divided, as shown in fig. 3, the left path and the right path are performed, and it is determined whether the first address setting and the third address setting are successful, respectively, and the right path determines whether the third address setting is successful, and the step S205 is performed: the coupler judges whether the third address setting is successful or not; in the first mode, after step S109 is performed, if there is an unassigned mounting backboard of the same type d, step S201, step S202, and step S203 are further performed, and then it is determined whether the first address setting and the third address setting are successful. In the above steps, in the process of executing and judging the allocation addresses of the mounting traitors of the same type, the method can be flexibly applied in the first mode or the second mode, so that the flexibility and the practicability of the system operation are effectively improved, and meanwhile, the flexible allocation of the addresses to the unallocated mounting backboard can be realized.
In addition, in the implementation, the bus may be any industrial bus such as profibus, ethercat, profinet. The backboard comprises a digital quantity output module, a digital quantity input module, an analog quantity output module, an editor acquisition module, a temperature acquisition module and the like.
The invention also provides a coupler, which is suitable for the method for dynamically allocating addresses, and comprises 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 backboard, and a bus protocol unit connected with a main control PLC system; the first main controller is connected with 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 with the bus protocol unit. In specific implementation, the first main controller can adopt an STM32 singlechip as a main core; the first communication unit may be a CAN communication unit; the first interface unit may be an MLVDS interface; the transmission signal is output through the first communication unit and converted into the differential signal through the MLVDS interface, the differential signal interacts information with the backboard, and the differential signal is synchronously accessed into the master control PLC system through the bus protocol unit, so that the master control PLC system can conveniently and timely decode and store the information, and the follow-up operation is convenient.
The invention also provides a backboard, which is suitable for the method of dynamically allocating addresses and comprises 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 backboard, and a control acquisition unit which is connected with a terminal and used for controlling or acquiring terminal signals; the second main controller is connected with the second interface unit through the second communication unit; the system acquisition unit is electrically connected with the second communication unit. In specific implementation, the second main controller can adopt an STM32 singlechip as a main core; the second communication unit may also be a CAN communication unit; the second interface unit may be an MLVDS interface; and the second communication unit outputs a transmission signal, the transmission signal is converted into a differential signal through the MLVDS interface, the differential signal interacts information with the coupler, and the terminal signal and the data are synchronously controlled or collected through the control collection unit.
FIG. 4 is a functional block diagram of a coupler according to an embodiment of the present invention; FIG. 5 is a functional block diagram of a back plate according to an embodiment of the present invention; FIG. 6 is a functional block diagram of information interaction between a coupler and a back plane provided by an embodiment of the present invention; FIG. 7 is a block diagram of a functional implementation between a socket and a backplane according to an embodiment of the present invention; fig. 8 is a system block diagram of a coupler and a back plate according to an embodiment of the present invention. The number of the back plates n in fig. 8 may be determined according to the specific implementation.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the invention. The invention is not to be limited by the specific embodiments disclosed herein, and other embodiments are within the scope of the invention as defined by the claims of the present application.

Claims (5)

1. A method for dynamically assigning addresses, comprising the steps of:
s101: the configuration of the coupler, the type and position information of the backboard corresponding to each slot are stored, and a configuration equipment type list is formed;
s102: the coupler broadcasts a message to the mounted backboard so that the mounted backboard enters a ready state;
s103: the mounted backboard registers message information to the coupler, wherein the registration message information at least comprises the type of the mounted backboard;
s104: the coupler successively compares whether the registration message information exists in the stored configuration equipment type list or not;
if not, executing S105; if so, executing S106;
s105: the coupler indicates a configuration error and ends dynamic allocation of addresses;
s106: the coupler judges whether a plurality of mounting backboard with the same type exist in the mounting backboard;
if so, S107 is performed; if not, executing S112;
s107: the coupler searches the positions of the mounting backboard of the same type in the configuration equipment type list;
s108: the coupler distributes a first distribution address message to the mounting backboard of the same type;
s109: each mounting backboard of the same type responds to a first address allocation message sent by the coupler, generates a first address setting message and sends the first address setting message to the coupler;
s110: the coupler judges whether the first address setting is successful or not;
if successful, executing S111; if not, executing S108;
s111: the coupler judges whether the addresses distributed to the mounting backboard of the same type are successful or not;
if successful, executing S112; if not, executing S108;
s112: the coupler sends a second distribution address message to the mounting backboard of different types;
s113: the mounting backboard of the different type responds to the second distribution address message sent by the coupler, generates a second address setting message and sends the second address setting message to the coupler;
s114: the coupler judges whether the second address setting is successful or not;
if successful, execute S115; if not, executing S112;
s115: the coupler judges whether addresses distributed to the mounting backboard of different types are successful or not;
if successful, executing S116; if not, executing S112;
s116: and (5) ending.
2. The method of claim 1, wherein before the coupler is configured to store the type and position information of the backplane corresponding to each slot, the method further comprises:
and the PLC controller distributes the type and position information of the backboard corresponding to each slot and sends the information to the coupler.
3. The method for dynamically allocating addresses according to claim 2, wherein after the coupler sends the first address allocation message to the mounting backplate of the same type, the method further comprises:
s201: if the unassigned mounting backboard of the same equipment type exists, the unassigned mounting backboard of the same equipment type preempting the bus;
s202: the coupler distributes a third distribution address message to the non-distributed mounting backboard with the same equipment type;
s203: and the unassigned mounting backboard of the same equipment type corresponds to a third assignment address message assigned by the coupler, generates a third address setting message and sends the third address setting message to the coupler.
4. A coupler adapted for use in a method of dynamically assigning addresses as claimed in any of claims 1 to 3, characterized in that:
the system comprises 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 backboard, and a bus protocol unit connected with a main control PLC system;
the first main controller is connected with 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 with the bus protocol unit.
5. A backplane adapted for use in a method of dynamically allocating addresses as claimed in any of claims 1 to 3, characterized in that:
the system comprises a second main controller, a second communication unit for transmitting signals, a second interface unit for converting received and transmitted signals and interacting information with the coupler, and a control acquisition unit connected with a terminal and used for controlling or acquiring terminal signals;
the second main controller is connected with the second interface unit through the second communication unit;
the system acquisition unit is electrically connected with the second communication unit.
CN202310262106.8A 2023-03-16 2023-03-16 Method for dynamically distributing addresses, coupler and backboard Pending CN116319680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310262106.8A CN116319680A (en) 2023-03-16 2023-03-16 Method for dynamically distributing addresses, coupler and backboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310262106.8A CN116319680A (en) 2023-03-16 2023-03-16 Method for dynamically distributing addresses, coupler and backboard

Publications (1)

Publication Number Publication Date
CN116319680A true CN116319680A (en) 2023-06-23

Family

ID=86832010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310262106.8A Pending CN116319680A (en) 2023-03-16 2023-03-16 Method for dynamically distributing addresses, coupler and backboard

Country Status (1)

Country Link
CN (1) CN116319680A (en)

Similar Documents

Publication Publication Date Title
US7702834B2 (en) Data transmission method serial bus system and switch-on unit for a passive station
CN100477670C (en) Automatic distributing and setting up address method based on master-slave communication mode
CN106603735B (en) Method, device and system for distributing communication addresses of intelligent instrument
JPS6365177B2 (en)
CN113406946B (en) Automobile diagnosis method and device and automobile diagnosis equipment
CN108989169B (en) CAN bus-based intelligent module ad hoc network method
CN111200844A (en) Multi-slave machine bidirectional communication method
CN112637371A (en) Node address determination method and device, electronic equipment and storage medium
CN104301191A (en) Bus system
CN112367236B (en) Data scheduling method and system of LIN bus
CN112929249A (en) RS-485 bus multi-machine communication address automatic allocation method, device and system
CN116319680A (en) Method for dynamically distributing addresses, coupler and backboard
WO2021240380A1 (en) Method of assigning an operative address
CN114500472B (en) Method for automatically distributing RS485 communication address
CN115309679A (en) BMS slave control address allocation method, BMS master control module and BMS slave control module
CN101902436A (en) Interplate communication method, device and system
CN111092964B (en) Equipment identification method in vehicle-mounted network
CN111447126B (en) Ethernet bus communication method, device, robot, equipment and computer readable storage medium
CN112328518A (en) Multi-channel serial communication device, system and method
CN117614940B (en) Method and system for automatic configuration of serial communication equipment address
CN115955519B (en) Method, device and system for sharing physical communication channel by multi-service application
CN112532759B (en) Automatic configuration method of bus node identifier and bus network system
EP4135268A1 (en) Methods, systems and devices for coordinating a plurality of nodes in a 10base-t1s ethernet network
CN115334041A (en) Method for automatically allocating addresses to communication equipment of master station and slave station, master station, slave station and system
CN115333895A (en) Method for determining data bus user equipment of local bus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination