A multi- slave automatic enumeration address system

CN224760266UActive Publication Date: 2026-09-15JIANGMEN MENGDE ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202521999584.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-09-17
Publication Date
2026-09-15
Estimated Expiration
2035-09-17

AI Technical Summary

Benefits of technology

[0015] An automatic address enumeration system for multiple slave stations according to an embodiment of the present invention has at least the following beneficial effects: By utilizing the series loop structure between the master station controller and multiple slave station controllers, the enumeration resistor built into each slave station controller, and the measurement of the input voltage by the ADC module, automatic address allocation can be completed with only the existing backplane bus connection, without occupying any additional independent address configuration contacts or signal lines, thus maximizing the effective bandwidth utilization of the bus; at the same time, the entire enumeration process is completely independent based on the physical layer resistor network and voltage measurement principle, without relying on or interfering with the upper-layer bus communication protocol, thus completely eliminating the necessity of designing a complex address allocation mechanism in the communication protocol and the resulting conflict risk, thereby greatly simplifying the system design and significantly improving the independence of the enumeration operation and the reliability of the entire system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224760266U_ABST
    Figure CN224760266U_ABST
Patent Text Reader

Abstract

The utility model provides a kind of automatic enumeration address system of multiple slave stations, through being equipped with main station controller, multiple slave station controllers and backplane bus, main station controller and multiple slave station controllers are connected in series based on backplane bus to form series loop, each slave station controller includes the enumeration circuit for address enumeration, the first bus contact for connecting backplane bus, ADC module and slave station processing unit, enumeration circuit includes enumeration resistance, first input and first output, one end of enumeration resistance is connected first output, the other end of enumeration resistance is connected first input, ADC module includes second output and second input, second input is connected first input, second output is connected slave station processing unit, ADC module is used to detect the first voltage to ground of first input, wherein, the resistance value of enumeration resistance in each slave station controller is same, to further realize the automatic address distribution based on physical layer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of communication technology, and in particular to an automatic address enumeration system for multiple slave stations. Background Technology

[0002] In industrial control, especially in programmable logic controller (PLC) systems employing blade architecture, it is common practice for the master station to connect multiple slave stations via a backplane bus for expansion. This ease of expansion benefits from the modular design of blade slave stations. However, a key challenge arises during system initialization: the master station needs to efficiently and reliably enumerate all connected slave stations, i.e., determine the number of slave stations and assign a unique address to each. Traditional enumeration methods often rely on dedicated address setting switches, additional configuration signal lines, or complex address allocation mechanisms embedded in the bus communication protocol. The former consumes valuable backplane bus contact resources, reducing the effective bandwidth available for regular data communication; the latter significantly increases the complexity of the bus communication protocol, not only making design more difficult and prone to errors, but also potentially interfering with normal control data transmission, thus reducing the real-time performance and reliability of the entire system. Utility Model Content

[0003] The purpose of this utility model is to at least solve one of the technical problems existing in the prior art, and to provide an automatic enumeration address system for multiple slave stations. By setting a dedicated enumeration circuit containing enumeration resistors in each slave station, and by cleverly utilizing the series loop structure and the ADC module built into the slave station, automatic address allocation based on the physical layer resistor network is realized.

[0004] To achieve the above objectives, a first aspect of this utility model provides an automatic address enumeration system for multiple slave stations, comprising: Master controller; Multiple slave controllers; Backplane bus, the master controller and multiple slave controllers are connected in series to form a series loop; Each slave controller includes an enumeration circuit for address enumeration, a first bus contact for connecting to the backplane bus, an ADC module, and a slave processing unit. The enumeration circuit includes an enumeration resistor, a first input terminal, and a first output terminal. One end of the enumeration resistor is connected to the first output terminal, and the other end of the enumeration resistor is connected to the first input terminal. The ADC module includes a second output terminal and a second input terminal. The second input terminal is connected to the first input terminal, and the second output terminal is connected to the slave processing unit. The ADC module is used to detect the first voltage to ground at the first input terminal. The enumeration resistors in each slave controller have the same resistance value.

