Control circuit simultaneously supporting PNP output and NPN output and industrial personal computer
By designing a control circuit that includes an NPN transistor, a PNP transistor, an NPN transistor, a first diode, and a second diode, the problems of incorrect connection and interface occupation of NPN and PNP outputs in industrial control computers are solved. This allows for simultaneous support of two output modes, simplifies wiring, and saves I/O interfaces.
Patent Information
- Application Number
- CN202520938293.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2035-05-13
AI Technical Summary
In existing technologies, industrial control computers need to be wired separately when using different types of sensors, which can easily lead to incorrect connection of NPN and PNP outputs and occupies more I/O interface space.
Design a control circuit that uses a combination of NPN transistors, PNP transistors, NPN transistors, a first diode, and a second diode to simultaneously support PNP and NPN outputs, thereby reducing wiring errors and I/O interface occupancy.
It enables simultaneous support for PNP and NPN outputs in industrial control computers, simplifies the wiring process, reduces the occupation of I/O interfaces, and improves interface utilization.
Smart Images

Figure CN223808660U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to industrial computer control technical field, especially a control circuit and industrial computer that support PNP output and NPN output simultaneously. BACKGROUND
[0002] In the field of industrial automation, different sensors can have different output configurations, and there are various output signals, among which solid-state output is the most common discrete quantity output type, which is controlled by a transistor and is an electronic switch for controlling the on-off of current. Because the transistor can be divided into NPN and PNP types, the person skilled in the art usually adopts two signal interfaces and simultaneously matches switches to switch between the two modes to meet the needs of a wider variety of scene applications. The shortcomings of this method are also relatively obvious. It is not convenient to distinguish between NPN output and PNP output when field wiring is used, and it is easy to make mistakes. In addition, the connection of the signal output port also requires more pin numbers, occupying more I / O interface space of the product.
[0003] Therefore, it is necessary to develop a control circuit and industrial computer that support PNP output and NPN output simultaneously to overcome the above technical problems. SUMMARY
[0004] To solve the above technical problems, the utility model discloses a kind of control circuit and industrial computer that support PNP output and NPN output simultaneously.
[0005] The first invention purpose of the utility model is to provide a kind of control circuit that support PNP output and NPN output simultaneously.
[0006] The second invention purpose of the utility model is to provide a kind of industrial computer.
[0007] To achieve the above first invention purpose, the utility model provides a kind of control circuit that support PNP output and NPN output simultaneously, including control signal input end, first resistance, second resistance, first NPN type triode, PNP type triode, second NPN type triode, first diode, second diode, output common end and output signal end.
[0008] First resistance is connected between the control signal input end and the base of the first NPN type triode, and the first end of the first resistance is grounded through the second resistance.
[0009] The emitter of the first NPN type triode is grounded, the collector of the first NPN type triode and the output common end are connected with third resistance and first diode in series, and the positive pole of the first diode is connected with the output common end.
[0010] A fourth resistor is connected in series between the collector of the first NPN transistor and the base of the PNP transistor, a first end of the fourth resistor is also connected to a first end of the third resistor, an emitter of the PNP transistor is connected to a negative pole of the first diode, a collector of the PNP transistor is connected to an output signal terminal;
[0011] A base of the second NPN transistor is connected to a control signal input terminal, a collector of the second NPN transistor is connected to a collector of the PNP transistor, an emitter of the second NPN transistor is connected to a positive pole of a second diode, a negative pole of the second diode is connected to an output common terminal.
[0012] Preferably, a fifth resistor is arranged between the base of the second NPN transistor and the control signal input terminal.
[0013] Preferably, when a PNP output is needed, the output common terminal is connected to a power supply.
[0014] The second diode reversely isolates the power supply.
[0015] Preferably, when the control signal input terminal is input low level, the base of the first NPN transistor and the base of the second NPN transistor are both low level, the first NPN transistor and the second NPN transistor are both cut off.
[0016] The base of the PNP transistor is pulled up by the power supply connected to the output common terminal through the first diode, the third resistor and the fourth resistor, the base of the PNP transistor is at the same voltage as the emitter of the PNP transistor, the PNP transistor is cut off, the output signal terminal and the output common terminal are disconnected, and the output signal terminal has no output.
[0017] Preferably, when the control signal input terminal is input high level, the base of the first NPN transistor is high level, and the first NPN transistor is turned on.
[0018] The base of the PNP transistor is pulled to low level by the fourth resistor, the PNP transistor is turned on, the output signal terminal and the output common terminal are turned on through the PNP transistor, the output signal terminal outputs high level and forms a PNP output.
[0019] Preferably, when an NPN output is needed, the output common terminal is connected to ground.
[0020] Preferably, when the control signal input end is input low level, the base of the first NPN triode is low level and is cut off, the base of the PNP triode is connected with the emitter of the PNP triode through the third resistor and the fourth resistor, the base of the PNP triode is equal to the voltage of the emitter of the PNP triode, the PNP triode is cut off, the output signal end and the output common end are disconnected, and the output signal end has no output.
[0021] Preferably, when the control signal input end is input high level, the base of the first NPN triode is high level and is turned on, the base of the PNP triode is grounded, the emitter of the PNP triode is connected with the output common end through the first diode, the emitter of the PNP triode is grounded, the base of the PNP triode is equal to the voltage of the emitter of the PNP triode, and the PNP triode is cut off.
[0022] The base of the second NPN triode is high level and is turned on, and the output signal end and the output common end are turned on through the second NPN triode.
[0023] The output signal end outputs low level and forms NPN output.
[0024] Preferably, the output signal end is connected between the collector of the PNP triode and the collector of the second NPN triode.
[0025] Based on the same inventive principle, in order to achieve the above-mentioned second object, the utility model provides a control circuit which simultaneously supports PNP output and NPN output.
[0026] Compared with the prior art, the utility model has the following technical effects:
[0027] The first NPN triode, the PNP triode, the second NPN triode, the first diode and the second diode are matched, so that PNP output and NPN output can be realized. BRIEF DESCRIPTION OF DRAWINGS
[0028] In order to more clearly illustrate the specific embodiment of the utility model or the technical scheme in the prior art, the drawings needed in the specific embodiment or the prior art description will be briefly introduced as follows, and obviously, the drawings in the following description are some embodiments of the utility model, and for those skilled in the art, other drawings can be obtained without creative labor on the basis of these drawings.
[0029] Figure 1The utility model discloses a control circuit principle diagram of supporting PNP output and NPN output simultaneously. DETAILED DESCRIPTION
[0030] The utility model will be explained in detail below in combination with each embodiment shown in the drawings, but it should be explained that these embodiments are not the limitation of the utility model, and the equivalent transformation or substitution of function, method or structure made by the ordinary skill in the art according to these embodiments all belong to the protection scope of the utility model.
[0031] In the description of the utility model, it is understood that the orientation or position relation indicated by the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise" and the like are based on the orientation or position relation shown in the drawings, and only for the convenience of describing the utility model and simplifying the description, and not indicate or imply that the indicated device or element must have a particular orientation, be constructed and operated in a particular orientation, therefore it can not be understood as the limitation of the utility model.
[0032] Embodiment 1
[0033] Referring to Figure 1 The embodiment discloses a specific embodiment of a control circuit (hereinafter referred to as "circuit") supporting PNP output and NPN output simultaneously.
[0034] Referring to Figure 1 In the Figure 1 , the label 1 at the two ends of the resistor represents the first end of the resistor, and the label 2 represents the second end of the resistor.
[0035] Referring to Figure 1The control circuit for supporting PNP output and NPN output simultaneously comprises a control signal input end, a first resistor R1, a second resistor R2, a first NPN transistor Q1, a PNP transistor Q2, a second NPN transistor Q3, a first diode D1, a second diode D2, an output common end and an output signal end; the first resistor R1 is connected in series between the control signal input end and the base of the first NPN transistor Q1, the first end of the first resistor R1 is grounded through the second resistor R2, and the first end of the second resistor R2 is also connected to the control signal input end; the emitter of the first NPN transistor Q1 is grounded, the collector of the first NPN transistor Q1 and the output common end are connected in series with the third resistor R3 and the first diode D1, the positive pole of the first diode D1 is connected to the output common end, the first end of the third resistor R3 is connected to the collector of the first NPN transistor Q1, and the second end of the third resistor R3 is connected to the negative pole of the first diode D1; the collector of the first NPN transistor Q1 and the base of the PNP transistor Q2 are connected in series with the fourth resistor R4, the first end of the fourth resistor R4 is also connected to the first end of the third resistor R3, the emitter of the PNP transistor Q2 is connected to the negative pole of the first diode D1, and the collector of the PNP transistor Q2 is connected to the output signal end; the base of the second NPN transistor Q3 is connected to the control signal input end, the collector of the second NPN transistor Q3 is connected to the collector of the PNP transistor Q2, the emitter of the second NPN transistor Q3 is connected to the positive pole of the second diode D2, and the negative pole of the second diode D2 is connected to the output common end; the fifth resistor R5 is arranged between the base of the second NPN transistor Q3 and the control signal input end; and the output signal end is connected between the collector of the PNP transistor Q2 and the collector of the second NPN transistor Q3.
[0036] Specifically, referring to Figure 1, the principle of PNP output is as follows: when PNP output is needed, the output common end is connected to the power supply, the second diode D2 reversely isolates the power supply, the power supply current of the output common end does not flow to the emitter of the second NPN transistor Q3, and the second NPN transistor Q3 does not work; when the control signal input end is input low level, the base of the first NPN transistor Q1 and the base of the second NPN transistor Q3 are both low level, the first NPN transistor Q1 and the second NPN transistor Q3 are both cut off; the base of the PNP transistor Q2 is pulled up by the power supply connected to the output common end through the first diode D1, the third resistor R3 and the fourth resistor R4, the base of the PNP transistor Q2 is at the same voltage as the emitter of the PNP transistor Q2, the PNP transistor Q2 is cut off, the output signal end and the output common end are disconnected, and the output signal end has no output; when the control signal input end is input high level, the base of the first NPN transistor Q1 is high level, and the first NPN transistor Q1 is turned on; the base of the PNP transistor Q2 is pulled to low level by the fourth resistor R4, the PNP transistor Q2 is turned on, the output signal end and the output common end are turned on through the PNP transistor Q2, the output signal end outputs high level and forms PNP output.
[0037] Referring to Figure 1 , the principle of NPN output is as follows: when NPN output is needed, the output common end is connected to the ground; when the control signal input end is input low level, the base of the first NPN transistor Q1 is low level and cut off, the base and the emitter of the second NPN transistor Q3 are both low level and cut off, the base of the PNP transistor Q2 is connected to the emitter of the PNP transistor through the third resistor and the fourth resistor, the base of the PNP transistor Q2 is at the same voltage as the emitter of the PNP transistor Q2, the PNP transistor is cut off, the output signal end and the output common end are disconnected, and the output signal end has no output; when the control signal input end is input high level, the base of the first NPN transistor Q1 is high level and turned on, the base of the PNP transistor Q2 is connected to the ground, the emitter of the PNP transistor Q2 is connected to the output common end through the first diode D1, the emitter of the PNP transistor Q2 is connected to the ground, the base of the PNP transistor Q2 and the emitter of the PNP transistor Q2 are at the same voltage and are both connected to the ground, and the PNP transistor Q2 is cut off; the base of the second NPN transistor Q3 is high level and turned on, the output signal end and the output common end are turned on through the second NPN transistor Q3, the output signal end outputs low level and forms NPN output.
[0038] Through the embodiment, both PNP output and NPN output can be realized.
[0039] Embodiment 2
[0040] The embodiment discloses a specific implementation of an industrial computer, and the industrial computer has the control circuit for simultaneously supporting PNP output and NPN output described in Embodiment 1, so that PNP output and NPN output can be realized with fewer output ports of the industrial computer.
[0041] The control circuit for simultaneously supporting PNP output and NPN output adopted by the industrial computer in Embodiment 2 is specifically described in Embodiment 1, and is not described herein again.
Claims
1. A control circuit that simultaneously supports PNP and NPN outputs, characterized in that, The control signal input end, a first resistor, a second resistor, a first NPN triode, a PNP triode, a second NPN triode, a first diode, a second diode, an output common end and an output signal end are included. The first resistor is connected in series between the control signal input end and the base of the first NPN triode, and the first end of the first resistor is grounded through the second resistor. The emitter of the first NPN triode is grounded, the collector of the first NPN triode and the output common end are connected in series through a third resistor and a first diode, and the positive pole of the first diode is connected to the output common end. The collector of the first NPN triode and the base of the PNP triode are connected in series through a fourth resistor, the first end of the fourth resistor is also connected to the first end of the third resistor, the emitter of the PNP triode is connected to the negative pole of the first diode, and the collector of the PNP triode is connected to the output signal end. The base of the second NPN triode is connected to the control signal input end, the collector of the second NPN triode is connected to the collector of the PNP triode, and the emitter of the second NPN triode is connected to the positive pole of a second diode, and the negative pole of the second diode is connected to the output common end.
2. The control circuit for simultaneously supporting PNP output and NPN output according to claim 1, wherein, A fifth resistor is arranged between the base of the second NPN triode and the control signal input end.
3. The control circuit for simultaneously supporting PNP output and NPN output according to claim 1, wherein, When a PNP output is needed, the output common end is connected to a power supply. The second diode reversely isolates the power supply.
4. The control circuit for simultaneously supporting PNP output and NPN output according to claim 3, wherein, When the control signal input end is an input low level, the bases of the first NPN triode and the second NPN triode are both low levels, and the first NPN triode and the second NPN triode are both cut off. The base of the PNP triode is pulled up by the power supply connected to the output common end through the first diode, the third resistor and the fourth resistor, the base of the PNP triode is at the same voltage as the emitter of the PNP triode, the PNP triode is cut off, the output signal end and the output common end are disconnected, and the output signal end has no output.
5. The control circuit for simultaneously supporting PNP output and NPN output according to claim 3, wherein, When the control signal input end is an input high level, the base of the first NPN triode is a high level, and the first NPN triode is turned on. The base of the PNP triode is pulled to a low level by the fourth resistor, the PNP triode is turned on, the output signal end and the output common end are turned on through the PNP triode, the output signal end outputs a high level and forms a PNP output.
6. The control circuit for simultaneously supporting PNP output and NPN output according to claim 1, wherein, When an NPN output is needed, the output common end is grounded.
7. The control circuit for simultaneously supporting PNP output and NPN output according to claim 6, wherein, When the control signal input end is an input low level, the base of the first NPN triode is a low level and is cut off, the base of the PNP triode is connected to the emitter of the PNP triode through the third resistor and the fourth resistor, the base of the PNP triode is at the same voltage as the emitter of the PNP triode, the PNP triode is cut off, the output signal end and the output common end are disconnected, and the output signal end has no output.
8. The control circuit for simultaneously supporting PNP output and NPN output according to claim 6, wherein, When the control signal input end is inputted high level, the base of the first NPN type transistor is high level and turns on, the base of the PNP type transistor is grounded, the emitter of the PNP type transistor is connected with the output common end through the first diode, the emitter of the PNP type transistor is grounded, the base of the PNP type transistor and the emitter of the PNP type transistor are equal voltage, and the PNP type transistor is cut off; The base of the second NPN type transistor is high level and turns on, and the output signal end and the output common end are conducted through the second NPN type transistor; The output signal end outputs low level and forms NPN output.
9. The control circuit for simultaneously supporting PNP output and NPN output according to any one of claims 1 to 8, wherein, The output signal end is connected between the collector of the PNP type transistor and the collector of the second NPN type transistor.
10. Industrial computer, characterized in that The industrial computer has the control circuit supporting PNP output and NPN output simultaneously as claimed in any one of claims 1-9.