CN103337837A - Power supply circuit protective control method - Google Patents

Power supply circuit protective control method Download PDF

Info

Publication number
CN103337837A
CN103337837A CN2013100939871A CN201310093987A CN103337837A CN 103337837 A CN103337837 A CN 103337837A CN 2013100939871 A CN2013100939871 A CN 2013100939871A CN 201310093987 A CN201310093987 A CN 201310093987A CN 103337837 A CN103337837 A CN 103337837A
Authority
CN
China
Prior art keywords
value
sampling
enter step
carry out
time counter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013100939871A
Other languages
Chinese (zh)
Other versions
CN103337837B (en
Inventor
黄景帅
张松涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XUCHANG YONGXIN ELECTRIC CO Ltd
Original Assignee
XUCHANG YONGXIN ELECTRIC CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XUCHANG YONGXIN ELECTRIC CO Ltd filed Critical XUCHANG YONGXIN ELECTRIC CO Ltd
Priority to CN201310093987.1A priority Critical patent/CN103337837B/en
Priority claimed from CN2009100649463A external-priority patent/CN101895085B/en
Publication of CN103337837A publication Critical patent/CN103337837A/en
Application granted granted Critical
Publication of CN103337837B publication Critical patent/CN103337837B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Emergency Protection Circuit Devices (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention provides a power supply circuit protective control method, which comprises the following steps of: 1) carrying out system initialization and A/D sampling interrupt program initialization; 2)judging whether A/D sampling interruption occurs or not, if so, coming into a step five, and if not, coming into a step three; 3) coming into a dial switch state reading program, and judging whether A/D sampling interruption occurs or not at the same time, if so, coming into the step five, and if not, coming into a step four; 4) coming into a switch control program, and judging whether A/D sampling interruption occurs or not at the same time, if so, coming into the step five, and if not, returning back to the step two; and 5) coming into a sampling interrupt program. Protection control carried out on a power supply circuit according to the method provided by the invention is more accurate and more user-friendly.

Description