[0005] Furthermore, in some embodiments, the second input terminal is also connected to the first output terminal, and the ADC module is also used to detect the second voltage to ground at the output terminal; The master station controller includes a constant voltage power supply circuit for providing a preset voltage to the backplane bus, and the constant voltage power supply circuit is connected to the backplane bus; The slave processing unit is used to read the first voltage to ground and the second voltage to ground measured by the ADC module.

[0006] Furthermore, in some embodiments, the master station controller also includes a current detection module and a master station processing unit. The current detection module is connected in series between the output terminal of the constant voltage power supply circuit and the backplane bus. The current detection module is used to detect the operating current value output to the backplane bus. The main station processing unit is connected to the current detection module, and the main station processing unit is used to obtain the operating current value.

[0007] Furthermore, in some embodiments, the master station controller includes a constant current power supply circuit connected to the backplane bus, which is used to provide a preset current value to the backplane bus.

[0008] Furthermore, in some embodiments, the master station controller also includes a voltage detection module and a master station processing unit. The voltage detection module is connected in parallel between the output terminal of the constant current power supply circuit and the backplane bus. The voltage detection module is used to detect the operating voltage value output to the backplane bus. The main station processing unit is connected to the voltage detection module, and the main station processing unit is used to obtain the working voltage value.

[0009] Furthermore, in some embodiments, the enumeration circuit of each slave controller also includes a grounding switch and a grounding signal receiver; One terminal of the grounding switch is electrically connected between the enumeration resistor and the first input terminal, and the other terminal of the grounding switch is grounded. The control terminal of the grounding switch is electrically connected to the grounding signal receiving terminal, which is used to receive the grounding signal.

[0010] Furthermore, in some embodiments, each slave controller also includes a detection sensor, the signal output of which is electrically connected to a ground signal receiver.

[0011] Furthermore, in some embodiments, the slave controller also includes a second bus contact for connecting to the backplane bus, the second bus contact being electrically connected to the ground signal receiver.

[0012] Furthermore, in some embodiments, the detection sensor is a reflective photosensitive sensor, or a combination of a permanent magnet and a reed switch.

[0013] Furthermore, in some embodiments, each slave controller also includes a second bus contact for connecting to the backplane bus, the second bus contact being electrically connected to the ground signal receiver.

[0014] Furthermore, in some embodiments, the grounding switch is a semiconductor switching device or an electromechanical switching device.

[0015] An automatic address enumeration system for multiple slave stations according to an embodiment of the present invention has at least the following beneficial effects: By utilizing the series loop structure between the master station controller and multiple slave station controllers, the enumeration resistor built into each slave station controller, and the measurement of the input voltage by the ADC module, automatic address allocation can be completed with only the existing backplane bus connection, without occupying any additional independent address configuration contacts or signal lines, thus maximizing the effective bandwidth utilization of the bus; at the same time, the entire enumeration process is completely independent based on the physical layer resistor network and voltage measurement principle, without relying on or interfering with the upper-layer bus communication protocol, thus completely eliminating the necessity of designing a complex address allocation mechanism in the communication protocol and the resulting conflict risk, thereby greatly simplifying the system design and significantly improving the independence of the enumeration operation and the reliability of the entire system.

[0016] Other features and advantages of this invention will be set forth in the following description and will be apparent in part from the description. The objectives and other advantages of this invention can be realized and obtained through the structures particularly pointed out in the description and the accompanying drawings. Attached Figure Description

[0017] The accompanying drawings are provided to further understand the technical solution of this utility model and constitute a part of the specification. They are used together with the embodiments of this utility model to explain the technical solution of this utility model, and do not constitute a limitation on the technical solution of this utility model.

