Communication loading and unloading and error proofing circuit for dual-power controller
Technical Field
The invention relates to the field of piezoelectric devices, in particular to a communication loading and unloading and error-proofing circuit for a dual-power controller.
Background
The dual-power controller is used for realizing automatic switching between a common power supply and a standby power supply, is mainly used in important occasions requiring that power cannot be interrupted, is extremely important for certain special user departments, such as hospitals, airports and the like, ensures that equipment normally operates under the condition of normal power supply, and is widely applied to occasions incapable of power failure, such as high-rise buildings, post and telecommunications, coal mines, military facilities, large-scale industries, power grids, fire protection, hospitals, subways and the like.
Most of the existing dual-power controllers have a communication function, but the communication function is not used in every occasion. This results in a waste of system power consumption, as the communication chip is still in operation when the communication function is not being used. In addition, the field wiring personnel can be neglected after all, and once the wiring sequence of the wiring terminals is not carelessly connected in error, the data acquisition is not carried out, and the controller is likely to be damaged after the power is applied for a long time if the data acquisition is carried out repeatedly, so that great consequences are caused.
Disclosure of Invention
The present invention is directed to a communication loading/unloading and error proofing circuit for dual power controllers, which overcomes the above-mentioned drawbacks of the prior art.
The aim of the invention can be achieved by the following technical scheme:
A communication loading and unloading and error proofing circuit for dual supply controller is arranged in realizing the disconnection of communication function and preventing binding post misconnection in the dual supply controller system, and this circuit includes binding post, pilot lamp module and communication function module, and external power supply passes through binding post respectively and is connected with pilot lamp module and communication function module, the pilot lamp module include opto-coupler and emitting diode, emitting diode's negative pole ground, and emitting diode's positive pole, first resistance, second resistance and luminous power connect gradually, the switching part first end of opto-coupler connect to between first resistance and the second resistance, the second ground connection, external power supply, binding post, third resistance, opto-coupler's luminous portion and fourth resistance connect gradually the ground connection.
The communication function module comprises a communication chip connected with the main control chip, and a Vcc pin of the communication chip is connected with the wiring terminal.
The model of the communication chip is SN65HVD1782.
And a first capacitor is further arranged between the first end and the first end of the optocoupler switch part.
The Vcc pin of the communication chip is grounded through a second capacitor.
The pin B of the communication chip is connected with the TXD1-B port of the main control chip, the pin A is connected with the RXD1-A port of the main control chip, the pin D is connected with the TXD1 port of the main control chip,And the R pin is connected with the RXD1 port of the main control chip.
When the communication function of the dual-power controller or the wiring terminal wiring error is not needed, the communication chip is powered off, the optical coupler is powered off, and the light emitting diode is lightened to indicate abnormal communication and wiring error.
Compared with the prior art, the invention has the following advantages:
1) The power consumption is low, when the communication function is not used, the connecting terminal is not connected, the communication chip is not connected with a power supply, the communication is not carried out, and the overall power consumption of the circuit when the communication is not carried out is reduced.
2) The use is safe and reliable, and the condition that equipment is damaged due to wiring personnel wiring errors is avoided while the circuit power consumption of the whole circuit is reduced when no communication exists. Once the wiring personnel misconnect the power line, the power-off inspection can be rapidly performed through the alarm indication sent by the light emitting diode and the communication chip.
Drawings
FIG. 1 is a circuit diagram of an indicator light module;
FIG. 2 is a circuit diagram of a communication function module;
fig. 3 is a circuit diagram of the connection terminal.
Detailed Description
The invention will now be described in detail with reference to the drawings and specific examples.
Examples
The invention provides a communication loading and unloading and error connection preventing circuit for a dual-power controller, which is used for loading and unloading communication functions of the dual-power controller and preventing wiring errors and comprises a wiring terminal JP5, an indicator lamp module and a communication function module.
Fig. 1 is a circuit diagram of an indicator light module, the indicator light module includes an optocoupler U14 and a light emitting diode D5, a negative electrode of the light emitting diode D5 is grounded, and an anode of the light emitting diode D5, a first resistor R84, a second resistor R80 and a light emitting power source VCC2 are sequentially connected, a first end of a switch portion of the optocoupler U14 is connected between the first resistor R84 and the second resistor R80, a second end of the switch portion of the optocoupler U14 is grounded, a first pin of a connection terminal JP5, a third resistor R85, a light emitting portion of the optocoupler U14 and a fourth resistor R83 are sequentially connected to ground, and a first capacitor C48 is disposed between the first end and the second end of the switch portion of the optocoupler U14.
Fig. 2 is a circuit diagram of a communication function module, the communication function module includes a communication chip U4 connected to a master control chip, in this example, the communication chip is selected to be SN65HVD1782, a Vcc pin P8 of the communication chip is connected to a first pin of a connection terminal JP5, a GND pin P5 is grounded, a Vcc pin P8 of the communication chip U4 is also grounded through a second capacitor C19, a B pin P7 of the communication chip U4 is connected to a TXD1-B port of the master control chip, an a pin P6 is connected to a RXD1-a port of the master control chip, a D pin P4 is connected to a TXD1 port of the master control chip,The pin P2 and the DE pin P3 are connected with each other and then connected with an RE/DE port of the main control chip, and the R pin P1 is connected with an RXD1 port of the main control chip.
When the communication function or the connection error of the dual-power controller is needed to be closed, the connection terminal JP5 is disconnected from the external power supply VCC1, the communication function is closed, the optical coupler U14 cannot be turned on, and the light emitting diode D5 is lightened to display abnormality.
Fig. 3 is a circuit diagram of a connection terminal, and the indicator lamp module and the communication function module are respectively connected with an external power supply VCC1 through the connection terminal.
According to the invention, the communication chip U4 is connected with the external power supply VCC1 through the wiring of the wiring terminal JP5, so that the communication function is realized, and once the wiring of the wiring terminal JP5 is wrong, the LED D5 lights up and displays an abnormal signal to prompt and alarm. When the communication function is not used, the connection terminal JP5 is not connected, the communication chip U4 is not connected with a power supply and cannot communicate, and the overall power consumption of the circuit is reduced when no communication is performed.
The invention has the advantages of being more intelligent, reducing the power consumption of the whole circuit when no communication exists, and avoiding the condition that the equipment is damaged due to the wiring error of wiring personnel. Once the wiring personnel misconnect the power line, the power-off inspection can be performed rapidly through the information displayed by the light emitting diode D5 and the alarm indication sent by the communication chip U4.
The auxiliary power supply error connection prevention circuit is used in a dual power supply controller system. When the customer needs to use the communication function, the field engineer accesses the connection terminal JP5, and the power supply VCC1 supplies power to the communication chip U4, the communication chip U4 works, the LED D5 indicates normal, and the LED is displayed as off, so that the communication function can be used. If the on-site staff connects the wiring terminal JP5 with wrong line sequence, namely the power supply VCC1 is not correctly connected, after power-on, the communication chip U4 can not normally supply power and can not normally communicate, and simultaneously the optocoupler U14 can not be conducted, so that the LED D5 indicates abnormality, displays as bright, and the operator adopts power-off inspection for the first time.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions may be made without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the invention is subject to the protection scope of the claims.