A Distributed Control System Based on Bus
By designing a combination of MCU chips, control units and execution units in the distributed control system, I/O port type switching and steady-state output are realized, which solves the problems caused by fixed I/O module output types and failures in the existing system. Data transmission issues ensure the stability and flexibility of the system.
Patent Information
- Application Number
- CN202410182739.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-02-19
Smart Images

Figure CN118092255B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of data transmission, and in particular to a distributed control system of a bus. Background Art
[0002] The existing distributed control systems, whether they use integrated I / O modules or distributed I / O modules, have a limited number of input and output ports, and different module ports output different I / O types, such as switch I / O modules, non-switch digital I / O modules, and analog I / O modules. No matter which module is used to build the system, since the output type of the I / O module is fixed and cannot be replaced, when there are new requirements, it is necessary to rely on expansion modules to complete them. In addition, the existing I / O modules complete input and output control through controllers. When the main controller and the sub-controller fail, the I / O port will not be able to transmit data normally. Summary of the invention
[0003] In view of the above technical problems, the purpose of the present invention is to provide a bus distributed control system, including a main controller, and several slave controllers connected to the main controller through the bus, the slave controllers including an MCU chip, a control unit, and an execution unit. The MCU chip is used to receive the instruction type signal of the main controller and feed back the signal of the corresponding instruction type to the control unit. The control unit selects the working mode according to the signal of the corresponding instruction type, locks other signals of non-corresponding instruction types, and outputs the working mode signal of the corresponding instruction type signal in a steady state and generates a corresponding execution signal. The execution unit completes the type conversion after receiving the signal.
[0004] Further, the control unit includes a first connection terminal P1, a second connection terminal P2, a third connection terminal P3, a first operational amplifier U1, a second operational amplifier U2, a third operational amplifier U3, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a first diode D1, a second diode D2, a third diode D3, a fourth diode D4, a first transistor Q1, a second transistor Q2, and a third transistor Q3, the fourth transistor Q4, one end of the first resistor R1 and one end of the second resistor R2, the inverting end of the first operational amplifier U1, the cathode of the first diode D1, the emitter of the first transistor Q1, one end of the third resistor R3, the cathode of the second diode D2, the in-phase end of the second operational amplifier U2, and one end of the fourth resistor R4 are connected, the inverting end of the second operational amplifier U2 and one end of the fifth resistor R5, one end of the sixth resistor R6, one end of the seventh resistor R7, the base of the second transistor Q2, the emitter of the third transistor Q3, the cathode of the third diode D3, the in-phase end of the first operational amplifier U1, and one end of the eighth resistor R8 are connected, the first operational amplifier The output end of the amplifier U1 is connected to the anode of the third diode D3, the base of the first transistor Q1 is connected to the third connection end P3, one end of the ninth resistor R9, one end of the tenth resistor R10, the in-phase end of the third operational amplifier U3, and the cathode of the fourth diode D4 are connected, the output end of the third operational amplifier U3 is connected to the anode of the fourth diode D4, the inverting end of the third operational amplifier U3 is connected to one end of the eleventh resistor R11, one end of the twelfth resistor R12, the emitter of the second transistor Q2, and the emitter of the fourth transistor Q4 are connected, the base of the third transistor Q3 is connected to the first connection end P1, the anode of the first diode D1 is connected to the base of the fourth transistor Q4, and the second connection The first operational amplifier U1 output terminal, the second operational amplifier U2 output terminal, the third operational amplifier U3 output terminal and the output unit are connected to the output terminal P2, the other end of the first resistor R1, the other end of the eighth resistor R8, the collector of the fourth transistor Q4, the collector of the second transistor Q2, the collector of the third transistor Q3, the collector of the first transistor Q1, the other end of the third resistor R3, the other end of the sixth resistor R6 are connected to the power supply, the other end of the second resistor R2, the other end of the fifth resistor R5, the other end of the seventh resistor R7, the other end of the fourth resistor R4, the other end of the twelfth resistor R12, the other end of the tenth resistor R10 are connected to the ground terminal, and the output terminal of the first operational amplifier U1, the output terminal of the second operational amplifier U2, the output terminal of the third operational amplifier U3 are connected to the output unit.
[0005] Further, the control unit also includes a fourth operational amplifier U4, a fifth operational amplifier U5, a sixth operational amplifier U6, a seventh AND gate U7, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16, a fifth MOS tube Q5, a first label X1, a second label X2, and a third label X3, one end of the thirteenth resistor R13 is connected to the power supply, the other end of the thirteenth resistor R13 is connected to the inverting end of the fourth operational amplifier U4, one end of the fourteenth resistor R14, the inverting end of the fifth operational amplifier U5, and the inverting end of the sixth operational amplifier U6, the output end of the fifth operational amplifier U5 is connected to the first label X1, and the output end of the fourth operational amplifier U4 is connected to the fifth M The source of the OS tube Q5 is connected to the first input end of the seventh AND gate U7, the second input end of the seventh AND gate U7 is connected to the output end of the sixth operational amplifier U6, the output end of the seventh AND gate U7 is connected to the gate of the fifth MOS tube Q5, the third label X3, and one end of the sixteenth resistor R16, the drain of the fifth MOS tube Q5 is connected to one end of the fifteenth resistor R15 and the second label X2, the other end of the fourteenth resistor R14, the other end of the fifteenth resistor R15, and the other end of the sixteenth resistor R16 are connected to the ground end, the in-phase end of the fourth operational amplifier U4, the in-phase end of the fifth operational amplifier U5, and the in-phase end of the sixth operational amplifier U6 are connected to the control unit, and the first label X1, the second label X2, and the third label X3 are connected to the execution unit.
[0006] Further, the execution unit includes an eighth operational amplifier U8, a seventeenth resistor R17, a fifth diode D5, a sixth diode D6, a sixth MOS tube Q6, a first solid-state relay RL1, a second solid-state relay RL2, a third solid-state relay RL3, a fourth solid-state relay RL4, a fifth solid-state relay RL5, a fourth connection terminal P4, and a fifth connection terminal P5. One end of the normally open contact of the first solid-state relay RL1 is connected to one end of the normally open contact of the second solid-state relay RL2, one end of the normally open contact of the third solid-state relay RL3, and the fourth connection terminal P4. The other end of the normally open contact of the first solid-state relay RL1 is connected to the gate of the sixth MOS tube Q6. The source of the sixth MOS tube Q6 is connected to the power supply. The drain of the sixth MOS tube Q6 is connected to one end of the seventeenth resistor R17 and the anode of the sixth diode D6. The cathode of the sixth diode D6 is connected to one end of the normally closed contact of the fifth solid-state relay RL5. The other end of the normally closed contact of the fifth solid-state relay RL5 is connected to the gate of the sixth MOS tube Q6. The end is connected to one end of the normally closed contact of the fourth solid-state relay RL4, the fifth connection end P5, and the other end of the normally open contact of the third solid-state relay RL3, the other end of the normally closed contact of the fourth solid-state relay RL4 is connected to the cathode of the fifth diode D5, the anode of the fifth diode D5 is connected to the output end of the eighth operational amplifier U8, the in-phase end of the eighth operational amplifier U8 is connected to the other end of the normally open contact of the second solid-state relay RL2, one end of the coil of the fifth solid-state relay RL5, one end of the coil of the fourth solid-state relay RL4 and one end of the coil of the third solid-state relay RL3 are connected, one end of the coil of the first solid-state relay RL1, one end of the coil of the second solid-state relay RL2, and one end of the coil of the third solid-state relay RL3 are connected to the output unit, the other end of the coil of the fifth solid-state relay RL5, the other end of the coil of the fourth solid-state relay RL4, the other end of the coil of the third solid-state relay RL3, the other end of the coil of the second solid-state relay RL2, and the other end of the coil of the first solid-state relay RL1 are connected to the ground end.
[0007] Furthermore, the execution unit also includes an eighteenth resistor R18, a nineteenth resistor R19, and a twentieth resistor R20, the eighteenth resistor R18 is connected in series between the execution unit and one end of the coil of the third solid-state relay RL3, the nineteenth resistor R19 is connected in series between one end of the coil of the first solid-state relay RL1 and the execution unit, and the twentieth resistor R20 is connected in series between one end of the coil of the second solid-state relay RL2 and the execution unit.
[0008] Furthermore, the execution unit also includes a twenty-first resistor R21 and a twenty-second resistor R22, one end of the twenty-first resistor R21 is connected to the power supply, the other end of the twenty-first resistor R21 is connected to one end of the twenty-second resistor R22 and the inverting end of the eighth operational amplifier U8, and the other end of the twenty-second resistor R22 is connected to the ground end.
[0009] Furthermore, the execution unit also includes a twenty-third resistor R23, one end of the twenty-third resistor R23 is connected to the in-phase terminal of the eighth operational amplifier U8, and the other end of the twenty-third resistor R23 is connected to the ground terminal.
[0010] The beneficial effects of the present invention compared with the prior art are:
[0011] The type of I / O port can be switched according to the type instruction. The switching process has steady-state output and non-selected corresponding instructions are locked to prevent the I / O port from failing to communicate normally after a controller failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the prior art and the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 The present invention provides an overall structural diagram.
[0014] Figure 2 This is a schematic diagram of the circuit structure of the control unit provided by the present invention.
[0015] Figure 3 This is a schematic diagram of the circuit structure of the execution unit provided by the present invention. DETAILED DESCRIPTION
[0016] In order to make the objects and advantages of the present invention more clearly understood, the present invention is specifically described below in conjunction with embodiments. It should be understood that the following text is only used to describe one or several specific implementations of the present invention, and does not strictly limit the scope of protection specifically requested by the present invention.
[0017] Referring to the accompanying drawings, the present invention is a bus distributed control system, including a main controller, and several slave controllers connected to the main controller through the bus. The slave controllers include an MCU chip, a control unit, and an execution unit. The MCU chip is used to receive the instruction type signal of the main controller and feed back the signal of the corresponding instruction type to the control unit. The control unit selects a working mode according to the signal of the corresponding instruction type, locks other signals of non-corresponding instruction types, and outputs the working mode signal of the corresponding instruction type signal in a steady state and generates a corresponding execution signal. The execution unit completes the type conversion after receiving the signal.
[0018] Specifically, the control unit includes a first connection terminal P1, a second connection terminal P2, a third connection terminal P3, a first operational amplifier U1, a second operational amplifier U2, a third operational amplifier U3, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a first diode D1, a second diode D2, a third diode D3, a fourth diode D4, a first transistor Q1, a second transistor Q2, and a third transistor Q 3. The fourth transistor Q4, one end of the first resistor R1 and one end of the second resistor R2, the inverting end of the first operational amplifier U1, the cathode of the first diode D1, the emitter of the first transistor Q1, one end of the third resistor R3, the cathode of the second diode D2, the in-phase end of the second operational amplifier U2, and one end of the fourth resistor R4 are connected, the inverting end of the second operational amplifier U2 and one end of the fifth resistor R5, one end of the sixth resistor R6, one end of the seventh resistor R7, the base of the second transistor Q2, the emitter of the third transistor Q3, the cathode of the third diode D3, the in-phase end of the first operational amplifier U1, and one end of the eighth resistor R8 are connected, the first operational amplifier The output end of U1 is connected to the anode of the third diode D3, the base of the first transistor Q1 is connected to the third connection end P3, one end of the ninth resistor R9, one end of the tenth resistor R10, the in-phase end of the third operational amplifier U3, and the cathode of the fourth diode D4 are connected, the output end of the third operational amplifier U3 is connected to the anode of the fourth diode D4, the inverting end of the third operational amplifier U3 is connected to one end of the eleventh resistor R11, one end of the twelfth resistor R12, the emitter of the second transistor Q2, and the emitter of the fourth transistor Q4, the base of the third transistor Q3 is connected to the first connection end P1, the anode of the first diode D1 is connected to the base of the fourth transistor Q4, and the second connection end P2 is connected, the other end of the first resistor R1, the other end of the eighth resistor R8, the collector of the fourth transistor Q4, the collector of the second transistor Q2, the collector of the third transistor Q3, the collector of the first transistor Q1, the other end of the third resistor R3, the other end of the sixth resistor R6 are connected to the power supply, the other end of the second resistor R2, the other end of the fifth resistor R5, the other end of the seventh resistor R7, the other end of the fourth resistor R4, the other end of the twelfth resistor R12, and the other end of the tenth resistor R10 are connected to the ground, and the output end of the first operational amplifier U1, the output end of the second operational amplifier U2, the output end of the third operational amplifier U3 are connected to the output unit.
[0019] Specifically, the control unit also includes a fourth operational amplifier U4, a fifth operational amplifier U5, a sixth operational amplifier U6, a seventh AND gate U7, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16, a fifth MOS tube Q5, a first label X1, a second label X2, and a third label X3, one end of the thirteenth resistor R13 is connected to the power supply, the other end of the thirteenth resistor R13 is connected to the inverting end of the fourth operational amplifier U4, one end of the fourteenth resistor R14, the inverting end of the fifth operational amplifier U5, and the inverting end of the sixth operational amplifier U6, the output end of the fifth operational amplifier U5 is connected to the first label X1, and the output end of the fourth operational amplifier U4 is connected to the fifth M The source of the OS tube Q5 is connected to the first input end of the seventh AND gate U7, the second input end of the seventh AND gate U7 is connected to the output end of the sixth operational amplifier U6, the output end of the seventh AND gate U7 is connected to the gate of the fifth MOS tube Q5, the third label X3, and one end of the sixteenth resistor R16, the drain of the fifth MOS tube Q5 is connected to one end of the fifteenth resistor R15 and the second label X2, the other end of the fourteenth resistor R14, the other end of the fifteenth resistor R15, and the other end of the sixteenth resistor R16 are connected to the ground end, the in-phase end of the fourth operational amplifier U4, the in-phase end of the fifth operational amplifier U5, and the in-phase end of the sixth operational amplifier U6 are connected to the control unit, and the first label X1, the second label X2, and the third label X3 are connected to the execution unit.
[0020] Specifically, the execution unit includes an eighth operational amplifier U8, a seventeenth resistor R17, a fifth diode D5, a sixth diode D6, a sixth MOS tube Q6, a first solid-state relay RL1, a second solid-state relay RL2, a third solid-state relay RL3, a fourth solid-state relay RL4, a fifth solid-state relay RL5, a fourth connection terminal P4, and a fifth connection terminal P5. One end of the normally open contact of the first solid-state relay RL1 is connected to one end of the normally open contact of the second solid-state relay RL2, one end of the normally open contact of the third solid-state relay RL3, and the fourth connection terminal P4. The other end of the normally open contact of the first solid-state relay RL1 is connected to the gate of the sixth MOS tube Q6, the source of the sixth MOS tube Q6 is connected to the power supply, the drain of the sixth MOS tube Q6 is connected to one end of the seventeenth resistor R17 and the anode of the sixth diode D6, the cathode of the sixth diode D6 is connected to one end of the normally closed contact of the fifth solid-state relay RL5, and the other end of the normally closed contact of the fifth solid-state relay RL5 is connected to the gate of the sixth MOS tube Q6. The end is connected to one end of the normally closed contact of the fourth solid-state relay RL4, the fifth connection end P5, and the other end of the normally open contact of the third solid-state relay RL3, the other end of the normally closed contact of the fourth solid-state relay RL4 is connected to the cathode of the fifth diode D5, the anode of the fifth diode D5 is connected to the output end of the eighth operational amplifier U8, the in-phase end of the eighth operational amplifier U8 is connected to the other end of the normally open contact of the second solid-state relay RL2, one end of the coil of the fifth solid-state relay RL5, one end of the coil of the fourth solid-state relay RL4 and one end of the coil of the third solid-state relay RL3 are connected, one end of the coil of the first solid-state relay RL1, one end of the coil of the second solid-state relay RL2, and one end of the coil of the third solid-state relay RL3 are connected to the output unit, the other end of the coil of the fifth solid-state relay RL5, the other end of the coil of the fourth solid-state relay RL4, the other end of the coil of the third solid-state relay RL3, the other end of the coil of the second solid-state relay RL2, and the other end of the coil of the first solid-state relay RL1 are connected to the ground end.
[0021] Specifically, the execution unit also includes an eighteenth resistor R18, a nineteenth resistor R19, and a twentieth resistor R20. The eighteenth resistor R18 is connected in series between the execution unit and one end of the coil of the third solid-state relay RL3, the nineteenth resistor R19 is connected in series between one end of the coil of the first solid-state relay RL1 and the execution unit, and the twentieth resistor R20 is connected in series between one end of the coil of the second solid-state relay RL2 and the execution unit.
[0022] Specifically, the execution unit also includes a twenty-first resistor R21 and a twenty-second resistor R22, one end of the twenty-first resistor R21 is connected to the power supply, the other end of the twenty-first resistor R21 is connected to one end of the twenty-second resistor R22 and the inverting end of the eighth operational amplifier U8, and the other end of the twenty-second resistor R22 is connected to the ground end.
[0023] Specifically, the execution unit further includes a twenty-third resistor R23, one end of the twenty-third resistor R23 is connected to the in-phase terminal of the eighth operational amplifier U8, and the other end of the twenty-third resistor R23 is connected to the ground terminal.
[0024] In the present invention, the main controller instruction type signal includes but is not limited to the transmitted switch signal, analog signal and digital signal. After the signal corresponding to the instruction is fed back to the control unit, the control unit will automatically output its signal as a steady state according to the signal corresponding to the instruction, and lock the signal of the non-corresponding instruction. The locking is to prevent the output failure caused by the steady-state output of the previous signal. The steady state is to prevent the execution unit from being unable to perform data transmission normally when the main controller or MCU fails. The control unit generates an execution signal from its locked and steady-state signals to the execution unit, and the execution unit makes a specific channel selection to complete the switching; in the control unit, when the first connection terminal P1 is the corresponding instruction type signal, there is a The signal is input, and amplified by the third transistor Q3. The collector power signal of the third transistor Q3 is fed back to the first operational amplifier U1 in-phase terminal through the emitter of the third transistor Q3, and is fed back to the second transistor Q2. It is input to the inverting terminal of the second operational amplifier U2, and the second operational amplifier U2 is cut off. When the signal is input to the in-phase terminal of the first operational amplifier U1, the potential of the in-phase terminal of the first operational amplifier U1 rises, and the first operational amplifier U1 outputs. When the signal is input to the second transistor Q2, the second transistor Q2 amplifies it. The collector power signal of the second transistor Q2 is input to the inverting terminal of the third operational amplifier U3 through the emitter of the second transistor Q2, and the third operational amplifier U3 is cut off. When there is no input at the first connection terminal P1, the first operational amplifier The output of the operational amplifier U1 turns on the third diode D3 to form positive feedback, so that the output of the first operational amplifier U1 has no jump change. At the same time, the output signal of the first operational amplifier U1 is also fed back to the inverting terminal of the second operational amplifier U2 and the base of the second triode Q2 after passing through the third diode D3. The potential of the inverting terminal of the second operational amplifier U2 rises when the inverting terminal is input to the output terminal of the first operational amplifier U1 through the second diode D2, so that the output voltage of the output terminal of the second operational amplifier U2 is lower than the conduction voltage of the second diode D2. The potential of the inverting terminal of the third operational amplifier U3 rises, so that the output voltage of the second operational amplifier U2 is lower than the conduction voltage of the fourth diode D4. The outputs of the second operational amplifier U2 and the third operational amplifier U3 are locked without jump change, so that the fourth operational amplifier U4 and the sixth operational amplifier U4 are locked. The operational amplifier U6 continues to have no output, and the inverting terminals of the fifth operational amplifier U5, the fourth operational amplifier U4, and the sixth operational amplifier U6 are set with a reference voltage. At this time, the fifth operational amplifier U5 outputs a signal to the first tag X1, and the second tag X2 and the third tag X3 have no output. When the second connection terminal P2 is input, the signal is fed back to the fourth transistor Q4 in one way, and the other way is input to the inverting terminal of the first operational amplifier U1 through the first diode D1. The voltage at the inverting terminal of the first operational amplifier U1 rises, and the output of the first operational amplifier U1 jumps to unlock the second operational amplifier U2 and the third operational amplifier U3. At the same time, the output of the second connection terminal P2 causes the voltage at the in-phase terminal of the second operational amplifier U2 to rise, and the second operational amplifier U2 outputs.The fourth transistor Q4 is turned on to make the inverting end of the third operational amplifier U3 rise, and the output of the third operational amplifier U3 does not change. When there is no input at the second connection end P2, the output signal of the second operational amplifier U2 is input to the in-phase end of the second operational amplifier U2 through the second diode D2, and the second operational amplifier U2 forms a positive feedback without jumping. At the same time, the signal is input to the inverting end of the first operational amplifier U1 through the second diode D2, and the first operational amplifier U1 is locked without jumping. The fifth operational amplifier U5 is cut off, and the first label X1 has no output. The second transistor Q2 is cut off to lock the third operational amplifier U3. At this time, the output signal of the fourth operational amplifier U4 is input to the second label X2 through the fifth MOS tube Q5. Since the sixth operational amplifier U6 has no output, the seventh and The gate U7 is turned off, and the third label X3 has no output. When there is an input at the third connection terminal P3, the signal is fed back to the first transistor Q1 in one way, and fed back to the third operational amplifier U3 in the same phase terminal in another way. The third operational amplifier U3 outputs, the first transistor Q1 is turned on, and the power supply signal at the first transistor Q1 end is fed back to the first operational amplifier U1 inverting terminal in one way, so that the first operational amplifier U1 is locked without transition. The second operational amplifier U2 increases the voltage at the same phase terminal of the second operational amplifier U2 due to the conduction of the first transistor Q1, and the second operational amplifier U2 outputs, and the third operational amplifier U3 outputs due to the third connection terminal P3, and the voltage at the same phase terminal of the third operational amplifier U3 increases, and the third operational amplifier U3 outputs, and the second operational amplifier U2 and the third operational amplifier U3 The output of the fourth operational amplifier U4 and the sixth operational amplifier U6 output to the seventh AND gate U7, the fifth MOS tube Q5 is turned off, the second tag X2 has no output, and the third tag X3 has an output due to the output of the seventh AND gate U7, that is, when the signal input from the first connection terminal P1 changes from the falling edge to the rising edge, the first operational amplifier U1 outputs, if the second operational amplifier U2 and the third operational amplifier U3 have a steady-state output before, the output of the second operational amplifier U2 and the third operational amplifier U3 is locked to the cut-off state, when the signal falls from the rising edge to the falling edge, the first operational amplifier U1 outputs a steady-state signal, at this time the first tag X1 outputs an execution signal through the fifth operational amplifier U5, and the second tag X2 and the third tag X3 have no output ; When the second connection terminal P2 is input, its signal changes from the falling edge to the rising edge, and the second operational amplifier U2 outputs. If the first operational amplifier U1 and the third operational amplifier U3 have a steady-state output, the outputs of the first operational amplifier U1 and the third operational amplifier U3 are locked to the cut-off state. When the signal drops from the rising edge to the falling edge, the second operational amplifier U2 outputs a steady-state signal. At this time, the second tag X2 outputs an execution signal through the fourth operational amplifier U4 and the fifth MOS tube Q5 (because the seventh AND gate U7 is cut off and the fifth MOS tube Q5 is turned on), and the first tag X1 and the third tag X3 have no output; when the third connection terminal P3 is input, its signal changes from the falling edge to the rising edge, and the second operational amplifier U2 and the third operational amplifier U3 output,If the first operational amplifier U1 has a steady-state output, the output of the first operational amplifier U1 is locked to a cut-off state. At this time, the third tag X3 outputs an execution signal, the first tag X1 has no output, and the second tag X2 has no output due to the output of the seventh AND gate U7, and the fifth MOS tube Q5 is cut off, so that when the first connection terminal P1, the second connection terminal P2, and the third connection terminal P3 input signals, the first tag X1, the second tag X2, and the third tag X3 have the ability of steady-state output and three-terminal interlocking. When the main controller or MCU fails and cannot communicate, the control unit can still be used according to The instruction execution unit before the fault completes the data transmission; in the execution unit, the first label X1, the second label X2, and the third label X3 correspond to the first solid-state relay RL1, the second solid-state relay RL2, and the third solid-state relay RL3, respectively, wherein the first label X1 is a switch quantity selection instruction by default, the second label X2 is a digital quantity selection instruction, and the third label X3 is an analog quantity selection instruction. Because the first label X1, the second label X2, and the third label X3 all have steady-state input and three-terminal interlocking, when any one of them is input, the corresponding two ends must have no input, so the fourth connection terminal P4 is a common data input terminal, The fifth connection terminal P5 is a data output terminal. The fourth connection terminal P4 and the fifth connection terminal P5 correspond to the input and output of the I / O port (no switching). When the first solid-state relay RL1 is turned on, the switch signal input from the fourth connection terminal P4 is fed back to the sixth MOS tube Q6. The sixth MOS tube Q6 is turned on or off, and is pulled up by the seventeenth resistor R17 and input to the fifth connection terminal P5 through the sixth diode D6. The fifth diode D5 and the sixth diode D6 are used to prevent the signal from flowing back. When the signal is a numerical value, the second solid-state relay RL2 is turned on. When the digital quantity is at a high level, the eighth operational amplifier U8 is output, and when it is at a low level, it is cut off. , When the data is analog, the third solid-state relay RL3 is turned on, the fourth solid-state relay RL4 and the fifth solid-state relay RL5 are turned off to prevent the fifth diode D5 and the sixth diode D6 from being reverse biased, the fourth connection terminal P4 signal is directly input from the third solid-state relay RL3 to the fifth connection terminal P5, the twenty-third resistor R23 is used to avoid the eighth operational amplifier U8 from being virtual short, the twenty-first resistor R21 and the twenty-second resistor R22 are used to set the reference value of the eighth operational amplifier U8 level voltage, the eighteenth resistor R18, the nineteenth resistor R19, and the twentieth resistor R20 are used for the corresponding solid-state relay coil current limiting. ,
[0025] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations within the meaning and scope of the equivalent elements of the claims be included in the invention. Any marking in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A bus-based distributed control system, comprising a master controller and a plurality of slave controllers connected to the master controller via the bus, characterized in that: The slave controller includes an MCU chip, a control unit, and an execution unit. The MCU chip is used to receive the instruction type signal of the main controller and feed back the signal of the corresponding instruction type to the control unit. The control unit selects the working mode according to the signal of the corresponding instruction type, locks other signals of non-corresponding instruction types, and outputs the working mode signal of the corresponding instruction type signal in a steady state and generates a corresponding execution signal. The execution unit completes the type conversion after receiving the signal. The control unit includes a first connection terminal, a second connection terminal, a third connection terminal, a first operational amplifier, a second operational amplifier, a third operational amplifier, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a first diode, a second diode, a third diode, a fourth diode, a first transistor, a second transistor, a third transistor, a fourth transistor, a fourth operational amplifier, a fifth operational amplifier, a sixth operational amplifier, a seventh AND gate, a thirteenth resistor, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a fifth MOS tube, a first label, a second label, and a third label; The first resistor is connected to one end of the second resistor, the inverting end of the first operational amplifier, the cathode of the first diode, the emitter of the first transistor, one end of the third resistor, the cathode of the second diode, the non-inverting end of the second operational amplifier, and one end of the fourth resistor; the second operational amplifier is connected to one end of the fifth resistor, one end of the sixth resistor, one end of the seventh resistor, the base of the second transistor, the emitter of the third transistor, the cathode of the third diode, the non-inverting end of the first operational amplifier, and one end of the eighth resistor; the output end of the first operational amplifier is connected to the anode of the third diode; the base of the first transistor is connected to the third connection end, and one end of the ninth resistor is connected. , one end of the tenth resistor, the non-inverting end of the third operational amplifier, and the cathode of the fourth diode are connected, the output end of the third operational amplifier and the anode of the fourth diode are connected, the inverting end of the third operational amplifier and one end of the eleventh resistor, one end of the twelfth resistor, the emitter of the second triode, and the emitter of the fourth triode are connected, the base of the third triode is connected to the first connection end, the anode of the first diode and the base of the fourth triode and the second connection end are connected, the other end of the first resistor, the other end of the eighth resistor, the collector of the fourth triode, the collector of the second triode, the collector of the third triode, the collector of the first triode, the other end of the third resistor, and the The other end of the sixth resistor is connected to the power supply, the other end of the second resistor, the other end of the fifth resistor, the other end of the seventh resistor, the other end of the fourth resistor, the other end of the twelfth resistor, and the other end of the tenth resistor are connected to the ground terminal, the output terminal of the first operational amplifier, the output terminal of the second operational amplifier, and the output terminal of the third operational amplifier are connected to the output unit, one end of the thirteenth resistor is connected to the power supply, the other end of the thirteenth resistor is connected to the inverting terminal of the fourth operational amplifier, one end of the fourteenth resistor, the inverting terminal of the fifth operational amplifier, and the inverting terminal of the sixth operational amplifier, the output terminal of the fifth operational amplifier is connected to the first label, and the output terminal of the fourth operational amplifier is connected to the first label. The output end is connected to the source of the fifth MOS tube and the first input end of the seventh AND gate, the second input end of the seventh AND gate is connected to the output end of the sixth operational amplifier, the output end of the seventh AND gate is connected to the gate of the fifth MOS tube, the third label, and one end of the sixteenth resistor, the drain of the fifth MOS tube is connected to one end of the fifteenth resistor and the second label, the other end of the fourteenth resistor, the other end of the fifteenth resistor, the other end of the sixteenth resistor are connected to the ground end, the non-inverting end of the fourth operational amplifier, the non-inverting end of the fifth operational amplifier, the non-inverting end of the sixth operational amplifier are connected to the control unit, and the first label, the second label, and the third label are connected to the execution unit.
2. The distributed control system of the bus according to claim 1, characterized in that: The execution unit includes an eighth operational amplifier, a seventeenth resistor, a fifth diode, a sixth diode, a sixth MOS tube, a first solid-state relay, a second solid-state relay, a third solid-state relay, a fourth solid-state relay, a fifth solid-state relay, a fourth connection end, and a fifth connection end. One end of the normally open contact of the first solid-state relay is connected to one end of the normally open contact of the second solid-state relay, one end of the normally open contact of the third solid-state relay, and the fourth connection end. The other end of the normally open contact of the first solid-state relay is connected to the gate of the sixth MOS tube. The source of the sixth MOS tube is connected to the power supply. The drain of the sixth MOS tube is connected to one end of the seventeenth resistor and the anode of the sixth diode. The cathode of the sixth diode is connected to one end of the normally closed contact of the fifth solid-state relay. The other end of the normally closed contact of the fifth solid-state relay is connected to the gate of the fourth solid-state relay. One end of the normally closed contact of the relay, the fifth connection end, and the other end of the normally open contact of the third solid-state relay are connected, the other end of the normally closed contact of the fourth solid-state relay is connected to the cathode of the fifth diode, the anode of the fifth diode is connected to the output end of the eighth operational amplifier, the in-phase end of the eighth operational amplifier is connected to the other end of the normally open contact of the second solid-state relay, one end of the fifth solid-state relay coil, one end of the fourth solid-state relay coil, and one end of the third solid-state relay coil are connected, one end of the first solid-state relay coil, one end of the second solid-state relay coil, and one end of the third solid-state relay coil are connected to the output unit, and the other end of the fifth solid-state relay coil, the other end of the fourth solid-state relay coil, the other end of the third solid-state relay coil, the other end of the second solid-state relay coil, and the other end of the first solid-state relay coil are connected to the ground end.
3. The distributed control system of the bus according to claim 2, characterized in that: The execution unit also includes an eighteenth resistor, a nineteenth resistor, and a twentieth resistor. The eighteenth resistor is connected in series between the execution unit and one end of the third solid-state relay coil, the nineteenth resistor is connected in series between one end of the first solid-state relay coil and the execution unit, and the twentieth resistor is connected in series between one end of the second solid-state relay coil and the execution unit.
4. The distributed control system of the bus according to claim 2, characterized in that: The execution unit also includes a twenty-first resistor and a twenty-second resistor, one end of the twenty-first resistor is connected to the power supply, the other end of the twenty-first resistor is connected to one end of the twenty-second resistor and the inverting end of the eighth operational amplifier, and the other end of the twenty-second resistor is connected to the ground.
5. The distributed control system of the bus according to claim 4, characterized in that: The execution unit further includes a twenty-third resistor, one end of which is connected to the in-phase terminal of the eighth operational amplifier, and the other end of which is connected to the ground terminal.
Citation Information
Patent Citations
Multi-port chip test method and device
CN115754683A