[0018] The present invention will be further described below with reference to the accompanying drawings and embodiments; Figure 1 This is an overall structural diagram of the multi-slave automatic address enumeration system provided in some embodiments of this utility model; Figure 2 This is a structural diagram of a slave controller provided in some embodiments of this utility model; Figure 3 This is a structural diagram of the enumeration circuit provided in some embodiments of this utility model; Figure 4 This is an equivalent series circuit diagram between the master station controller and multiple slave station controllers provided in some embodiments of this utility model; Figure 5 This is an equivalent series circuit diagram between the master station controller and multiple slave station controllers provided in other embodiments of this utility model; Figure 6 This is a structural diagram of a slave controller provided in some other embodiments of this utility model; Figure 7 This is a structural diagram of the master station controller provided in some embodiments of this utility model; Figure 8 This is a structural diagram of the master station controller provided in some other embodiments of this utility model.

[0019] Reference numerals: Master controller 100, Master processing unit 110, Constant voltage power supply circuit 120, Current detection module 130, Constant current power supply circuit 140, Voltage detection module 150, Slave controller 200, Enumeration circuit 210, Enumeration resistor 211, First input terminal 212, First output terminal 213, Grounding switch 214, Grounding signal receiving terminal 215, First bus contact 220, ADC module 230, Second output terminal 231, Second input terminal 232, Slave processing unit 240, Detection sensor 250, Second bus contact 260, Backplane bus 300. Detailed Implementation

[0020] This section will describe in detail the specific embodiments of the present utility model. The preferred embodiments of the present utility model are shown in the accompanying drawings. The purpose of the drawings is to supplement the textual description with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present utility model, but they should not be construed as limiting the scope of protection of the present utility model.

[0021] In the description of this utility model, the use of "first" and "second" is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features or the order of the indicated technical features. It should be understood that such data can be interchanged where appropriate so that the embodiments of the utility model described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0022] In the description of this utility model, unless otherwise explicitly defined, terms such as "setting," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this utility model in conjunction with the specific content of the technical solution.

[0023] In industrial control, especially in programmable logic controller (PLC) systems employing blade architecture, it is common practice for the master station to connect multiple slave stations via a backplane bus for expansion. This ease of expansion benefits from the modular design of blade slave stations. However, a key challenge arises during system initialization: the master station needs to efficiently and reliably enumerate all connected slave stations, i.e., determine the number of slave stations and assign a unique address to each. Traditional enumeration methods often rely on dedicated address setting switches, additional configuration signal lines, or complex address allocation mechanisms embedded in the bus communication protocol. The former consumes valuable backplane bus contact resources, reducing the effective bandwidth available for regular data communication; the latter significantly increases the complexity of the bus communication protocol, not only making design more difficult and prone to errors, but also potentially interfering with normal control data transmission, thus reducing the real-time performance and reliability of the entire system.

[0024] Based on this, the present invention provides an automatic address enumeration system for multiple slave stations. The automatic address enumeration system for multiple slave stations achieves automatic address allocation based on a physical layer resistor network by setting a dedicated enumeration circuit containing enumeration resistors in each slave station and cleverly utilizing a series loop structure and the ADC module built into the slave station.

[0025] Therefore, the embodiments of this utility model will be further described below with reference to the accompanying drawings.

[0026] Firstly, referring to Figures 1 to 3 As shown, Figure 1 This is an overall structural diagram of the multi-slave automatic address enumeration system provided in some embodiments of this utility model. Figure 2 This is a structural diagram of a slave controller provided in some embodiments of this utility model. Figure 3 This is a structural diagram of an enumeration circuit provided in some embodiments of the present invention. The multi-slave automatic address enumeration system includes a master controller 100, multiple slave controllers 200, and a backplane bus 300. The master controller 100 and the multiple slave controllers 200 are connected in series based on the backplane bus 300 to form a series loop. The master controller 100 is located at the beginning of the series loop, and the slave controller 200 located at the end of the series loop is grounded.

