Self-diagnosis switch controller
By designing a self-diagnostic switch controller, the motor current data is monitored in real time and the alarm is sent when a fault occurs, the problems of large volume, high cost, complex circuits and high failure rate of control load switches in the prior art are solved, real-time monitoring of equipment status and reduction of failure rate are achieved.
Patent Information
- Application Number
- CN202420685270.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-03
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2034-04-03
AI Technical Summary
The existing control load switches have too large volume and high cost, and the circuits are complex and the failure rate is high.
设计了一种自诊断开关控制器,包括控制模块、第一检测模块、驱动模块、第二检测模块和人机交互模块,通过实时监测电机的电流数据,实现设备状态的实时监测,并在故障发生时及时发送警报信息。
It effectively reduces the equipment failure rate and extends the service life of the equipment. At the same time, it has good market prospects due to its simple structure, small size and low cost.
Smart Images

Figure CN222915645U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of switch control, and in particular to a self-diagnostic switch controller. Background Art
[0002] In the prior art, the load switch has a simple arc extinguishing device, which can only cut off the rated load current and a certain overload current, but cannot cut off the short-circuit current. The traditional way to control the opening and closing of the load switch is to control the forward and reverse rotation of the motor through the relay control board and the main circuit contactor, thereby driving the switch mechanism to open or close. However, the existing load switch opening and closing control is too large and costly, and the circuit is complex and has a high failure rate. Utility Model Content
[0003] The present application provides a self-diagnostic switch controller to solve the problems in the prior art of controlling the opening and closing of load switches, such as large size, high cost, complex circuits, and high failure rate.
[0004] To achieve the above objectives, the present application provides a self-diagnostic switch controller, comprising:
[0005] A control module, including a binary input and output unit and an analog-to-digital conversion unit;
[0006] A first detection module, electrically connected to the input and output unit;
[0007] A driving module, electrically connected to the input and output unit and the first detection module respectively;
[0008] A second detection module, electrically connected to the analog-to-digital conversion unit, and configured to transmit the current data of the driving module to the control module;
[0009] Among them, the input end of the first detection module is connected to the signal input end of the control module; the input end of the second detection module is connected to the signal input end of the control module; the input end of the driving module is connected to the signal output end of the control module.
[0010] Furthermore, the second detection module includes: a motor and a sampling resistor, and the sampling resistor is arranged in the motor power supply circuit of the second detection module; the control module also includes: a single-chip microcomputer, which transmits the real-time current data of the motor to the single-chip microcomputer of the control module through the second detection module.
[0011] Furthermore, the self-diagnosis switch controller further includes:
[0012] A human-computer interaction module is connected to the output end of the control module and to the binary input and output unit; wherein the human-computer interaction module includes a plurality of light-emitting indicator lights and a plurality of resistors arranged in one-to-one correspondence with each of the light-emitting indicator lights; the plurality of light-emitting indicator lights are used to indicate the operating status and fault status of the single-chip microcomputer.
[0013] Further, the driving module includes an isolation relay and a commutation relay, and a metal oxide semiconductor field effect transistor electrically connected to the isolation relay and the commutation relay;
[0014] The first detection module includes: a closing command detection circuit, an opening command detection circuit, a closing interlocking signal detection circuit, and an opening signal detection circuit;
[0015] The first detection module is used to detect the closing command, opening command, closing interlock signal and opening signal of the switch controller, and indicate through the corresponding light-emitting indicator light when the closing command, the opening command, the closing interlock signal and the opening signal are abnormal.
[0016] Furthermore, the light-emitting indicator light includes a first indicator light; the isolation relay and the reversing relay are also connected to the motor to detect the current state in the motor power supply circuit and to give a reminder through the first indicator light.
[0017] Furthermore, the light-emitting indicator light includes a second indicator light; and the driving module further includes:
[0018] a timing unit, the timing unit being connected to the motor; when the metal oxide semiconductor field effect transistor is powered on, the motor starts to run, and the running time of the motor is timed by the timing unit;
[0019] In response to the running time of the motor reaching the preset maximum time limit and the position signal is not obtained, the first mode prompt is performed through the second indicator light, the metal oxide semiconductor field effect transistor is disconnected, and then the isolation relay is opened to stop power supply to the motor.
[0020] Furthermore, the light-emitting indicator light includes a second indicator light; in response to the loop current of the motor being greater than the stall current threshold of the motor during operation, a second mode prompt is given through the second indicator light, the metal oxide semiconductor field effect transistor is disconnected, and then the isolation relay is opened to stop power supply to the motor.
[0021] Furthermore, the positive power pole of the motor is connected in series with the reversing relay contact, the reversing relay contact, the drain of the metal oxide semiconductor field effect transistor, the source of the metal oxide semiconductor field effect transistor, the sampling resistor and the negative power pole of the motor in sequence; the common end of the reversing relay contact is connected to the motor.
[0022] Furthermore, the second detection module also includes:
[0023] A signal conditioning circuit, wherein the input end of the signal conditioning circuit is connected in parallel to the two ends of the sampling resistor, and the signal conditioning circuit is electrically connected to the analog-to-digital conversion unit, and the output end of the signal conditioning circuit is connected to the analog sampling port of the single-chip microcomputer; the voltage signal at the two ends of the sampling resistor is converted by the analog-to-digital conversion unit, and the converted signal is transmitted to the single-chip microcomputer for detection.
[0024] Furthermore, the self-diagnosis switch controller further includes:
[0025] A power module is connected to the control module and is used to provide power to the switch controller.
[0026] Compared with the prior art, the beneficial effect of the present application is that: the present application provides a self-diagnostic switch controller, including a control module, a first detection module, a drive module, a second detection module and a control module, including an input and output unit and an analog-to-digital conversion unit; the first detection module is electrically connected to the input and output unit; the drive module is electrically connected to the input and output unit and the first detection module respectively; the second detection module is electrically connected to the analog-to-digital conversion unit, and is used to transmit the current data of the drive module to the control module; wherein the input end of the first detection module is connected to the signal input end of the control module; the input end of the second detection module is connected to the signal input end of the control module; the input end of the drive module is connected to the signal output end of the control module. The present application transmits the real-time current data of the motor to the control module by the second detection module, thereby facilitating real-time monitoring of the status of the equipment, so as to send alarm information in time when a fault occurs, remind maintenance personnel to perform timely maintenance, and extend the service life of the equipment. At the same time, the present application has a simple structure, small size, low cost, and good market prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only for more clearly illustrating the technical solutions of the embodiments of the present application or the prior art. The drawings required for use in the description of the embodiments or the prior art will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 This is a schematic diagram of the overall structure of the circuit control of this application;
[0029] Figure 2 This is a circuit diagram of the binary input detection module of the present application;
[0030] Figure 3 This is a circuit diagram of the driving module and the second detection module of the present application;
[0031] Figure 4 This is a schematic diagram of the human-computer interaction module of this application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] The terms "first", "second" and "first" in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. All directional indications (such as up, down, left, right, front, back...) in the embodiments of the present application are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0034] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0035] The inventor of the present application has found that the load switch has a simple arc extinguishing device, which can only cut off the rated load current and a certain overload current, but cannot cut off the short-circuit current. The traditional way to control the opening and closing of the load switch is to control the forward and reverse rotation of the motor through the relay control board and the main circuit contactor, thereby driving the switch mechanism to open or close the switch. Since the motor itself has a large power and the main circuit contactor that controls the motor has a large breaking capacity, the control circuit is too large and the cost is high. At the same time, the control board built with relays also needs to detect the closing, opening, opening position and other auxiliary signals at the same time, so the connection line is complicated. In actual operation, it is often easy to cause the wiring personnel to misconnect the circuit.
[0036] At present, some manufacturers have launched electric load switch controllers to replace the early relay control boards and main circuit contactor circuits. However, this type of product mainly solves the problems of complex original circuits, high costs, and large size, but does not provide any protection for the motor. During operation, the motor often burns out, and it does not have a self-diagnosis function, making it difficult to troubleshoot faults.
[0037] In order to solve the above problems, the present application provides a self-diagnosis switch controller.
[0038] See also Figures 1 to 4 , Figure 1 This is a schematic diagram of the overall structure of the circuit control of this application; Figure 2 This is a circuit diagram of the binary input detection module of this application; Figure 3 This is a circuit diagram of the driving module and the second detection module of the present application; Figure 4 This is a schematic diagram of the human-computer interaction module of this application.
[0039] The present application provides a self-diagnostic switch controller 100, including a control module 10, a first detection module 20, a drive module 30, a second detection module 40 and a power module 50, wherein the power module 50 is connected to the control module 10 and is used to provide power to other components in the switch controller. The control module 10 includes a binary input and output unit 11 and an analog-to-digital conversion unit 12; the first detection module 20 is electrically connected to the binary input and output unit 11; the drive module 30 is electrically connected to the binary input and output unit 11 and the first detection module 20 respectively; wherein the input end of the first detection module 20 is connected to the signal input end of the control module 10; the input end of the second detection module 40 is connected to the signal input end of the control module 10; and the input end of the drive module 30 is connected to the signal output end of the control module 10.
[0040] The second detection module 40 is electrically connected to the analog-to-digital conversion unit 12, and is used to transmit the current data of the drive module 30 to the control module; further, the control module also includes a single-chip microcomputer 101, which transmits the real-time current data of the motor 43 to the single-chip microcomputer 101 of the control module through the second detection module 40.
[0041] In one embodiment, the second detection module 40 includes a motor 43 and a sampling resistor Rc, and the sampling resistor Rc is arranged in a power supply circuit of the motor 43 of the second detection module 40 ; the driving module 30 may specifically be a motor 43 driving module 30 .
[0042] Specifically, the motor 43 in this embodiment may be a DC motor. In other embodiments, the motor 43 may also be other motors 43, and this application does not impose any limitation on this.
[0043] In one embodiment, the second detection module 40 may further include a signal conditioning circuit 42, the input end of the signal conditioning circuit 42 is connected in parallel to the two ends of the sampling resistor Rc, and the signal conditioning circuit 42 is electrically connected to the analog-to-digital conversion unit 12, and the output end of the signal conditioning circuit 42 is connected to the analog sampling port of the microcontroller 101; the voltage signal at the two ends of the sampling resistor Rc is converted by the analog-to-digital conversion unit 12, and the converted signal is transmitted to the microcontroller 101 for detection.
[0044] In this embodiment, the positive power pole of the motor 43 is connected in series with the contact of the reversing relay KM2, the contact of the reversing relay KM2, the drain of the metal oxide semiconductor field effect transistor MOS, the source of the metal oxide semiconductor field effect transistor MOS, the sampling resistor Rc and the negative power pole of the motor 43; the contact common terminal 45 of the reversing relay KM2 is connected to the motor 43.
[0045] For ease of description, in this embodiment, the first detection module 20 is an input detection module 21 and the second detection module 40 is a motor 43 execution detection module 41 as an example for explanation.
[0046] like Figure 2 As shown, the input quantity detection module 21 includes a closing command detection circuit, an opening command detection circuit, a closing interlocking signal detection circuit, and an opening signal detection circuit.
[0047] R1, U1, resistors R5, R6 form a closing command detection circuit. When the first switch K1 is closed, the label IN1 outputs a low level. The single-chip microcomputer 101 can determine the closing command by detecting the signal of IN1.
[0048] R2, U2, R7, and R8 form a switch-off command detection circuit. When the second switch K2 is closed, the label IN2 outputs a low level, and the single-chip microcomputer 101 can determine the switch-off command by detecting the signal of IN2.
[0049] R3, U3, R9, and R10 form a closing interlock signal detection circuit. When the third switch LS is closed, label IN3 outputs a low level. The single-chip microcomputer 101 can determine whether the closing interlock signal is connected by detecting the signal of IN3.
[0050] R4, U4, R11, and R12 form a position signal detection circuit. When the fourth switch FK is closed, the label IN4 outputs a low level, and the single-chip microcomputer 101 can determine the position signal by detecting the signal of IN4. During the closing operation, the single-chip microcomputer 101 detects that the IN4 signal becomes a low level, thereby controlling the motor to stop working.
[0051] like Figure 3 As shown, the driving module 30 includes an isolation relay KM1 and a reversing relay KM2, and a metal oxide semiconductor field effect transistor MOS (Metal Oxide Semiconductor, MOS tube) electrically connected to the isolation relay KM1 and the reversing relay KM2. In this embodiment, the metal oxide semiconductor field effect transistor MOS is preferably a high-power MOS tube.
[0052] Specifically, the input quantity detection module 21 can be used to: detect the closing command, opening command, closing interlock signal and opening signal of the switch controller, and indicate through the corresponding light-emitting indicator light 61 when the closing command, opening command, closing interlock signal and opening signal are abnormal.
[0053] Specifically, the electrical controller is completed through the isolation relay KM1, the reversing relay KM2, and the high-power metal oxide semiconductor field effect transistor MOS of the motor 43 drive module 30, and the detection of the closing command, the opening command, the closing interlocking signal, and the opening signal is completed through the digital input detection module 21, thereby reducing the size of the controller and reducing the cost.
[0054] The positive pole of the power supply of the motor 43 is connected to the input end of the reversing relay KM2, the output end of the isolation relay KM1 is connected to the input end of the reversing relay KM2; the output end of the reversing relay KM2 is connected to the input end of the high-power metal oxide semiconductor field effect transistor MOS; the input end of the sampling resistor Rc is connected to the output end of the high-power metal oxide semiconductor field effect transistor MOS; the output end of the sampling resistor Rc is connected to the power supply - end of the motor 43. The power supply circuit of the motor 43 is sequentially connected from the positive pole of the power supply of the motor 43: the contact of the isolation relay KM1, the contact of the reversing relay KM2, the motor 43, the high-power metal oxide semiconductor field effect transistor MOS and the sampling resistor Rc to the negative end of the power supply of the motor 43.
[0055] D1, KM1, R41, and Q1 form an isolation relay circuit. When the microcontroller 101 outputs a high level at the D01 terminal, the isolation relay KM1 is closed.
[0056] D2, KM2, R42, and Q1 form a reversing relay circuit. The single-chip microcomputer 101 outputs a low level at the D02 terminal, and then the contact state of the reversing relay KM2 is cold, the power supply direction of the DC motor 43 is forward, the single-chip microcomputer 101 outputs a high level at the DO4 segment, the high-power metal oxide semiconductor field effect transistor MOS is turned on, the motor 43 is forward powered, and the forward rotation drives the load switch to close; the single-chip microcomputer 101 outputs a high level at the D02 terminal, and then the contact state of the reversing relay KM2 is reversed, the power supply direction of the DC motor 43 is reverse, the single-chip microcomputer 101 outputs a high level at the DO4 segment, the high-power metal oxide semiconductor field effect transistor MOS is turned on, the power supply direction of the DC motor 43 is reverse, the motor 43 is reversely powered, and the reverse rotation drives the load switch to open.
[0057] The input end of the signal conditioning circuit is connected in parallel with both ends of the sampling resistor Rc. The signal conditioning circuit modulates the voltage signal across the sampling resistor Rc into a signal that can be collected by the single chip microcomputer 101 and outputs it at the AIN1 end, which is connected to the analog input end of the single chip microcomputer 101.
[0058] In one embodiment, the self-diagnosis switch controller 100 also includes a human-computer interaction module 60, which is connected to the output end of the control module and to the input and output unit 11; wherein the human-computer interaction module 60 includes a plurality of light-emitting indicator lights 61 and a plurality of resistors arranged one-to-one corresponding to each light-emitting indicator light 61; the plurality of light-emitting indicator lights 61 can indicate the running status, fault and alarm status of the microcontroller 101 program.
[0059] like Figure 4As shown, in one embodiment, the human-machine interaction module 60 includes a self-test success indicator light-up circuit, an action (closing, opening action) success indicator light-up circuit, a fault indicator light-up circuit, and an alarm indicator light-up circuit. A plurality of light-emitting indicator lights 61 are arranged in one-to-one correspondence with the self-test success indicator light-up circuit, the action (closing, opening action) success indicator light-up circuit, the fault indicator light-up circuit, and the alarm indicator light-up circuit.
[0060] In one embodiment, the light-emitting indicator light 61 may include a first indicator light LED 53, a second indicator light LED 54, a third indicator light LED 51 and a fourth indicator light LED 52. Specifically, the above indicator lights may be LEDs, miniLEDs, etc., and this application does not limit this.
[0061] In one embodiment, the isolation relay KM1, the reversing relay KM2, and the motor 43 are also connected to a metal oxide semiconductor field effect transistor MOS for detecting the current state in the power supply circuit of the motor 43, and providing reminders through the first indicator light LED53, the second indicator light LED54, and the fourth indicator light LED52. For example, when there is no current in the power supply circuit of the motor 43, the second indicator light LED54 briefly flashes twice to actively report an open circuit fault in the power supply circuit of the motor 43, reminding maintenance personnel that the equipment has failed and needs maintenance, which is convenient for maintenance personnel to repair the fault in time, improve maintenance punctuality, and extend the service life of the equipment.
[0062] Specifically, for example, Figure 4 As shown, the single-chip microcomputer 101 reads the high-power MOS burnout fault history stored in the internal data memory (not shown), and the single-chip microcomputer 101 outputs a low level on the MCU_13 terminal, and the first indicator LED53 indicator is always on, reporting the metal oxide semiconductor field effect transistor MOS damage fault. For another example, Figure 2 and Figure 4 As shown, the single-chip microcomputer 101 outputs a high level at the D01 terminal, and then the isolation relay KM1 is closed, the single-chip microcomputer 101 outputs a low level at the D02 terminal, the contact state of the reversing relay KM2 is cold, the power supply direction of the DC motor 43 is forward, and the voltage signal at both ends of the sampling resistor Rc in the power supply circuit of the motor 43 is connected in series. After being modulated by the signal conditioning circuit 42, the current signal of the motor 43 is output at the AIN1 terminal. The single-chip microcomputer 101 detects the signal size at the AIN1 terminal to determine whether there is current in the motor 43 circuit. If there is current, the single-chip microcomputer 101 outputs a low level at the MCU_14 terminal, and the first indicator LED53 indicator is always on, reporting a metal oxide semiconductor field effect transistor MOS damage fault.
[0063] In one embodiment, the driving module 30 may further include a timing unit (not shown), which is connected to the motor 43; when the metal oxide semiconductor field effect transistor MOS is powered on, the motor 43 starts to run, and the running time of the motor 43 is timed by the timing unit.
[0064] Specifically, the isolation relay KM1 and the reversing relay KM2 of the motor 43 driving module 30 can be closed to turn on the high-power metal oxide semiconductor field effect transistor MOS, and the motor 43 is powered on to start timing. Once the running timing of the motor 43 exceeds the specified time limit, and the change of the position signal has not been detected, the second indicator LED54 indicator flashes briefly, reporting that the motor 43 has timed out, and the high-power metal oxide semiconductor field effect transistor MOS is turned off, and then the isolation relay KM1 is opened to stop supplying power to the power supply circuit of the motor 43, thereby preventing the motor 43 from running for a long time and burning the motor 43. It can be understood that the timing unit in this embodiment is preferably a timing program in the single-chip computer 101, so that the device structure can be simplified.
[0065] In one embodiment, in response to the running time of the motor 43 reaching a preset maximum time limit and no position signal is obtained, a first mode prompt is performed through the second indicator light LED52. For example, the first mode may be that the second indicator light LED54 flashes twice, and at the same time the isolation relay KM1 is turned on, and the metal oxide semiconductor field effect transistor MOS is disconnected to stop power supply to the motor 43.
[0066] Specifically, the isolation relay KM1 and the reversing relay KM2 of the motor 43 drive module 30 can be closed to turn on the high-power metal oxide semiconductor field effect transistor MOS to detect whether the circuit current of the motor 43 is less than the current threshold of the motor 43. When it is less than the current threshold of the motor 43, the second indicator LED54 will flash twice for a short time, reporting that the power supply circuit of the motor 43 is open, and the isolation relay KM1 will be opened to stop supplying power to the power supply circuit of the motor 43, reminding the maintenance personnel of the line fault and facilitating maintenance.
[0067] In another embodiment, in response to the loop current of the motor 43 being greater than the stall current threshold of the motor 43 during operation, a second mode prompt is performed through the second indicator light LED52. For example, the second mode may be that the second indicator light LED54 flashes three times, and at the same time the isolation relay KM1 is turned on, and the metal oxide semiconductor field effect transistor MOS is disconnected to stop power supply to the motor 43.
[0068] Specifically, by closing the isolation relay KM1 and the reversing relay KM2 of the motor 43 drive module 30, the high-power metal oxide semiconductor field effect transistor MOS is turned on to detect whether the circuit current of the motor 43 is greater than the stall current threshold of the motor 43. When it is greater than the stall current threshold of the motor 43, the second indicator LED54 briefly flashes three times to report that the motor 43 is stalled, and the isolation relay KM1 is opened to forcibly cut off the power supply circuit of the motor 43, thereby preventing the motor 43 from burning out and the load switch mechanism from being damaged, thereby extending the service life of the equipment.
[0069] The third indicator LED51 and the first resistor R51 can form a self-test success indicator circuit. The single chip microcomputer 101 outputs a low level pulse on the MCU_16 terminal, and the third indicator LED51 lights up once, indicating that the self-test is successful.
[0070] The fourth indicator LED52 and the second resistor R52 can form an action success indicator circuit. Each time the load switch is closed or opened successfully, the single chip microcomputer 101 outputs a low level pulse on the MCU_15 terminal, and the fourth indicator LED52 lights up once, indicating that the action is successful.
[0071] The first indicator LED53 and the third resistor R53 can form a fault indicator circuit. When the single-chip microcomputer 101 detects that the high-power metal oxide semiconductor field effect transistor MOS is damaged, the single-chip microcomputer 101 outputs a low level on the MCU_14 terminal, and the first indicator LED53 is always on, indicating that the metal oxide semiconductor field effect transistor MOS is damaged; when the single-chip microcomputer 101 detects that the signal of IN3 is high, the single-chip microcomputer 101 continuously outputs a low level pulse on the MCU_14 terminal, and the first indicator LED53 keeps flashing, indicating that the closing interlocking signal is missing.
[0072] The second indicator LED54 and the fourth resistor R54 can form an alarm indicator circuit. The single chip microcomputer 101 continuously outputs a low level pulse on the MCU_13 terminal, and the second indicator LED54 flashes briefly, indicating that the motor 43 has timed out; the single chip microcomputer 101 continuously outputs two low level pulses on the MCU_13 terminal, and the second indicator LED54 flashes briefly twice, indicating that the power supply circuit of the motor 43 is open; the single chip microcomputer 101 continuously outputs three low level pulses on the MCU_13 terminal, and the second indicator LED54 flashes briefly three times, indicating that the motor 43 is blocked.
[0073] In one embodiment, if Figure 1 As shown, the self-diagnosis switch controller 100 may further include an output module 70 , which is connected to the input and output unit 11 . The output module 70 includes an alarm relay, and an alarm signal may be output by closing the alarm relay of the output module 70 .
[0074] For example, Figures 1 to 4 As shown, the closing operation execution process of the present application can be:
[0075] After the present application is powered on, the single-chip computer 101 reads the internal data storage device. When no fault history record of high-power MOS burnout can be read, the self-test light is turned on, indicating that the self-test is normal. On the contrary, when the single-chip computer 101 reads the permanent fault history record of high-power MOS damage from the internal data storage device, the single-chip computer 101 outputs a low level at the MCU_14 terminal, and the first indicator LED53 is always on, indicating that the metal oxide semiconductor field effect transistor MOS is damaged.
[0076] like Figure 2 As shown, when the third switch LS is opened, the label IN3 outputs a high level, the single-chip microcomputer 101 cannot detect the closing interlock signal on the IN3 port, the single-chip microcomputer 101 continuously outputs a low level pulse level on the MCU_14 end, and the first indicator LED53 keeps flashing, indicating that the closing interlock signal is missing. When the third switch LS is closed, the label IN3 outputs a low level, and the single-chip microcomputer 101 can determine that the closing interlock signal is connected by detecting the low level signal of IN3. The single-chip microcomputer 101 outputs a high level on the MCU_14 end, and the first indicator LED53 keeps going out, indicating that the closing interlock signal has been connected.
[0077] When the first switch K1 is closed, the label IN1 outputs a low level, the single-chip computer 101 detects the low-level signal of IN1, determines that the closing command is connected, and the single-chip computer 101 outputs a high level at the D01 terminal, and then the isolation relay KM1 is closed, the single-chip computer 101 outputs a low level at the D02 terminal, the contact state of the reversing relay KM2 is cold, the power supply direction of the DC motor 43 is forward, the single-chip computer 101 outputs a low level at the DO4 segment, the high-power metal oxide semiconductor field effect transistor MOS is cut off, and the voltage signal at both ends of the sampling resistor Rc connected in series in the power supply circuit of the motor 43 is transmitted through the signal After modulation by the conditioning circuit 42, the current signal of the motor 43 is outputted at the AIN1 terminal. The single-chip computer 101 detects the signal size at the AIN1 terminal to determine whether there is current in the circuit of the motor 43. If there is current, the single-chip computer 101 outputs a low level at the MCU_14 terminal, and the first indicator LED53 is always on, reporting a metal oxide semiconductor field effect transistor MOS damage fault. The single-chip computer 101 writes the fault record of the high-power MOS damage into the internal data storage device, and the single-chip computer 101 outputs a low level at the D01 terminal, and then the isolation relay KM1 is opened to stop supplying power to the power supply circuit of the motor 43.
[0078] like Figure 2As shown, when the first switch K1 is closed, the label IN1 outputs a low level, the single-chip computer 101 detects the low-level signal of IN1, determines that the closing command is connected, and the single-chip computer 101 outputs a high level at the D01 terminal, and then the isolation relay KM1 is closed, the single-chip computer 101 outputs a low level at the D02 terminal, the contact state of the reversing relay KM2 is cold, the power supply direction of the DC motor 43 is forward, the single-chip computer 101 outputs a high level at the DO4 segment, the high-power metal oxide semiconductor field effect transistor MOS is turned on, the motor 43 is forwardly powered, and the forward rotation drives the load switch to close; the single-chip computer 101 detects the signal size of the AIN1 terminal, determines the size of the circuit current of the motor 43, and determines whether there is current and the current The value is not greater than the stall threshold value. The single-chip microcomputer 101 detects the fourth switch FK through the position signal detection circuit output at the level labeled IN4. The level labeled IN4 is always a low-level signal. It can be determined that the position signal always exists and the duration is greater than the preset time value. The single-chip microcomputer 101 outputs a low level in the DO4 segment, turns off the high-power metal oxide semiconductor field effect transistor MOS, and the motor 43 stops running. The single-chip microcomputer 101 outputs a low level at the D01 end, and then the isolation relay KM1 is opened. The single-chip microcomputer 101 continuously outputs a low-level pulse level at the MCU_13 end, and the second indicator LED54 flashes briefly, indicating that the motor 43 has timed out.
[0079] like Figure 2 As shown, when the first switch K1 is closed, the label IN1 outputs a low level, the single-chip computer 101 detects the low-level signal of IN1, determines that the closing command is connected, and the single-chip computer 101 outputs a high level at the D01 terminal, and then the isolation relay KM1 is closed, the single-chip computer 101 outputs a low level at the D02 terminal, the contact state of the reversing relay KM2 is cold, the power supply direction of the DC motor 43 is forward, the single-chip computer 101 outputs a high level at the DO4 segment, the high-power metal oxide semiconductor field effect transistor MOS is turned on, the motor 43 is forwardly powered, and the forward drive The dynamic load switch is closed, and the single-chip computer 101 detects the signal size at the AIN1 terminal to determine the current size of the motor 43 circuit. When there is no current, the single-chip computer 101 outputs a low level at the DO4 segment to turn off the high-power metal oxide semiconductor field effect transistor MOS, and the motor 43 stops running. The single-chip computer 101 outputs a low level at the D01 terminal, and then the isolation relay KM1 is opened. The single-chip computer 101 continuously outputs two low-level pulse levels at the MCU_13 terminal, and the second indicator LED54 flashes twice for a short time, indicating that the power supply circuit of the motor 43 is open.
[0080] like Figure 2As shown, when the first switch K1 is closed, the label IN1 outputs a low level, the single-chip computer 101 detects the low-level signal of IN1, determines that the closing command is connected, and the single-chip computer 101 outputs a high level at the D01 terminal, and then the isolation relay KM1 is closed, the single-chip computer 101 outputs a low level at the D02 terminal, the contact state of the reversing relay KM2 is cold, the power supply direction of the DC motor 43 is forward, the single-chip computer 101 outputs a high level at the DO4 segment, the high-power metal oxide semiconductor field effect transistor MOS is turned on, the motor 43 is positively powered, and the positive rotation drives the negative The load switch is closed, and the single-chip computer 101 detects the signal size of the AIN1 terminal to determine the size of the loop current of the motor 43. When the current value is greater than the stall threshold value, the single-chip computer 101 outputs a low level at the DO4 segment to turn off the high-power metal oxide semiconductor field effect transistor MOS, and the motor 43 stops running. The single-chip computer 101 outputs a low level at the D01 terminal, and then the isolation relay KM1 is opened. The single-chip computer 101 continuously outputs three low-level pulse levels at the MCU_13 terminal, and the second indicator LED54 flashes three times for a short time, indicating that the motor 43 is stalled.
[0081] When the first switch K1 is closed, the label IN1 outputs a low level, and the single-chip computer 101 detects the low-level signal of IN1 to determine whether the closing command is connected. The single-chip computer 101 outputs a high level at the D01 terminal, and then the isolation relay KM1 is closed. The single-chip computer 101 outputs a low level at the D02 terminal, and the contact state of the reversing relay KM2 is cold. The power supply direction of the DC motor 43 is forward. The single-chip computer 101 outputs a high level at the DO4 segment, and the high-power metal oxide semiconductor field effect transistor MOS is turned on. The motor 43 is forwardly powered, and the forward rotation drives the load switch to close. The single-chip computer 101 detects the size of the signal at the AIN1 terminal to determine the loop current of the motor 43 Size, there is current and the current value is not greater than the stall threshold value. After the load switch is closed, the fourth switch FK is disconnected, and the single-chip computer 101 detects the fourth switch FK through the bit signal detection circuit output at the label IN4 level, the label IN4 level becomes a high level signal, the single-chip computer 101 outputs a low level at the DO4 segment, turns off the high-power metal oxide semiconductor field effect transistor MOS, and the motor 43 stops running. The single-chip computer 101 outputs a low level at the D01 end, and then the isolation relay KM1 is opened, and the single-chip computer 101 outputs a low level pulse level at the MCU_15 end, and the fourth indicator LED52 lights up once, indicating that the action is successful.
[0082] When the second switch K2 is closed, the label IN2 outputs a low level, and the single-chip computer 101 detects the low-level signal of IN2 and determines that the opening command is connected. The single-chip computer 101 outputs a high level at the D01 terminal, and then the isolation relay KM1 is closed. The single-chip computer 101 outputs a high level at the D02 terminal, and the contact state of the reversing relay KM2 is reversed. The power supply direction of the DC motor 43 is reversed. The single-chip computer 101 outputs a high level at the DO4 segment, and the high-power metal oxide semiconductor field effect transistor MOS is turned on. The motor 43 is reversely powered, and the reverse rotation drives the load switch to open. The single-chip computer 101 detects the size of the signal at the AIN1 terminal and determines that the circuit current of the motor 43 is large. The load switch is small, there is current and the current value is not greater than the stall threshold value. After the load switch is opened, the fourth switch FK is closed. The single-chip computer 101 detects the fourth switch FK through the position signal detection circuit output at the IN4 level, and the IN4 level becomes a low level signal. The single-chip computer 101 outputs a low level at the DO4 segment, turns off the high-power metal oxide semiconductor field effect transistor MOS, and the motor 43 stops running. The single-chip computer 101 outputs a low level at the D01 end, and then the isolation relay KM1 is opened. The single-chip computer 101 outputs a low level pulse level at the MCU_15 end, and the fourth indicator LED52 lights up once, indicating that the action is successful.
[0083] Anything not described in detail in this application is prior art.
[0084] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A self-diagnostic switch controller, comprising: A control module, including a binary input and output unit and an analog-to-digital conversion unit; A first detection module, electrically connected to the input and output unit; A driving module, electrically connected to the input and output unit and the first detection module respectively; A second detection module, electrically connected to the analog-to-digital conversion unit, and configured to transmit the current data of the driving module to the control module; Among them, the input end of the first detection module is connected to the signal input end of the control module; the input end of the second detection module is connected to the signal input end of the control module; the input end of the driving module is connected to the signal output end of the control module.
2. A self-diagnostic switch controller according to claim 1, characterized in that: The second detection module comprises: Motor; A sampling resistor, wherein the sampling resistor is arranged in a motor power supply circuit of the second detection module; The control module further includes: a single chip microcomputer, which transmits the real-time current data of the motor to the single chip microcomputer of the control module through the second detection module.
3. A self-diagnostic switch controller according to claim 2, characterized in that: Also includes: A human-computer interaction module is connected to the output end of the control module and to the binary input and output unit; wherein the human-computer interaction module includes a plurality of light-emitting indicator lights and a plurality of resistors arranged in one-to-one correspondence with each of the light-emitting indicator lights; the plurality of light-emitting indicator lights are used to indicate the operating status and fault status of the single-chip microcomputer.
4. A self-diagnostic switch controller according to claim 3, characterized in that: The driving module includes an isolation relay and a commutation relay, and a metal oxide semiconductor field effect transistor electrically connected to the isolation relay and the commutation relay; The first detection module includes: a closing command detection circuit, an opening command detection circuit, a closing interlock signal detection circuit, and a position opening signal detection circuit; wherein the first detection module is used to: detect the closing command, the opening command, the closing interlock signal and the position opening signal of the switch controller, and indicate through the corresponding light-emitting indicator light when the closing command, the opening command, the closing interlock signal and the position opening signal are abnormal.
5. A self-diagnostic switch controller according to claim 4, characterized in that: The light-emitting indicator light includes a first indicator light; the isolation relay, the reversing relay and the metal oxide semiconductor field effect transistor are also connected to the motor for detecting the current state in the motor power supply circuit and providing a reminder through the first indicator light.
6. A self-diagnostic switch controller according to claim 4, characterized in that: The light-emitting indicator light includes a second indicator light; and the driving module further includes: a timing unit, the timing unit being connected to the motor; when the metal oxide semiconductor field effect transistor is powered on, the motor starts to run, and the running time of the motor is timed by the timing unit; In response to the running time of the motor reaching the preset maximum time limit and the position signal is not obtained, the first mode prompt is performed through the second indicator light, the metal oxide semiconductor field effect transistor is disconnected, and then the isolation relay is opened to stop power supply to the motor.
7. A self-diagnostic switch controller according to claim 4, characterized in that: The light-emitting indicator light includes a second indicator light; in response to the loop current of the motor being greater than the stall current threshold of the motor during operation, a second mode prompt is given through the second indicator light, the metal oxide semiconductor field effect transistor is disconnected, and then the isolation relay is opened to stop power supply to the motor.
8. A self-diagnostic switch controller according to any one of claims 4 to 7, characterized in that: The positive power pole of the motor is connected in series with the contact of the reversing relay, the drain of the metal oxide semiconductor field effect transistor, the source of the metal oxide semiconductor field effect transistor, the sampling resistor and the negative power pole of the motor in sequence; the contact common end of the reversing relay is connected to the motor.
9. A self-diagnostic switch controller according to claim 2, characterized in that: The second detection module also includes: A signal conditioning circuit, wherein the input end of the signal conditioning circuit is connected in parallel to the two ends of the sampling resistor, and the signal conditioning circuit is electrically connected to the analog-to-digital conversion unit, and the output end of the signal conditioning circuit is connected to the analog sampling port of the single-chip microcomputer.
10. A self-diagnostic switch controller according to claim 1 or 9, characterized in that: Also includes: A power module is connected to the control module and is used to provide power to the switch controller.