CN105425683B - A kind of analogue quantity acquiring method based on staged dynamic dead zone - Google Patents
A kind of analogue quantity acquiring method based on staged dynamic dead zone Download PDFInfo
- Publication number
- CN105425683B CN105425683B CN201510998260.7A CN201510998260A CN105425683B CN 105425683 B CN105425683 B CN 105425683B CN 201510998260 A CN201510998260 A CN 201510998260A CN 105425683 B CN105425683 B CN 105425683B
- Authority
- CN
- China
- Prior art keywords
- dead zone
- analog quantity
- time
- ladder
- analog
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
- G05B19/0425—Safety, monitoring
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2612—Data acquisition interface
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
A kind of analogue quantity acquiring method based on staged dynamic dead zone.Fixed dead zone range is changed to the dead zone range changed over time by this method on the basis of the filter method of analog quantity dead band, the time of analog quantity delta data is received according to collecting device and last processed analog quantity receives the time difference, this dead zone range for receiving analog quantity is calculated by step function.By the characteristic of step function, over time poor continuous increase, dead zone range is also constantly being reduced.The real-time and validity of collecting device collection analog quantity can be taken into account, can both reflect the change of analog quantity in real time, can be alleviated again because analog quantity change frequently results in the phenomenon of collecting device computational load exacerbation.
Description
Technical field
The invention belongs to power system automatic field, and in particular to be adopted to a kind of analog quantity based on dynamic ladder dead band
Diversity method.
Background technology
With the fast development of power system automatic field, apply all in the automated system scale of power industry and day
Increase, system architecture becomes increasingly complex, and causes the data volume of internal system constantly to increase.Especially in wind park and voltage levels
Embody especially prominent in the application scenarios such as transformer station, the scale of real-time change data alreadys exceed 100,000.This is for automation
The monitoring backstage of system, gateway machine etc. need in acquisition system the device of all data or equipment (hereinafter using monitoring backstage as
Example replaces the kind equipment) for, it is a very big test to its disposal ability and hardware resource.And in the number of real-time change
In, because analog data change is frequent, heavy operand is brought to monitoring backstage.Change frequency currently for analog quantity
Spend soon, generally analog quantity is acquired using timing scan method and dead band method.
Timing scan method, all analog datas are acquired at every fixed time, by the data collected more
Newly into monitoring backstage.This method can be by setting sweep time to control the frequency acquisition of analog quantity, but in twice sweep
There is certain time interval centre, if changed in the time interval there occurs the saltus step of analog data or frequently,
It can't detect using this method.
Dead band method, the analog data of collection change in real time, by the numerical value collected mould corresponding with monitoring backstage
Analog quantity is compared, if it exceeds the dead time scope then updates the analog data of monitoring backstage, and to the simulation of the change
Amount carries out follow-up processing, such as carries out showing interface to the data or recorded storage medium, is set if being not above dead band
The scope put is not dealt with then.The selection of dead zone range typically has two methods:Actual value dead band, percentage dead band.Due to dead
Area's scope is a fixed numerical value (actual value dead band) or percentage (percentage dead band), if dead zone range is set
Small, then the change by a small margin of analog quantity can also exceed dead band, the data volume increase for handling monitoring backstage;If dead zone range is set
That puts is big, although can reduce data volume, changes by a small margin for a long time if there is analog quantity, is not above what is set
Dead zone range, then monitoring backstage the problem of not refreshing analog quantity occurs.
Therefore needing one at present can ensure that analog quantity real-time can reduce the analog quantity of analog data amount again
Acquisition method, at the same also to ensure this method easily realize, operand it is little.
The content of the invention
To reduce the inessential analog quantity quantity of power automatic system monitoring backstage processing, while remain to reflect simulation
The real-time change of number is measured, the present invention proposes a kind of analogue quantity acquiring method based on staged dynamic dead zone.
The present invention specifically uses following technical scheme:
A kind of analogue quantity acquiring method based on staged dynamic dead zone, this method will be fixed on the basis of the method for dead band
Dead zone range be modified to the dead zone range changed over time, it is characterised in that:
Time and the last monitoring backstage of the analog quantity change received according to monitoring backstage handle this analog quantity when
Between contrasted, the time interval that this analog quantity received handled the analog quantity away from last time is calculated, by between this time
Every calculating the dead zone range that receives the analog quantity and should use with step function.
Due to the characteristic of step function, as the time for receiving analog quantity constantly increases, dead zone range is also constantly subtracting
It is few.After monitoring backstage has just handled an analog quantity, if receiving this analog quantity again within the ensuing short time
Minor variations, due to dead zone range now it is bigger will not to now analog quantity change handle;If follow-up
One section of long period in, the change of the analog quantity is received, because dead band very little now will be handled this analog quantity.
Fluctuation within a narrow range analog quantity in the short time having little significance effectively has been filtered, while ensure that the mould of long-time fluctuation within a narrow range
Analog quantity can be handled.
For the quick change of analog quantity, the maximum height (maximum dead band) of ladder is set, ensures to react in a short time
Go out the drastically change of analog quantity.Steady for analog quantity vibrates by a small margin, sets the minimum constructive height (minimum dead band) of ladder, prevents
Only to the analog quantity that receives for a long time without processing.Controlled according to ladder height, step number and ladder duration
The dynamic change in dead band, ultimately form staged dynamic dead zone, functional arrangement such as Fig. 1 of staged dynamic dead zone.
A kind of analogue quantity acquiring method based on staged dynamic dead zone, the described method comprises the following steps:
(1) maximum height Max, minimum constructive height Min, ladder height △ h, the ladder duration △ in staged dead band are set
T, step number N, ladder height, maximum height, minimum constructive height and step number have mathematical relationship △ h=(| Max-Min |)/N;
(2) when analog quantity currency to be collected, initial time being assigned into initial value, timer tax initial value, and originating
Between it is identical with the initial value of timer, timer starts timing;
(3) analog data is gathered;
(4) after receiving actual analog data, the time for receiving analog quantity is subtracted into initial time and obtains t, Ran Houtong
Cross step function and calculate dynamic dead zone scope y values:
Wherein, y values can be actual value dead band or percentage dead band;
(5) by the analog value collected and analog quantity currency calculating difference, if the difference calculates in step (4)
In the range of obtained current dynamic dead zone, (3) step is returned to, if the difference is worked as what step (4) was calculated
Then order performs outside preceding dynamic dead zone scope;
(6) analog value received is updated into analog quantity currency, by initial time be changed to receive the analog quantity when
Between, and return to (3) step.
Method provided by the present invention, it is ensured that the real-time of analog quantity, reflect the change of analog quantity in real time, may be used also
To reduce the problem of analog quantity change frequently results in data volume greatly.
Brief description of the drawings
Fig. 1 is the function schematic diagram of staged dynamic dead zone;
Fig. 2 is the function schematic diagram of simplified implementation method;
Fig. 3 is analogue quantity acquiring method flow chart of the application based on staged dynamic dead zone;
Fig. 4 is the flow chart of simplified implementation method.
Embodiment
Technical scheme is further described in detail with reference to Figure of description.
Analogue quantity acquiring method disclosed in the present application based on staged dynamic dead zone, this method is on the basis of dead band method
On fixed dead zone range is modified to the dead zone range that changes over time, the analog quantity received according to monitoring backstage change when
Between handle time of this analog quantity with last monitoring backstage and contrasted, calculate analog quantity that this is received away from last time at
The time interval of the analog quantity is managed, is calculated by this time interval with step function and receives what the analog quantity should use
Dead zone range.
The functional arrangement of staged dynamic dead zone is as shown in figure 1, due to the characteristic of step function, with receiving analog quantity
Time constantly increases, and dead zone range is also constantly being reduced.After monitoring backstage has just handled an analog quantity, if in the case where connecing
The minor variations of this analog quantity are received in the short time come again, because dead zone range now is bigger by not to now
Analog quantity change is handled;If within one section of follow-up long period, the change of the analog quantity is received, it is dead due to now
Area's very little will be handled this analog quantity.Fluctuation within a narrow range analog quantity in the short time having little significance effectively has been filtered,
It ensure that the analog quantity of long-time fluctuation within a narrow range can be handled simultaneously.
For the quick change of analog quantity, the maximum height (maximum dead band) of ladder is set, ensures to react in a short time
Go out the drastically change of analog quantity.Steady for analog quantity vibrates by a small margin, sets the minimum constructive height (minimum dead band) of ladder, prevents
Only to the analog quantity that receives for a long time without processing.Controlled according to ladder height, step number and ladder duration
The dynamic change in dead band, ultimately form staged dynamic dead zone.
A kind of analogue quantity acquiring method based on staged dynamic dead zone disclosed in the present application is as shown in figure 3, including following
Step:(1) when the maximum height (Max) in setting staged dead band, minimum constructive height (Min), ladder height (△ h), ladder continue
Between (△ t), step number (N), ladder height, maximum height, minimum constructive height and step number have mathematical relationship △ h=(| Max-Min
|)/N;
The step sets the parameter of step function, mainly including maximum dead zone range (maximum height), minimum dead zone range
The amplitude of variation (ladder height) in (minimum constructive height), dead band, the time (duration) of each dead band maintenance, ladder number.
(2) when analog quantity currency to be collected, initial time being assigned into initial value, timer tax initial value, and originating
Between it is identical with the initial value of timer, timer starts timing;
The initial value of analog quantity currency is traditionally arranged to be 0, and initial time is assigned into initial value and timer is assigned initial value and set
It is set to the analog quantity for equally, ensureing that first time data variation can be computed correctly by formula.
(3) analog data is gathered;
Message is received, the analog data in analytic message.
(4) after receiving actual analog data, the time for receiving analog quantity is subtracted into initial time and obtains t, Ran Houtong
Cross step function and calculate dynamic dead zone scope y values:
Wherein, y values can be actual value dead band or percentage dead band;
Start formula calculating after receiving new analog data, formula calculates and relate to division and multiplication, is transported for program
Capable efficiency has an impact.
(5) by the analog value collected and analog quantity currency calculating difference, if the difference calculates in step (4)
In the range of obtained current dynamic dead zone, (3) step is returned to, if the difference is worked as what step (4) was calculated
Then order performs outside preceding dynamic dead zone scope;
Return to third step to represent to abandon this analog value received, while increase time burst next time and rise
The difference of time beginning, makes the dead band for receiving analog quantity next time will be smaller.
(6) analog value received is updated into analog quantity currency, by initial time be changed to receive the analog quantity when
Between, and return to (3) step.
This step mainly have updated initial time, amplify the dead band after the calculating of next secondary burst analog value.
Because analog data amount is larger, if algorithm is complicated or can increase the computational load of monitoring backstage, the application
Also simplified further to the computational methods of staged dynamic dead zone, to facilitate code to realize, reduce monitoring backstage
Calculated load.Method for simplifying is as follows:
(1) because staged dynamic dead zone calculation formula is complicated, formulaIt is related to ladder
The multiplying of height, if all carrying out multiplying after receiving analog quantity change every time, it can still aggravate the meter of monitoring backstage
Calculate load.
With reference to practical engineering experience, step number N is fixed as 2, i.e. only three kinds of dead zone ranges, according to the difference of time
Using different dead zone ranges.Three kinds of dead zone ranges can directly be set, and remove ladder height parameter;It can also set
Maximum height, minimum constructive height, last dead zone range is then calculated by ladder height.The number of complexity can so be avoided
According to computing, a passage time judges which dead zone range used;
(2) because staged dynamic dead zone calculation formula is complicated, formulaIt is related to the time
Division arithmetic, if every time receive analog quantity change after all carry out division arithmetic, the calculating that can still aggravate monitoring backstage is born
Lotus.Purpose using division arithmetic is to calculate when this receives analog quantity to be in which ladder, to determine which is used
Dead zone range.
With reference to embedded software developing experience, the timer in staged dynamic dead zone is changed to counter mode reality
It is existing.Set ladder duration △ t after, start counter (initial value 0), by the ladder duration be arranged to counter when
Between interval time, the counting time period of counter is ladder duration △ t, i.e., counter unlatching after often cross a ladder
Duration △ t counters are increased by 1.Initial time is changed to start numbers (initial value 0) simultaneously, when receiving analog quantity
Afterwards, by the numerical value of nonce counter and start numbers calculating difference, you can the ladder where current time is obtained, due to counter
All it is integer with start numbers, ladder where being directly obtained after subtracting each other, corresponding dead zone range can be directly found according to difference,
Prevent the division in calculation formula to occur, accelerate processing procedure.Will if this analog quantity exceedes current dead zone range
Start numbers are replaced by the numerical value of this counter, retain starting number if this analog quantity is not above current dead zone range
The initial value of value.
Function schematic diagram such as Fig. 2 of simplified implementation method of the present invention.
A kind of analogue quantity acquiring method based on staged dynamic dead zone, simplify implementation method and comprise the following steps:(1) set
Put the first ladder (p1), the second ladder (p2), the 3rd ladder (p3) and the counter time interval in staged dead band.
This simplification implementation method uses the method directly set to three kinds of dead zone ranges described in method for simplifying above (1),
Remove original ladder height parameter, the maximum height of the corresponding staged dynamic dead zone of the first ladder (p1), the 3rd ladder (p3)
The minimum constructive height of corresponding staged dynamic dead zone.
(2) initial value of analog quantity currency is set, start numbers and counter values identical initial value are set, is counted
Device starts counting up.
(3) analog data is gathered;
(4) after receiving actual analog quantity, by the current value meter of analog quantity in the analog value received and monitoring backstage
Difference diff is calculated, counter values when receiving analog quantity are subtracted into start numbers and obtain △ V.If △ V value is less than 1
It is current dead band value then to choose p1, and it is current dead band value to choose p2 if △ V value is more than or equal to 1 and is less than 2, if △
V value is that more than or equal to 2 selection p3 are current dead band value;
(5) judge that this receives actual analog quantity whether in current dead zone range, if calculating simulation amount difference
Diff returns to third step in dead zone range, starts the 8th step such as outside dead zone range;
(6) analog value received is updated into analog quantity currency, when being changed to receive the analog quantity by start numbers
Counter values, and return to third step.
Simplify flow chart such as Fig. 4 of implementation method.
Simplify implementation method in (4) step, by the analog value received and monitoring backstage analog quantity it is current
Numerical computations difference diff, step operation are dispersed in step (6), step (7), step (8), do not have shadow to final result
Ring, only have an impact to program code segments.
The data volume of analog quantity can be reduced by the simple realization method of the present invention, mitigates and is supervised in power automatic system
Control the data load on backstage.It can ensure to remain to refresh analog data when analog quantity changes in smaller range, it is ensured that
Analog quantity can be monitored when being mutated the short time and accurately collect from the background, while realize that algorithm is simple, and amount of calculation is small, and code is convenient
Realize, reduce the requirement to hardware computation ability, can more meet to be actually needed.
For staged dynamic dead zone, also there are more simplified ways by the method for preset parameter, it is as follows:
(1) step number N is fixed as 1 or 3, directly set each ladder height or formula △ h=(| Max-Min
|)/N calculates ladder height;
(2) ladder height △ h are fixed, formula △ h=(| Max-Min |)/N calculates step number N;
(3) minimum constructive height Min is fixed as 0, and formula △ h=(| Max-Min |)/N calculates step number N or rank
Terraced height △ h;
(4) step number N is fixed as 1, and applied in the filtration treatment of digital quantity change.
Claims (4)
1. a kind of analogue quantity acquiring method based on staged dynamic dead zone, it is characterised in that the described method comprises the following steps:
(1) the maximum height Max in setting staged dead band, minimum constructive height Min, ladder height △ h, ladder duration △ t, rank
Terraced number N, ladder height, maximum height, minimum constructive height and step number have mathematical relationship △ h=(| Max-Min |)/N;
(2) by analog quantity currency to be collected, initial time assign initial value, timer assign initial value, and initial time and
The initial value of timer is identical, and timer starts timing;
(3) analog data is gathered;
(4) after receiving actual analog data, the time for receiving analog quantity is subtracted into initial time and obtains t, then passes through rank
Terraced function calculates dynamic dead zone scope y values:
Wherein, y values are actual value dead band or percentage dead band;
(5) by the analog value collected and analog quantity currency calculating difference, if the difference is calculated in step (4)
Current dynamic dead zone in the range of, step (3) is returned to, if the current dynamic that the difference is calculated in step (4)
Then order performs outside dead zone range;
(6) analog value received is updated into analog quantity currency, initial time is changed to receive to the time of the analog quantity, and
Return to step (3).
2. the analogue quantity acquiring method according to claim 1 based on staged dynamic dead zone, it is characterised in that:
In step (1), step number N is fixed as 2.
3. the analogue quantity acquiring method according to claim 1 based on staged dynamic dead zone, it is characterised in that:
Timer in staged dynamic dead zone is changed into counter mode to realize, after setting ladder duration △ t, started
Counter, its initial value are 0, and the ladder duration is arranged to the time interval time of counter, the gate time of counter
At intervals of ladder duration △ t, i.e., a ladder duration △ t counter is often crossed after counter unlatching and be increased by 1;Together
When initial time is changed to start numbers, its initial value is also 0, after analog quantity is received, by the numerical value of nonce counter with rising
Beginning numerical computations difference, you can obtain the ladder where current time.
4. the analogue quantity acquiring method according to claim 3 based on staged dynamic dead zone, it is characterised in that:
Start numbers are replaced by the numerical value of this counter if this analog quantity exceedes current dead zone range, if this
Analog quantity is not above the initial value that current dead zone range then retains start numbers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510998260.7A CN105425683B (en) | 2015-12-28 | 2015-12-28 | A kind of analogue quantity acquiring method based on staged dynamic dead zone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510998260.7A CN105425683B (en) | 2015-12-28 | 2015-12-28 | A kind of analogue quantity acquiring method based on staged dynamic dead zone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105425683A CN105425683A (en) | 2016-03-23 |
CN105425683B true CN105425683B (en) | 2018-01-09 |
Family
ID=55503958
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510998260.7A Active CN105425683B (en) | 2015-12-28 | 2015-12-28 | A kind of analogue quantity acquiring method based on staged dynamic dead zone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105425683B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE112018002812T5 (en) * | 2017-05-31 | 2020-02-20 | Mitsubishi Hitachi Power Systems, Ltd. | Blade vibration monitoring device, blade vibration monitoring system, moving blade and rotating machine |
CN111090662B (en) * | 2019-12-19 | 2024-01-30 | 浪潮通用软件有限公司 | Method, equipment and medium for acquiring data from real-time database to relational database |
CN115445752B (en) * | 2022-08-16 | 2024-09-17 | 洛阳矿山机械工程设计研究院有限责任公司 | Method for adjusting height of main shaft of gyratory crusher |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4488423B2 (en) * | 2005-01-27 | 2010-06-23 | 富士重工業株式会社 | Control device for electronically controlled throttle device |
CN101895224B (en) * | 2010-05-26 | 2012-11-28 | 广州广日电气设备有限公司 | Svpwm signal generator |
JP5535883B2 (en) * | 2010-11-25 | 2014-07-02 | 三菱重工業株式会社 | Control device and state quantity acquisition device |
CN102073712B (en) * | 2010-12-31 | 2012-08-08 | 北京四方继保自动化股份有限公司 | Holographic process data archiving and inverting method based on dynamic change frame |
CN103529733A (en) * | 2013-10-21 | 2014-01-22 | 安徽天沃电气技术有限公司 | Intelligent high-voltage power supply control system on dock |
-
2015
- 2015-12-28 CN CN201510998260.7A patent/CN105425683B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105425683A (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105425683B (en) | A kind of analogue quantity acquiring method based on staged dynamic dead zone | |
CN111103565B (en) | Data transformation method and system based on intelligent electric energy meter metering error analysis | |
CN111324639A (en) | Data monitoring method and device and computer readable storage medium | |
CN105721187A (en) | Service fault diagnosis method and apparatus | |
CN102547365B (en) | Black edge detection method and device for video image | |
WO2024169123A1 (en) | Clustering-algorithm-based cluster control device health monitoring method and device, and medium | |
CN104714532A (en) | Quality control method and device | |
CN114814420B (en) | Low-voltage distribution network topology identification method and system based on frozen data | |
CN111510109B (en) | Signal filtering method, device, equipment and medium | |
CN109783486A (en) | Data cleaning method, device and server | |
CN110889597A (en) | Method and device for detecting abnormal business timing sequence indexes | |
CN102930178B (en) | A kind of load data method for detecting abnormality | |
CN114819374A (en) | Regional new energy ultra-short term power prediction method and system | |
CN113704698B (en) | Event detection method and system for non-intrusive load identification | |
CN106341829B (en) | Frequency point configuration method and device | |
KR20210097613A (en) | Power consumption prediction system for optimization of demand management resources | |
CN109963301B (en) | Method and device for analyzing network structure interference | |
CN116249186A (en) | Data processing method and device of wireless network equipment, storage medium and electronic equipment | |
CN106571934B (en) | A kind of worksheet processing method and apparatus based on regression analysis | |
CN105721199B (en) | A kind of real-time cloud service bottleneck detection method based on Density Estimator and fuzzy inference system | |
CN112561734A (en) | Transformer area line loss analysis system and analysis method thereof | |
CN112861064A (en) | Social credit evaluation source data processing method, system, terminal and medium | |
CN112783732B (en) | Database table capacity monitoring method and device | |
CN112825164B (en) | Predictive data anomaly detection method, device, equipment and storage medium | |
CN104850931A (en) | Server update control method and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190320 Address after: 100085 9, four street, Shang Di information industry base, Haidian District, Beijing. Co-patentee after: Beijing Sifang Jibao Engineering Technology Co., Ltd. Patentee after: Beijing Sifang Jibao Automation Co., Ltd. Address before: 100085 9, four street, Shang Di information industry base, Haidian District, Beijing. Patentee before: Beijing Sifang Jibao Automation Co., Ltd. |
|
TR01 | Transfer of patent right |