[0027] Each slave controller 200 includes an enumeration circuit 210 for address enumeration, a first bus contact 220 for connecting to the backplane bus 300, an ADC module 230, and a slave processing unit 240. The enumeration circuit 210 includes an enumeration resistor 211, a first input terminal 212, and a first output terminal 213. One end of the enumeration resistor 211 is connected to the first output terminal 213, and the other end of the enumeration resistor 211 is connected to the first output terminal 212. The ADC module 230 includes a second output terminal 231 and a second input terminal 232. The second input terminal 232 is connected to the first input terminal 212, and the second output terminal 231 is connected to the slave processing unit 240. The ADC module 230 is used to measure the first voltage to ground of the first input terminal 212. The resistance value of the enumeration resistor 211 in each slave controller 200 is the same.

[0028] In one possible embodiment, the second input terminal 232 is also connected to the first output terminal 213, and the ADC module 230 is further used to detect the second voltage to ground at the output terminal. (Refer to...) Figure 7 As shown, Figure 7 This is a structural diagram of a master station controller provided in some embodiments of the present invention. The master station controller 100 includes a master station processing unit 110, a constant voltage power supply circuit 120 for providing a preset voltage to the backplane bus, and a current detection module 130. The constant voltage power supply circuit 120 is connected to the backplane bus 300, and the current detection module 130 is connected in series between the output terminal of the constant voltage power supply circuit 120 and the backplane bus 300. The slave station processing unit 240 is used to read the first voltage to ground and the second voltage to ground measured by the ADC module 230, and the current detection module 130 is used to detect the operating current value output to the backplane bus 300.

[0029] Taking the series circuit of master controller 100 and three blade-type slave controllers 200 (R1, R2, R3) as an example, refer to... Figure 4 As shown, Figure 4 This is an equivalent series circuit diagram of a master controller 100 and multiple slave controllers 200 provided in some embodiments of this utility model. Each device is connected in series sequentially via the +24V power line of the backplane bus 300, forming a closed loop of "master controller - slave controller R1 - slave controller R2 - slave controller R3 - ground terminal". The ground terminal of the last slave controller R3 is reliably connected to system ground (GND). Each slave controller 200 (R1, R2, R3) is internally configured with an enumeration circuit 210 and an ADC module 230. The enumeration circuit 210 includes an enumeration resistor 211 with a resistance of 1kΩ, whose two ends are directly connected to the first input terminal 212 (IN) and the first output terminal 213 (OUT), respectively. The ADC module 230 has a sampling rate of 1kHz and collects the first voltage V to ground of the first input terminal 212. in and the second ground voltage V of the first output terminal 213out When the constant voltage power supply circuit of the master controller 100 is powered on and outputs +24V DC voltage, the slave controllers 200 (R1, R2, R3) automatically assign addresses according to the following process. For example, the ADC module 230 in slave controller R1 measures the first voltage to ground V. in 24V, second voltage to ground V out If the voltage is 16V, then the slave processing unit 240 in the slave controller R1 determines the first voltage to ground V. in With the second voltage to ground V out The voltage difference between them is 8V. Then, according to Ohm's law, the operating current flowing through the enumeration resistor 211 is 8V / 1kΩ = 8mA. Then, the slave processing unit 240 calculates the operating current value of 8mA and the first voltage to ground of 24V based on the voltage V. in The equivalent resistance between slave controller R1 and master controller 100 is determined to be 24V / 8mA = 3KΩ. Therefore, the ratio of the equivalent resistance to the enumerated resistance of slave controller R1 is 3. Then, the ADC module 230 in slave controller R2 measures the first voltage to ground V. in 16V, second voltage to ground V out If the voltage is 8V, then the slave processing unit 240 in the slave controller R2 determines the first voltage to ground V. in With the second voltage to ground V out The voltage difference between them is 8V. Then, according to Ohm's law, the operating current flowing through the enumeration resistor 211 is 8V / 1kΩ = 8mA. Then, the slave processing unit 240 calculates the operating current value of 8mA and the first voltage to ground of 16V based on the voltage V. in The equivalent resistance between slave controller R2 and master controller 100 is determined to be 16V / 8mA = 2KΩ. Therefore, the ratio of the equivalent resistance to the enumerated resistance of slave controller R2 is 2. The ADC module 230 in slave controller R3 measures the first voltage to ground V. in 8V, second voltage to ground V out If the voltage is 0V, then the slave processing unit 240 in the slave controller R3 determines the first voltage to ground V. in With the second voltage to ground V out The voltage difference between them is 8V. Then, according to Ohm's law, the operating current flowing through the enumeration resistor 211 is 8V / 1kΩ = 8mA. Then, the slave processing unit 240 calculates the operating current value of 8mA and the first voltage to ground of 8V. inThe equivalent resistance between slave controller R3 and master controller 100 is determined to be 8V / 8mA = 1KΩ. Therefore, the ratio of the equivalent resistance to the enumeration resistance of slave controller R3 is 1. Consequently, the ratio of the equivalent resistance to the enumeration resistance of slave controller R1 is 3, the ratio of the equivalent resistance to the enumeration resistance of slave controller R2 is 2, and the ratio of the equivalent resistance to the enumeration resistance of slave controller R3 is 1. Therefore, the enumeration address of slave controller R1 is 3, the enumeration address of slave controller R2 is 2, and the enumeration address of slave controller R3 is 1. Simultaneously, the first voltage to ground of slave controller R1 is V... in If the 24V DC voltage output by the master controller 100 is equal to the 24V DC voltage output by the master controller 100, it means that the slave controller R1 is the slave controller 200 closest to the master controller 100. Furthermore, if the enumeration address of slave controller R1 is 3, the enumeration address of slave controller R2 is 2, and the enumeration address of slave controller R3 is 1, it means that the slave controllers R1, R2, and R3 are configured in reverse order in this embodiment.

