The method that the purpose of this invention is to provide a kind of low-voltage variation, low-voltage variation comprise protections such as circuit to low pressure, motor, capacitor, bus, transformer, adopt same method, realize various different defencive functions by configuration.
Another object of the present invention provides a kind of low-voltage variation method; promptly in order farthest to satisfy the various requirement of different regions, different user; reduce unnecessary nonstandard as much as possible; simultaneously also in order to reduce the workload that subsequent development is safeguarded; for a desirable protection, its arrangements of components also should be programmable.
Another object of the present invention provides a kind of low-voltage variation method, is to make general low-voltage variation should possess following two conditions: concerning manufacturer, maintenance is simple; For the user, it is simple to accomplish to adjust.
Another object of the present invention provides a kind of low-voltage variation method, is the protection measurement and control integration that makes low-voltage protection device, and the characteristics according to low-voltage variation propose the specific process that some are suitable for low-pressure system exactly.
The objective of the invention is to be achieved through the following technical solutions, a kind of method with relay protection of power system of low-voltage distributing line and controller switching equipment may further comprise the steps:
The configuration authority of low-voltage variation is set, will disposes authority and be divided into exploitation configuration, engineering configuration and user and dispose three layers;
The configuration mode of low-voltage variation is set, configuration mode is configured to allocation list, logical table and three kinds of configuration modes of generalized node;
According to the configuration of allocation list, logical table and generalized node and should satisfy the QA requirement of relaying protection, calculate the value and the state of each node in real time;
Adopt adaptively sampled mode to carry out frequency measurement, for satisfying the requirement of certainty of measurement and low-frequency load reduction, adopted adaptively sampledly, this has proposed very high requirement with regard to the precision that requires frequency measurement itself, has adopted hardware frequency measurement technology; With
Adopt the particular step of the inverse time current protection of low pressure Microcomputer Protection.
Described exploitation configuration is solidificated among the ROM, can not change, an allocation list is corresponding to a kind of protection, and described engineering configuration uses that programmable switch is gone into, left, generalized node is realized different function and logic, in order to solve nonstandard problem, the user then can only carry out the function throwing and move back operation; Described generalized node is common ingress the widening on implication of opening, also can be considered the digitlization notion of analogue relay, generalized node each " element " as one independently object handle, be convenient to realize the flexible configuration protected, the generalized node state needs to determine according to reference source, reference source can the definite value mode be determined, the end-state of node is represented with logical consequence, parallel type structure has guaranteed the real-time and the each several part priority level of program, input is handled, output is handled, self check, declare startup and be in a systemic circulation together, obtain the effect of parallel processing in the mode of sharing timeslice; The adaptively sampled process of described employing comprises the timing sampling interrupt procedure, under the prerequisite that guarantees real-time and priority level, timing sampling interrupts handling with the down order input, uplink message output is handled, self check, start and differentiate parallel work-flow, for guaranteeing protection reliably action fast when the fault, starting the promptness of differentiating should obtain ensureing, the processing procedure of a described complexity can resolve into several less processing procedures, input is handled, output is handled, self check is in a systemic circulation together with declaring to start, obtain the effect of parallel processing in the mode of sharing timeslice, startup and troubleshooting are two separate processes, the latter only and must carry out guarantees to protect the reliability of action after startup; Described frequency measurement step must be set to the highest by this interrupt levels, to guarantee the precision of frequency measurement, entering frequency measurement interrupts, after reading measured value, interrupt levels is reduced to 0, in order to avoid influence normally carrying out of other interruptions, before going out to interrupt, again interrupt levels is reverted to the highest, adaptively sampled frequency extent of amendment and be only limited between the 42-58, and measurement there is voltage mutually; The particular step of the inverse time current protection of described employing low pressure Microcomputer Protection further comprise according to the extreme inverse time lag, very the requirement of inverse time lag and standard inverse time lag carry out the inverse time lag calculate, the step of timing sampling Interrupt Process; Described inverse time current protection is as a kind of fixed configurations, can pressing plate throws and moves back, and can select the dissimilar inverse time lags by the user.
The method of a kind of low-voltage variation provided by the invention; can adopt same method; by the different defencive functions of configuration realization to the protective devices of various different protections; farthest satisfy different regions; the various requirement of different user; reduce unnecessary nonstandard as much as possible; simultaneously also in order to reduce the workload that subsequent development is safeguarded; concerning manufacturer; maintenance is simple, and for the user, it is simple to accomplish to adjust; make the protection measurement and control integration of low-voltage protection device; low-voltage variation should have complete communication and other miscellaneous functions, and therefore, equipment debugging is easy to maintenance.
Below with embodiment method of the present invention is described in detail with reference to the accompanying drawings.
Below in conjunction with accompanying drawing embodiments of the invention are further described in detail.
Fig. 1 is the configuration schematic diagram of the generalized node of the inventive method.
The method of a kind of low-voltage variation provided by the invention may further comprise the steps:
1, will dispose authority is divided into exploitation configuration, engineering configuration and user and disposes three layers:
1) the exploitation configuration can not be changed; a kind of configuration is corresponding to a kind of protection; its scope should be confined to conventional or the exclusive and metastable defencive function of certain protection of part; this way has been avoided a large amount of unnecessary field programmings; reduced the link of makeing mistakes, also reduced requirement simultaneously engineering staff and technical support.
2) engineering configuration uses programmable switch to go into, leave and generalized node is realized different function and logic, in order to farthest satisfying the various requirement of different regions, different user, and has fundamentally solved the most thorny nonstandard problem of low-voltage variation.
3) user then can only utilize protection pressing plate or function control word to carry out the function throwing and move back operation.
2, the configuration mode of low-voltage variation is set, configuration mode is configured to the basic mode of allocation list, logical table and three kinds of configurations of generalized node.For better realizing the configurable of protective device, the present invention proposes the notion of generalized node, allocation list and logical table.
1) Bao Hu configuration is very simple in the use; device seeks death all modules at bottom; only need select corresponding module to generate generalized node, allocation list and logical table automatically by software before dispatching from the factory simply, and leave among the EEPROM, in order to avoid power down is lost by specific format in device inside.
2) because the simplicity of device configuration may cause the configuration of user's hack.For the purpose of reliable, the present invention guarantees that by the authority setting of software in a single day device dispatches from the factory, and forbids revising configuration.Even the modification requirement is really arranged, also must make amendment by the professional that producer is authorized.
3) for each " element " as one independently object handle, thereby realize the flexible configuration of protection, the present invention introduces generalized node.Generalized node is actually common ingress the widening on implication of opening, and also can be considered the digitlization notion of analogue relay, is the basic element that constitutes configuration.Generalized node is broadly divided into current node by its type, voltage node, the frequency node, timing node, power node, the same period node, direction node and impedance node.Each class can be subdivided into some littler types again.The naming method of generalized node following (referring to Fig. 1) in the software:
B13 ~ B11: show node character, represent the following 000-voltage 001-electric current 010-impedance 011-power 100-direction 101-frequency 110-same period
Under preceding 5 kinds of patterns:
B10-B8: show that sequence number is as I section, II section, III section etc.
B7:0-often opens the normally closed node of node 1-
B6-B4: expression power measurement point sequence number, 000 ~ 111 represents the 1st ~ 8th measurement point respectively.
B3-B0: expression phase sequence.
000--A phase 0001--B phase 0010--C phase
0011--AB phase 0100--BC phase 0101--CA phase
0110--zero sequence 0111--positive sequence 1000--negative phase-sequence.
Under the inspection pattern same period:
B10-B8: the measuring point code name that shows inspection Party A's same period.The 000-1 measuring point ~ ~
The 111-8 measuring point
B7:0--often opens the normally closed node * of node 1-
B6-B4: the measuring point code name that shows inspection Party B's same period.The 000-1 measuring point ~ ~
The 111-8 measuring point
B3-B0: expression inspection same period used separate.0000--A phase 0001--B phase 0010--C phase
4) for determining the generalized node state, need to determine a reference source, as current node,, think the node closure when electric current during greater than reference value.End-state to node is represented with logical consequence.When satisfying the reference source condition, think that the state of this generalized node is 1, otherwise be 0.In the present invention, reference source is the definite value in the traditional protection.
5) General Logic node.In the software, the formal definition of this category node in software following (referring to accompanying drawing 1).
B13-B11: expression type: 000-input relay 001-auxiliary relay
010-time relay 011-time pulse relay
100-banked relay 101-branch/combined floodgate returns definite relay
110-output relay B10-B8: expression action type: the 000-OUT output 001-S self-sustaining 010-R 011-PLS pulse output 100-CJP that resets: expression redirect.EJP: the expression redirect finishes.B7: the node that expression is got is normally closed or often opens node.
0-often opens node.
The normally closed node of 1-.B6-B0: sequence number 01 ~ 7f represents node 1 ~ node 127 respectively.
6) allocation list is made of General Logic node and generalized node.
7) configuration tableau format.Allocation list is generated by software, and its Final Format as shown in Figure 2.Each node is represented by three bytes on the allocation list.Preceding two bytes are nodename, are used to illustrate the physical significance of this generalized node or logical node.The 3rd byte is the deviation post of this node definite value in the definite value table for generalized node.In fact allocation list is a map section of a nodename definite value corresponding with it (reference source).
8) logical table is described is relation between the node.On actual treatment, physical node calculates the analog quantity actual value, the generalized node state is each physical node value and corresponding definite value (reference source) logical consequence relatively, and functional module realizes is logical operation between logical node, generalized node, and its realization approach is a logical table.
9) logical table form.Logical table is generated automatically by software, and its concrete form is referring to accompanying drawing 3.
The verification when carrying out PLC of ⅰ, Valid and its radix-minus-one complement.
The Rule of judgment that ⅱ, LineNum finish as whole PLC.
ⅲ, CrcCode are as the self check Rule of judgment, and self check is passed through, and ability is with the significance bit set of Table, otherwise Table will not be performed.
ⅳ, PageN show the space size that whole Table is occupied in EPROM, when storing and reading Table, indicate line number.
ⅴ, LineNo do not act on during actual the execution only as rower.
ⅵ, ByteNum in commission are used for the position calculation of next line as the total bytes (comprising LineNum and ByteNum itself) of one's own profession.
ⅶ, TotalBlk represent one's own profession Blk number (comprising OutBlk and InBlk) altogether.
ⅷ, InBlk represent to import the number of Blk, in commission, carry out foundation as logic.
ⅸ, OutBlk represent to export the number of Blk.
ⅹ, InByteN represent the byte number of input element, when carrying out the one's own profession logic, if confirmed currently to be input as 0, then need directly to jump to output Blk place and carry out output function.The effect of InByteN is exactly as the foundation of redirect byte number (not comprising information such as heading LineNO, ByteNum).
ⅹ ⅰ, Blk1 represent the element number of this Blk.
3,, calculate the value and the state of each node in real time according to the configuration of allocation list, logical table and generalized node and should satisfy the QA requirement of relaying protection; The introducing of allocation list, logical table and generalized node makes that being configured on the logical expression of protection is very clear; but the prerequisite that realizes this scheme is to calculate the value and the state of each node in real time, should satisfy the QA requirement of relaying protection simultaneously.For better embodying and utilize the advantage of allocation list, generalized node; and take into full account the performance of protection and the efficient of software; the present invention has proposed a kind of brand-new structure (as shown in Figure 4) on the basis of analyzing more existing various software configurations; detailed process is described and is seen embodiment, and the main feature of existing this structure of simple declaration is as follows:
1) down order input processing, uplink message output processing, self check, startup differentiation and timing sampling interrupt parallel work-flow under the prerequisite that guarantees real-time and priority level.For guaranteeing protection reliably action fast when the fault; starting the promptness of differentiating should obtain ensureing; the processing procedure of a complexity can resolve into several less processing procedures; therefore input is handled, is exported processing, self check and declare to start and is in a systemic circulation together, obtains the effect of parallel processing in the mode of sharing timeslice.
2) gather each analog quantity in the troubleshooting in real time, obtain digital signal through filtering, and input digit relay (generalized node), and obtain corresponding each digital relay (generalized node) value in the allocation list thus.Each generalized node is separate, only by the line operate of advancing of the logic control in the logical table, finally determines by the logical operation result whether protection moves.Promptly Bao Hu concrete function is only relevant with configuration, and irrelevant with protection software itself.Signal processing flow is seen accompanying drawing 5 in detail.
3) start and troubleshooting is two separate processes, the latter only and must carry out guarantees to protect the reliability of action after startup.Start differentiation and be made of the startup of sudden change amount and steady-state quantity startup two parts, the former has guaranteed the sensitivity of protection, and the latter has given prominence to reliability.Troubleshooting constitutes a link separately; as long as protection is not returned; program just still circulates in troubleshooting; this just makes that protection has than plenty of time; under the higher prerequisite of sampling precision; each fault amount of actuarial makes that the reliability of relay protection principle is demonstrated fully, and is convenient to be beneficial to some complicated principles of realization etc. simultaneously.
4) only carry out real-time in the interruption and require the most urgent value to handle, comprise switching value and measuring amount, do not start and differentiate and troubleshooting, it is lighter to load, and helps the program expansion.
5) program structure is good.Avoided the traditional method of high voltage protective, promptly declare startup after, program is by force from being relayed to troubleshooting, artificial modification interrupt return address.
4, adopt adaptively sampled mode to carry out frequency measurement, for satisfying the requirement of certainty of measurement and low-frequency load reduction, adopted adaptively sampledly, this has proposed very high requirement with regard to the precision that requires frequency measurement itself, has adopted hardware frequency measurement technology;
Low-voltage variation is the device of protection measurement and control integration.For satisfying the requirement of certainty of measurement and low-frequency load reduction, necessary realization is adaptively sampled, and this has proposed very high requirement with regard to the precision that requires frequency measurement itself.Not fully up to expectations in view of the software frequency measurement, what invention was adopted is the hardware frequency measurement, but in order to improve frequency-measurement accuracy, is aided with all measures again on software.For guaranteeing the precision of frequency measurement, must be set to the highest by this interrupt levels.
Fig. 8 is the frequency measurement techniqueflow chart of the inventive method, and its main flow process is:
1) enters frequency measurement and interrupt (step S801), read (step S802) behind the measured value, interrupt levels is reduced to 0 (step S803),, before going out to interrupt, again interrupt levels is reverted to the highest (step S815) in order to avoid influence normally carrying out of other interruptions.
2) frequency measurement also comprises adaptively sampled frequency correction in interrupting, and prerequisite is that this function drops into (step S804), and measures phase voltage greater than a set threshold (step S807), and the frequency extent of amendment is only limited in (step S808) between the 42-58.
3) for reducing error, the frequency values of measuring should carry out numerical value to be handled, and calculates slippage (step S810).Simultaneously according to frequency values correction sample frequency (step S813).
4) after protection starts, no longer carry out the frequency conversion operation, in order to avoid influence is based on the protection action behavior (step S811) of power frequency amount.
5. adopt the particular step of the inverse time current protection of low pressure Microcomputer Protection, this step comprise according to the extreme inverse time lag, very the requirement of inverse time lag and standard inverse time lag carry out the inverse time lag calculate, the step of timing sampling Interrupt Process.Overcurrent protection is the main protection of 35 kilovolts and following distribution network.The overcurrent of most of protected elements allows to be approximated to inverse relation by the size of time and its current value, and promptly electric current is big more, the time of passing through of allowing short more.In order to give full play to the benefit of protected element, and element is unlikely to because of long-time overheated damaging, definite time protection in the past or be too early excision protected element, or be exactly that element damages action just now already.Therefore, must install and have the overcurrent protection of anti-time limit characteristic.Conventional its technical performance of inverse time lag is poor, debugging maintenance complexity, reliability official post are generally acknowledged, because traditional induction type inverse time lag current relay characteristic is difficult to express with analytic expression, and the dispersion of characteristic is bigger, this just gives to adjust and has brought difficulty, makes specified time, inverse time lag have many problems on cooperating.The needs of pin different user of the present invention have proposed three kinds of fast algorithms that are suitable for the inverse time current protection of low pressure Microcomputer Protection.Referring to accompanying drawing 6, accompanying drawing 7.
1) inverse time lag algorithm.Accompanying drawing 6 formula 1 have provided classical inverse time lag general formula.Wherein, for low-voltage network, α only need consider 2 (extremely inverse time lags), 1 (very inverse time lag), 0.02 (standard inverse time lag), three kinds of situations.Wherein: α is a constant, I
pBe current effective value, I
NBe starting current threshold effective value, K is a constant, t inverse time-delay operation time, i current instantaneous value, i
kCurrent sampling data, in the T sampling period, m is from starting total sampling number constantly, and n is phase sampling number weekly, Δ t sampling interval time span.
ⅰ) α=2 o'clock, extremely inverse time lag.This moment, formula 1 promptly turned to formula 2, obtain the quadratic sum of effective value and the relation of sampled value expression formula (formula 5) by effective value definition (formula 3) and instantaneous value expression formula (formula 4) again, just time t discretization promptly gets extremely inverse time lag formula 6 again, obtains the extremely final algorithm expression formula (formula 7) of inverse time lag through distortion.
ⅱ) α=1, very inverse time lag.Utilizing effective value is that this relation of mean value of 1.11 times obtains formula 8 through discretization, and substitution formula 1 promptly gets very inverse time lag algorithmic formula 9, and distortion obtains the very final algorithm of inverse time lag (formula 10).
ⅲ) α=0.02, the standard inverse time lag.Because the calculating of standard inverse time lag is too big, can adopt the mode of piecewise fitting to go to approach, the present invention divides three sections with this curve and uses fitting a straight line in 0.04 times to 30 times rated current scope, promptly use formula 11 fitting formulas 12, finally obtains standard inverse time lag algorithm (formula 13).
2) processing mode.For giving full play to the good characteristic of inverse time protection, and be convenient to cooperate between specified time, the inverse time protection, simultaneously also in order to handle conveniently, the present invention with inverse time protection as one independently element embed timing sampling and interrupt.
3) inverse time protection is as a kind of fixed configurations, can pressing plate throws and moves back, and can select the dissimilar inverse time lags by the user.
4) adjust very convenient.
6. communication function and recording events information.Protection can be passed through standard 232 serial ports and human-computer dialogue communication, also carries out communication by LONWORKS fieldbus and telemechanical, master station simultaneously, and friendly interface is provided.All important informations are all preserved device storage by power down such as EEPROM, and user's operating right is carried out classification, have guaranteed the fail safe of information.
Below in conjunction with the overview flow chart (seeing accompanying drawing 9-11) of software, the method for low-voltage variation of the present invention is further described.
Fig. 9, Figure 10 and Figure 11 are the software overview flow charts of the inventive method.After protective device powers on; program enters the mouth from step S901 system program; carry out initial work at step S902, S903; open the self check of interruption (step S904) and device itself; comprise ROM self check (step S905), definite value district self check (step S908); allocation list self check (step S911), is left self check (step S920) etc. at logical table self check (step S913), system information self check (step S915).Make mistakes as self check and should alarm (step S907), mistake or fault effects protection action behavior like this then should latch-up protection.Self check is normally then protected and is entered major cycle (step S1001).
Major cycle first is that (step S1001) handled in input.Check network communication state whether normally (step S91001) this moment earlier, as the undesired Synchronous Processing (step S1002) of carrying out again, and differentiate synchronously whether success (step S1003), if the clear synchronization times of success (step S1005), otherwise, synchronization times adds one (step S1006), and differentiates and whether should alarm (step S1007, step S1008); After this, should carry out serial communication status checkout (step S1009), and carry out respective handling (step S1011, step S1012).Whether after above-mentioned work is finished, checking has networking command (step S1013), if having, carries out the network down order and handles (step S1014), after finishing, promptly declares to start and handles (step S1022); Whether otherwise checking has serial port command (step S1015), if having, carries out the serial ports down order and handles (step S1016), after finishing, promptly declares to start and handles (step S1022); If there is no any down order this moment, enter output and handle (step S1017).
The second portion of major cycle is that (step S1017) handled in output.Whether retrieval has network uplink message (step S1017), if any sending a hardwood message (step S1018), disposes and promptly declares startup (step S1022); As not had network uplink message (step S1019) this moment, check whether the serial ports uplink message is arranged, handle (step S1020) if any then carrying out the serial ports message, dispose and promptly declare startup; Need go up and send out if there is no any message this moment, enter self check part (step S1021).
The third part of major cycle is self check (step S1021).Self check is to carry out under the situation of no any input and output.The self check content resolution becomes many branches, can only carry out a branch at every turn, to guarantee to start the differentiation promptness.After each branch of self check finishes, promptly declare startup (step S1022).
The 4th part of major cycle is to declare startup (step S1022), and this is the link that major cycle must be carried out at every turn.For each time of carrying out of other three parts of the promptness major cycle that guarantees to declare startup can not surpass the 1-2 millisecond.
If protection never starts, this moment, program was got back to the importation (step S1001) of major cycle; Otherwise; after protection starts; program changes troubleshooting (step S1101) over to, at first wants each relay correlation time (step S1102) of initialization, shields all and leaves (step S1103); and find fault moment sampling pointer (step S1104); also should carry out definite value self check (step S1105), allocation list, logical table self check (step S1107, S1108) afterwards, self check is correct, enters fault systemic circulation (step S1110); otherwise, should allow device reset and reinitialize (step S1109).The calculating (step S1110) that begins to carry out various analog quantitys of the each circulation of troubleshooting; obtain the state (step S1111) of each generalized node in the allocation list thus; carry out its corresponding contents (step S1112) by the logic control row on the logical table then; when carrying out the logical table end (step S1118); differentiate whether (step S1119) all returned in all protections; if; then turn back to input processing section (step S1001); otherwise; clear return time relay (step S1120) picks up logic heading location (step S1121), calculates various analog quantitys (step S1110); so circulation is gone down, until the protection involution.This shows that it is foolproof that troubleshooting is actually, program itself does not know need not know the concrete defencive function that it will be carried out yet.
According to above description as can be seen, described exploitation configuration is solidificated among the ROM, can not change, an allocation list is corresponding to a kind of protection, the configuration of described engineering uses that programmable switch is gone into, left, generalized node is realized different function and logic, in order to solve nonstandard problem, the user then can only carry out the function throwing and move back operation; Described generalized node is common ingress the widening on implication of opening, also can be considered the digitlization notion of analogue relay, generalized node each " element " as one independently object handle, be convenient to realize the flexible configuration protected, the generalized node state needs to determine according to reference source, reference source can the definite value mode be determined, the end-state of node is represented with logical consequence, parallel type structure has guaranteed the real-time and the each several part priority level of program, input is handled, output is handled, self check, declare startup and be in a systemic circulation together, obtain the effect of parallel processing in the mode of sharing timeslice; The adaptively sampled process of described employing comprises the timing sampling interrupt procedure, under the prerequisite that guarantees real-time and priority level, timing sampling interrupts handling with the down order input, uplink message output is handled, self check, start and differentiate parallel work-flow, for guaranteeing protection reliably action fast when the fault, starting the promptness of differentiating should obtain ensureing, the processing procedure of a described complexity can resolve into several less processing procedures, input is handled, output is handled, self check is in a systemic circulation together with declaring to start, obtain the effect of parallel processing in the mode of sharing timeslice, startup and troubleshooting are two separate processes, the latter only and must carry out guarantees to protect the reliability of action after startup; Described frequency measurement step must be set to the highest by this interrupt levels, to guarantee the precision of frequency measurement, entering frequency measurement interrupts, after reading measured value, interrupt levels is reduced to 0, in order to avoid influence normally carrying out of other interruptions, before going out to interrupt, again interrupt levels is reverted to the highest, adaptively sampled frequency extent of amendment and be only limited between the 42-58, and measurement there is voltage mutually; The particular step of the inverse time current protection of described employing low pressure Microcomputer Protection further comprise according to the extreme inverse time lag, very the requirement of inverse time lag and standard inverse time lag carry out the inverse time lag calculate, the step of timing sampling Interrupt Process.