A kind of supply line protection control method
Technical field
The present invention relates to for the protection control method in the supply line.
Background technology
Distribution power automation terminal equipment is because its special running environment, and need finish multinomial functions such as measurement, fault detect, protection, remote control simultaneously, and the hardware and software design of supply line's protective device has been proposed very high requirement.
Summary of the invention
The purpose of this invention is to provide a kind of supply line protection control method, accurate more, hommization to the protection control of supply line.
A kind of supply line protection control method, comprising following steps:
1) system initialization and A/D sampling interrupt routine initialization;
2) judge whether to take place the A/D sampling and interrupt, if enter step 5); If not, enter step 3);
3) enter the toggle switch state fetch program, judge whether to take place the A/D sampling simultaneously and interrupt, if enter step 5); If not, enter step 4);
4) enter switch control program, judge whether to take place the A/D sampling simultaneously and interrupt, if enter step 5); If not, return step 2);
5) enter A/D sampling interrupt routine.
Described supply line protection control method, wherein said A/D sampling interrupt routine comprises the steps:
51), judge whether the count value that state reads counter is 0, if not, state reads counter and subtracts 1 operation, enters step 52 then); If enter the step 3) of claim 11;
52), whether the count value of judging the opening time counter is less than the value of setting, if the opening time counter adds 1 operation, if not, enters step 53);
53), whether the count value of judging the closing time counter is less than the value of setting, if the closing time counter adds 1 operation, if not, enters step 54);
54), whether the count value that judge to overlap the closing time counter less than the count value of counter reclosing time, if overlap the closing time counter and add 1 operation, if not, enter step 55);
55), judge that whether the count value that overlaps the opening time counter is less than the overcurrent time-delay value of setting, if coincidence opening time counter adds 1 operation, if not, enters step 56);
56), whether the count value of judging the alarm count device is greater than 0, if the alarm count device subtracts 1 operation, if not, enters step 57);
57), successively each power supply phase line is implemented sampling.
Described supply line protection control method, wherein said step 57) in each power supply phase line is implemented sampling, wherein, each phase line power supply phase line is implemented sampling all adopt following steps:
571), sampling channel is set, carry out A/D sampling, with the value of the sampled data that collects and the value addition of cumulative data, addition result is saved in the bank bit of cumulative data, override the old data of cumulative data; To the zero clearing of sampled data bank bit;
572), carrying out sampling number judges that if sampling number, then withdraws from A/D sampling interrupt routine less than the value of setting, the point of interruption of main program continues to carry out when returning A/D sampling interruption; If sampling number equals the value of setting, judge whether the sampling that equals the value of setting number of times is first, if enter step 573), if not, enter step 574);
573), the value of cumulative data is sent to corresponding interim data, override the old data of interim data bank bit; The zero clearing of cumulative data bank bit, sampling number adds 1; Withdraw from A/D sampling interrupt routine, the point of interruption of main program continues to carry out when returning A/D sampling interruption;
574), cumulative data, interim data are delivered to data processor and carry out effective value computing and storage; Then, the value of cumulative data is sent to corresponding interim data, override the old data of interim data bank bit; The zero clearing of cumulative data bank bit; Withdraw from A/D sampling interrupt routine, the point of interruption of main program continues to carry out when returning A/D sampling interruption.
Described supply line protection control method, specifically comprises the steps: the toggle switch state fetch program in the wherein said step 3)
31), judge whether state reads time counter is 0, if not, return main program and continue to carry out; If enter step 32);
32), the overcurrent setting signal is read three times continuously, three times the values of reading are compared, get identical twice of the value of reading and be the value of setting of overcurrent definite value variable; Enter step 33 afterwards);
33), speed current settings signal is read three times continuously, three values of reading are compared, get identical twice of the value of reading and be the value of setting of quick-break definite value variable; Enter step 34 afterwards);
34), the zero-sequence current setting signal is read three times continuously, three values of reading are compared, get identical twice of the value of reading and be the value of setting of zero-sequence current definite value variable; Enter step 35 afterwards);
35), overcurrent delay adjustments signal is read three times continuously, three values of reading are compared, get twice identical value of setting for overcurrent time-delay variable of the value of reading; Enter step 36 afterwards);
36), read continuously three times overlapping the number of times setting signal, three values of reading are compared, get twice identical value of setting for coincidence number of times variable of the value of reading; Enter step 37 afterwards);
37), the reclose interval setting signal is read three times continuously, three values of reading are compared, get identical twice of the value of reading for overlapping the value of setting of discontinuous variable; Enter step 38 afterwards);
38), read time counter to state and give the state read cycle value of setting; Returning main program continues to carry out.
Described supply line protection control method, the switch control program in the wherein said step 4) comprises the steps:
41), at first read the opening and closing state of supply line's control switch; If separating brake enters step 42); If close a floodgate, enter step 47);
42), whether the effective value that detects the corresponding sampled signal of each phase line is greater than the overcurrent definite value, if send separating brake instruction and locking and report to the police; If not, enter step 43);
43), detect supply line's control switch and whether have at combined floodgate and occurred separating brake again in back 2 seconds, if send separating brake instruction and locking and report to the police; If not, enter step 44);
44), detect whether to receive the closing operation command signal, if having, the combined floodgate release that drives supply line's control switch carries out closing operation, the closing time counter makes zero, and restarts the accumulative total closing time; If do not have, enter step 45);
45), detect the registration mark position, judge whether to have taken place coincidence, if take place to overlap operation, the value of reclose interval duration is composed to counter reclosing time with the first time, returns main program and continues to carry out; If the coincidence that the system of receiving sends instruction enters step 46);
46), carry out closing operation, simultaneously, judge the count value that overlaps the closing time counter whether less than the count value of counter reclosing time, if, return main program and continue to carry out, simultaneously, overlap the closing time counter and continue accumulated counts; If not, send switching signal, coincidence closing time counter, coincidence separating brake counter make zero, and restart accumulative total; Carry out to overlap number of times and add 1, with carry out the value that overlaps the corresponding reclose interval duration of time number variable give reclosing time counter, return main program then and continue execution;
47), at first confirm to overlap the value of time number variable; Then, judge that whether the count value of opening time counter is less than the value of setting, if enter step 48); If not, enter step 49);
48), system enters the locking alert program, periodically sends the sub-switching operation instruction, the opening time counter counting again that makes zero returns main program and continues to carry out;
49) whether the A/D sampling effective value of judging arbitrary phase line is more than or equal to the quick-break definite value, and in this way, system enters the locking alert program, then sends the sub-switching operation instruction, and the opening time counter makes zero and counts again, returns main program and continues to carry out; If not, enter step 410);
410), judge A/D on supply line's live wire gather effective value whether greater than the overcurrent definite value, judge that A/D on supply line's zero line gathers effective value whether greater than the zero-sequence current definite value: aforementioned arbitrary for being then to enter step 411 if judgement draws); If judge to draw aforementioned being not, then enter step 415);
411), judge that whether the value of coincidence opening time counter is greater than the overcurrent time-delay value of setting, if enter step 412); If not, enter step 416);
412), carry out the sub-switching operation instruction, overlap the combined floodgate counter and make zero, overlap that the opening time counter makes zero, the opening time counter makes zero; Then, judge and carry out the value whether value that overlaps time number variable equals to overlap time number variable, if enter step 413); If not, enter step 414);
413), carry out to overlap time number variable and make zero, system enters the locking alert program, returns main program and continues to carry out;
414), registration mark is set to carries out the sign that overlaps operation, return main program and continue to carry out;
415), overlap the opening time counter and make zero, the value of reclose interval 0 is passed to counter reclosing time, enter step 416 then);
416), judge and to have or not sub-gate signal, if sub-gate signal is arranged, enter step 417); If there is not sub-gate signal, returns and continue to carry out main program;
417), carry out sub-switching operation, the opening time counter O reset, the value of giving for the closing time counter 3 seconds is returned and is continued to carry out main program.
The present invention adopts technique scheme will reach following technique effect:
The invention provides a kind of supply line protection control method, after supply line of the present invention protection control method is implemented, to accurate more, the hommization of protection control protection control method of the prior art relatively of supply line.
Description of drawings
Fig. 1 is the circuit theory diagrams of a kind of supply line of the present invention protective device;
Fig. 2 is that six parameters are set each dial-up state of toggle switch and the contrast exploded view of respective settings parameter in the supply line shown in Figure 1 protective device.
Fig. 3 is the main program flow chart of a kind of supply line of the present invention protection control method;
Fig. 4 is the flow chart of A/D sampling interrupt routine in the main program shown in Figure 3;
Fig. 5 is the flow chart of toggle switch state fetch program in the main program shown in Figure 3;
Fig. 6 is the flow chart of switch control program in the main program shown in Figure 3;
Fig. 7 is the flow chart of locking alert program in the switch control program shown in Figure 6.
Embodiment
A kind of supply line of the present invention protective device, circuit theory diagrams as shown in Figure 1, comprise supply line's control switch, supply line's control switch comprises combined floodgate release J11, separating brake release J12, auxiliary contact DL1, this supply line's protective device comprises that also data processor U1(adopts single-chip microcomputer PIC16F887A), supply line's testing circuit, the parameter initialization circuit, the closing by hand control circuit, the manual brake separating control circuit, the remote control transmitter (not shown), receiver of remote-control sytem, combined floodgate remote signal input circuit, separating brake remote signal input circuit, the control output circuit closes a floodgate, separating brake control output circuit, supply line's control switch auxiliary contact control circuit, combined floodgate release control circuit, separating brake release control circuit, wherein, supply line's testing circuit, the signal output part of parameter initialization circuit connects supply line's detection signal input of described data processor U1 respectively, parameter set input mouth, the closing by hand control circuit, the signal output part of combined floodgate remote signal input circuit all connects the switching signal input of described data processor U1, described manual brake separating control circuit, the signal output part of separating brake remote signal input circuit all connects the sub-gate signal input of described data processor U1, combined floodgate remote signal input circuit, the signal input part of separating brake remote signal input circuit is the corresponding combined floodgate control button that connects receiver of remote-control sytem respectively, separating brake control button; The switching signal output of described data processor U1, sub-gate signal output be the corresponding signal input part that connects the control output circuit that closes a floodgate, separating brake control output circuit respectively, and the control output circuit that closes a floodgate, separating brake control output circuit be corresponding control combined floodgate release control circuit, separating brake release control circuit respectively.The signal output part of supply line's control switch auxiliary contact control circuit connects supply line's control switch auxiliary signal input of described data processor U1.
The power module of present embodiment supply line protective device comprises an AC transformer TF1, the elementary winding of this AC transformer TF1 is used for being connected mains supply, the secondary winding of this AC transformer TF1 is namely exported direct current+12V power supply by capacitor C 11 filtering after carrying out rectification, filtering, voltage stabilizing processing by rectifier bridge D10, filter C10, the first three terminal regulator G1 earlier again; This direct current 12V power supply is output+5V power supply after the second three terminal regulator G2 voltage stabilizing, capacitor C 12 filtering again; + 5V power supply is used to 16M crystal oscillator U5, the receiver of remote-control sytem DZ1 power supply of data processor U1 (single-chip microcomputer PIC16F887), data processor U1.
Described closing by hand control circuit comprises a normal open switch S2, the second sheet filter EMI2, the second photoelectrical coupler U3, wherein, end connection+12 power supplys of this normal open switch S2, the other end connect the second photoelectrical coupler U3 by the second sheet filter EMI2 input, the first end connection+5V power supply of the second photoelectrical coupler U3 output, second end connects switching signal input 21 pin of described data processor U1.
Described manual brake separating control circuit comprises a normally closed switch S3, the 3rd sheet filter EMI3, the 3rd photoelectrical coupler U4, wherein, end connection+12V the power supply of normally closed switch S3, the other end connect the input of the 3rd photoelectrical coupler U4 by the 3rd sheet filter EMI3, the first end connection+5V power supply of the 3rd photoelectrical coupler U4 output, second end connects sub-gate signal input 22 pin of described data processor U1.
Described combined floodgate remote signal input circuit comprises the first diode D7, on signal output part 1 pin of the combined floodgate button of the positive pole connection receiver of remote-control sytem DZ1 of this first diode D7, the negative pole of this first diode D7 connects switching signal input 21 pin of described data processor U1.
Described separating brake remote signal input circuit comprises the second diode D8, on signal output part 4 pin of the separating brake button of the positive pole connection receiver of remote-control sytem DZ1 of this second diode D8, the negative pole of this second diode D8 connects sub-gate signal input 22 pin of described data processor U1.
Described combined floodgate control output circuit comprises the first switch triode Q1, first relay J 1, the base stage of the first switch triode Q1 connects switching signal output 23 pin of described data processor U1, the collector electrode of the first switch triode Q1 is by the coil connection+12V power supply of first relay J 1, the grounded emitter of the first switch triode Q1; The normal opened contact J1-1 of first relay J 1 is connected in series with described combined floodgate release J11 and constitutes combined floodgate release control circuit, and this combined floodgate release control circuit is used for being serially connected in supply line.
Described separating brake control output circuit comprises second switch triode Q2, second relay J 2, the base stage of second switch triode Q2 connects sub-gate signal output 24 pin of described data processor U1, the collector electrode of second switch triode Q2 is by the coil connection+12V power supply of second relay J 2, the grounded emitter of second switch triode; The normal opened contact J2-1 of second relay J 2 is connected in series with described separating brake release J12 and constitutes separating brake release control circuit, and this separating brake release control circuit is used for being serially connected in supply line.
Described supply line testing circuit comprises the A phase with supply line's (supply line is the three-wire system circuit in the present embodiment), the B phase, C is three current transformer T1 excessively that phase lines connect one to one mutually, T3, T2, in the present embodiment, the described current transformer T1 that respectively crosses, T3, T2 is with the A phase of wye connection with supply line, the B phase, C is connected: work as A, B, when the C three-phase current equates, its three-phase current vector and be zero, the electric current I o that namely flows through T3 is zero, work as A, B, when the C three-phase current is unequal, its three-phase current vector and unsymmetrical current of generation namely have a unsymmetrical current Io to flow through T3.Clearly demarcated first, second, third rectification filtering voltage stabilizing circuit that connects of the secondary winding of current transformer T1, T2, T3, each rectification filtering voltage stabilizing circuit is all identical, be example with first rectification filtering voltage stabilizing circuit, it is connected and composed successively by filter C1, rectifier bridge D1, capacitor C 4, resistance R 1, potentiometer W3, its output connects 2 pin of described data processor U1, and the output of second, third rectification filtering voltage stabilizing circuit connects 3,5 pin of described data processor U1 respectively.
Described parameter initialization circuit comprises overcurrent definite value setting toggle switch BK1, quick-break definite value setting toggle switch BK2, zero-sequence current definite value setting toggle switch BK3, overcurrent delay time definite value setting toggle switch BK4, coincidence number of times setting toggle switch BK5, spacing parameter setting reclosing time toggle switch BK6, and 4,5,6 pin of described overcurrent definite value setting toggle switch BK1 connect overcurrent definite value set input 7,6,4 pin of described data processor U1; 4,5,6 pin of quick-break definite value setting toggle switch BK2 connect quick-break definite value set input 10,9,8 pin of described data processor U1; The zero-sequence current definite value is set zero-sequence current definite value set input 19,18,17,16,15 pin of the corresponding described data processor U1 of connection of 6,7,8,9,10 pin difference of toggle switch BK3; Described overcurrent definite value sets 1,2,3 pin of toggle switch BK1, described quick-break definite value and sets 1,2,3 pin of toggle switch BK2, described zero-sequence current definite value and set 1,2,3,4,5 pin of toggle switch BK3 and all be connected in+the 5V DC power supply on; Described overcurrent delay time definite value is set 40,39,38,37 pin of the corresponding described data processor U1 of connection of 1,2,3,4 pin difference of toggle switch BK4; Described coincidence number of times is set 36,35 pin of the corresponding described data processor U1 of connection of 1,2 pin difference of toggle switch BK5; 1,2,3,4,5,6 pin of described spacing parameter setting reclosing time toggle switch BK6 are corresponding 34,33,30,29,28,27 pin that connect respectively; Described overcurrent delay time definite value sets 5,6,7,8 pin of toggle switch BK4, described coincidence number of times and sets 7,8,9,10,11,12 pin that 3,4 pin of toggle switch BK5, described reclosing time, spacing parameter was set toggle switch BK6 and all be connected in+the 5V DC power supply on.Figure 2 shows that above-mentioned six parameters setting toggle switch BK1, BK2, BK3, BK4, BK5, each dial-up state of BK6 and the contrast exploded view between the respective settings parameter, when as need overcurrent definite value setting toggle switch BK1 being set at 5A, will by three dial-up keys of left-to-right order respectively correspondence set aside state, set aside state, on dial state and get final product, all the other are no longer given unnecessary details one by one in detail.
Supply line's control switch auxiliary contact control circuit comprises the first sheet filter EMI1, the first photoisolator U2, end connection+12V the power supply of described switch auxiliary contact DL1, the other end connects the signal input part of the first photoisolator U2 by the first sheet filter EMI1, first end of the first photoisolator U2 signal output part divides two-way, its first via is by divider resistance R10 connection+5V power supply, its the second tunnel supply line's control switch auxiliary signal input 20 pin that connect described data processor U1, the second end ground connection of the signal output part of the first photoisolator U2.
Present embodiment supply line protective device also comprises reset circuit; condition indication circuit; described reset circuit comprises a reset key S1 and two resistance R 7; R8 is connected in series successively; free end connection+5V the power supply of resistance R 8; the free ending grounding of reset key S1; two resistance R 7; the intermediate contact of R8 connects reset terminal 1 pin of described data processor U1; button S1 is used for resetting control; (in the present embodiment; reset key S1 presses connection for often opening button, unclamps disconnection) press reset key S1; 1 pin of data processor UI just obtains a low-potential signal, and data processor U1 resets once.
Described condition indication circuit comprises a divider resistance R15, a LED LED 1, the minus earth of LED 1, anodal status signal output port 25 pin that connect described data processor U1 by resistance R 15.
Behind the power connection, present embodiment supply line protective device enters operating state, LED 1 flicker this moment; Set the overcurrent definite value, quick-break definite value, zero-sequence current (little electric current) definite value, the overcurrent delay time definite value that need, overlap number of times, reclosing time at interval by toggle switch BK1, BK2, BK3, BK4, BK5, BK6.Control switch is in gate-dividing state when supply line, this moment, the auxiliary contact DLI of supply line's control switch disconnected, photoelectrical coupler U2 is in cut-off state, 20 pin of data processor U1 are high potentials, close a floodgate if need, press remote control transmitter combined floodgate key, the 1 pin output high potential of receiver of remote-control sytem DZ1,21 pin that are input to described data processor U1 by diode D7 (or are connected switch knob S2, electric current is by sheet filter EMI2, resistance R 11 makes optocoupler U3 conducting, make 21 pin of data processor U1 obtain a high potential by resistance R 12 nodes), at this moment the pulse of the longest 500ms of switching signal output 23 pin of data processor U1 output duration, make triode Q1 conducting by resistance R 17, relay J 1 action, relay contact J1-1 closure, combined floodgate release J11 gets electronic work, supply line's control switch action is closed a floodgate, the auxiliary contact DL1 of supply line's control switch connects simultaneously, 20 pin of data processor U1 become electronegative potential by high potential, at this moment the 23 pin stopping pulses of data processor U1 output, supply line's control switch closes a floodgate and finishes, and supply line connects; When auxiliary contact DL1 connected, supply line's control switch was in "on" position, and when auxiliary contact DL1 disconnected, supply line's control switch was in gate-dividing state; If supply line's control switch closes a floodgate unsuccessful, it is long bright to warn that then the 25 pin output signals of data processor U1 drive LED 1, press remote control transmitter or closing by hand button S2 again, data processor U1 does not respond, like this, the accident of power supply that takes place with regard to the mechanical breakdown that has prevented owing to supply line's control switch, avoid simultaneously because supply line's control switch mechanical breakdown causes the long-term energising of combined floodgate release to burn with other relevant devices (as high pressure P T equipment etc.) damages, alarm automatically terminates after 5 minutes, or presses reset key S1 and remove alarm.
Control switch is in "on" position when supply line, 20 pin of data processor U1 are electronegative potentials, the auxiliary contact DL1 of supply line's control switch is closure state, if need separating brake, press remote control transmitter separating brake key or manual brake separating button S3,22 pin of data processor U1 can obtain a high potential, at this moment 24 pin of data processor U1 output is the pulse of the longest 500ms, make triode Q2 conducting by resistance R 18, relay J 2 actions, relay contact J2-1 closure, separating brake release J12 gets electronic work, supply line's control switch separating brake, the auxiliary contact DL1 of supply line's control switch disconnects simultaneously, and 20 pin of data processor U1 become high potential by electronegative potential, the 24 pin stopping pulses of data processor U1 output at this moment, separating brake is finished, and supply line stops power supply; If supply line's control switch separating brake is unsuccessful, 24 pin of data processor U1 can continue to send pulse, LED 1 is long bright to warn simultaneously, prevent because the accident of power supply that supply line's control switch mechanical breakdown (switch is refused branch) takes place, avoid simultaneously damaging owing to the switch mechanical breakdown causes the long-term energising of separating brake release to burn with other relevant devices (as high pressure P T equipment), alarm automatically terminates after 5 minutes, or presses reset key S1 and remove alarm.
It is after supply line connects that described supply line control switch closes a floodgate, and 3 road A/D conversion ports, 2 pin of data processor U1,3 pin, 5 pin are respectively to current transformer T1, electric current I a, the Ic of T2, T3 output, voltage signal Ua, Uc, the Uo that Io converts to through first, second, third rectification filtering voltage stabilizing circuit respectively carry out data acquisition excessively.At each cycle (20ms), 20 instantaneous values are gathered on the every road of three road A/D conversion ports respectively to be one group and to carry out average calculating operation (20 the continuous data additions that will gather are again divided by 20), each road obtains 1 effective value respectively, program adopts 20 instantaneous values that every road A/D sampling end is adopted to upgrade successively simultaneously, 20 instantaneous values are divided into 2 groups again, whenever obtain 10 new instantaneous values and just replace top 10 instantaneous values, again 20 numerical value after being updated are carried out computing, thereby improved real-time accuracy.Executive program periodicity (180ms) is carried out high electronegative potential detection to the setting output signal of six toggle switch BK1, BK2, BK3, BK4, BK5, BK6 and 20 pin, 21 pin, the 22 pin I/O pins of data processor U1 simultaneously, thereby judges the set function of each toggle switch, parameter and on off state, reception branch, reclosing command; Taked 3 to get 2 principles and judge that (be to get that two identical values adopt in three: 20,22 pin as data processor U1 are high level, can judge that supply line's control switch is in gate-dividing state to above each I/O pin senses; 20,22 pin as data processor U1 are low level, can judge that supply line's control switch is in "on" position), improved the antijamming capability of this protective device.Adopt sheet filter EMI1, EMI2, EMI3 filtering and optocoupler U2, U3, U4 to carry out photoelectricity simultaneously and isolated, can further reduce interference, improved the antijamming capability of this protective device.No matter when, where the program operation is as long as the A/D acquisition time arrives in order to guarantee to obtain the more real-time numerical value of electrical network, we have taked A/D to gather method with program parallelization, and namely A/D gathers with the mode of interrupting,, produce immediately and interrupt carrying out A/D and gather.
When supply line's control switch combined floodgate is finished, the electric current I a of this switch A phase of flowing through passed through current transformer T1 and was transformed into ac voltage signal, obtained dc pulse moving voltage Ua through resistance R 1, potentiometer W3 pressure limiting through capacitor C 1 elimination higher-order wave and sharp wave again through rectifier bridge D1 rectification, capacitor C 4 filtering; A/D conversion port 2 pin of data processor U1 carry out the A/D sampling to this dc pulse moving voltage Ua; when sampled value during greater than set mistake flow valuve; enter the overcurrent delay procedure; if the collection value in delay time is all greater than the value of setting; then 24 pin of data processor U1 are exported high potential; make triode Q2 conducting by resistance R 18; relay J 2 actions; the contact J2-1 closure of relay J 2; separating brake release J12 gets electronic work; supply line's control switch separating brake, the auxiliary contact DL1 of supply line's control switch disconnects, and 20 pin of data processor U1 obtain high potential; 24 pin of data processor U1 stop output; thereby triode Q2 is ended, and relay J 2 dead electricity reset, and the protection action is finished.If once to three coincidences, through after overlapping blanking time, the 23 pin output high potential of data processor U1 moved combined floodgate release J11 by triode Q1, relay J 1 after then the protection action was finished, and supply line's control switch closes a floodgate.After supply line's control switch closed a floodgate, if fault current is not eliminated, supply line's control switch continued separating brake, so finishing three coincidence back faults does not eliminate yet, supply line's control switch separating brake then, LED 1 indicator light Chang Liang simultaneously is to show alarm.This protective device enters blocking, and at this moment no matter the straighforward operation still manual operation of closing a floodgate is closed a floodgate, and this protective device does not respond, and has avoided line fault not eliminate and close a floodgate and send electrification like this.
The present invention also provides a kind of supply line protection control method, and its main program comprises the steps: as shown in Figure 3
1) system initialization and A/D sampling interrupt routine initialization; (because the A/D of native system sampling is to carry out with the mode of interrupting, so interrupt function that needs the master/slave cycle of operation register (CCPR2) of the CCP2 module (the CCP2 module is " input capture/output comparison/pulse width modulation CCP (Capture/Compare/PWM) module ") of use data processor U1 to produce, master/slave cycle of operation register CCPR2 is 16 programmable period registers that CCPR2L (least-significant byte) and CCPR2H (most-significant byte) form by two eight bit registers, master/slave cycle of operation register CCPR2 is read-write register, the cycle of determining master/slave cycle of operation register CCPR2 by the value that writes master/slave cycle of operation register CCPR2, (value that writes master/slave cycle of operation register CCPR2 was namely to set before program work moves, finish during system initialization), when the value of the timer TMR1 of data processor U1 (counter synchronous with system clock) equates with the value of the master/slave cycle of operation register CCPR2, the CCP2 module can be sent a triggering signal, and (prerequisite is that the interrupt function of CCP2 module must be opened, the value that is about to CCP2IE is arranged to 1, the code that program writes " CCP2IE=1 " namely represents to open the interrupt function of CCP2 module), CCP2IF=1 then, simultaneously automatically with the TMR1 zero clearing, explanation data processor U1 has entered into the CCP2 interrupt status in the time of CCP2IF=1, data processor U1 can stop current program automatically to be carried out, be transferred to interrupt service routine and carry out interrupt service routine, the value that program must CCP2IF when withdrawing from interrupt service routine is set to 0, otherwise the Infinite Cyclic that data processor U1 can not stop is carried out interrupt service routine; )
2) (open the CCP2 interrupt function, CCP2IE=1) judge whether to take place the A/D sampling and interrupt, if enter step 5); If not, enter step 3);
3) enter the toggle switch state fetch program; Simultaneously, judge whether to take place the A/D sampling and interrupt, if enter step 5); If not, the toggle switch state fetch program enters step 4) after finishing;
4) enter switch control program; Judge whether to take place the A/D sampling simultaneously and interrupt, if enter step 5); If not, return step 2 after switch control program is finished);
5) enter A/D sampling interrupt routine;
The flow chart of the A/D sampling interrupt routine described in Fig. 3 main program comprises the steps: as shown in Figure 4
51), judge whether the count value that state reads counter is 0, if not, state reads counter and subtracts 1 operation, enters step 52 then); If enter the described toggle switch state fetch program of step 3 of claim 11);
In the present embodiment, the initial value that state reads counter Zttime is made as 1800(ms), enter A/D sampling interrupt service routine state reads counter and all subtracts 1 automatically and (deduct 1ms at every turn, in the present embodiment, be a digit with 1ms), when the count value that reads counter when state is 0 " toggle switch state fetch program " begin to carry out, in the toggle switch state fetch program, read counter assignment 1800 to state, thereby make " toggle switch state fetch program " every the 1800ms(millisecond) carry out once;
52), whether the count value of judging the opening time counter is less than the value of setting, if the opening time counter adds 1 operation, if not, enters step 53);
In the present embodiment, value of setting (higher limit) of opening time counter FZtime is made as 500, enter A/D sampling interrupt service routine at every turn, judge that all whether the value of opening time counter is less than 500, have only when the value of opening time counter to add 1 operation less than 500 the time, otherwise carry out the program that comes the back; (value of setting 500 of opening time counter is higher limits of opening time counter, program just stops the operation that adds up of opening time counter is prevented the excessive overflow error of value of time counter (16 digit counter) when the value of opening time counter equals 500; Because the cycle of sub-gate signal is 500mS, after having crossed 500mS, previous sub-switching operation also do not have the separating brake success, then have second sub-gate signal, get final product so the opening time counter is 500 to the maximum) the 24 pins output high potential of data processor U1 when carrying out sub-switching operation, with the value of opening time counter clear 0 so that accumulated counts again; Whether normally how long obtain the execution sub-switching operation by the value of judging the opening time counter has had, judge supply line's control switch separating brake;
53), whether the count value of judging the closing time counter is less than the value of setting, if the closing time counter adds 1 operation, if not, enters step 54);
In the present embodiment, the initial value of closing time counter Hztime is made as 2000, enter A/D sampling interrupt service routine at every turn, judge that all whether the value of closing time counter is less than 2000, have only when the value of closing time counter to add 1 operation less than 2000 the time, otherwise carry out the program that comes the back; (value of closing time counter equals 2000 representative execution closing operations 2 seconds); 23 pins of data processor U1 output high potential when carrying out closing operation, with the value of closing time counter clear 0 in order to restart accumulated counts; How long obtain the execution closing operation by the value of judging the closing time counter has had, and judges that current closing operation has or not combined floodgate to the fault point; (if break down separating brake (overcurrent or quick-break separating brake) then explanation of system " closed a floodgate to the fault point " in 2 seconds after carrying out closing operation, and when closing a floodgate the fault point, system can send the locking warning and warn, and forbids all closing operations)
54), whether the count value that judge to overlap the closing time counter less than the count value of counter reclosing time, if overlap the closing time counter and add 1 operation, if not, enter step 55);
The initial value that overlaps closing time counter CHHtime is reclose interval 0(CHspac 0) value, (being provided with reclose interval 0, reclose interval 1, reclose interval 2 in the present embodiment), concrete numerical value is to be arranged by the user; Enter A/D sampling interrupt service routine at every turn, judge that all the value that overlaps the closing time counter is whether less than the value of the value (CHtime) (reclosing time, the initial value of counter also was reclose interval 0(CHspac 0) of counter reclosing time, and reclosing time counter value can different different values be arranged also along with what carry out to overlap that number of operations and user arrange, specifically please refer to " switch control program "), have only when the value that overlaps the closing time counter less than reclosing time counter value the time just can add 1 operation to overlapping the closing time counter, otherwise execution comes the program of back (when the value of coincidence closing time counter equals the value of counter reclosing time, illustrate that carrying out the time that overlaps closing operation has reached the coincidence closing time that the user arranges, when if electrical network also exists current value to reach the protection value afterwards, and overlap number of times and do not execute, then just carry out sub-switching operation again); To overlap the value of closing time counter after executing clear 0 when overlapping closing operation instruction (high potential of 23 pins output of data processor U1), so that it restarts to count; Obtain execution coincidence closing operation and how long had by judging the value that overlaps the closing time counter, for next step coincidence sub-switching operation is done time counter (coincidence separating brake: for example, if the time between failures that the user arranges (being the overcurrent time-delay) is 900mS, then when being 900, the value that overlaps the closing time counter begins to carry out to overlap sub-switching operation; )
If it is constant that bottom is that the power network current value reaches the protection value always, this product overlaps the implementation that number of times is made as 3 times:
Figure DEST_PATH_IMAGE001
?;
Figure DEST_PATH_IMAGE003
55), judge that whether the count value that overlaps the opening time counter is less than the overcurrent time-delay value of setting, if coincidence opening time counter adds 1 operation, if not, enters step 56);
The initial value that overlaps opening time counter CHFtime is overcurrent time-delay value of setting (GLtime), be that the user arranges, number range at 60ms between the 2000ms, enter A/D sampling interrupt service routine at every turn, judge that all whether the value that overlaps the opening time counter is less than the overcurrent time-delay value of setting; Have only when the value that overlaps the opening time counter during less than the overcurrent time-delay value of setting just counterweight on/off switch time counter add 1 operation, otherwise execution comes the program of back; To overlap the opening time counter after executing clear 0 when overlapping sub-switching operation instruction (high potential of 24 pins output of data processor U1), in order to can restart accumulated counts; How long obtain execution coincidence sub-switching operation by the value of judging coincidence opening time counter has had, for next step coincidence closing operation is done time counting (being counting time of delay of branch/closing operation instruction next time);
56), whether the count value of judging the alarm count device is greater than 0, if the alarm count device subtracts 1 operation, if not, enters step 57);
The initial value of alarm count device BJtime is made as 0, enters A/D sampling interrupt service routine at every turn, whether all judges the value of alarm count device greater than 0, if the alarm count device subtracts 1 operation; When the value of alarm count device just subtracts 1 operation to the alarm count device greater than 0 the time, otherwise carry out the program that comes the back; How long program is obtained execution locking alarm operation by the value of judging the alarm count device has had, and removes alarm condition operation for next step and does time counter; When system need carry out locking and reports to the police, will compose 5 minutes the value of giving after 300000(of alarm count device converts millisecond to) value can allow the locking alert program carry out the locking alarm operation;
57), successively each power supply phase line is implemented sampling;
Described supply line protection control method, wherein said step 57) in each power supply phase line is implemented sampling, wherein, each phase line power supply phase line is implemented sampling all adopt following steps:
571), sampling channel is set, carry out A/D sampling, with the value of the sampled data that collects and the value addition of cumulative data, addition result is saved in the bank bit of cumulative data, override the old data of cumulative data; To the zero clearing of sampled data bank bit;
572), carrying out sampling number judges that if sampling number, then withdraws from A/D sampling interrupt routine less than the value of setting, the point of interruption of main program continues to carry out when returning A/D sampling interruption; If sampling number equals the value of setting, judge whether the sampling that equals the value of setting number of times is first, if enter step 573), if not, enter step 574);
573), the value of cumulative data is sent to corresponding interim data, override the old data of interim data bank bit; The zero clearing of cumulative data bank bit, sampling number adds 1; Withdraw from A/D sampling interrupt routine, the point of interruption of main program continues to carry out when returning A/D sampling interruption;
574), cumulative data, interim data are delivered to data processor and carry out effective value computing and storage; Then, the value of cumulative data is sent to corresponding interim data, override the old data of interim data bank bit; The zero clearing of cumulative data bank bit; Withdraw from A/D sampling interrupt routine, the point of interruption of main program continues to carry out when returning A/D sampling interruption.
In present embodiment, preceding step 57) " successively each power supply phase line being implemented sampling " described in is specific as follows:
One, the sampling channel that A phase line (live wire one) is set is the 2nd pin of AN0(data processor U1), trigger A/D sampling (ADGO is put 1), wait for that the A/D sampling finishes (A/D sampling finish after, data processor U1 puts 0 with ADGO); (ADGO is that the A/D conversion of data processor U1 starts control bit double as mode bit; ADGO=1 then starts the A/D transfer process or shows that A/D conversion carries out; ADGO=0 then A/D conversion finishes (data processor U1 automatic clear 0) or represents not carry out the A/D conversion);
Two, with the Ua data (ADdatUa) and Ua cumulative data (datUa) addition that collect, the result is saved in cumulative data (datUa): (datUa+ADdatUa=datUa), and to ADdatUa clear 0;
Three, the sampling channel that C phase line (live wire two) is set is the 3rd pin of AN1(data processor U1), trigger A/D sampling (ADGO is put 1), wait for that the A/D sampling finishes (ADGO=0, the A/D sampling is finished data processor U1 and automatically ADGO put 0);
Four, with the Uc data (ADdatUc) and Uc cumulative data (datUc) addition that collect, the result is saved in cumulative data (datUc): (datUc+ADdatUc=datUc), and to ADdatUc clear 0;
Five, the sampling channel that B phase line (zero line) is set is AN3 (the 5th pin of data processor U1, the toggle switch that the AN2 pin is set up the overcurrent definite value takies), trigger A/D sampling (ADGO is put 1), (ADGO=0, the A/D sampling is finished data processor U1 and automatically ADGO put 0) finished in wait A/D sampling;
Six, with the Uo data (AddatUo) and Uo cumulative data (datUo) addition that collect, the result is saved in cumulative data (datUo): (datUo+ADdatUo=datUo), and to ADdatUo clear 0;
Seven, carrying out sampling number judges:
8.1 if sampling number less than 10, then withdraws from interruption, turn back to program interrupt point (position of executive program when A/D interrupts) from the breakpoint succession executive program;
8.2 if sampling number equals 10, then judge whether it is first 10 times:
A) if first 10 times, then the value of cumulative data (datUa, datUc, datUo) is sent to the old data that corresponding interim data (NdatUa, NdatUc, NdatUo) overrides interim data (NdatUa, NdatUc, NdatUo) respectively; Clear 0 cumulative data (datUa, datUc, datUo), sampling number puts 1; Withdraw from interruption, turn back to the main program point of interruption, therefrom breakpoint succession is carried out main program;
B), if not being head 10 times, then cumulative data (datUa, datUc, datUo) and interim data (NdatUa, NdatUc, NdatUo) send data processor U1 carry out the effective value computing (because the native system peripheral circuit alternating current Ia, the Ic of external electrical network, Io, converted corresponding direct voltage Ua to, Ub, Uo carry out the A/D sampling, average and get final product so the effective value computing only needs that cumulative data and interim data are carried out addition, as (datUa+NdatUa)/20; ); At last the value of cumulative data (datUa, datUc, datUo) is sent to the old data that corresponding interim data (NdatUa, NdatUc, NdatUo) overrides interim data (NdatUa, NdatUc, NdatUo) respectively; Cumulative data (datUa, datUc, datUo) clear 0; Withdraw from interruption, turn back to the main program point of interruption, therefrom breakpoint succession is carried out main program.
The flow chart of described toggle switch state fetch program of step 3) as shown in Figure 5 in the main program, specifically comprise the steps: (main program part only reads time counter ZTtime to state and subtracts 1 operation at every turn in A/D interrupts, till the value that state reads time counter ZTtime is 0)
31) judge, at first whether state reads time counter is 0, if not, return main program and continue to carry out; If enter step 32);
32), the overcurrent setting signal is read (pin 4,6 of data processor U1,7 level are read three times continuously) continuously three times, three times the value of reading is compared, get identical twice of the value of reading and be value of setting of overcurrent definite value variable (namely 3 getting 2 principles); Enter step 33 afterwards);
33), speed current settings signal is read (pin 8,9 of data processor U1,10 level are read three times continuously) continuously three times, three values of reading are compared, get identical twice of the value of reading and be the value of setting of quick-break definite value variable; Enter step 34 afterwards);
34), the zero-sequence current setting signal is read (pin one 5,16,17,18 of data processor U1,19 level are read three times continuously) continuously three times, three values of reading are compared, get identical twice of the value of reading and be the value of setting of zero-sequence current definite value variable; Enter step 35 afterwards);
35), overcurrent delay adjustments signal is read (pin 40,39 of data processor U1,38 level are read 3 times continuously) continuously three times, three values of reading are compared, get twice identical value of setting for overcurrent time-delay variable of the value of reading; Enter step 36 afterwards);
36), read (pin 36 of data processor U1,35 level are read 3 times continuously) continuously three times to overlapping the number of times setting signal, three values of reading are compared, get twice identical value of setting for coincidence number of times variable of the value of reading; Enter step 37 afterwards);
37), the reclose interval setting signal is read (pin 34,33,30,29,28 of data processor U1,27 level are read 3 times continuously) continuously three times, three values of reading are compared, get identical twice of the value of reading for overlapping the value of setting of discontinuous variable; Enter step 38 afterwards);
38), read time counter to state and give state read cycle value of setting (1800); Returning main program continues to carry out.
Fig. 6 is the flow chart of switch control program in the main program shown in Figure 3, specifically comprises the steps:
41), at first read the opening and closing state of supply line's control switch; If separating brake enters step 42); If close a floodgate, enter step 47);
42), whether the effective value that detects the corresponding sampled signal of each phase line is greater than the overcurrent definite value, if send separating brake instruction and locking and report to the police; If not, enter step 43);
Here be whether the A/D that detects each passage (Ia, Ic, Io) gathers effective value greater than 0.3A (judging whether detected end has effective current values); Separating brake instruction described here includes only separating brake instruction excessive because of electric current or that fault causes, the separating brake instruction that does not comprise artificial remote control or manually send; In addition, begin by the opening time counter opening time to be added up when data processor U1 sends the separating brake instruction, the end of opening time accumulative total is whether the value of seeing opening time counter (FZtime) reaches higher limit;
43), detect supply line's control switch and whether have at combined floodgate and occurred separating brake again in back 2 seconds, if send separating brake instruction and locking and report to the police; If not, enter step 44);
Here detect closing time and whether smaller or equal to 2 seconds be because product have " closing a floodgate to the fault point " (namely when detecting supply line's control switch and become closure (ON) from disconnecting (OFF) in 2 seconds if " fault separating brake " (including only separating brake excessive because of electric current or that fault causes instructs, if the sample rate current of current electrical network exceeds set protective current value, behind combined floodgate, be no more than 2 seconds and break down again separating brake, the separating brake instruction that the separating brake does not here comprise artificial remote control or manually sends) illustrates that then this closing operation just is on the fault point, system alarm and enter into blocking then, avoid when not eliminating fault, close a floodgate again or reclosing operation, thereby cause bigger accident of power supply; Therefore also to judge the gate-dividing state that whether has " closing a floodgate to the fault point " to occur under the gate-dividing state; Be gate-dividing state equally, the reason difference of generation, corresponding program control is also different; Detecting closing time, is to detect by the value of judging closing time counter (HZtime), and the operating procedure that adds up of closing time counter is also gathered in the interrupt service routine at A/D and carried out;
(do not comprise manual or remote control separating brake, only refer to the separating brake that quick-break or overcurrent cause, system enters locking alert program (forbidding all closing operations) to separating brake if system closes a floodgate afterwards again in 2 seconds;
44), detect whether to receive the closing operation command signal, if having, the combined floodgate release that drives supply line's control switch carries out closing operation, the closing time counter makes zero, and restarts the accumulative total closing time; If do not have, enter step 45);
Here detect and have or not switching signal to refer to detect whether to have by the outside manually or the reclosing command that sends of remote control, drive external circuit and carry out closing operation if having then send switching signal by 23 pins of data processor U1, the closing time counter makes zero and restarts the closing time that adds up; In addition, also have the combined floodgate of the automatic intersection of a kind of program in the native system, namely program carries out carrying out closing operation behind the corresponding delay time according to the registration parameters that arranges behind the over current fault separating brake);
45), detect the registration mark position, judge whether to have taken place coincidence, if take place to overlap operation, the value of reclose interval duration is composed to counter reclosing time with the first time, returns main program and continues to carry out; If the coincidence that the system of receiving sends instruction enters step 46);
Coincidence has only under a kind of situation of " over current fault separating brake " (power network current reaches the sub-switching operation that the overcurrent protection value is carried out) and takes place.
If do not overlap, the value of reclose interval 0 was composed return information circulation then to reclosing time.(" reclose interval 0 " referred to behind the sub-switching operation to the time interval that overlaps for the first time closing operation; The value of reclose interval 0 was composed to reclosing time, then overlap the time of delaying of closing operation is exactly the time of reclose interval 0 next time, namely overlaps for the first time the time interval (because the time that the number of times different needs of execution coincidence closing operation is delayed is also different) of closing operation;
Registration mark position CHtag has only 0 and 1 two states, and namely registration mark position CHtag is 0 o'clock to be operation does not take place to overlap, and registration mark position CHtag is that 1 system has taken place to overlap operation, and also is in now and overlaps in the mode of operation; Overlap main at supply line's control switch closure state and taken place under the situation of overcurrent separating brake, overlap to carry out when number of times (ZCHnum) is not equal to coincidence number of times (CHnum) and trigger, when reaching the overcurrent protection value (value of the setting GLnum of overcurrent definite value) of user's setting, the power network current value delays a period of time (length can arrange) if the power network current value never falls back to less than the overcurrent protection value, then carry out separating brake, delay a period of time (length can arrange) program afterwards again and carry out closing operation automatically, the concrete operations that Here it is overlaps; Overlap operation and can effectively eliminate electrical network because disturb or misoperation that inrush phenomenon (a kind of instantaneous and fluctuation that amplitude is very big that power network current occurs during supply line control switch divide-shut brake) causes, automatic closing can make product more humane, meets the requirement of power distribution automation; In addition, the reclose interval counter that occurs later is that accumulative total enters behind the coincidence status from separating brake and begins to carry out time interval (length can arrange) of this process of closing operation automatically to program; Reclosing time counter value time (beginning to calculate from the over current fault separating brake) of having determined program to overlap closing operation automatically need to delay; Overlap execution time counter ZXnum and refer to that system has carried out the number of times that overlaps closing operation; Overlapping number of times CHnum is a value of setting; Overlap to carry out number of times be not equal to overlap number of times " refer to closing operation number of times that present system carries out and also do not reach the set value of user (the set value of user is the highest coincidence number of times that allows this product to carry out; Coincidence execution number of times is not equal to the coincidence number of times and illustrates that the execution of this product overlaps number of operations and also do not reach set peak);
46), carry out closing operation, simultaneously, judge the count value that overlaps the closing time counter whether less than the count value of counter reclosing time, if, return main program and continue to carry out, simultaneously, overlap the closing time counter and continue accumulated counts; If not, send switching signal, coincidence closing time counter, coincidence separating brake counter make zero, and restart accumulative total; Carry out to overlap number of times and add 1, with carry out the value that overlaps the corresponding reclose interval duration of time number variable give reclosing time counter, return main program then and continue execution;
Overlapping the closing time counter is to carry out a counter (CHHtime) that overlaps closing operation, whether the value that overlaps the closing time counter carries out the foundation that next time overlaps closing operation, has only when its value and just carries out the coincidence closing operation more than or equal to the value of counter reclosing time (CHtime); Closing time counter (HZtime) refers to as long as system has reclosing command to send to be 23 pins of data processor U1 to have high potential output just to pick up counting, and refers to that all combined floodgates also comprise overlapping close a floodgate; Overlapping closing time counter (CHHtime) is only just to count when system takes place to overlap closing operation; Closing time counter (HZtime) is the malfunction of weighing electrical network, measures for the time that overlaps closing operation next time and overlap closing time counter (CHHtime).Coincidence closing time counter CHHtime makes zero and picks up counting when "on" position is carried out the overcurrent sub-switching operation; Determine counter and the corresponding value of reclose interval reclosing time according to the value that carry out to overlap number of times, reclosing time, the counter initial value was the value of reclose interval 0, needed to postpone the time of " reclose interval 0 " (user's value of setting) when carrying out the 1st coincidence closing operation; The time that when carrying out the 2nd coincidence closing operation, needs to postpone " reclose interval 1 " (user's value of setting); The time that when carrying out the 3rd coincidence closing operation, needs to postpone " reclose interval 2 " (user's value of setting), and the value of reclose interval 0, reclose interval 1, reclose interval 2 be the user arrange also inequality, will corresponding intervals delay the time so carry out corresponding operation);
If overlap closing time less than reclosing time, then explanation coincidence closing operating time does not next time also arrive, do not carry out the coincidence closing operation and return main program continuation execution, the operation that adds up that overlaps closing time (CHHtime) is to carry out every millisecond to add 1 in A/D collection interrupt service routine.Be not less than reclosing time if overlap closing time, then explanation coincidence closing operating time next time arrives, and sends switching signal by 23 pins of data processor U1 immediately and drives external circuit and carry out closing operation.
(overlapping the opening time counter and be the system that is accumulated at enters coincidence status and picks up counting timing end after the coincidence closing operation is finished when generation " over current fault sub-switching operation " time with overlapping opening time counter (CHFtime) to overlap the closing time counter.Overlapping opening time counter (CHFtime) is the counter of determining to overlap the sub-switching operation time, and its operation that adds up is to carry out every millisecond in A/D collection interrupt service routine the inside to add 1.
It is which time overlaps that execution coincidence number of times refers to current coincidence operation, in the present embodiment, reclose interval is made as 0 interval, 1 interval, 2 intervals, 1 time, 2 times, 3 times coincidence is namely arranged, and number of times all is that the user according to circumstances arranges different values with reclose interval, the value of " reclose interval 0 user can arrange 100mS (millisecond), 200mS (millisecond), 300mS (millisecond), 400mS (millisecond) " for example, program need be dynamically to judge.
47), at first confirm to overlap the value of time number variable; Then, judge that whether the count value of opening time counter is less than the value of setting, if enter step 48); If not, enter step 49);
In the present embodiment, the value of setting of opening time counter is the 500(millisecond), send the 24th pin output high potential that the separating brake instruction is data processor U1 from system, opening time counter FZtime picks up counting); If opening time greater than 500 milliseconds then illustrative system does not have fault, enters step 49);
48), system enters the locking alert program, periodically sends the sub-switching operation instruction, the opening time counter counting again that makes zero returns main program and continues to carry out;
If opening time, then illustrates supply line's control switch less than 500 milliseconds and can not be in the branch state of refusing by separating brake that system enters locking alert program (forbidding all closing operations).Periodically send the sub-switching operation instruction, the reclocking of making zero of opening time counter is returned main program and is continued to carry out;
49) whether the A/D sampling effective value of judging arbitrary phase line is more than or equal to the quick-break definite value, and in this way, system enters the locking alert program, then sends the sub-switching operation instruction, and the opening time counter makes zero and counts again, returns main program and continues to carry out; If not, enter step 410);
If A/D gathers effective value more than or equal to the quick-break definite value, the electric current that real-time circuit then is described has reached set quick-break current value, and system enters locking alert program (forbidding all closing operations), sends sub-switching operation, the opening time reclocking of making zero, the return information circulation;
410), judge A/D on supply line's live wire gather effective value whether greater than the overcurrent definite value, judge that A/D on supply line's zero line gathers effective value whether greater than the zero-sequence current definite value: aforementioned arbitrary for being then to enter step 411 if judgement draws); If judge to draw aforementioned being not, then enter step 415);
If A/D gathers Ia, Ic effective value more than or equal to the overcurrent definite value, perhaps the Io effective value is more than or equal to zero sequence definite value (having only 1 generation just to set up), and the current value that actual electric network then is described has the electric current of the overcurrent definite value that reaches set;
411), judge that whether the value of coincidence opening time counter is greater than the overcurrent time-delay value of setting, if enter step 412); If not, enter step 416);
412), carry out the sub-switching operation instruction, overlap the combined floodgate counter and make zero, overlap that the opening time counter makes zero, the opening time counter makes zero; Then, judge and carry out the value whether value that overlaps time number variable equals to overlap time number variable, if enter step 413); If not, enter step 414);
413), carry out to overlap time number variable and make zero, system enters the locking alert program, returns main program and continues to carry out;
414), registration mark is set to carries out the sign that overlaps operation, return main program and continue to carry out;
Carry out the coincidence number of times and refer to, the operation of current execution is to belong to which time to overlap operation; Overlapping number of times is user's value of setting, is the number of times that the permission system overlaps operation altogether, comprises overlapping and heavily branch operation); Registration mark CHtag has only 0 and 1 two states, and namely CHtag is 0 to be that " coincidences " operation not to take place, and CHtag is 1 to be that system " coincidences " taken place operates, and also is in now in the coincidence mode of operation;
415), overlap the opening time counter and make zero, the value of reclose interval 0 is passed to counter reclosing time, enter step 416 then);
If A/D gathers Ia, Ic effective value less than the overcurrent definite value, and the Io effective value is also less than zero sequence definite value (little current ration), illustrate that network system real-time current value surpasses setting overcurrent definite value and zero sequence definite value (little current ration), then overlaps opening time and makes zero, the value of reclose interval 0 is sent to reclosing time;
416), judge and to have or not sub-gate signal, if sub-gate signal is arranged, enter step 417); If there is not sub-gate signal, returns and continue to carry out main program;
417), carry out sub-switching operation, the opening time counter O reset, the value of giving for the closing time counter 3 seconds is returned and is continued to carry out main program;
If sub-gate signal is arranged, then carry out sub-switching operation, opening time counter O reset, (whether the cumulative time of this closing time counter is to have the separating brake instruction to send for judging closing a floodgate in 3 seconds to give 1 value of 3 seconds of closing time counter (HZtime), here owing to be the on/off switch instruction that accumulative total is manually frequently sent by operating personnel, not that electrical network breaks down, so system can not report to the police, avoid at three seconds every during because of the artificial frequent manually divide-shut brake in outside system enter gate-dividing state.Because current supply line control switch is to be in closure state, no matter whether data processor has reclosing command, as long as sub-gate signal is arranged, system all can carry out sub-switching operation, the opening time counter O reset mainly is to have for detection of supply line's control switch effectively not carry out the separating brake instruction, supply line's control switch is not finished the separating brake action in the time of setting if the separating brake instruction is sent, illustrate that then supply line's control switch damaged or the branch state occurred refusing, must report to the police this moment.
The flow chart of locking alert program noted earlier as shown in Figure 7, concrete steps are as follows:
1, judges warning earlier TimerWhether equal 0:
1.1 if timer equals 0, then the locking warning does not appear in illustrative system, open 21 pins (switching signal input) input and 23 pins (switching signal output) output function of data processor U1, making 25 pins (the status signal output of data processor U1) the output cycle is the rectangular wave of 500mS (millisecond); Turn back to switch control program and continue operation;
1.2 if alarm timer (BJtime) is not equal to 0, close the input of 21 pins and the output function of 23 pins, make 25 pins output high level; Enter A/D sampling interrupt routine, to alarm timer subtract 1 countdown (till alarm timer (BJtime) value is 0, alarm timer (BJtime) value be 0 o'clock be the end warning); Turn back to switch control program and continue operation.
If system need enter locking and report to the police, (it is total that system enters locking alert program one: refuse that branch is reported to the police, quick-break is reported to the police, overlap finish that fault is not removed warnings, the four kinds of situations of reporting to the police to the fault point of closing a floodgate) only need can enter the locking alert program to the value of timer tax last 300000.
Wherein:
1, refusing branch reports to the police: when the pulse signal of the high potential that sends separating brake instruction (24 pin (sub-gate signal output) cycle of sending that is data processor U1 is the 500mS(millisecond)) after, if supply line's control switch does not effectively switch to gate-dividing state from "on" position within this 500mS, then be judged as supply line's control switch and refuse branch, enter and refuse the branch alarm condition.(because the alarm condition of native system all is to make relay indicating light Chang Liang, forbids all closing operations, and all be to automatically terminate after 5 minutes.So but different though what call is same alert program to the name of reporting to the police.)
2, quick-break is reported to the police: when the current value of electrical network reaches " fast tripping protection " value of setting of user's setting; system sends the pulse signal of the high potential of separating brake instruction (be 24 human hair combing wastes of data processor U1 go out the cycle be the 500mS(millisecond) immediately), enter the quick-break alarm condition.
3, overlap to finish fault and do not remove warning: after system carried out the set coincidence number of times of the user that is over, supply line's control switch still entered by because of the over current fault separating brake time to overlap and finishes fault and do not remove warning.
4, close a floodgate and to report to the police to the fault point: namely when detecting supply line's control switch and become ON (closure) from OFF (disconnection) in 2 seconds if " fault separating brake " (including only separating brake excessive because of electric current or that fault causes instructs, the separating brake instruction that does not comprise artificial remote control or manually send) illustrates that then this closing operation just is on the fault point, then system enters and closes a floodgate to the fault point alarm condition, avoid when not eliminating fault, close a floodgate again or reclosing operation, thereby cause bigger accident of power supply.

Claims (5)

1. supply line's protection control method is characterized in that: comprise the steps:
1) system initialization and A/D sampling interrupt routine initialization;
2) judge whether to take place the A/D sampling and interrupt, if enter step 5); If not, enter step 3);
3) enter the toggle switch state fetch program, judge whether to take place the A/D sampling simultaneously and interrupt, if enter step 5); If not, enter step 4);
4) enter switch control program, judge whether to take place the A/D sampling simultaneously and interrupt, if enter step 5); If not, return step 2);
5) enter A/D sampling interrupt routine.
2. supply line as claimed in claim 1 protects control method, it is characterized in that: described A/D sampling interrupt routine comprises the steps:
51), judge whether the count value that state reads counter is 0, if not, state reads counter and subtracts 1 operation, enters step 52 then); If enter the described toggle switch state fetch program of step 3 of claim 11);
52), whether the count value of judging the opening time counter is less than the value of setting, if the opening time counter adds 1 operation, if not, enters step 53);
53), whether the count value of judging the closing time counter is less than the value of setting, if the closing time counter adds 1 operation, if not, enters step 54);
54), whether the count value that judge to overlap the closing time counter less than the count value of counter reclosing time, if overlap the closing time counter and add 1 operation, if not, enter step 55);
55), judge that whether the count value that overlaps the opening time counter is less than the overcurrent time-delay value of setting, if coincidence opening time counter adds 1 operation, if not, enters step 56);
56), whether the count value of judging the alarm count device is greater than 0, if the alarm count device subtracts 1 operation, if not, enters step 57);
57), successively each power supply phase line is implemented sampling.
3. supply line as claimed in claim 2 protects control method, it is characterized in that: described step 57) each power supply phase line is implemented sampling, wherein, following steps are all adopted in each phase line power supply phase line enforcement sampling:
571), sampling channel is set, carry out A/D sampling, with the value of the sampled data that collects and the value addition of cumulative data, addition result is saved in the bank bit of cumulative data, override the old data of cumulative data; To the zero clearing of sampled data bank bit;
572), carrying out sampling number judges that if sampling number, then withdraws from A/D sampling interrupt routine less than the value of setting, the point of interruption of main program continues to carry out when returning A/D sampling interruption; If sampling number equals the value of setting, judge whether the sampling that equals the value of setting number of times is first, if enter step 573), if not, enter step 574);
573), the value of cumulative data is sent to corresponding interim data, override the old data of interim data bank bit; The zero clearing of cumulative data bank bit, sampling number adds 1; Withdraw from A/D sampling interrupt routine, the point of interruption of main program continues to carry out when returning A/D sampling interruption;
574), cumulative data, interim data are delivered to data processor and carry out effective value computing and storage; Then, the value of cumulative data is sent to corresponding interim data, override the old data of interim data bank bit; The zero clearing of cumulative data bank bit; Withdraw from A/D sampling interrupt routine, the point of interruption of main program continues to carry out when returning A/D sampling interruption.
4. supply line as claimed in claim 1 protects control method, it is characterized in that: the toggle switch state fetch program in the described step 3), specifically comprise the steps:
31), judge whether state reads time counter is 0, if not, return main program and continue to carry out; If enter step 32);
32), the overcurrent setting signal is read three times continuously, three times the values of reading are compared, get identical twice of the value of reading and be the value of setting of overcurrent definite value variable; Enter step 33 afterwards);
33), speed current settings signal is read three times continuously, three values of reading are compared, get identical twice of the value of reading and be the value of setting of quick-break definite value variable; Enter step 34 afterwards);
34), the zero-sequence current setting signal is read three times continuously, three values of reading are compared, get identical twice of the value of reading and be the value of setting of zero-sequence current definite value variable; Enter step 35 afterwards);
35), overcurrent delay adjustments signal is read three times continuously, three values of reading are compared, get twice identical value of setting for overcurrent time-delay variable of the value of reading; Enter step 36 afterwards);
36), read continuously three times overlapping the number of times setting signal, three values of reading are compared, get twice identical value of setting for coincidence number of times variable of the value of reading; Enter step 37 afterwards);
37), the reclose interval setting signal is read three times continuously, three values of reading are compared, get identical twice of the value of reading for overlapping the value of setting of discontinuous variable; Enter step 38 afterwards);
38), read time counter to state and give the state read cycle value of setting; Returning main program continues to carry out.
5. supply line as claimed in claim 1 protects control method, and it is characterized in that: the switch control program in the described step 4) comprises the steps:
41), at first read the opening and closing state of supply line's control switch; If separating brake enters step 42); If close a floodgate, enter step 47);
42), whether the effective value that detects the corresponding sampled signal of each phase line is greater than the overcurrent definite value, if send separating brake instruction and locking and report to the police; If not, enter step 43);
43), detect supply line's control switch and whether have at combined floodgate and occurred separating brake again in back 2 seconds, if send separating brake instruction and locking and report to the police; If not, enter step 44);
44), detect whether to receive the closing operation command signal, if having, the combined floodgate release that drives supply line's control switch carries out closing operation, the closing time counter makes zero, and restarts the accumulative total closing time; If do not have, enter step 45);
45), detect the registration mark position, judge whether to have taken place coincidence, if take place to overlap operation, the value of reclose interval duration is composed to counter reclosing time with the first time, returns main program and continues to carry out; If the coincidence that the system of receiving sends instruction enters step 46);
46), carry out closing operation, simultaneously, judge the count value that overlaps the closing time counter whether less than the count value of counter reclosing time, if, return main program and continue to carry out, simultaneously, overlap the closing time counter and continue accumulated counts; If not, send switching signal, coincidence closing time counter, coincidence separating brake counter make zero, and restart accumulative total; Carry out to overlap number of times and add 1, with carry out the value that overlaps the corresponding reclose interval duration of time number variable give reclosing time counter, return main program then and continue execution;
47), at first confirm to overlap the value of time number variable; Then, judge that whether the count value of opening time counter is less than the value of setting, if enter step 48); If not, enter step 49);
48), system enters the locking alert program, periodically sends the sub-switching operation instruction, the opening time counter counting again that makes zero returns main program and continues to carry out;
49) whether the A/D sampling effective value of judging arbitrary phase line is more than or equal to the quick-break definite value, and in this way, system enters the locking alert program, then sends the sub-switching operation instruction, and the opening time counter makes zero and counts again, returns main program and continues to carry out; If not, enter step 410);
410), judge A/D on supply line's live wire gather effective value whether greater than the overcurrent definite value, judge that A/D on supply line's zero line gathers effective value whether greater than the zero-sequence current definite value: aforementioned arbitrary for being then to enter step 411 if judgement draws); If judge to draw aforementioned being not, then enter step 415);
411), judge that whether the value of coincidence opening time counter is greater than the overcurrent time-delay value of setting, if enter step 412); If not, enter step 416);
412), carry out the sub-switching operation instruction, overlap the combined floodgate counter and make zero, overlap that the opening time counter makes zero, the opening time counter makes zero; Then, judge and carry out the value whether value that overlaps time number variable equals to overlap time number variable, if enter step 413); If not, enter step 414);
413), carry out to overlap time number variable and make zero, system enters the locking alert program, returns main program and continues to carry out;
414), registration mark is set to carries out the sign that overlaps operation, return main program and continue to carry out;
415), overlap the opening time counter and make zero, the value of reclose interval 0 is passed to counter reclosing time, enter step 416 then);
416), judge and to have or not sub-gate signal, if sub-gate signal is arranged, enter step 417); If there is not sub-gate signal, returns and continue to carry out main program;
417), carry out sub-switching operation, the opening time counter O reset, the value of giving for the closing time counter 3 seconds is returned and is continued to carry out main program.
CN201310093987.1A 2009-05-18 2009-05-18 A kind of supply line protecting control method Expired - Fee Related CN103337837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310093987.1A CN103337837B (en) 2009-05-18 2009-05-18 A kind of supply line protecting control method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310093987.1A CN103337837B (en) 2009-05-18 2009-05-18 A kind of supply line protecting control method
CN2009100649463A CN101895085B (en) 2009-05-18 2009-05-18 Power supply circuit protective device and protective control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN2009100649463A Division CN101895085B (en) 2009-05-18 2009-05-18 Power supply circuit protective device and protective control method