[0030] In one possible embodiment, reference is made to... Figure 8 As shown, Figure 8 This is a structural diagram of a master station controller provided in some other embodiments of the present invention. The master station controller 100 also includes a master station processing unit 110, a constant current power supply circuit 140, and a voltage detection module 150. The constant current power supply circuit 140 is connected to the backplane bus 300 and is used to provide a preset current value of operating current to the backplane bus 300. The voltage detection module 150 is connected in parallel between the output terminal of the constant current power supply circuit 140 of the master station controller 100 and the backplane bus 300. The master station processing unit 110 is connected to the voltage detection module 150 and is used to detect the operating voltage value output to the backplane bus 300. The master station processing unit 110 is used to acquire the operating voltage value.

[0031] Taking the series circuit of master controller 100 and three blade-type slave controllers 200 (R4, R5, R6) as an example, refer to... Figure 5 As shown, Figure 5This is an equivalent series circuit diagram between a master controller and multiple slave controllers provided in other embodiments of this utility model. Each device is connected in series sequentially via the +8mA power line of the backplane bus 300, forming a closed loop of "master controller - slave controller R4 - slave controller R5 - slave controller R6 - ground terminal". The ground terminal of the last slave controller R6 is reliably connected to system ground (GND). Each slave controller 200 (R4, R5, R6) is internally configured with an enumeration circuit 210 and an ADC module 230. The enumeration circuit 210 includes an enumeration resistor 211 with a resistance of 1kΩ, whose two ends are directly connected to the first input terminal 212 (IN) and the first output terminal 213 (OUT), respectively. The ADC module 230 has a sampling rate of 1kHz and collects the first voltage V to ground of the first input terminal 212. in and the second ground voltage V of the first output terminal 213 out When the constant current power supply circuit 140 of the master controller 100 is powered on and outputs +8mA current, the slave controllers 200 (R4, R5, R6) automatically assign addresses according to the following process. For example, the ADC module 230 in slave controller R4 measures the first voltage to ground V. in If the voltage is 24V, then the slave processing unit 240 in the slave controller R4 will determine the voltage based on the 8mA operating current and the 24V first voltage to ground. in The equivalent resistance between slave controller R4 and master controller 100 is determined to be 24V / 8mA = 3KΩ. Therefore, the ratio of the equivalent resistance to the enumerated resistance of slave controller R4 is 3. Then, the ADC module 230 in slave controller R5 measures the first voltage to ground V. in If the voltage is 16V, then the slave processing unit 240 in the slave controller R5 will have an operating current of 8mA and a first voltage to ground of 16V. in The equivalent resistance between slave controller R5 and master controller 100 is determined to be 16V / 8mA = 2KΩ. Therefore, the ratio of the equivalent resistance to the enumerated resistance of slave controller R5 is 2. The ADC module 230 in slave controller R6 measures the first voltage to ground V. in If the voltage is 8V, then the slave processing unit 240 in the slave controller R6 will determine the voltage based on the 8mA operating current and the 8V first voltage to ground. inThe equivalent resistance value between slave controller R6 and master controller 100 is determined to be 8V / 8mA = 1KΩ. Therefore, the ratio of the equivalent resistance value to the enumeration resistance value of slave controller R6 is 1. Consequently, the ratio of the equivalent resistance value to the enumeration resistance value of slave controller R4 is 3, the ratio of the equivalent resistance value to the enumeration resistance value of slave controller R5 is 2, and the ratio of the equivalent resistance value to the enumeration resistance value of slave controller R6 is 1. Thus, the enumeration address of slave controller R4 is 3, the enumeration address of slave controller R5 is 2, and the enumeration address of slave controller R6 is 1. Since the enumeration address of slave controller R4 is 3, the enumeration address of slave controller R5 is 2, and the enumeration address of slave controller R6 is 1, this embodiment configures slave controllers R4, R5, and R6 in reverse order.

