Summary of the invention
The objective of the invention is to overcome above-mentioned weak point of the prior art, and provide a kind of from electricity consumption source prevention with the generation of electrification or further develop, the Electrical Safety protection switch that electric power system or supply network are played a protective role simultaneously.Another object of the present invention has provided a kind of control method of Electrical Safety protection switch.
Purpose of the present invention can reach by following measure:
This Electrical Safety protection switch; comprise power input unit; the ground connection detecting unit; over-current detection unit; the detection of electrical leakage unit; DC power source unit; micro-control unit; the output control execution unit; its special character is: power input unit A is by connected DC power source unit E step-down rectifier; obtain offering ground connection detecting unit B; over-current detection unit C; the detection of electrical leakage cells D; micro-control unit F; the DC power supply of output control execution unit H work; ground state detection signal by the generation that B detects of ground connection detecting unit is sent to coupled microprocessing unit F; the load current signal that is detected by over-current detection unit C is sent to coupled micro-control unit F; the leakage current signal that is detected by the detection of electrical leakage cells D is sent to coupled microprocessing unit F; microprocessing unit F is according to the ground signalling that is received; the leakage current signal; over-current signal; detect and whether cut off load power source, and carry out whether cut off load power source by output control execution unit H.
Purpose of the present invention can also reach by following measure:
This Electrical Safety protection switch; comprise power input unit; the ground connection detecting unit; the detection of electrical leakage unit; DC power source unit; micro-control unit; the output control execution unit; its special character is: power input unit A is by connected DC power source unit E step-down rectifier; obtain offering ground unit B; the electric leakage cells D; micro-control unit F; the low-voltage dc power supply of output control execution unit H work; ground state detection signal by the generation that B detects of ground connection detecting unit is sent to coupled microprocessing unit F; the leakage current signal that is detected by the detection of electrical leakage cells D is sent to coupled micro-control unit F; micro-control unit F is according to received ground signalling; the leakage current signal; whether need cut off load power source, and carry out whether cut off load power source by output control execution unit H if detecting.
Purpose of the present invention can also reach by following measure:
This Electrical Safety protection switch, comprise the electric current input unit, over-current detection unit, the detection of electrical leakage unit, DC power source unit, micro-control unit, the output control execution unit, its special character is: power input unit A is by coupled DC power source unit E step-down rectifier, obtain offering over-current detection unit C, the detection of electrical leakage cells D, micro-control unit F, the low-voltage dc power supply of output control execution unit H work, the load current signal that is detected by over-current detection unit C is sent to coupled micro-control unit F, and the leakage current signal that is detected by the detection of electrical leakage cells D is sent to coupled micro-control unit F; Micro-control unit F according to the leakage current signal, the over-current signal that are received, whether detect that needs cut off load power source, H carries out whether cut off load power source by the output control execution unit.
Purpose of the present invention can also reach by following measure:
The control method of this Electrical Safety protection switch, its special character is, comprises the following steps:
(1) calls leakage current detection signal subprogram (step 11);
(2) call over-current signal and detect subprogram (step 12);
(3) call ground signalling subprogram (step 13);
(4) call output control subprogram (step 14);
(5) return step 11 (step 15);
Described output control subprogram comprises the following steps:
(1) sets overcurrent signal (step 410);
(2) judge whether overcurrent signal is setting signal (step 411);
(3) if the judged result of step 411 for not, then enters step 442;
(4) if the judged result of step 411 is for being then to enter step 440;
(5) set leakage current signal (step 420);
(6) judge whether the leakage current signal is setting signal (step 421);
(7) if the judged result of step 421 for not, then enters step 442;
(8) if the judged result of step 421 is for being then to enter step 440;
(9) counter assignment (step 430);
(10) judge that whether the value of counter is for being not equal to set point (step 431);
(11) if the judged result of step 431 for not, then enters step 442;
(12) if the judged result of step 421 is for being then to enter step 440;
(13) determining step 411, step 421, and whether step 431 satisfies simultaneously imposes a condition, and enters step 440;
(14) if the judged result of step 440 for not, then enters step 442;
(15) the output switch disconnects, and enters step 443 (step 442);
(16) if the judged result of step 440 is for being then to enter step 441;
(17) the output switch closure enters step 443 (step 441);
(18) finish (step 443).
Described output control subprogram comprises the following steps:
(1) sets overcurrent signal (step 610);
(2) judge whether overcurrent signal is setting signal (step 611);
(3) if the judged result of step 611 for not, then enters step 632;
(4) if the judged result of step 611 is for being then to enter step 630;
(5) set leakage current signal (step 620);
(6) judge whether the leakage current signal is setting signal (step 621);
(7) if the judged result of step 621 for not, then enters step 632;
(8) if the judged result of step 621 is for being then to enter step 630;
(9) determining step 611, and whether step 621 satisfies imposing a condition simultaneously, enters step 630;
(10) if the judged result of step 630 for not, then enters step 632;
(11) the output switch disconnects, and enters step 633 (step 632);
(12) if the judged result of step 630 is for being then to enter step 631;
(13) the output switch closure enters step 633 (step 631);
(14) finish (step 633).
Described output control subprogram comprises the following steps:
(1) sets leakage current signal (step 710);
(2) judge whether the leakage current signal is setting signal (step 711);
(3) if the judged result of step 711 for not, then enters step 732;
(4) if the judged result of step 711 is for being then to enter step 730;
(5) counter assignment (step 720);
(6) judge that whether the value of counter is for being not equal to set point (step 721);
(7) if the judged result of step 721 for not, then enters step 732;
(8) if the judged result of step 721 is for being then to enter step 730;
(9) determining step 711, and whether step 721 satisfies simultaneously imposes a condition, and enters step 730;
(10) if the judged result of step 730 for not, then enters step 732;
(11) the output switch disconnects, and enters step 733 (step 732);
(12) if the judged result of step 730 is for being then to enter step 731;
(13) the output switch closure enters step 733 (step 731);
(14) finish (step 733).
Described leakage current detection signal subprogram comprises the following step:
(1) leakage current input (step 110);
(2) read I/O current potential (step 111);
(3) A/D analog-to-digital conversion (step 112);
(4) record analog-to-digital conversion value (step 113);
(5) anti-interference process (step 114);
(6) set leakage current signal value (step 115);
(7) finish (step 116).
Described over-current detection signal subprogram comprises the following step:
(1) overcurrent signal detects (step 210);
(2) read I/O current potential (step 211);
(3) A/D analog-to-digital conversion (step 212);
(4) record analog-to-digital conversion value (step 213);
(5) anti-interference process (step 214);
(6) set overcurrent signal value (step 215);
(7) finish (step 216).
Described ground signalling detects level upset subprogram and comprises the following step:
(1) ground signalling detects (step 310);
(2) read I/O level (step 311);
(3) whether level has upset (step 312) in the unit interval;
(4) if the judged result of step 312 for not, then enters step 315;
(5) if the judged result of step 312 is for being then to enter step 313;
(6) enter INT0 and interrupt (step 313);
(7) counter values is removed (step 314);
(8) finish (step 315).
Described ground signalling detects the count value counting subroutine and comprises the following steps:
(1) ground signalling detects (step 320);
(2) carry out regularly interruption (step 321);
(3) rolling counters forward (step 322);
(4) judge whether counter reaches setting and plant (step 323);
(5) if the judged result of step 323 for not, then enters step 325;
(6) if the judged result of step 323 is for being then to enter step 324;
(7) counter values assignment (step 324);
(8) finish (step 325).
The present invention has following advantage compared to existing technology:
1. simple and reliable, with low cost.
2. from the source, cut off the electricity supply automatically, to reduce or to stop using the generation of electrification, to improve the fail safe of electricity consumption.
Embodiment
The present invention is further detailed in conjunction with the accompanying drawings below:
Fig. 1, Fig. 4, Fig. 5, Fig. 8, Fig. 9, Figure 10, Figure 11 show first embodiment of the present invention.
See also shown in Figure 1; a kind of Electrical Safety protection switch; comprise power input unit; the ground connection detecting unit; over-current detection unit; the detection of electrical leakage unit; DC power source unit; micro-control unit; the output control execution unit; it is characterized in that: power input unit A is by connected DC power source unit E step-down rectifier; obtain offering ground connection detecting unit B; over-current detection unit C; the detection of electrical leakage cells D; micro-control unit F; the DC power supply of output control execution unit H work; ground state detection signal by the generation that B detects of ground connection detecting unit is sent to coupled microprocessing unit F; the load current signal that is detected by over-current detection unit C is sent to coupled micro-control unit F; the leakage current signal that is detected by the detection of electrical leakage cells D is sent to coupled microprocessing unit F; microprocessing unit F is according to the ground signalling that is received; the leakage current signal; over-current signal; detect and whether cut off load power source, and carry out whether cut off load power source by output control execution unit H.
See also shown in Figure 4ly, the control method of this Electrical Safety protection switch comprises the following steps:
(1) calls leakage current detection signal subprogram (step 11);
(2) call over-current signal and detect subprogram (step 12);
(3) call ground signalling subprogram (step 13);
(4) call output control subprogram (step 14);
(5) return step 11 (step 15);
See also shown in 5, described output control subprogram comprises the following steps:
(1) sets overcurrent signal (step 410);
(2) judge whether overcurrent signal is setting signal (step 411);
(3) if the judged result of step 411 for not, then enters step 442;
(4) if the judged result of step 411 is for being then to enter step 440;
(5) set leakage current signal (step 420);
(6) judge whether the leakage current signal is setting signal (step 421);
(7) if the judged result of step 421 for not, then enters step 442;
(8) if the judged result of step 421 is for being then to enter step 440;
(9) counter assignment (step 430);
(10) judge that whether the value of counter is for being not equal to set point (step 431);
(11) if the judged result of step 431 for not, then enters step 442;
(12) if the judged result of step 421 is for being then to enter step 440;
(13) determining step 411, step 421, and whether step 431 satisfies simultaneously imposes a condition, and enters step 440;
(14) if the judged result of step 440 for not, then enters step 442;
(15) the output switch disconnects, and enters step 443 (step 442);
(16) if the judged result of step 440 is for being then to enter step 441;
(17) the output switch closure enters step 443 (step 441);
(18) finish (step 443).
See also shown in 8, described leakage current detection signal subprogram comprises the following step:
(1) leakage current input (step 110);
(2) read I/O current potential (step 111);
(3) A/D analog-to-digital conversion (step 112);
(4) record analog-to-digital conversion value (step 113);
(5) anti-interference process (step 114);
(6) set leakage current signal value (step 115);
(7) finish (step 116).
See also shown in 9, described over-current detection signal subprogram comprises the following step:
(1) overcurrent signal detects (step 210);
(2) read I/O current potential (step 211);
(3) A/D analog-to-digital conversion (step 212);
(4) record analog-to-digital conversion value (step 213);
(5) anti-interference process (step 214);
(6) set overcurrent signal value (step 215);
(7) finish (step 216).
See also shown in 10, described ground signalling level upset detects subprogram and comprises the following step:
(1) ground signalling detects (step 310);
(2) read I/O level (step 311);
(3) whether level has upset (step 312) in the unit interval;
(4) if the judged result of step 312 for not, then enters step 315;
(5) if the judged result of step 312 is for being then to enter step 313;
(6) enter INT0 and interrupt (step 313);
(7) counter values is removed (step 314);
(8) finish (step 315).
See also shown in 11, described ground signalling detects the count value counting subroutine and comprises the following steps:
(1) ground signalling detects (step 320);
(2) carry out regularly interruption (step 321);
(3) rolling counters forward (step 322);
(4) judge whether counter reaches setting and plant (step 323);
(5) if the judged result of step 323 for not, then enters step 325;
(6) if the judged result of step 323 is for being then to enter step 324;
(7) counter values assignment (step 324);
(8) finish (step 325).
Fig. 2, Fig. 4, Fig. 7, Fig. 8, Figure 10, Figure 11 show second embodiment of the present invention.
See also shown in Figure 2; a kind of Electrical Safety protection switch; comprise power input unit; the ground connection detecting unit; the detection of electrical leakage unit; DC power source unit; micro-control unit; the output control execution unit; it is characterized in that: power input unit A is by connected DC power source unit E step-down rectifier; obtain offering ground unit B; the electric leakage cells D; micro-control unit F; the low-voltage dc power supply of output control execution unit H work; ground state detection signal by the generation that B detects of ground connection detecting unit is sent to the existing microprocessing unit F that it links to each other; the leakage current signal that is detected by the detection of electrical leakage cells D is sent to coupled micro-control unit F; micro-control unit F is according to received ground signalling; the leakage current signal; whether need cut off load power source, and carry out whether cut off load power source by output control execution unit H if detecting.
See also shown in Figure 4ly, the control method of this Electrical Safety protection switch comprises the following steps:
(1) calls leakage current detection signal subprogram (step 11);
(2) with ground signalling subprogram (step 13);
(3) with output control subprogram (step 14);
(4) return step 11 (step 15);
See also 7 and show, described output control subprogram comprises the following steps:
(1) sets leakage current signal (step 710);
(2) judge whether the leakage current signal is setting signal (step 711);
(3) if the judged result of step 711 for not, then enters step 732;
(4) if the judged result of step 711 is for being then to enter step 730;
(5) counter assignment (step 720);
(6) judge that whether the value of counter is for being not equal to set point (step 721);
(7) if the judged result of step 721 for not, then enters step 732;
(8) if the judged result of step 721 is for being then to enter step 730;
(9) determining step 711, and whether step 721 satisfies simultaneously imposes a condition, and enters step 730;
(10) if the judged result of step 730 for not, then enters step 732;
(11) the output switch disconnects, and enters step 733 (step 732);
(12) if the judged result of step 730 is for being then to enter step 731;
(13) the output switch closure enters step 733 (step 731);
(14) finish (step 733).
See also shown in 8, described leakage current detection signal subprogram comprises the following step:
(1) leakage current input (step 110);
(2) read I/O current potential (step 111);
(3) A/D analog-to-digital conversion (step 112);
(4) record analog-to-digital conversion value (step 113);
(5) anti-interference process (step 114);
(6) set leakage current signal value (step 115);
(7) finish (step 116).
See also shown in 10, described ground signalling level upset detects subprogram and comprises the following step:
(1) ground signalling detects (step 310);
(2) read I/O level (step 311);
(3) whether level has upset (step 312) in the unit interval;
(4) if the judged result of step 312 for not, then enters step 315;
(5) if the judged result of step 312 is for being then to enter step 313;
(6) enter INT0 and interrupt (step 313);
(7) counter values is removed (step 314);
(8) finish (step 315).
See also shown in 11, described ground signalling detection counter numeric counter subprogram comprises the following step:
(1) ground signalling detects (step 320);
(2) carry out regularly interruption (step 321);
(3) rolling counters forward (step 322);
(4) judge whether counter reaches setting and plant (step 323);
(5) if the judged result of step 323 for not, then enters step 325;
(6) if the judged result of step 323 is for being then to enter step 324;
(7) counter values assignment (step 324);
(8) finish (step 325).
Fig. 3, Fig. 4, Fig. 6, Fig. 8, Fig. 9 the 3rd embodiment of the present invention.
See also shown in Figure 3, a kind of Electrical Safety protection switch, comprise the electric current input unit, over-current detection unit, the detection of electrical leakage unit, DC power source unit, micro-control unit, the output control execution unit, it is characterized in that: power input unit A is by coupled DC power source unit E step-down rectifier, obtain offering over-current detection unit C, the detection of electrical leakage cells D, micro-control unit F, the low-voltage dc power supply of output control execution unit H work, the load current signal that is detected by over-current detection unit C is sent to coupled micro-control unit F, is believed in being sent to coupled micro-control unit F by the leakage current that the detection of electrical leakage cells D detects; Micro-control unit F according to the leakage current signal, the over-current signal that are received, whether detect that needs cut off load power source, H carries out whether cut off load power source by the output control execution unit.
See also shown in Figure 4ly, the control method of this Electrical Safety protection switch comprises the following steps:
(1) calls leakage current detection signal subprogram (step 11);
(2) call over-current signal and detect subprogram (step 12);
(3) call output control subprogram (step 14);
(4) return step 11 (step 15);
See also shown in 6, described output control subprogram comprises the following steps:
(1) sets overcurrent signal (step 610);
(2) judge whether overcurrent signal is setting signal (step 611);
(3) if the judged result of step 611 for not, then enters step 632;
(4) if the judged result of step 611 is for being then to enter step 630;
(5) set leakage current signal (step 620);
(6) judge whether the leakage current signal is setting signal (step 621);
(7) if the judged result of step 621 for not, then enters step 632;
(8) if the judged result of step 621 is for being then to enter step 630;
(9) determining step 611, and whether step 621 satisfies imposing a condition simultaneously, enters step 630;
(10) if the judged result of step 630 for not, then enters step 632;
(11) the output switch disconnects, and enters step 633 (step 632);
(12) if the judged result of step 630 is for being then to enter step 631;
(13) the output switch closure enters step 633 (step 631);
(14) finish (step 633).
See also shown in 8, described leakage current detection signal subprogram comprises the following step:
(1) leakage current input (step 110);
(2) read I/O current potential (step 111);
(3) A/D analog-to-digital conversion (step 112);
(4) record analog-to-digital conversion value (step 113);
(5) anti-interference process (step 114);
(6) set leakage current signal value (step 115);
(7) finish (step 116).
See also shown in 9, described over-current detection signal subprogram comprises the following step:
(1) overcurrent signal detects (step 210);
(2) read I/O current potential (step 211);
(3) A/D analog-to-digital conversion (step 212);
(4) record analog-to-digital conversion value (step 213);
(5) anti-interference process (step 214);
(6) set overcurrent signal value (step 215);
(7) finish (step 216).
The above only is preferred embodiment of the present invention, and all equalizations of being done according to claim scope of the present invention change and modify, and all should belong to the covering scope of claim of the present invention.