Publications (2)

Publication Number Publication Date
CN103337837A true CN103337837A (en) 2013-10-02
CN103337837B CN103337837B (en) 2015-09-30

Family

ID=49245955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310093987.1A Expired - Fee Related CN103337837B (en) 2009-05-18 2009-05-18 A kind of supply line protecting control method

Country Status (1)

Country Link
CN (1) CN103337837B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105024361A (en) * 2015-04-16 2015-11-04 扬州科宇电力有限公司 On-site feeder automatic protection method and application thereof
CN109032022A (en) * 2018-08-08 2018-12-18 江苏拓米洛环境试验设备有限公司 The chamber alarm second connects program intelligence seamless connection method of operation
CN109245049A (en) * 2018-11-13 2019-01-18 南京南瑞继保电气有限公司 A kind of AC excitation synchronous electric motor rotor winding overcurrent protection method and device
CN113093635A (en) * 2021-03-02 2021-07-09 深圳供电局有限公司 Measurement and control system
CN116191383A (en) * 2023-03-06 2023-05-30 江苏吉泰科电气有限责任公司 Overcurrent protection method and circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6198402B1 (en) * 1998-04-17 2001-03-06 Kabushiki Kaisha Toshiba Electric power system protection and control system
CN201084040Y (en) * 2007-08-10 2008-07-09 许昌永新电器设备有限公司 Power supply line controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6198402B1 (en) * 1998-04-17 2001-03-06 Kabushiki Kaisha Toshiba Electric power system protection and control system
CN201084040Y (en) * 2007-08-10 2008-07-09 许昌永新电器设备有限公司 Power supply line controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王崇林 等: "基于STM32F103的高压防爆开关保护测控系统设计", 《煤矿安全》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105024361A (en) * 2015-04-16 2015-11-04 扬州科宇电力有限公司 On-site feeder automatic protection method and application thereof
CN109032022A (en) * 2018-08-08 2018-12-18 江苏拓米洛环境试验设备有限公司 The chamber alarm second connects program intelligence seamless connection method of operation
CN109245049A (en) * 2018-11-13 2019-01-18 南京南瑞继保电气有限公司 A kind of AC excitation synchronous electric motor rotor winding overcurrent protection method and device
CN113093635A (en) * 2021-03-02 2021-07-09 深圳供电局有限公司 Measurement and control system
CN113093635B (en) * 2021-03-02 2022-07-12 深圳供电局有限公司 Measurement and control system
CN116191383A (en) * 2023-03-06 2023-05-30 江苏吉泰科电气有限责任公司 Overcurrent protection method and circuit
CN116191383B (en) * 2023-03-06 2023-09-29 江苏吉泰科电气有限责任公司 Overcurrent protection method and circuit