[0032] Furthermore, from Figure 3 As can be seen, the enumeration circuit 210 also includes a grounding switch 214 and a grounding signal receiving terminal 215. One terminal of the grounding switch 214 is electrically connected between the enumeration resistor 211 and the first input terminal 212, and the other terminal of the grounding switch 214 is grounded. The control terminal of the grounding switch 214 is electrically connected to the grounding signal receiving terminal 215. The grounding signal receiving terminal 215 is used to receive a grounding signal and transmit it to the grounding switch 214. The grounding signal is used to indicate whether there is a next slave controller 200. The grounding switch 214 is used to close itself to ground the enumeration resistor 211 if the grounding signal indicates that there is no next slave controller 200, and to open itself if the grounding signal indicates that there is a next slave controller 200.

[0033] In one possible embodiment, taking the three blade-type slave controllers 200 (R1, R2, R3) as an example, when slave controller R1 detects the presence of slave controller R2, its ground signal receiving terminal 215 receives a ground signal indicating "the presence of a next slave controller". The slave processing unit 240 of slave controller R1 keeps the ground switch 214 open according to the ground signal. When the ground signal receiving terminal 215 of slave controller R3 receives a ground signal indicating "the absence of a next slave controller", it sends a closing command to the ground switch 214, causing its enumeration resistor 211 to be grounded through the switch, forming a local virtual ground point.

[0034] It should be noted that the enumeration circuit 210, through the structure of the grounding switch 214 and the grounding signal receiver 215, significantly improves the system's adaptability and reliability by intelligently identifying the state of the topology end. The grounding signal receiver 215 dynamically controls the opening and closing of the grounding switch 214 by detecting the existence status (such as level signal) of the downstream slave station. When it is confirmed to be the end slave station, the switch is automatically closed to directly ground the enumeration resistor 211, completely eliminating the need for manual configuration of the end grounding. Furthermore, the grounding signal receiver 215 can reuse the original low-frequency control lines (such as enable signal lines) in the backplane bus 300 to achieve topology state perception under the condition of zero new contacts, maintaining the efficient utilization of contact resources.

[0035] It should also be noted that the grounding switch 214 is a semiconductor device or an electromechanical switching device, and this utility model does not make any specific limitation.

