CN-121979004-A - Multi-state output circuit and fault detection device
Abstract
The application provides a multi-state output circuit and a fault detection device, which relate to the technical field of electronic circuits, wherein the circuit comprises a main control module and a multi-state output module; the multi-state output module is respectively and electrically connected with the power supply, the main control module and the fault diagnosis bus, the main control module is also electrically connected with the equipment to be detected, the main control module is used for responding to the working state of the equipment to be detected and sending control signals to the multi-state output module, the multi-state output module is used for determining diagnosis signals according to the control signals and sending the diagnosis signals to the fault diagnosis bus, and the diagnosis signals comprise a first preset level signal, a second preset level signal or a high-resistance state signal. The application realizes the tri-state output of the diagnosis signal and avoids the level competition of the parallel connection of multiple devices to the fault diagnosis bus.
Inventors
- CHEN YIDONG
- XI CHAO
- Tang Anqiang
Assignees
- 深圳市兆威机电股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260202
Claims (10)
- 1.A multi-state output circuit is characterized by comprising a main control module and a multi-state output module; the multi-state output module is respectively and electrically connected with a power supply, the main control module and the fault diagnosis bus; the main control module is also electrically connected with equipment to be detected; the main control module is used for responding to the working state of the equipment to be detected and sending a control signal to the polymorphic output module; The multi-state output module is used for determining a diagnosis signal according to the control signal and sending the diagnosis signal to the fault diagnosis bus, wherein the diagnosis signal comprises a first preset level signal, a second preset level signal or a high-resistance state signal.
- 2. The multi-state output circuit of claim 1, wherein the control signals comprise a first control signal and a second control signal; The main control module is used for responding to the working state of the equipment to be detected and sending the first control signal and the second control signal to the polymorphic output module; The multi-state output module is configured to send the first preset level signal to the fault diagnosis bus if the first control signal is a first preset level and the second control signal is a second preset level, and the fault diagnosis bus determines that the working state of the device to be detected is a normal state according to the first preset level signal.
- 3. The multi-state output circuit of claim 2, wherein the multi-state output module is further configured to send the second preset level signal to the fault diagnosis bus if the first control signal is at the second preset level and the first control signal is at the first preset level, and the fault diagnosis bus determines that the operating state of the device to be detected is a fault state according to the first preset level signal.
- 4. The multi-state output circuit of claim 1, wherein the control signals comprise a first control signal and a second control signal; The main control module is used for responding to the working state of the equipment to be detected and sending the first control signal and the second control signal to the polymorphic output module; The multi-state output module is configured to send a second preset level signal to the fault diagnosis bus if the first control signal is at a second preset level and the second control signal is at a first preset level, and the fault diagnosis bus determines that the working state of the device to be detected is a normal state according to the second preset level signal.
- 5. The multi-state output circuit of claim 4, wherein the multi-state output module is further configured to send the first preset level signal to the fault diagnosis bus if the first control signal is the first preset level and the second control signal is the second preset level, and the fault diagnosis bus determines that the operating state of the device to be detected is a fault state according to the first preset level signal.
- 6. The multi-state output circuit of any one of claims 2-5, wherein the multi-state output module is further configured to send the high-impedance signal to the fault diagnosis bus if the first control signal is at the second preset level and the second control signal is at the second preset level, and the fault diagnosis bus determines that the working state of the device to be detected is an offline state according to the high-impedance signal.
- 7. The multi-state output circuit of claim 6, wherein the multi-state output module comprises a first switching tube, a second switching tube, and a third switching tube; The input end of the first switching tube is electrically connected with the power supply, the output end of the first switching tube is electrically connected with the fault diagnosis bus and the input end of the third switching tube respectively, and the control end of the first switching tube is electrically connected with the input end of the second switching tube; The output end of the second switching tube is grounded, and the control end of the second switching tube is electrically connected with the main control module; The output end of the third switching tube is grounded, and the control end of the third switching tube is electrically connected with the main control module; the main control module is used for responding to the working state of the equipment to be detected, sending the first control signal to the control end of the first switching tube and sending the second control signal to the control end of the second switching tube; the second switch tube is used for being turned on when the first control signal is at the first preset level and turned off when the first control signal is at the second preset level; the third switch tube is used for being turned on when the second control signal is at the first preset level and turned off when the second control signal is at the second preset level; The first switching tube is used for being conducted when the second switching tube is conducted and the third switching tube is turned off, the output end of the first switching tube sends the first preset level signal to the fault diagnosis bus, when the second switching tube is turned off and the third switching tube is turned on, the output end of the first switching tube sends the second preset level signal to the fault diagnosis bus, and when the second switching tube is turned off and the third switching tube is turned off, the output end of the first switching tube sends the high-resistance state signal to the fault diagnosis bus.
- 8. The multi-state output circuit of claim 7, wherein the multi-state output module further comprises a first current limiting resistor, a second current limiting resistor, and a third current limiting resistor; The first current limiting resistor is respectively and electrically connected with the control end of the first switching tube and the input end of the second switching tube; The second current limiting resistor is respectively and electrically connected with the control ends of the main control module and the second switching tube; the third current limiting resistor is respectively and electrically connected with the control ends of the main control module and the third switching tube.
- 9. The multi-state output circuit of claim 8, wherein the multi-state output module further comprises a first voltage dividing resistor, a second voltage dividing resistor, and a third voltage dividing resistor; The first end of the first voltage dividing resistor is electrically connected with the power supply and the input end of the first switching tube respectively, and the second end of the first voltage dividing resistor is electrically connected with the control end of the first switching tube; the first end of the second voltage dividing resistor is electrically connected with the control end of the second switching tube, the second end of the second voltage dividing resistor is electrically connected with the output end of the second switching tube, and the second end of the second voltage dividing resistor is also grounded; The first end of the third voltage dividing resistor is electrically connected with the control end of the third switching tube, the second end of the third voltage dividing resistor is electrically connected with the output end of the third switching tube, and the third end of the third voltage dividing resistor is also grounded.
- 10. A fault detection device comprising a power supply and the multi-state output circuit of any one of claims 1-9.
Description
Multi-state output circuit and fault detection device Technical Field The application relates to the technical field of electronic circuits, in particular to a multi-state output circuit and a fault detection device. Background The existing fault state output generally adopts a binary output mechanism, and a fault output interface only has two states of high level output and low level output. The dual-state output can meet basic requirements when detecting faults of single equipment which independently operates, but when multiple equipment are connected to the same diagnosis bus in parallel, level competition phenomenon occurs when different equipment report faults at the same time, so that fault detection efficiency is affected. Disclosure of Invention In view of the above, the present application aims to overcome the shortcomings in the prior art, and provide a multi-state output circuit and a fault detection device. The application provides the following technical scheme: In a first aspect, the application provides a multi-state output circuit comprising a main control module and a multi-state output module; the multi-state output module is respectively and electrically connected with a power supply, the main control module and the fault diagnosis bus; the main control module is also electrically connected with equipment to be detected; the main control module is used for responding to the working state of the equipment to be detected and sending a control signal to the polymorphic output module; The multi-state output module is used for determining a diagnosis signal according to the control signal and sending the diagnosis signal to the fault diagnosis bus, wherein the diagnosis signal comprises a first preset level signal, a second preset level signal or a high-resistance state signal. In one embodiment, the control signals include a first control signal and a second control signal; The main control module is used for responding to the working state of the equipment to be detected and sending the first control signal and the second control signal to the polymorphic output module; The multi-state output module is configured to send the first preset level signal to the fault diagnosis bus if the first control signal is a first preset level and the second control signal is a second preset level, and the fault diagnosis bus determines that the working state of the device to be detected is a normal state according to the first preset level signal. In an embodiment, the multi-state output module is further configured to send the second preset level signal to the fault diagnosis bus if the first control signal is the second preset level and the first control signal is the first preset level, and the fault diagnosis bus determines that the working state of the device to be detected is a fault state according to the first preset level signal. In one embodiment, the control signals include a first control signal and a second control signal; The main control module is used for responding to the working state of the equipment to be detected and sending the first control signal and the second control signal to the polymorphic output module; The multi-state output module is configured to send a second preset level signal to the fault diagnosis bus if the first control signal is at a second preset level and the second control signal is at a first preset level, and the fault diagnosis bus determines that the working state of the device to be detected is a normal state according to the second preset level signal. In an embodiment, the multi-state output module is further configured to send the first preset level signal to the fault diagnosis bus if the first control signal is the first preset level and the second control signal is the second preset level, and the fault diagnosis bus determines that the working state of the device to be detected is a fault state according to the first preset level signal. In an embodiment, the multi-state output module is further configured to send the high-impedance state signal to the fault diagnosis bus if the first control signal is at the second preset level and the second control signal is at the second preset level, and the fault diagnosis bus determines that the working state of the device to be detected is an offline state according to the high-impedance state signal. In one embodiment, the multi-state output module comprises a first switching tube, a second switching tube and a third switching tube; The input end of the first switching tube is electrically connected with the power supply, the output end of the first switching tube is electrically connected with the fault diagnosis bus and the input end of the third switching tube respectively, and the control end of the first switching tube is electrically connected with the input end of the second switching tube; The output end of the second switching tube is grounded, and the control end of the second switching tube is elec