Background technology
Electromagnetic switch, as a kind of electromagnetic principle that utilizes, the device that electric signal is insulated and isolated is applied more and more in electronic product.When this electromagnetic switching device of application, common way is when needs switch contact is closed, system provides that to drive signal that solenoid is obtained electric, thereby utilize the mechanical contact of electromagnetic principle driving element closed, this simple driving and the method do not fed back is open loop approach completely, cannot know that system provides after driving signal, whether contact has really carried out closed action reliably, if device is abnormal in the late-class circuit of driving signal, or extremely the causing of electromagnetic switch itself do not have correct closed action, may there is the problem of system control method, in some high-power electric and electronic product, even can damage device equivalent risk.
In prior art, or directly with simple open loop approach, drive and control electromagnetic switch work, or only accomplish driving the detection feedback of data side, electricly whether real to determine solenoid, and the most direct contact closure information can not be fed back to system.
In above two kinds of prior aries, due to the not closed information in contact that can not truly feed back after close command, make electromagnetic switch in application, face the risk that can not be detected in time compared with large inefficacy, system is thought and has been provided closure signal, and in fact closed action is not carried out in contact, cause the uncertain consequences such as logic error or device failure.
Given this, be necessary to provide a kind of detection feedback circuit addressing the aforementioned drawbacks.
Utility model content
The purpose of this utility model is to provide a kind of feedback circuit that detects to realize real safety and closed loop detection accurately.
To achieve these goals, the utility model provides a kind of detection feedback circuit, contact switch state for detection of electromagnetic switch, it comprises signal input part IN, signal output part OUT, detect resistance R 2, photo-coupler P1, triode T2, pull-up resistor R4 and screening diode D2, wherein, described signal input part IN exports the input side of electromagnetic switch K1 to, the outgoing side of described electromagnetic switch K1 is connected with the input side of photo-coupler P1, described detection resistance R 2 is connected in parallel on the input side of photo-coupler P1, the outgoing side of described photo-coupler P1 is connected with emitter with the base stage of triode T2, described pull-up resistor R4 is connected between the base stage and power supply VCC of triode T2, the collector of described triode T2 is connected to signal output part OUT, the both positive and negative polarity of described screening diode D2 is connected respectively to signal output part OUT and signal input part IN.
Preferably, described detection feedback circuit also comprises a charging delay circuit, described charging delay circuit comprises time delay resistance R5 and charging capacitor C1, wherein, described time delay resistance R5 one end connects power supply VCC, the other end is connected to the collector of triode T2, and described charging capacitor C1 one end is connected to the collector of triode T2, other end ground connection.
Preferably; described detection feedback circuit also comprises a holding circuit; described holding circuit comprises current-limiting resistance R1 and voltage stabilizing diode Z1; wherein; described current-limiting resistance R1 and the outgoing side that detects resistance R 2 and be cascaded and be connected in parallel on electromagnetic switch K1, described voltage stabilizing diode Z1 is connected in parallel on the two ends of detecting resistance R 2.
Compared with prior art, the utility model is exported the Weak current signal of the two ends, contact of electromagnetic switch large resistance in parallel by light-coupled isolation, optocoupler outgoing side drives a transistor circuit output, for the correct status that identifies current contact is to avoid flase drop, by a diode, the input signal of its output signal and electromagnetic switch (as relay) is carried out to logical AND gate processing, only have only when the input signal of electromagnetic switch is driving effective status, this circuit could be sent the not closed output level state in electromagnetic switch contact, for example send to system testing agency, with the method, reach correct and judge whether this electromagnetic switch circuit has correctly carried out reliably closed action when system needs closure.The utility model has been realized real safe closed loop and has been detected, and does not destroy again the electrical separation of electromagnetic switch self simultaneously, improves the reliability of circuit.
By following description also by reference to the accompanying drawings, it is more clear that the utility model will become, and these accompanying drawings are used for explaining embodiment of the present utility model.
Embodiment
Below in conjunction with the accompanying drawing in the utility model embodiment, the technical scheme in embodiment is clearly and completely described, in accompanying drawing, similarly assembly label represents similar assembly.Obviously, below by the embodiment of description, be only the utility model part embodiment, rather than whole embodiment.Embodiment based in the utility model, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the utility model protection.
With reference to Fig. 1, the detection feedback circuit 10 of the present embodiment is the contact switch state for detection of electromagnetic switch K1 in electromagnetic switch circuit 20, the electromagnetic switch K1 narrating in this example take relay to describe as example, and other detection principles as related in electromagnetic switch such as contactors are identical.
The detection feedback circuit 10 of the present embodiment comprises current-limiting resistance R1, voltage stabilizing diode Z1, detection resistance R 2, photo-coupler P1, triode T2, pull-up resistor R4, screening diode D2, time delay resistance R5, charging capacitor C1, signal input part IN and signal output part OUT.Its concrete annexation is as follows: signal input part IN exports the input side of electromagnetic switch K1 to, current-limiting resistance R1 with detect that resistance R 2 is cascaded and the outgoing side that is connected in parallel on electromagnetic switch K1 (is also two link A of electromagnetic switch contact, B), the input side of photo-coupler P1 is connected between the connected node of resistance R 1 and R2 and the link B of electromagnetic switch K1, two ends and its positive pole that voltage stabilizing diode Z1 is connected in parallel on detection resistance R 2 are the link B that is connected to electromagnetic switch K1, the outgoing side of photo-coupler P1 is connected with emitter with the base stage of triode T2, the collector of triode T2 is connected to signal output part OUT, pull-up resistor R4 is connected between the base stage and power supply VCC of triode T2, time delay resistance R5 one end connects power supply VCC, the other end is connected to the collector of triode T2, charging capacitor C1 one end is connected to the collector of triode T2, other end ground connection, and the both positive and negative polarity of screening diode D2 is connected respectively to signal output part OUT and signal input part IN.
Continuation, with reference to Fig. 1, describes the principle of work of above-mentioned detection feedback circuit 10 below.
The signal that signal output part OUT exports is detection signal, and the definition of detection signal is: during low level, be normal condition, high level is the closing of contact abnormal failure state of electromagnetic switch K1.The output state of this detection signal level finally need be determined jointly by two conditions: one is triode T2 output state, and another is to the driving signal of electromagnetic switch K1 input the formed logical AND gate that is connected by screening diode D2 and signal input part IN.By this and door condition, level is screened, only when given input signal is high level, the detection signal of output just can be given system by fault level (high level), otherwise, even if the state of triode T2 is in high level output, OUT signal by the low level that is still transfused to IN by diode clamp in low level state, now system is thought normal state.The method of input and output condition being carried out to process with door by screening diode D2 has avoided system to occur following erroneous judgement effectively: system this while just not providing closure signal, but by the not closed signal in contact now, tell system mistakenly, allow system make erroneous judgement.
Further, when system provides closure signal, be that the input signal of signal input part IN is while being high level, driving electromagnetic switch K1(relay) primary coil, coil obtains electric rear drive outgoing side contact and carries out closure, if correct closed action has reliably been carried out in contact now, contact A and B two ends level will be close to 0V, originally by detecting the electric current of resistance R 2, will be bypassed by contact short, detecting resistance R 2 both sides voltages is zero, the former limit of photo-coupler P1 can not obtain enough opening electric current and turn-off, outgoing side is high level, triode T2 base stage is saturated open-minded under the driving of pull-up resistor R4, the output signal of signal output part OUT is drawn as low level is to system by triode T2, due to from driving signal IN to be given to the action of electromagnetic mechanism and making that triode T2 is saturated to be opened the process need certain time-delay time that OUT is dragged down, for avoiding postponing to cause after the disconnection of D2 pipe because existing this to detect, triode T2 has little time to open and drags down OUT signal and occur the output of of short duration high level pulse, therefore the present embodiment increases delay capacitor C1 at OUT outgoing side, at IN signal, set high and cause diode D2 cut-off to start, although it is open-minded that triode T2 fails to make an immediate response, but the existence due to delay capacitor C1, OUT can not be switched to high level by the state originally being dragged down by D2 immediately, but by R5 resistance, capacitor C 1 is charged, charging delay time constant is the product of R5 and C1, in actual applications will be according to relay time delay and Circuit responce feature, suitably adjust and arrange the value of R5 and C1, to guarantee that the delay time of this delay circuit is sufficiently more than the operating lag of circuit, avoid occurring in the moment of signal switching the mistake survey signal of transient state high level.
In like manner, if in said process, electromagnetic switch K1(relay) outgoing side contact switch occurs abnormal and fails correct closed, or closed action is unreliable and the electric current in testing circuit can not be bypassed completely, owing to there is certain voltage difference in contact A and B both sides, detect in resistance R 2 and obtain electric current, produce a magnitude of voltage, this voltage drives on the light emitting diode of the former limit of optocoupler and produces drive current, optocoupler output is moved the base stage of triode T2 to low level, triode T2 is converted to and is turn-offed output by saturated opening state, simultaneously again because input signal IN is now given closed useful signal high level, diode D2 is cut-off state, OUT output signal is provided by triode T2 completely, triode T2 turn-offs, the detection signal that output terminal OUT exports is the high level signal drawing in resistance R 5, when receiving high level, system thinks that relay switch fails correct reliable closed.
In foregoing circuit, resistance R 1 is current-limiting resistance, with voltage stabilizing diode Z1 combined protection optocoupler to avoid the damage of too high voltages, in the time of in being applied to the start-up circuit of capacitor charging, resistance R 1 can be served as the effect of buffer resistance simultaneously, after having charged by R1 and R2, electric capacity bypasses by relay switch is closed, in the time of in being applied to other direct current signal switching circuits, can suitably increase the resistance of R1, with avoid current drives by testing circuit original relay contact switch in off-state, do not want the late-class circuit driving, select suitable R1 resistance to reach the object that can drive optocoupler testing circuit and cannot drive relay contact late-class circuit.Wherein, R2, for detecting resistance, in the time of in being applied to the start-up circuit of capacitor charging, provides the charge circuit to capacitor charging.
As mentioned above, the utility model is exported the Weak current signal of the two ends, contact of electromagnetic switch large resistance in parallel by light-coupled isolation, optocoupler outgoing side drives a transistor circuit output, for the correct status that identifies current contact is to avoid flase drop, by a diode, the input signal of its output signal and electromagnetic switch (as relay) is carried out to logical AND gate processing, only have only when the input signal of electromagnetic switch is driving effective status, this circuit could be sent the not closed output level state in electromagnetic switch contact, for example send to system testing agency, with the method, reach correct and judge whether this electromagnetic switch circuit has correctly carried out reliably closed action when system needs closure.The utility model has been realized real safe closed loop and has been detected, and does not destroy again the electrical separation of electromagnetic switch self simultaneously, improves the reliability of circuit.
Above combination most preferred embodiment is described the utility model, but the utility model is not limited to the embodiment of above announcement, and should contain the various modifications of carrying out according to essence of the present utility model, equivalent combinations.