[0036] In one possible embodiment, refer again Figure 2 As shown, the slave controller 200 includes a detection sensor 250, which is electrically connected to the ground signal receiver 215. The detection sensor 250 is used to output a ground signal indicating that there is no next slave controller 200 in the series circuit when it is detected that there is no next slave controller 200, and to output a ground signal indicating that there is a next slave controller 200 in the series circuit when it is detected that there is a next slave controller 200.

[0037] It should be noted that the detection sensor 250 can be a reflective photosensitive sensor, a combination of a permanent magnet and a reed switch, or other sensors. This utility model does not impose any specific limitations.

[0038] It should also be noted that by electrically connecting the detection sensor 250 to the grounding signal receiver 215, automatic detection and signal feedback of the presence of the next slave controller 200 in the series circuit are achieved. When no next slave controller 200 is detected, the detection sensor 250 can output a corresponding grounding signal in a timely manner, which is received by the grounding signal receiver 215 and transmitted to the grounding switch 214, thereby controlling the grounding switch 214 to close automatically, ensuring that the enumeration resistor 211 is grounded and guaranteeing the normal operation of the circuit. When a next slave controller 200 is present, the grounding signal output by the detection sensor 250 can keep the grounding switch 214 in the open state. This automatic detection and signal feedback mechanism improves the intelligence of the system, reduces manual intervention, enhances the reliability and accuracy of the system, effectively avoids circuit failures caused by human error, and ensures the stable operation of the entire enumeration circuit 210 under different conditions.

[0039] In another possible embodiment, refer to Figure 6 As shown, Figure 6 This is a structural diagram of a slave controller provided in some other embodiments of the present invention. The slave controller 200 also includes a second bus contact 260 for connecting to the backplane bus 300. The second bus contact 260 is electrically connected to the ground signal receiving terminal 215. The second bus contact 260 is used to output a ground signal indicating that there is no next slave controller 200 when it is in a floating connection state, and to output a ground signal indicating that there is a next slave controller 200 when it is not in a floating connection state.

[0040] It should be noted that by electrically connecting the second bus contact 260 to the ground signal receiver 215, different ground signals are output using the floating or non-floating connection states of the second bus contact 260. This design can automatically sense the connection status of the slave controller 200 without the need for an additional detection sensor 250, simplifying the hardware structure and reducing costs. Simultaneously, it can accurately transmit information about the presence of a next slave controller 200 to the ground signal receiver 215, thereby controlling the action of the grounding switch 214 to automatically ground or disconnect the enumeration resistor 211. This mechanism improves the automation and reliability of the system, reduces errors caused by human operation or failure of additional detection components, ensures the stable operation of the entire enumeration circuit 210 under different connection conditions, and enhances the overall performance and efficiency of the industrial control system.

[0041] In one possible embodiment, taking the series circuit of master controller 100 and three blade-type slave controllers 200 (R1, R2, R3) as an example, each device is connected in series sequentially through the +24V power line of the backplane bus 300 to form a closed loop of "master-slave controller R1-slave controller R2-slave controller R3-ground terminal". When the constant current power supply circuit of master controller 100 is powered on and outputs +24V DC voltage, the slave processing unit 240 of slave controller R1 can obtain the preset voltage value of 24V. Then, according to the above-mentioned working current value of 8mA flowing through slave controller R1, the total resistance value of the series circuit on the backplane bus 300 can be determined according to Ohm's law as 24V / 8mA=3 KΩ. The ratio between the total resistance value and the enumerated resistance value can be determined as 3 KΩ / 1 KΩ=3. Finally, slave controller R1 can determine that the total number of slave controllers 200 connected in series on the backplane bus 300 is 3.