Also Published As

Publication number Publication date
CN103337837B (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN101895085B (en) Power supply circuit protective device and protective control method
CN104377816B (en) A kind of control method of intelligentized reclosing breaker and its automatic reclosing
CN101420116B (en) Intelligent integrated electricity leakage protection device
CN104143823A (en) Blackout event information collecting method and system
CN103337837B (en) A kind of supply line protecting control method
CN110412346A (en) A kind of metering type intelligent breaker based on Internet of Things
WO2011075939A1 (en) Circuit breaker setting rating automatically by tracking load changes
CN105355519B (en) Intelligent type permanent magnet switch driving circuit and its control method
CN105911344A (en) Intelligent electric energy meter supporting electric leakage protection
CN1307781C (en) Touch-screen type program controlled synchronous dynamo exciting arrangement and program control method
CN110165674B (en) Active filter safety management system
CN201360135Y (en) Intelligent integrated leakage protection device
CN106207974B (en) Dc motor protector and its operation method
CN102290803B (en) Micro-grid relaying protection method and device
CN201402973Y (en) Protective device for power supply lines
CN103762559B (en) A kind of low-voltage line protective device and control method thereof
CN201234125Y (en) Single-phase grounding failure automatic processing equipment for low current grounding system
CN106054723A (en) Intelligent comprehensive protection switch task scheduling system
CN205901261U (en) Circuit breaker control device
CN105186457B (en) Motor Protective Device
CN203798992U (en) Fault monitoring device for microcomputer direct-current system
CN214375018U (en) Line loss metering system with residual voltage detection function and suitable for feeder line terminal
CN208272608U (en) Overcurrent protection relay circuit and overcurrent protection relay
CN208094283U (en) A kind of ring main unit distribution power automation terminal of voltage-time type protection
CN206517044U (en) A kind of threephase asynchronous protection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150930

Termination date: 20190518

CF01 Termination of patent right due to non-payment of annual fee