Digital quantity output module
By introducing optocoupler isolation circuits and communication circuits into the digital output module to isolate interference signals, and using signal amplification circuits to ensure drive signal output, the problem of strong interference signals in the digital output control module is solved and the service life of the controller is extended. and reduce costs.
Patent Information
- Application Number
- CN202420716747.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2034-04-09
AI Technical Summary
The digital output control module has the problem of strong interference signals, which shortens the service life of the controller and increases the cost.
A digital output module is designed, including a power supply circuit, a controller, a communication circuit, an optocoupler isolation circuit, a signal amplification circuit and a switching circuit. The optocoupler isolation circuit and communication circuit are used to achieve interference on the power supply and data transmission bus. Signal isolation and ensuring sufficient drive signal output through the signal amplification circuit.
This effectively avoids the problem of shortened service life of the controller, reduces costs, and at the same time ensures that the signal amplification circuit can drive the switching circuit to perform corresponding actions, improving the stability and efficiency of the system.
Smart Images

Figure CN221926976U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of automatic control, in particular to a digital quantity output module. Background Art
[0002] With the rapid development of computer technology and microprocessors, digital control technology is indispensable in automation control technology.
[0003] Currently, digital output control modules have the problem of strong interference signals, which greatly reduces the service life of controllers and increases costs. Utility Model Content
[0004] The utility model provides a digital quantity output module to solve the problem of strong interference signal of the digital quantity output control module.
[0005] According to one aspect of the utility model, a digital output module is provided, the module comprising: a power supply circuit, a controller, a communication circuit, an optical coupling isolation circuit, a signal amplification circuit and a switch circuit;
[0006] The power supply circuit is connected with the controller, the optical coupling isolation circuit and the communication circuit, and is used to supply power to the controller, part of the optical coupling isolation circuit and the communication circuit;
[0007] The communication circuit is connected to the controller, and the communication circuit is also connected to the host computer. The controller communicates with the host computer through the communication circuit and continuously updates the level of the digital output pin of the controller;
[0008] The optocoupler isolation circuit is connected to the controller, and the optocoupler isolation circuit is also connected to the signal amplification circuit, and is used to output a first electrical signal to the signal amplification circuit according to the level of the digital output pin of the controller;
[0009] The signal amplifying circuit is connected to the switch circuit, and is used to amplify the first electrical signal and output a second electrical signal to the switch circuit;
[0010] The switch circuit is also connected to the power supply and the controlled device; and is used to control the power supply and the controlled device to be connected according to the second electrical signal.
[0011] The technical solution of the utility model provides a digital quantity output module, which realizes digital control technology by setting a power supply circuit, a controller, a communication circuit, an optical coupling isolation circuit, a signal amplification circuit and a switch circuit. At the same time, by setting an optical coupling isolation circuit and a communication circuit, the interference signal of the power supply and the interference signal on the data transmission bus are isolated, avoiding the problem of reduced service life of the controller, etc., which leads to increased costs. The signal amplification circuit amplifies the first electrical signal output by the optical coupling isolation circuit, avoiding the problem that the first electrical signal is insufficient to drive the switch circuit to perform a corresponding action.
[0012] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present utility model, nor are they intended to limit the scope of the present utility model. Other features of the present utility model will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. 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.
[0014] Figure 1 This is a structural diagram of a digital quantity output module provided by an embodiment of the utility model;
[0015] Figure 2 It is a structural schematic diagram of a power supply circuit, a first isolated power supply circuit, a controller, an optical coupling isolation circuit, a signal amplification circuit and a switch circuit provided by an embodiment of the utility model;
[0016] Figure 3 This is a structural diagram of the connection of an independent optocoupler, a Darlington transistor, a relay and a controller provided by an embodiment of the utility model;
[0017] Figure 4 It is a structural schematic diagram of a power supply circuit provided by an embodiment of the utility model and connected to an external power supply;
[0018] Figure 5 It is a structural schematic diagram of a power supply circuit provided by an embodiment of the utility model and connected to a first isolated power supply circuit;
[0019] Figure 6 It is a structural schematic diagram of a power supply circuit provided by an embodiment of the utility model and connected to a second isolated power supply circuit;
[0020] Figure 7 It is a structural schematic diagram of a communication circuit connected to a controller and a host computer provided by an embodiment of the utility model. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the utility model, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiment of the utility model. Obviously, the described embodiment is only a part of the embodiment of the utility model, not all of the embodiments. Based on the embodiment of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the utility model.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the utility model and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the utility model described here can be implemented in an order other than those illustrated or described here. 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 necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] Figure 1 Schematic diagram of a digital output module provided by the present utility model. Figure 1 As shown, the module includes: a power supply circuit 11, a controller 2, a communication circuit 3, an optical coupling isolation circuit 4, a signal amplification circuit 5 and a switch circuit 6.
[0024] The power supply circuit 11 is connected to the controller 2 , the optical coupling isolation circuit 4 and the communication circuit 3 , and is used to supply power to the controller 2 , part of the optical coupling isolation circuit 4 and the communication circuit 3 .
[0025] The communication circuit 3 is connected to the controller 2 , and the communication circuit 3 is also connected to the host computer 7 . The controller 2 communicates with the host computer 7 through the communication circuit 3 , and continuously updates the level of the digital output pin of the controller 2 .
[0026] The optocoupler isolation circuit 4 is connected to the controller 2 , and is also connected to the signal amplification circuit 5 , and is used to output a first electrical signal to the signal amplification circuit 5 according to the level of the digital output pin of the controller 2 .
[0027] The signal amplifying circuit 5 is connected to the switch circuit 6 , and is used for amplifying the first electrical signal and outputting a second electrical signal to the switch circuit 6 .
[0028] The switch circuit 6 is also connected to the power supply and the controlled device, and is used to control the power supply and the controlled device to be connected according to the second electrical signal.
[0029] In the embodiment of the utility model, the controller 2 is a module for communicating with the host computer 7. For example, the controller 2 may be a microcontroller unit (MCU). The communication circuit 3 is a module for signal conversion to realize communication between the controller 2 and the host computer 7. The optocoupler isolation circuit 4 is a module for protecting the controller 2 to prevent the high voltage of the power supply from entering the controller 2 and damaging the controller 2.
[0030] Specifically, the power circuit 11 is connected to the external power supply 8, and is used to receive the power supply voltage output by the external power supply 8, and to power the controller 2, part of the optical coupling isolation circuit 4, and part of the communication circuit 3. Other parts of the digital output module that need to be powered can be powered by the power circuit 11, or they can be connected to other external power supplies to power them.
[0031] The communication circuit 3 is connected to the controller 2 and the host computer 7, and the controller 2 communicates with the host computer 7 through the communication circuit 3. When the system is running, the controller 2 continuously listens to the Modbus polling from the host computer 7 and responds in time, and updates the level of the digital output pin of the controller 2 in the register according to the Modbus polling of the host computer 7. The communication circuit 3 can automatically send and receive signals, which improves the communication efficiency between the controller 2 and the host computer 7. The communication circuit 3 can also isolate the controller 2 from the data transmission bus, which can effectively isolate the impact of transient high voltage on the controller 2 and prevent the controller 2 from being damaged. The communication circuit 3 can achieve a maximum isolation protection of 3.75KVrms.
[0032] The optocoupler isolation circuit 4 is connected to the controller 2, and the optocoupler isolation circuit 4 outputs a first electrical signal according to the level of the digital output pin of the controller 2. Exemplarily, when the level of the digital output pin of the controller 2 is low, the first electrical signal output by the optocoupler isolation circuit 4 can be a high-level signal; when the level of the digital output pin of the controller 2 is high, the first electrical signal output by the optocoupler isolation circuit 4 can be a low-level signal. The optocoupler isolation circuit 4 can isolate the power supply connected to the switch circuit 6 from the controller 2 to prevent the high voltage of the power supply from entering the controller 2, thereby damaging the controller 2.
[0033] The signal amplifier circuit 5 is connected to the optocoupler isolation circuit 4. The signal amplifier circuit 5 is mainly used to amplify the first electrical signal output by the optocoupler isolation circuit 4 to prevent the first electrical signal from being insufficient to drive the switch circuit 6 to perform a corresponding action. The signal amplifier circuit 5 is also connected to the switch circuit 6. The signal amplifier circuit 5 amplifies the first electrical signal and outputs a second electrical signal to the switch circuit 6. When the first electrical signal output by the optocoupler isolation circuit 4 is a high-level signal, the signal amplifier circuit 5 amplifies the first electrical signal and outputs the second electrical signal; when the first electrical signal output by the optocoupler isolation circuit 4 is a low-level signal, the signal amplifier circuit 5 has no output.
[0034] The switch circuit 6 is connected to the power supply and the controlled device, and the power supply can supply power to the controlled device through the switch circuit 6. When the signal amplification circuit 5 outputs the second electrical signal to the switch circuit 6, the switch circuit 6 controls the power supply to be connected to the controlled device, and the controlled device works. Otherwise, the switch circuit 6 controls the power supply to be disconnected from the controlled device, and the controlled device does not work.
[0035] The technical solution of this embodiment provides a digital quantity output module, which realizes digital control technology by setting a power supply circuit, a controller, a communication circuit, an optical coupling isolation circuit, a signal amplification circuit and a switch circuit. At the same time, by setting an optical coupling isolation circuit and a communication circuit, the interference signal of the power supply and the interference signal on the data transmission bus are isolated, avoiding the problem of reduced service life of the controller, etc., which leads to increased costs. The signal amplification circuit amplifies the first electrical signal output by the optical coupling isolation circuit, avoiding the problem that the first electrical signal is insufficient to drive the switch circuit to perform a corresponding action.
[0036] Continue to refer Figure 1 The digital output module also includes: a first isolated power supply circuit 12 and a second isolated power supply circuit 13.
[0037] The input end of the first isolated power supply circuit 12 is connected to the power supply circuit 11, and the output end of the first isolated power supply circuit 12 is connected to the optocoupler isolation circuit 4, the signal amplifying circuit 5 and the switching circuit 6, and is used to power part of the optocoupler isolation circuit 4, the signal amplifying circuit 5 and the switching circuit 6.
[0038] An input end of the second isolated power supply circuit 13 is connected to the power supply circuit 11 , and an output end of the second isolated power supply circuit 13 is connected to the communication circuit 3 , so as to supply power to a part of the communication circuit 3 .
[0039] In the embodiment of the utility model, the first isolated power supply circuit 12 is a module for isolating the power supply circuit 11 from the power supply connected to the switch circuit 6, so as to prevent some interference signals of the power supply from damaging the power supply circuit 11. The second isolated power supply circuit 13 is a module for isolating the power supply circuit 11 from the data transmission bus, so as to prevent the interference signals on the data transmission bus from damaging the power supply circuit 11.
[0040] Specifically, the first isolated power supply circuit 12 is connected to the power supply circuit 11, and is used to obtain the input voltage, and the output voltage is used to power part of the optocoupler isolation circuit 4, the signal amplification circuit 5 and the switch circuit 6. The first isolated power supply circuit 12 can isolate the power supply circuit 11 from the power supply connected to the switch circuit 6 to prevent some interference signals of the power supply from damaging the power supply circuit 11. The second isolated power supply circuit 13 is connected to the power supply circuit 11, and is used to obtain the input voltage, and the output voltage is used to power part of the communication circuit 3. The second isolated power supply circuit 13 can isolate the power supply circuit 11 from the data transmission bus to prevent interference signals on the data transmission bus from damaging the power supply circuit 11. This arrangement can protect the power supply circuit 11.
[0041] Figure 2 This is a schematic diagram of the structure of a power supply circuit, a first isolated power supply circuit, a controller, an optical coupling isolation circuit, a signal amplification circuit and a switch circuit provided by an embodiment of the utility model. Figure 2 As shown, the optocoupler isolation circuit 4 includes an optocoupler isolation chip U1; the output end of the first isolated power supply circuit 12 includes a first positive output end VO+ and a first negative output end VO-.
[0042] The optocoupler isolation chip U1 includes N independent optocouplers, each of which includes a first terminal 1A, a second terminal 1K, a third terminal 1C and a fourth terminal 1E; the first terminal 1A is connected to the power supply circuit 11, the second terminal 1K is connected to the digital output pin of the controller 2, the third terminal 1C is connected to the first positive output terminal VO+, and the fourth terminal 1E is connected to the first negative output terminal VO-; the fourth terminal 1E outputs a first electrical signal according to the level of the digital output pin of the controller 2.
[0043] Specifically, the optocoupler isolation chip U1 may include N independent optocouplers. For example, the optocoupler isolation chip U1 may include 4 independent optocouplers. The first end 1A of each optocoupler is connected to the power supply circuit 11. The output voltage of the power supply circuit 11 can also be converted into a 3.3V voltage through a linear voltage regulator circuit. The first end 1A of each optocoupler can be connected to this 3.3V voltage. The third end 1C is connected to the first positive output end VO+ of the first isolated power supply circuit 12. The power supply circuit 11 and the first isolated power supply circuit 12 respectively supply power to the optocoupler isolation chip U1.
[0044] The second end 1K of each optocoupler is connected to the digital output pin of the controller 2, and the fourth end 1E is connected to the signal amplification circuit 5. The fourth end 1E outputs a first electrical signal to the signal amplification circuit 5 according to the level of the digital output pin of the controller 2. Exemplarily, when the level of the digital output pin of the controller 2 is low, each optocoupler is in a conducting state, and the fourth end 1E outputs a voltage signal that is the same as the voltage of the first positive output terminal VO+ to the signal amplification circuit 5. When the level of the digital output pin of the controller 2 is high, each optocoupler is in an off state, and the fourth end 1E outputs a voltage signal that is the same as the voltage of the first negative output terminal VO- to the signal amplification circuit 5. The second end 1K of each independent optocoupler in the optocoupler isolation chip U1 can be connected to different digital output pins of the controller 2, and the optocoupler isolation chip U1 including N independent optocouplers can receive the levels of N digital output pins at most, and each optocoupler outputs a first electrical signal corresponding to the level of the digital output pin to the signal amplification circuit 5.
[0045] Continue to refer Figure 2 , the optocoupler isolation circuit 4 may also include: resistor R1, resistor R2, resistor R3, resistor R4, resistor R5, resistor R6, resistor R7 and resistor R8. Resistors R1, R2, R3 and R4 are all connected between the first end 1A of the optocoupler isolation chip U1 and the power supply circuit 11, and mainly play a current limiting role. Resistors R5, R6, R7 and R8 are connected between the fourth end 1E of the optocoupler isolation chip U1 and the signal amplification circuit 5, and mainly play a current limiting role. Since the optocoupler isolation chip U1 includes 4 independent optocouplers at this time, the optocoupler isolation circuit 4 includes 8 resistors; if the optocoupler isolation chip U1 includes N independent optocouplers, the optocoupler isolation circuit 4 may include 2N resistors.
[0046] Continue to refer Figure 2 , the signal amplifying circuit 5 includes a Darlington transistor array U2.
[0047] The Darlington transistor array U2 includes M independent Darlington transistors, the power supply terminal VCC of the Darlington transistor array U2 is connected to the first positive output terminal VO+, and the ground terminal GND1 of the Darlington transistor array U2 is connected to the first negative output terminal VO-; the input terminal 1B of each Darlington transistor is connected to the optical coupling isolation circuit 4, and the output terminal 1D of each Darlington transistor is connected to the switching circuit 6, which is used to amplify the first electrical signal and output the second electrical signal to the switching circuit 6 at the output terminal 1D of the Darlington transistor.
[0048] In the embodiment of the utility model, the Darlington transistor is a special amplifier circuit formed by two transistors connected in cascade.
[0049] Specifically, the Darlington transistor array U2 includes M independent Darlington transistors. Exemplarily, the Darlington transistor array U2 may include 8 independent Darlington transistors. The power supply terminal VCC of the Darlington transistor array U2 is connected to the first positive output terminal VO+ of the first isolated power supply circuit 12, and the ground terminal GND1 of the Darlington transistor array U2 is connected to the first negative output terminal VO- of the first isolated power supply circuit 12. The first isolated power supply circuit 12 supplies power to the Darlington transistor array U2.
[0050] The input terminal 1B of each independent Darlington transistor is connected to the fourth terminal 1E of the optocoupler isolation chip U1, and the Darlington transistor amplifies the first electrical signal output from the fourth terminal 1E of the optocoupler isolation chip U1. The output terminal 1D of the Darlington transistor outputs the amplified first electrical signal, that is, the second electrical signal to the switch circuit 6. Exemplarily, the fourth terminal 1E outputs a voltage signal that is the same as the voltage of the first positive output terminal VO+ to the input terminal 1B of the Darlington transistor, and the Darlington transistor amplifies the voltage signal and transmits it to the switch circuit; the fourth terminal 1E outputs a voltage signal that is the same as the voltage of the first negative output terminal VO- to the input terminal 1B of the Darlington transistor, and the Darlington transistor has no output, and the switch circuit 6 has no input drive signal.
[0051] Continue to refer Figure 2 , the switch circuit 6 includes: a relay.
[0052] The relay is connected to the signal amplifying circuit 5 , and is also connected to the power supply and the controlled device, and is used to control the power supply and the controlled device to be connected according to the second electrical signal.
[0053] In the embodiment of the present utility model, the relay is an electrical switching device that controls the opening and closing of one or more circuits through electromagnetic induction or electronic control.
[0054] Specifically, the switch circuit 6 includes a relay, the output terminal 1D of the Darlington transistor is connected to the relay, and the relay is also connected to the power supply and the controlled device. When the Darlington transistor outputs the second electrical signal, the relay is turned on, the power supply is connected to the controlled device, and the controlled device works. When the Darlington transistor has no output, the relay is turned off, the power supply is disconnected from the controlled device, and the controlled device does not work.
[0055] The digital output module can include 16 independent switch circuits 6, refer to Figure 2 The optocoupler isolation chip U1 includes 4 independent optocouplers, and the Darlington transistor array U2 includes 8 independent Darlington transistors, so the digital output module can include 4 optocoupler isolation chips U1 and 2 Darlington transistor arrays U2.
[0056] Figure 3This is a schematic diagram of the structure of an independent optocoupler, Darlington transistor, relay and controller provided by the embodiment of the utility model. Figure 3 As shown, a light-emitting diode is connected between the first terminal 1A and the second terminal 1K of the optocoupler. When the level of the digital output pin of the controller 2 is low, the light-emitting diode in the optocoupler is in the on state, and the diode between the third terminal 1C and the fourth terminal 1E is also turned on. The fourth terminal 1E outputs a first electrical signal with the same voltage as the first positive output terminal VO+ to the Darlington transistor. The Darlington transistor amplifies the first electrical signal and outputs a second electrical signal to the relay, and the relay is turned on. When the level of the digital output pin of the controller 2 is high, the light-emitting diode in the optocoupler is in the off state, and the diode between the third terminal 1C and the fourth terminal 1E is also turned off. The fourth terminal 1E outputs a first electrical signal with the same voltage as the first negative output terminal VO- to the Darlington transistor. The Darlington transistor has no output, and the relay is turned off.
[0057] Figure 4 Schematic diagram of a structure of a power supply circuit connected to an external power supply provided by an embodiment of the utility model. Figure 4 As shown, the power circuit 11 includes a power chip U3, a common mode inductor L1, a diode D1 and a first voltage regulator D4.
[0058] A first end of the common-mode inductor L1 is connected to the positive output end of the external power supply 8, a second end of the common-mode inductor L1 is connected to the negative output end of the external power supply 8, a third end of the common-mode inductor L1 is connected to the positive electrode of the diode D1, and a fourth end of the common-mode inductor L1 is grounded GND; it is used to filter the supply voltage of the external power supply 8.
[0059] The cathode of the diode D1 is connected to the input terminal VIN of the power chip U3 to prevent the external power supply 8 from being reversely connected and damaging the power chip U3.
[0060] A cathode of the first voltage regulator tube D4 is connected to the output terminal OUT of the power supply circuit 11 , and an anode of the first voltage regulator tube D4 is grounded GND.
[0061] In the embodiment of the present invention, the common mode inductor L1 is a component used to filter common mode electromagnetic interference signals.
[0062] Specifically, the first end of the common-mode inductor 11 is connected to the positive output end of the external power supply 8, and the second end of the common-mode inductor L1 is connected to the negative output end of the external power supply 8. The external power supply 8 outputs a supply voltage to the power supply circuit 11. Exemplarily, the supply voltage output by the external power supply 8 may be 24V, 36V, or 48V. The common-mode inductor 11 may filter the supply voltage output by the external power supply 8, improve the power purity, and protect other electronic components of the power supply circuit 11.
[0063] The anode of the diode D1 is connected to the third end of the common mode inductor L1, and the cathode of the diode D1 is connected to the input terminal VIN of the power chip U3. The diode D1 has unidirectional conductivity, which can prevent the power chip U3 from being damaged when the external power supply 8 is reversely connected. The diode D1 can be a Schottky diode, which has an extremely low conduction voltage drop and can greatly reduce power consumption compared to ordinary diodes.
[0064] The cathode of the first voltage regulator D4 is connected to the output terminal OUT of the power supply circuit 11, and the anode of the first voltage regulator D4 is grounded GND. The first voltage regulator D4 can prevent the output voltage of the output terminal OUT of the power supply circuit 11 from exceeding a certain voltage value, effectively avoiding the output of high voltage when the power chip U3 fails, thereby damaging the controller.
[0065] Continue to refer Figure 4 , the power supply circuit 11 also includes a diode D3, an inductor L2 and a capacitor C5; the power supply chip U3 includes an input terminal VIN, a feedback terminal FB, an output terminal VOUT and a ground terminal D, the cathode of the diode D3 is connected to the output terminal VOUT, the anode of the diode D3 is grounded GND, one end of the inductor L2 is connected to the cathode of the diode D3, the other end of the inductor L2 is connected to the feedback terminal FB, one end of the capacitor C5 is also connected to the feedback terminal FB, and the other end of the capacitor C5 is grounded GND. The power supply chip U3 can be a step-down chip. The power supply chip U3 cooperates with the diode D3, the inductor L2 and the capacitor C5 to realize the step-down processing of the supply voltage output by the external power supply 8. For example, the output voltage of the output terminal OUT of the power supply circuit 11 can be 5V.
[0066] The power supply circuit 11 may also include a second voltage regulator tube D2. The cathode of the second voltage regulator tube D2 is connected to the third end of the common mode inductor L1, and the anode of the second voltage regulator tube D2 is grounded GND. The second voltage regulator tube D2 can stabilize the supply voltage output by the external power supply 8 at a first voltage value. For example, the first voltage value may be 24V. The cathode of the second voltage regulator tube D2 may be connected to the first isolated power supply circuit and the second isolated power supply circuit, and is used to output the first voltage value to the input end of the first isolated power supply circuit and the input end of the second isolated power supply circuit, and provide input voltage for the first isolated power supply circuit and the second isolated power supply circuit.
[0067] Continue to refer Figure 4The power supply circuit 11 may also include capacitors C1, C2, C3, C4, C6, C7, C8 and a fuse F1; capacitors C1, C2, C3, C4, C6, C7 and C8 mainly play a filtering role in the circuit, and the fuse F1 mainly protects the power supply circuit 11. When a fault occurs in the power supply circuit 11 and the loop current is too high, the fuse F1 can be blown to disconnect the power supply circuit 11, thereby effectively protecting other electronic components of the power supply circuit 11.
[0068] Figure 5 Schematic diagram of a structure of a power supply circuit connected to a first isolated power supply circuit provided by an embodiment of the utility model. Figure 5 As shown, the first isolated power supply circuit 12 includes a first power isolation chip U4, the input end V1+ of the first power isolation chip U4 serves as the input end of the first isolated power supply circuit 12, and is connected to the power supply circuit, the output end of the first power isolation chip U4 serves as the output end of the first isolated power supply circuit 12, and is connected to the optocoupler isolation circuit, the signal amplification circuit and the switching circuit, and is used to power part of the optocoupler isolation circuit, the signal amplification circuit and the switching circuit.
[0069] Specifically, the first power isolation chip U4 includes an input terminal V1+, a negative input terminal V1- and an output terminal, and the output terminal of the first power isolation chip U4 includes a positive output terminal VO1+ and a negative output terminal VO1-. The input terminal V1+ of the first power isolation chip U2 serves as the input terminal of the first isolated power supply circuit 12, and is connected to the negative pole of the second voltage regulator tube D2. The input terminal V1+ of the first power isolation chip U2 inputs a first voltage value. The negative input terminal V1- of the first power isolation chip U2 is grounded GND. The output terminal of the first power isolation chip U2 serves as the output terminal of the first isolated power supply circuit 12, the positive output terminal VO1+ of the first power isolation chip U4 serves as the first positive output terminal of the first isolated power supply circuit 12, and the negative output terminal VO1- of the first power isolation chip U4 serves as the first negative output terminal of the first isolated power supply circuit 12, and is used to power part of the optocoupler isolation circuit, the signal amplification circuit and the switch circuit.
[0070] Continue to refer Figure 5 The first isolated power supply circuit 12 may further include a capacitor C9 and a capacitor C10, which are connected in parallel between the positive output terminal VO1+ and the negative output terminal VO1-, and mainly play a filtering role on the output voltage of the first power isolation chip U4.
[0071] Figure 6 Schematic diagram of a structure of a power supply circuit connected to a second isolated power supply circuit provided by an embodiment of the utility model. Figure 6As shown, the second isolated power supply circuit 13 includes a second power isolation chip U5, the input end V2+ of the second power isolation chip U5 serves as the input end of the second isolated power supply circuit 13, connected to the power supply circuit, and the output end of the second power isolation chip U5 serves as the output end of the second isolated power supply circuit 13, connected to the communication circuit, and is used to power part of the communication circuit.
[0072] Specifically, the second power isolation chip U5 includes an input terminal V2+, a negative input terminal V2- and an output terminal, and the output terminal of the second power isolation chip U5 includes a positive output terminal VCOM and a negative output terminal GCOM. The input terminal V2+ of the second power isolation chip U5 serves as the input terminal of the second isolated power supply circuit 13, is connected to the negative pole of the second voltage regulator tube D2, and the input terminal V2+ of the second power isolation chip U5 inputs a first voltage value. The negative input terminal V2- of the second power isolation chip U5 is grounded GND. The output terminal of the second power isolation chip U5 serves as the output terminal of the second isolated power supply circuit 13, and is used to power part of the communication circuit.
[0073] Continue to refer Figure 6 The second isolated power supply circuit 13 also includes a capacitor C11 and a capacitor C12. The capacitor C11 and the capacitor C12 are connected in parallel between the positive output terminal VCOM and the negative output terminal GCOM, and mainly play a filtering role on the output voltage of the second power isolation chip U5.
[0074] Figure 7 This is a schematic diagram of the structure of a communication circuit connected to a controller and a host computer provided by an embodiment of the utility model. Figure 7 As shown, the communication circuit 3 includes: a digital isolation chip U6, an RS485 chip U7, a first resistor R9, a second resistor R10 and a third resistor R11; the output end of the second isolation power supply circuit includes a second positive output end and a second negative output end.
[0075] The first power supply terminal VDDA of the digital isolation chip U6 is connected to the output end of the power supply circuit, and the first ground terminal GNDA of the digital isolation chip U6 is grounded GND; the second power supply terminal VDDB of the digital isolation chip U6 is connected to the second positive output end, and the second ground terminal GNDB of the digital isolation chip U6 is connected to the second negative output end.
[0076] The first output terminal VO1 and the first input terminal VI2 of the digital isolation chip U6 are respectively connected to the signal receiving terminal RXD and the signal sending terminal TXD of the controller 2; the second input terminal VI1 of the digital isolation chip U6 is connected to the receiving pin RO of the RS485 chip U7, and the second output terminal VO2 of the digital isolation chip U6 is connected to the sending pin DI of the RS485 chip U7.
[0077] The receive enable pin RE and the transmit enable pin DE of the RS485 chip U7 are both connected to the first end of the first resistor R9, and the second end of the first resistor R9 is connected to the second positive output end; the power pin VCC1 of the RS485 chip U7 is connected to the second positive output end; the ground pin GNDC of the RS485 chip U7 is connected to the second negative output end; the second resistor R10 is connected between the first communication pin A and the second positive output end of the RS485 chip U7, the third resistor R11 is connected between the second communication pin B and the second negative output end of the RS485 chip U7, and the first communication pin A and the second communication pin B are also connected to the host computer 7 respectively.
[0078] Specifically, the output end of the second power isolation chip includes a positive output end VCOM and a negative output end GCOM. The positive output end VCOM of the second power isolation chip serves as the second positive output end of the second isolated power circuit, and the negative output end GCOM of the second power isolation chip serves as the second negative output end of the second isolated power circuit.
[0079] The first power supply terminal VDDA of the digital isolation chip U6 can be connected to the output terminal OUT of the power supply circuit. The output voltage of the output terminal OUT of the power supply circuit can output a 3.3V voltage through a linear voltage regulator circuit. The first power supply terminal VDDA of the digital isolation chip U6 can also be connected to this 3.3V voltage. The first ground terminal GNDA of the digital isolation chip U6 is grounded GND; the second power supply terminal VDDB of the digital isolation chip U6 is connected to the positive output terminal VCOM of the second power isolation chip, and the second ground terminal GNDB of the digital isolation chip U6 is connected to the negative output terminal GCOM of the second power isolation chip. The power supply circuit and the second isolated power supply circuit respectively supply power to the digital isolation chip U6.
[0080] The power pin VCC1 of the RS485 chip U7 is connected to the positive output terminal VCOM of the second power isolation chip; the ground pin GNDC of the RS485 chip U7 is connected to the negative output terminal GCOM of the second power isolation chip, and the second isolated power supply circuit supplies power to the RS485 chip U7.
[0081] The receiving enable pin RE and the transmitting enable pin DE of the RS485 chip U7 are both connected to the first end of the first resistor R9, and the second end of the first resistor R9 is connected to the positive output terminal VCOM of the second power isolation chip; the receiving enable pin RE is a low level enable pin, and the transmitting enable pin DE is a high level enable pin. When the first communication pin A and the second communication pin B receive the differential data signal sent by the host computer 7, the RS485 chip U7 automatically pulls the receiving enable pin RE and the transmitting enable pin DE low, otherwise the receiving enable pin RE and the transmitting enable pin DE are pulled to a high level through the first resistor R9.
[0082] When the controller 2 communicates with the host computer 7, the host computer 7 can send a differential data signal to the first communication pin A and the second communication pin B of the RS485 chip U7 through the differential data bus. At this time, the RS485 chip U7 pulls down the receiving enable pin RE and the sending enable pin DE, so the receiving enable pin RE is effectively enabled, and the sending enable pin DE is invalidly enabled. The receiving pin RO of the RS485 chip U7 receives the differential data signal from the first communication pin A and the second communication pin B, and transmits it to the signal receiving terminal RXD of the controller 2 through the second input terminal VI1 and the first output terminal VO1 of the digital isolation chip U6. The controller 2 listens to the Modbus polling from the host computer 7 and updates the level of the digital output pin of the controller 2 in the register.
[0083] When the controller 2 replies to the host computer 7 according to the Modbus polling of the host computer 5, the sending enable pin DE is enabled effectively and the receiving enable pin RE is enabled invalidly. The signal sending end TXD of the controller 2 sends a signal to the sending pin DI of the RS485 chip U7 through the first input end VI2 and the second output end VO2 of the digital isolation chip U6, and the first communication pin A and the second communication pin B send the signal received by the sending pin DI to the host computer 7 in the form of a differential data signal.
[0084] The second resistor R10 is connected between the first communication pin A and the positive output terminal VCOM of the second power isolation chip, and the third resistor R11 is connected between the second communication pin B and the negative output terminal GCOM of the second power isolation chip. The setting of the second resistor R10 and the third resistor R11 can pull the first communication pin A to a high level and the second communication pin B to a low level when the differential data bus is idle. At this time, the RS485 chip U7 defaults that the controller 2 does not communicate with the host computer 7, thereby avoiding the interference signal on the differential data bus causing the controller 2 to communicate with the host computer 7 incorrectly.
[0085] Continue to refer Figure 7 The communication circuit 3 further includes a capacitor C22 and a capacitor C23. The capacitor C22 and the capacitor C23 filter the input voltages of the first power supply terminal VDDA and the second power supply terminal VDDB of the digital isolation chip U6 respectively.
[0086] Continue to refer Figure 7 The communication circuit 3 further includes: a transient suppression diode Z1, a first magnetic bead R12 and a second magnetic bead R13.
[0087] A first end of the transient suppression diode Z1 is connected to a first communication pin A of the RS485 chip U7, a second end of the transient suppression diode Z1 is connected to a second communication pin B of the RS485 chip U7, and a third end of the transient suppression diode Z1 is connected to the second negative output end.
[0088] The first magnetic bead R12 is connected between the first communication pin A of the RS485 chip U7 and the host computer 7 , and the second magnetic bead R13 is connected between the second communication pin B of the RS485 chip U7 and the host computer 7 .
[0089] In the embodiment of the utility model, the transient voltage suppressor diode Z1 is an electronic component that plays a protective role and can absorb the peak voltage to protect other electronic components in the circuit. The magnetic bead is an electronic component that can filter out high-frequency noise or peak interference.
[0090] Specifically, the transient suppression diode Z1 can absorb the peak voltage on the differential data bus, thereby protecting the RS485 chip U7. The magnetic beads R12 and R13 can filter out high-frequency noise or peak interference on the differential data bus.
[0091] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0092] The above specific implementations do not constitute a limitation on the protection scope of the present utility model. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present utility model shall be included in the protection scope of the present utility model.
Claims
1. A digital output module, It is characterized in that include: Power supply circuit, controller, communication circuit, optocoupler isolation circuit, signal amplification circuit and switching circuit; The power supply circuit is connected to the controller, the optical coupling isolation circuit and the communication circuit, and is used to supply power to the controller, part of the optical coupling isolation circuit and the communication circuit; The communication circuit is connected to the controller, and the communication circuit is also connected to a host computer. The controller communicates with the host computer through the communication circuit and continuously updates the level of the digital output pin of the controller; The optocoupler isolation circuit is connected to the controller, and the optocoupler isolation circuit is also connected to the signal amplification circuit, and is used to output a first electrical signal to the signal amplification circuit according to the level of the digital output pin of the controller; The signal amplifying circuit is connected to the switch circuit, and is used to amplify the first electrical signal and output a second electrical signal to the switch circuit; The switch circuit is also connected to the power supply and the controlled device; and is used to control the power supply and the controlled device to be connected according to the second electrical signal.
2. The digital output module according to claim 1, It is characterized in that Also includes: a first isolated power supply circuit and a second isolated power supply circuit; The input end of the first isolated power supply circuit is connected to the power supply circuit, and the output end of the first isolated power supply circuit is connected to the optical coupler isolation circuit, the signal amplification circuit and the switch circuit, so as to supply power to part of the optical coupler isolation circuit, the signal amplification circuit and the switch circuit; An input end of the second isolated power supply circuit is connected to the power supply circuit, and an output end of the second isolated power supply circuit is connected to the communication circuit, for supplying power to a portion of the communication circuit.
3. The digital output module according to claim 2, It is characterized in that The optocoupler isolation circuit includes an optocoupler isolation chip; the output end of the first isolated power supply circuit includes a first positive output end and a first negative output end; The optocoupler isolation chip includes N independent optocouplers, each of which includes a first end, a second end, a third end and a fourth end; the first end is connected to the power supply circuit, the second end is connected to the digital output pin of the controller, the third end is connected to the first positive output end, and the fourth end is connected to the first negative output end; the fourth end outputs the first electrical signal according to the level of the digital output pin of the controller.
4. The digital output module according to claim 2, It is characterized in that The signal amplification circuit includes a Darlington transistor array; The Darlington transistor array includes M independent Darlington transistors, the power supply end of the Darlington transistor array is connected to the first positive output end, and the ground end of the Darlington transistor array is connected to the first negative output end; the input end of each Darlington transistor is connected to the optocoupler isolation circuit, and the output end of each Darlington transistor is connected to the switch circuit, so as to amplify the first electrical signal and output the second electrical signal to the switch circuit at the output end of the Darlington transistor.
5. The digital output module according to claim 1, It is characterized in that The switch circuit comprises: a relay; The relay is connected to the signal amplifying circuit, and is also connected to the power supply and the controlled device, and is used to control the power supply and the controlled device to be connected according to the second electrical signal.
6. The digital output module according to claim 1, It is characterized in that The power supply circuit includes a power supply chip, a common mode inductor, a diode and a first voltage regulator tube; The first end of the common-mode inductor is connected to the positive output end of the external power supply, the second end of the common-mode inductor is connected to the negative output end of the external power supply, the third end of the common-mode inductor is connected to the positive electrode of the diode, and the fourth end of the common-mode inductor is grounded; used for filtering the power supply voltage of the external power supply; The cathode of the diode is connected to the input end of the power chip to prevent the external power supply from being reversely connected and damaging the power chip; The cathode of the first voltage regulator tube is connected to the output end of the power supply circuit, and the anode of the first voltage regulator tube is grounded.
7. The digital output module according to claim 2, It is characterized in that The first isolated power supply circuit includes a first power isolation chip, the input end of the first power isolation chip serves as the input end of the first isolated power supply circuit and is connected to the power supply circuit, the output end of the first power isolation chip serves as the output end of the first isolated power supply circuit and is connected to the optocoupler isolation circuit, the signal amplification circuit and the switching circuit, and is used to power part of the optocoupler isolation circuit, the signal amplification circuit and the switching circuit.
8. The digital output module according to claim 2, It is characterized in that The second isolated power supply circuit includes a second power isolation chip, the input end of the second power isolation chip serves as the input end of the second isolated power supply circuit and is connected to the power supply circuit, and the output end of the second power isolation chip serves as the output end of the second isolated power supply circuit and is connected to the communication circuit for powering part of the communication circuit.
9. The digital output module according to claim 2, It is characterized in that The communication circuit includes: a digital isolation chip, an RS485 chip, a first resistor, a second resistor and a third resistor; the output end of the second isolation power supply circuit includes a second positive output end and a second negative output end; The first power supply terminal of the digital isolation chip is connected to the output terminal of the power supply circuit, and the first ground terminal of the digital isolation chip is grounded; the second power supply terminal of the digital isolation chip is connected to the second positive output terminal, and the second ground terminal of the digital isolation chip is connected to the second negative output terminal; The first output end and the first input end of the digital isolation chip are respectively connected to the signal receiving end and the signal sending end of the controller; the second input end of the digital isolation chip is connected to the receiving pin of the RS485 chip, and the second output end of the digital isolation chip is connected to the sending pin of the RS485 chip; The receiving enable pin and the transmitting enable pin of the RS485 chip are both connected to the first end of the first resistor, and the second end of the first resistor is connected to the second positive output end; the power pin of the RS485 chip is connected to the second positive output end; the ground pin of the RS485 chip is connected to the second negative output end; the second resistor is connected between the first communication pin of the RS485 chip and the second positive output end, the third resistor is connected between the second communication pin of the RS485 chip and the second negative output end, and the first communication pin and the second communication pin are also connected to the host computer respectively.
10. The digital output module according to claim 9, It is characterized in that The communication circuit further includes: a transient suppression diode, a first magnetic bead and a second magnetic bead; The first end of the transient suppression diode is connected to the first communication pin of the RS485 chip, the second end of the transient suppression diode is connected to the second communication pin of the RS485 chip, and the third end of the transient suppression diode is connected to the second negative output end; The first magnetic bead is connected between the first communication pin of the RS485 chip and the host computer, and the second magnetic bead is connected between the second communication pin of the RS485 chip and the host computer.
