A digital output circuit supporting active / passive automatic switching
Patent Information
- Application Number
- CN202522671723.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2035-12-17
AI Technical Summary
[0019]通过所述电路的设置,能够有效地优化输出电路结构,提升数字量输出电路的灵活性,使得电路支持信号数字量有源输出/无源输出自动切换,灵活支持多种应用场景。
Smart Images

Figure CN224840847U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of energy storage technology for new energy power systems, and more specifically, to a digital output circuit that supports automatic switching between active and passive modes. Background Technology
[0002] Digital output circuits can be divided into active output and passive output depending on whether the device itself needs to provide power for the signal output.
[0003] The difference between the two is that the active output circuit is driven by the internal power supply of the device, while the passive output circuit relies on the external power supply for energy, and the device only acts as a switch or passive component.
[0004] In practical applications, if the hardware circuit is designed as an active output circuit, and you don't want to use the device's internal power supply (for example, because the internal power supply is too weak to provide a large current signal), but instead want to use an external independent power supply, you can add a relay control circuit outside the device to achieve this. However, if the hardware circuit is designed as a passive output circuit, and there is no external independent power supply, using the device's internal power supply may sometimes be inconvenient. Therefore, how to achieve automatic switching between active and passive modes in digital output circuits is of great significance.
[0005] Patent CN219643789U discloses an electronic door controller system for train doors. The system includes an output drive circuit comprising 10 110V drive output circuits, 2 24V drive output circuits, and a set of normally open 110V contacts. Each drive output circuit is equipped with corresponding isolation circuits, protection circuits, overcurrent protection, and output control circuits. Specifically, the output drive circuit includes 10 110V drive output circuits, 2 24V drive output circuits, and a set of normally open 110V contacts; each drive output circuit is equipped with corresponding isolation circuits, protection circuits, overcurrent protection, and output control circuits. However, this circuit can only achieve drive output but cannot solve the problem of automatic switching between active and passive modes in the output circuit. Utility Model Content
[0006] In view of this, the present invention aims to propose a digital output circuit that supports automatic switching between active and passive outputs, in order to solve the problem that existing hardware circuits cannot automatically switch between active and passive outputs, thus limiting their applicable scenarios; thereby optimizing the output circuit structure, improving the flexibility of the digital output circuit, enabling the circuit to support automatic switching between active and passive digital signal outputs, and flexibly supporting a variety of application scenarios.
[0007] To achieve the above objectives, the technical solution of this utility model is implemented as follows:
[0008] This utility model relates to a digital output circuit that supports automatic switching between active and passive modes, including an opto-relay U1, a relay T1, a protection module, a diode D2, and an output terminal J1; the opto-relay U1 is connected to the relay T1, the protection module, the diode D2, and the output terminal J1 respectively; the relay T1 is connected to the diode D2 and the output terminal J1 respectively; and the protection module and the diode D2 are both connected to the output terminal J1.
[0009] Furthermore, pins 1 and 2 of the photorelay U1 are connected to the input control signal terminals of the main system.
[0010] Furthermore, pin 4 of the photorelay U1 is connected to one end of the protection module and one end of the diode D2, respectively, and the other end of the protection module and the diode D2 are both connected to the output terminal J1.
[0011] Furthermore, pin 6 of the photorelay U1 is connected to the protection module and pin 6 of the relay T1, respectively, and the other end of the diode D2 is connected to pin 3 of the output terminal J1 and pins 2 and 8 of the relay T1, respectively.
[0012] Furthermore, diode D2 is a freewheeling diode.
[0013] Furthermore, output terminal J1 is an external wiring terminal.
[0014] Furthermore, pin 7 of relay T1 is connected to the first power supply PW1, and pin 1 of relay T1 is connected to pin 6 of photorelay U1, the second power supply PW2, and pin 1 of output terminal J1 respectively; pin 3 of relay T1 is grounded.
[0015] Furthermore, the first power supply PW1 is an internal power supply.
[0016] Furthermore, the second power supply PW2 is an external power supply.
[0017] Furthermore, the protection module includes a fuse F1 and a TVS device D1; one end of both the fuse F1 and the TVS device D1 is connected to pin 4 of the photorelay U1, the other end of the fuse F1 is connected to pin 2 of the output terminal J1, and the other end of the TVS device D1 is connected to pin 6 of the photorelay U1 and the relay T1, respectively.
[0018] Compared with the prior art, the digital output circuit supporting automatic switching between active and passive modes described in this utility model has the following advantages:
[0019] By setting up the circuit, the output circuit structure can be effectively optimized, the flexibility of the digital output circuit can be improved, and the circuit can support automatic switching between active and passive digital output of signals, flexibly supporting a variety of application scenarios. Attached Figure Description
[0020] The accompanying drawings, which constitute a part of this utility model, are used to provide a further understanding of the utility model. The illustrative embodiments and descriptions of the utility model are used to explain the utility model and do not constitute an undue limitation of the utility model. In the drawings:
[0021] Figure 1 This is a schematic diagram of the output circuit structure. Detailed Implementation
[0022] The inventive concepts of this disclosure will be described below using terminology commonly used by those skilled in the art to convey the essence of their work to others skilled in the art. However, these inventive concepts may be embodied in many different forms and should not be construed as limited to the embodiments described herein.
[0023] It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0024] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0025] In the existing technology, if the hardware circuit is designed as an active output circuit, and you do not want to use the internal power supply of the device (for example, the internal power supply of the device is too small to provide a large current signal), but want to use an external independent power supply, you can add a relay control circuit to the outside of the device to achieve this. However, if the hardware circuit is designed as a passive output circuit, and there is no external independent power supply, it may be inconvenient to use the internal power supply of the device.
[0026] To address the limitation of existing hardware circuits' applicability due to the inability to automatically switch between active and passive output circuits, this embodiment proposes a digital output circuit that supports automatic switching between active and passive modes. The circuit includes an opto-relay U1, a relay T1, a protection module, a diode D2, and an output terminal J1. The opto-relay U1 is connected to relay T1, the protection module, diode D2, and output terminal J1. Relay T1 is connected to diode D2 and output terminal J1. The protection module and diode D2 are both connected to output terminal J1. The opto-relay U1, relay T1, protection module, diode D2, and output terminal J1 are integrated into the hardware circuit, enabling adaptability to various application scenarios without the need for additional equipment.
[0027] By setting up the circuit, the output circuit structure can be effectively optimized, the flexibility of the digital output circuit can be improved, and the circuit can support automatic switching between active and passive digital output of signals, flexibly supporting a variety of application scenarios.
[0028] Pins 1 and 2 of opto-relay U1 are connected to the input control signal terminals of the main system, respectively, for receiving control signals. Pins 3 and 5 of opto-relay U2 are left floating. Pin 4 of opto-relay U1 is connected to one end of the protection module and diode D2, respectively; the other end of the protection module and diode D2 are both connected to output terminal J1. Pin 6 of opto-relay U1 is connected to pin 6 of the protection module and relay T1, respectively; the other end of diode D2 is connected to pin 3 of output terminal J1, and pins 2 and 8 of relay T1, respectively. Diode D2 is a freewheeling diode. Output terminal J1 is an external wiring terminal.
[0029] By using the opto-relay U1, the output digital signal can be effectively isolated, providing effective protection during active / passive switching of the circuit and improving operational safety. The freewheeling diode D2 provides freewheeling current to the circuit when an external fan or other inductive device is connected.
[0030] Pin 7 of relay T1 is connected to the first power supply PW1, and pins 4 and 5 of relay T1 are left floating. Pin 1 of relay T1 is connected to pin 6 of opto-relay U1, the second power supply PW2, and pin 1 of output terminal J1, respectively. Pin 3 of relay T1 is grounded to GND1. Pin 3 of output terminal J1 is grounded to GND2. The first power supply PW1 is an internal power supply. The second power supply PW2 is an external power supply. Pin 3 of relay T1 is connected to the internal power supply ground GND1, and pin 3 of output terminal J1 is connected to the external power supply ground GND2. Relay T1 is a relay with two C-type nodes.
[0031] By setting relay T1, the switching between internal and external power supplies can be realized, ensuring the flexibility of circuit output and also achieving circuit output stability.
[0032] The protection module includes fuse F1 and TVS device D1. One end of both fuse F1 and TVS device D1 is connected to pin 4 of opto-relay U1, the other end of fuse F1 is connected to pin 2 of output terminal J1, and the other end of TVS device D1 is connected to pin 6 of opto-relay U1 and relay T1 respectively.
[0033] By using fuse F1 and TVS device D1 as protection modules for the output circuit, dual protection can be achieved. Specifically, fuse F1 provides overcurrent protection for the output signal, while TVS device D1 provides overvoltage protection for the output side of photorelay U1. The two complement each other, providing synergistic protection and greatly ensuring the protection strength of the output circuit, thus achieving stable operation of the output circuit.
[0034] The principle of automatic switching between active and passive digital outputs:
[0035] When there is no external independent power supply, the external device is connected to pins 2 and 3 of J1 (pin 2 is positive, pin 3 is negative), and pin 1 is left floating. At this time, the coil of relay T1 is de-energized, and PW1 is connected to the photorelay U1 through the normally closed nodes of relay T1, namely pins 6 and 7. When the photorelay U1 is turned on, it provides positive power to the external device through the fuse F1 and pin 2 of J1. GND1 is connected to the power ground of the external device through the normally closed nodes of relay T1, namely pins 2 and 3, and pin 3 of J1.
[0036] When an external independent power supply is available, the positive terminal PW2 of the external power supply is connected to pin 1 of J1, the power ground GND2 is connected to pin 3 of J1, and the external device is connected to pins 2 and 3 of J1 (pin 2 is positive, pin 3 is negative). At this time, the coil of relay T1 is energized, and relay T1 operates. The normally closed contacts, namely pins 6 and 7 and pins 2 and 3, are opened respectively, and the connection between the internal power supply PW1-GND1 and the output circuit is cut off. PW2 is connected to the photorelay U1. When the photorelay U1 is turned on, it provides positive power to the external device through the fuse F1 and pin 2 of J1. GND2 is connected to pin 3 of J1 to provide power ground to the external device.
[0037] The above description is only a preferred embodiment of the present utility model and is not intended to limit the present utility model. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present utility model should be included within the protection scope of the present utility model.
Claims
1. A digital output circuit supporting automatic switching between active and passive modes, characterized in that, It includes a photorelay U1, a relay T1, a protection module, a diode D2, and an output terminal J1; the photorelay U1 is connected to the relay T1, the protection module, the diode D2, and the output terminal J1 respectively; the relay T1 is connected to the diode D2 and the output terminal J1 respectively; and the protection module and the diode D2 are both connected to the output terminal J1.
2. The digital output circuit supporting automatic switching between active and passive modes according to claim 1, characterized in that, Pins 1 and 2 of the photorelay U1 are connected to the input control signal terminals of the main system, respectively.
3. A digital output circuit supporting automatic switching between active and passive modes according to claim 2, characterized in that, Pin 4 of the photorelay U1 is connected to one end of the protection module and one end of the diode D2, respectively, and the other end of the protection module and the diode D2 are both connected to the output terminal J1.
4. A digital output circuit supporting automatic switching between active and passive modes according to claim 2, characterized in that, Pin 6 of the photorelay U1 is connected to the protection module and pin 6 of the relay T1, respectively. The other end of the diode D2 is connected to pin 3 of the output terminal J1 and pins 2 and 8 of the relay T1, respectively.
5. A digital output circuit supporting automatic switching between active and passive modes according to claim 2, characterized in that, The diode D2 is a freewheeling diode.
6. A digital output circuit supporting automatic switching between active and passive modes according to claim 2, characterized in that, The output terminal J1 is an external wiring terminal.
7. A digital output circuit supporting automatic switching between active and passive modes according to claim 2, characterized in that, Pin 7 of relay T1 is connected to the first power supply PW1, and pin 1 of relay T1 is connected to pin 6 of photorelay U1, the second power supply PW2, and pin 1 of output terminal J1 respectively; pin 3 of relay T1 is grounded.
8. A digital output circuit supporting automatic switching between active and passive modes according to claim 7, characterized in that, The first power supply PW1 is an internal power supply.
9. A digital output circuit supporting automatic switching between active and passive modes according to claim 7, characterized in that, The second power supply PW2 is an external power supply.
10. A digital output circuit supporting automatic switching between active and passive modes according to claim 2, characterized in that, The protection module includes a fuse F1 and a TVS device D1; one end of both the fuse F1 and the TVS device D1 is connected to pin 4 of the photorelay U1, the other end of the fuse F1 is connected to pin 2 of the output terminal J1, and the other end of the TVS device D1 is connected to pin 6 of the photorelay U1 and the relay T1, respectively.