Embodiment: following, the invention will be further described with a specific embodiment in conjunction with the accompanying drawings.
Accompanying drawing 1 is the utility model electricity theory diagram, and its left half is the warning extension set, and right part is divided into main control system, and each switchgear building that electrician class is administered is established a warning extension set, and electrician class establishes a main control system.The warning extension set comprises power failure testing circuit (1), (2), (3), (4), (5), (6), and its output connects single-chip microcomputer IC1 input port, and IC1 output connects display circuit (7), and COM port meets wireless transmit and receiving circuit FS1, JS1; Main control system comprises single-chip microcomputer IC2, and its input/output port connects printer (8), display circuit (9), input keyboard (10), and COM port meets wireless transmit and receiving circuit FS2, JS2.Can realize telecommunication with higher level's PC when needing.
Accompanying drawing 2 is the utility model warning extension set electrical schematic diagram, accompanying drawing 3 has the electrical schematic diagram of automatic switchover stand-by circuit for the utility model warning extension set, wherein single-chip microcomputer IC1 adopts 8051, four port P0, P1, P2, P3 are arranged, article 32, input-output line, the P0 mouth is idle, and the P1.2 of P1 mouth---P1.7 connects the output of power failure testing circuit respectively, and the power failure testing circuit comprises:
Power failure detection circuit (1), it meets light idol U1 by rectification circuit ZL, and its output meets Sheffer stroke gate F1 and constitutes, disconnected or the transformer ZL damage when fuse, light idol U1 will end, the output noble potential, and F1 is output as electronegative potential, make the P1.2 end by high step-down, fault-signal input IC1 is arranged, at this moment, because of D1 ends the D2 conducting, to automatically switch to direct supply E power supply, not cut off the power supply to guarantee the warning extension set;
High pressure open-phase detection circuit (2), the resistance R 2, R3, the R4 that are star connection by access A, B, C three-phase, its node M connects light idol U2 and constitutes, high pressure just often, neutral point M above earth potential is zero, when the phase failure, M point current potential raises, make light idol U2 conducting, its output meets P1.3 by high step-down, has fault-signal to produce;
Power electricity open-phase detection circuit (3), by inserting resistance R 5, R6, the R7 that A, B, C three-phase are star connection, its node P meets light idol U3 and constitutes, and principle is with the high pressure open-phase detection circuit;
Power leakance power detection circuit (4), when touching electric leakage, relay K 3 actions that are connected in series with mutual inductor, its normally closed contact K3-1 that is connected in series into the CJ1 start-up circuit disconnects, and its normally opened contact K3-2 closure makes the light that the connects idol U5 of institute conducting, P1.3 is by the low fault-signal that produces of hypermutation, behind the leakage-current alarm, main frame can be launched remote control and open signal, makes extension set P3.4 that output be arranged, make triode BG2 conducting, the K2 action is connected to the K2-2 closure on the CJ1 control circuit QA, restarts power supply.Power electricity open-phase detection circuit (3), can set up automatic switchover stand-by power supply circuit, as shown in Figure 3, comprise the Sheffer stroke gate F2 that is connected with light idol U3 output, triode BG1, relay K 1, contactor CJ1, CJ2 etc., the normally opened contact CJ2-5 of CJ2 connects light idol U4 to microcomputer input port P1.4, when certain RD in the CJ1 output circuit fuses phase failure, light idol U3 conducting, F2 exports noble potential, the BG1 conducting, the K1 action, K1-1 disconnects, and CJ1 discharges, K1-2 connects, the CJ2 adhesive, by the CJ2-4 self-insurance, it is normal that circuit recovers, K1 discharges, K1-1 is adhesive again, and K1-2 discharges, but this moment, not self-insurance of CJ1-4, so not adhesive of CJ1, and CJ2 self-insurance adhesive have realized the automatic switchover operation of stand-by circuit.The electric-leakage detection circuit (4) of this moment as shown in Figure 3, when electric leakage was got an electric shock, K3-1 disconnected, and CJ1 discharges (when starting stand-by circuit, then CJ2 discharges), when main frame was sent out remote control and opened signal, the K2 action made the CJ1 adhesive, (if the CJ1 circuit is normal before the electric leakage) restores electricity, if before the electric leakage, because of the phase failure drops into stand-by circuit CJ2, then CJ2 adhesive;
The power for illumination fuse testing circuit (5) that breaks exports Sheffer stroke gate F3 to by the light idol U8 that is connected to supply line and constitutes, when fuse is disconnected, and the U8 conducting, it is noble potential that F3 output meets P1.6, does not report to the police, when fuse break, F3 was output as electronegative potential, warning;
Power for illumination electric-leakage detection circuit (6), (the K5 electric line of leaking hunting is arranged in addition by sensitive relay K5, K5 action during electric leakage is not drawn) its normally closed contact K5-2 is connected in series the start-up circuit into CJ3, and its normally opened contact K5-3 connects light idol U7, exporting P1.7 to constitutes, when getting an electric shock electric leakage, the K5 adhesive, K5-2 discharges, the K5-3 closure, U7 output is reported to the police by high step-down.After the warning, main frame can send remote control to it and open signal, and the remote control open circuit of this extension set comprises triode BG3, the relay K 4 that is connected with IC1 delivery outlet P3.5 and is connected to the normally opened contact K4-2 that starts on the circuit; Power for illumination fracture of wire testing circuit (5) can be set up the automatic switchover stand-by circuit, sees accompanying drawing 3, stand-by circuit is made of CJ4 etc., and removes U8 and F3, circuit combined floodgate CJ3 work, CJ3-3 disconnects, and CJ4 does not work, and fuse is disconnected, CJ3 discharges, CJ3-3 closure, CJ4 work, start stand-by circuit, the CJ4-3 closure makes light idol U6 conducting, its output meets P16 by high step-down, reports to the police.When getting an electric shock electric leakage, sensitive relay K5 action, K5-1 disconnects, and after the warning, sends out remote control by main frame and opens signal, opens (when not dropping into stand-by circuit, then K5-2 disconnects, and is opened by the K4 remote control) by the K4 remote control.The P1.0 of IC1, P1.1 termination K switch 6, K7, be respectively [normally], [maintenance] switch, by [maintenance] switch, P1.0 step-down, input effectively, be to have arrived fault in-situ to main frame report electrician, begin maintenance, by [normally] switch, the P1.1 step-down, be to get rid of to main frame report fault, equipment is normal.P2.0---P2.7 is sending and receiving optical diode LED1 respectively---LED8, the demonstration of respectively corresponding [normally], [maintenance] and six kinds of power failures, P3.6 meets loudspeaker BL, sends audible alarm when fault.P3.0, P3.1 end, promptly RXD, TXD end connects reception and radiating circuit respectively, and data serial exports radiating circuit to, and the modulation back is to the main frame emission, and receiving circuit receives host signal, and serial inputs to IC1 after the demodulation.
Main control system comprises 8-bit microcontroller 8051 and peripheral hardware thereof, the P0 port connects matrix keyboard, P0.0---four capable incoming lines of P0.3 termination keyboard wherein, every line meets a pull-up resistor R and meets power supply Vdd2 again, P0.4---the P0.7 end connects four column scan lines of keyboard through inverter ic 3, figure key 0---9 in order to send extension number, A, B, C, D, E, the F key is represented [calling] respectively, [powered remote control is opened], [lighting remote controlled opening], [printing], [forbidding], [resetting], by [forbidding] key, be after receiving the fault sound and light alarm, stop loudspeaker stereo, the P0.5 of P0 mouth, P0.6, display circuit position control triode BG6 is gone back and connect to the P0.7 end, BG5, the base stage of BG4, the P2.0 of P2 port---P2.7 connects the section control line or the single tube control line of display device through impact damper IC4, fault shows the employing LED, extension set condition code (extension number) adopts seven segment digital tubes LED9, LED10 shows, show individual and ten respectively, when P0.7 has output, the BG4 conducting, the P2 port has graphemic code (section control code) output simultaneously, then a position will show, in like manner, show ten, P0.5 has output, the BG6 conducting, if P2 section mouth has failure code output, then corresponding diode is with luminous simultaneously.The P1 port connects mini-printer, its P1.0---P1.7 connect printer data input end DB0---DB7, P3.4, WR, RD as with signal contact, the control end of printer.RXD (P3.0) connects receiving circuit, TXD (P3.1) sending and receiving radio road.
Working method between main frame and the extension set,, both can adopt the host query mode, also can adopt extension set warning (interruption) mode, the utility model is with the extension set warning working method brief description course of work.
Warning extension set IC1, with the P1 mouth connected<normal,<maintenance 〉,<power fail 〉,<high pressure the phase failure 〉,<power the phase failure 〉,<power electric leakage 〉,<illumination fracture of wire 〉,<illumination electric leakage〉end, carry out binary coding by its physical location, be respectively FEH, FDH, FBH, F7H, EFH, DFH, BFH, 7FH, be stored in the data buffer 40H of internal memory RAM---47H unit, and<power fail 〉,<high pressure the phase failure 〉,<power the phase failure 〉,<power electric leakage 〉,<illumination fracture of wire 〉,<illumination electric leakage〉report to the police,<power fail〉right of priority is the highest, reduces successively (software realization).With this extension set coding (extension number), two bytes are stored in 30H, the 31H unit of RAM, and make the extension set coding consistent with the host keyboard coding, key assignments equals the row value and adds train value, the extension set binary coding promptly equals the main frame key assignments, can change, and when digital host shows extension number, then should in program, make the key assignments sign indicating number convert decimal code to and show by table-look-up instruction.General<powered remote control is opened 〉,<lighting remote controlled opening〉key assignments code (respectively accounting for a byte) is stored in R0 (00H), the R1 (01H) of RAM general-purpose register, so that main frame uses when sending out remote signal.
The IC2 of main frame opens up extension number code storage district at internal memory, is 15 extension sets if any 15 switchgear buildings, then opens 30H---the memory block (each extension number two byte) of 30 unit of 4DH, deposit 15 extension sets codings, and other gets 4EH, 4FH makes buffer.The 2nd, the fault code area, eight dummy cells of 50H---57H reach in order to depositing power failure<normal 〉,<maintenance〉code.The 3rd, the remote control mode district, R1 (00H), two unit of R2 (01H) are stored in [powered remote control is opened] and [lighting remote controlled opening] key assignments code.R3 (02H) deposits<forbids〉code.Other gets R4 (03H) and uses as scan counter.
The extension set master routine is that scan round P1 mouth is every, and during non-fault, everybody is 1, when breaking down, corresponding position is 0, transmits and penetrates subroutine, gets the extension set coding of 40H, 41H unit successively and 30H---the number of corresponding failure address location among the 37H (being failure code) send totalizer A, send P31 (TXD) with A, launch by radiating circuit, simultaneously, failure code is exported by the P2 mouth, sound and light alarm is so that maintenance.
Main frame receives alerting signal, and is temporary, gets the first two byte (extension number) and send totalizer A, get (30H) successively---(4DH) send A, carry out the XRL logical operation, relatively be zero with its negate (needing noble potential output when showing), and be stored among 4EH, the 4FH, in order to showing, this is the affirmation process, if non-vanishing (emission is described or receives wrong), main frame is promptly transmitted automatically and penetrated the subroutine inquiry, the extension set that breaks down receives promptly and retransmits that main frame is heavily received.After the affirmation, promptly from reception buffer, get failure code and send A, negate, again it is sent failure code register 50H---among the 57H one, in order to showing, change display subroutine afterwards, by P1.7 output scanning voltage, the BG4 conducting, send the output of P2 mouth with (4FH), show a position, P1.6 output scanning voltage, send the output of P2 mouth with (4EH), show ten, again by P1.5 output scanning voltage, BG6 conducting, with address (50H)---one numerical value (failure code) in (57H) send the output of P2 mouth, the dependent failure pilot lamp is bright, and scanning output is by the control of R4 register shift, as seen, each warning, address 4EH, content in 4FH and the failure code register all need rewrite.Simultaneously, program makes P3.5 that output be arranged, and makes the loudspeaker warning of sounding, and can stop by it by [forbidding] key.Print then by the printout of [printing] key as need.
When main frame receives power leakance electric alarm or power for illumination leakage-current alarm, should launch remote control and open signal: press assignment key A → press figure key (extension number) → again to press power remote control key point B or lighting remote controlled key point C, launch (subsequently can the scene of sending someone check touch the electric leakage reason).
Extension set is received remote control and opened signal, and is temporary, gets the first two byte successively and send totalizer A, and send A with (30H), (31H), and relatively be zero, promptly confirm as this extension set of remote control, then change the remote control open routine, get working storage the 3rd byte and send A, the numerical value of getting R0, R1 successively send A comparison, and being confirmed to be remote controlled powered establishing by cable still is that the remote control illumination is established by cable, then, by P3.4 or P3.5 output noble potential, make triode BG2 or BG3 conducting, work is started in the realization remote control.