[0042] In one possible embodiment, taking the series circuit of master controller 100 and three blade-type slave controllers 200 (R1, R2, R3) as an example, each device is connected in series sequentially through the +24V power line of the backplane bus 300 to form a closed loop of "master-slave controller R1-slave controller R2-slave controller R3-ground terminal". When the master controller 100 is powered on and outputs a +24V DC voltage, the master controller 100 measures the operating current on the backplane bus 300 as 8mA through the built-in current detection module 130. Then, according to Ohm's law, the total resistance of the series circuit on the backplane bus 300 is determined to be 24V / 8mA = 3 KΩ. The ratio between the total resistance value and the enumerated resistance value is 3 KΩ / 1 KΩ = 3. Finally, the master controller 100 determines that the total number of slave controllers 200 connected in series on the backplane bus 300 is 3.

[0043] It should be understood that in this utility model, "at least one (item)" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0044] The embodiments of the present utility model have been described in detail above with reference to the accompanying drawings. However, the present utility model is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present utility model.

Claims

1. An automatic address enumeration system for multiple slave stations, characterized in that, include: Master controller; Multiple slave controllers; A backplane bus, wherein the master controller and multiple slave controllers are connected in series based on the backplane bus to form a series loop; Each of the slave controllers includes an enumeration circuit for address enumeration, a first bus contact for connecting to the backplane bus, an ADC module, and a slave processing unit. The enumeration circuit includes an enumeration resistor, a first input terminal, and a first output terminal. One end of the enumeration resistor is connected to the first output terminal, and the other end of the enumeration resistor is connected to the first input terminal. The ADC module includes a second output terminal and a second input terminal. The second input terminal is connected to the first input terminal, and the second output terminal is connected to the slave processing unit. The ADC module is used to detect a first voltage to ground at the first input terminal. The enumeration resistors in each of the slave controllers have the same resistance value.

2. The automatic address enumeration system according to claim 1, characterized in that, The second input terminal is also connected to the first output terminal, and the ADC module is also used to detect the second voltage to ground at the output terminal; The master station controller includes a constant voltage power supply circuit for providing a preset voltage to the backplane bus, and the constant voltage power supply circuit is connected to the backplane bus; The slave processing unit is used to read the first voltage to ground and the second voltage to ground measured by the ADC module.

3. The automatic address enumeration system according to claim 2, characterized in that, The master station controller also includes a current detection module and a master station processing unit. The current detection module is connected in series between the output terminal of the constant voltage power supply circuit and the backplane bus. The current detection module is used to detect the operating current value output to the backplane bus. The main station processing unit is connected to the current detection module, and the main station processing unit is used to obtain the operating current value.

4. The automatic address enumeration system according to claim 1, characterized in that, The master station controller includes a constant current power supply circuit, which is connected to the backplane bus and is used to provide a preset current value to the backplane bus.

5. The automatic address enumeration system according to claim 4, characterized in that, The master station controller also includes a voltage detection module and a master station processing unit. The voltage detection module is connected in parallel between the output terminal of the constant current power supply circuit and the backplane bus. The voltage detection module is used to detect the working voltage value output to the backplane bus. The main station processing unit is connected to the voltage detection module, and the main station processing unit is used to obtain the working voltage value.

6. The automatic address enumeration system according to claim 1, characterized in that, Each of the slave controllers' enumeration circuits also includes a grounding switch and a grounding signal receiver; One terminal of the grounding switch is electrically connected between the enumeration resistor and the input terminal of the enumeration circuit, and the other terminal of the grounding switch is grounded. The control terminal of the grounding switch is electrically connected to the grounding signal receiving terminal, which is used to receive grounding signals.

7. The automatic address enumeration system according to claim 6, characterized in that, Each of the slave controllers also includes a detection sensor, the signal output terminal of which is electrically connected to the ground signal receiver.

8. The automatic address enumeration system according to claim 7, characterized in that, The detection sensor is a reflective photosensitive sensor, or a combination of a permanent magnet and a reed switch.

9. The automatic address enumeration system according to claim 6, characterized in that, Each of the slave controllers also includes a second bus contact for connecting to the backplane bus, the second bus contact being electrically connected to the ground signal receiver.

10. The automatic address enumeration system according to claim 6, characterized in that, The grounding switch is a semiconductor switching device or an electromechanical switching device.