CN109741592A - The automatic data collection implementation method of plant stand electric energy acquisition terminal - Google Patents
The automatic data collection implementation method of plant stand electric energy acquisition terminal Download PDFInfo
- Publication number
- CN109741592A CN109741592A CN201910022089.4A CN201910022089A CN109741592A CN 109741592 A CN109741592 A CN 109741592A CN 201910022089 A CN201910022089 A CN 201910022089A CN 109741592 A CN109741592 A CN 109741592A
- Authority
- CN
- China
- Prior art keywords
- electric energy
- acquisition
- meter
- data
- reading channel
- 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
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The present invention relates to a kind of automatic data collection implementation methods of plant stand electric energy acquisition terminal, and addition needs to acquire the electric energy meter of data first in plant stand electric energy acquisition terminal, are managed as unit of the meter reading channel of electric energy meter access acquisition terminal;Then electric energy meter data acquisition is initiated in plant stand electric energy acquisition terminal as unit of meter reading channel and handles task, judges whether that the data of acquisition in need, judgment basis are preset automatic data collection time interval every second;When meeting the requirements the time of Timing Data Acquisition, the acquisition operation of the corresponding data of electric energy meter in meter reading channel is just carried out.Invention increases the flexibility of application and scalabilities, ensure that the accuracy and real-time at automatic collection interval, make interface and realize the acquisition realization program for separating and efficiently managing a variety of electric energy meters, have reached the high cohesion lower coupling between program module.
Description
Technical field
The invention belongs to power system of data acquisition technical fields, and in particular to a kind of number of plant stand electric energy acquisition terminal
According to automatic collection implementation method.
Background technique
With Automation of Electric Systems, the progress of intellectualized technology, the automation of data acquisition is required also more and more general
Time.Power supply company has also reached the acquisition of the Various types of data of plant stand side the situation of automatic collection increasingly, realizes substantially each
The systematization automatic collection of class data and analysis.The acquisition equipment of plant stand side is mostly that the intelligent terminal based on embedded system is set
Standby, plant stand electric energy acquisition terminal is also to belong to this kind of embedded system devices, will be periodically in electric energy acquisition terminal
The acquisition of all electric energy meter data in substation is completed on ground, and collected data are handled, and is converted into uniform requirement
Format is put into buffer area, waits and is written into the automatic collection work that disk completes data in the store tasks below.
Plant stand electric energy acquisition terminal mainly acquires the data of all kinds of electric energy meters in substation, due to electric energy meter device category
Many and diverse, large number of, manual metering is time-consuming and laborious, acquisition interval has error, data accuracy is low, based on this reality, needs one
The automatic data collection method of kind of plant stand electric energy acquisition terminal, to guarantee the multi-compartment curve data of all kinds of electric energy meter data
Automatic collection.
Summary of the invention
In order to solve the above technical problems, the invention proposes a kind of automatic data collection of plant stand electric energy acquisition terminal realities
Existing method solves the problems, such as the more equipment of electric energy meter in substation, multiple types, the processing of the automatic data collection at more time points, can protect
The efficiently and accurately automation collection for demonstrate,proving data, reaches higher operational efficiency and economic benefit.The technology used in the present invention side
Case is as follows:
The automatic data collection implementation method of plant stand electric energy acquisition terminal, comprising the following steps:
Step 1, addition needs to acquire the electric energy meter of data in plant stand electric energy acquisition terminal, is accessed and is acquired with electric energy meter
The meter reading channel of terminal is managed for unit, there is a unique corresponding meter reading channel number in each meter reading channel;
The Parameters data structure of each electric energy meter in one meter reading channel, is managed, needle by meter reading channel design chained list
A structure chained list is provided to each meter reading channel, the argument structure of the electric energy meter of addition is added to the meter reading that it is accessed and is led to
Behind the structure chained list in road;
Electric energy meter data acquisition is initiated in step 2, plant stand electric energy acquisition terminal as unit of meter reading channel and handles task,
Judge whether that the data of acquisition in need, judgment basis are preset automatic data collection time interval every second;
Step 3, when meeting the requirements the time of Timing Data Acquisition, just carry out meter reading channel in electric energy meter corresponding data
Acquisition operation.
Beneficial effects of the present invention:
1) plant stand electric energy acquisition terminal presses the list structure of meter reading channel management electric energy meter equipment, it is easier to electric energy meter
Addition and deletion, increase the flexibility and scalability of application.
2) the binary signal amount of the interrupt processing timing provided using real-time clock, ensure that the standard at automatic collection interval
True property and real-time.
3) acquisition process function is defined using function pointer in plant stand electric energy acquisition terminal acquisition function structure body.?
The advantages of data are acquired function assignment when installing and give acquisition process function pointer by specific acquisition specification, this design is exactly to make to connect
Mouth is separated with realization, and program is realized in the acquisition for efficiently managing a variety of electric energy meters, and pointer function is passed to as parameter to be had
The data acquisition module of certain general utility functions, and it is packaged into interface to improve the convenience of flexibility and the later maintenance of code,
It is more clear system structure, is abstracted convenient for hierarchical design, conducive to system, reached the high cohesion lower coupling between program module
Property.
Detailed description of the invention
Fig. 1 is the logical procedure diagram of meter reading channel data acquisition tasks of the invention.
Specific embodiment
With reference to the accompanying drawing, embodiments of the present invention are illustrated.The data of plant stand electric energy acquisition terminal are adopted automatically
Collect implementation method, comprising the following steps:
Step 1, addition needs to acquire the electric energy meter of data in plant stand electric energy acquisition terminal, since plant stand electric flux is adopted
The type and quantity for the electric energy meter that collection terminal is managed may be relatively more, in order not to allow the parameter of these electric energy meters excessively to disperse,
It is not to be managed as unit of electric energy meter, but managed as unit of the meter reading channel of electric energy meter access acquisition terminal
, there is a unique corresponding meter reading channel number in each meter reading channel.The parameter of each electric energy meter in one meter reading channel
Data structure is managed by meter reading channel design chained list again.In order to search out the electric energy meter in the meter reading channel
Parameter, we provide a structure chained list for each meter reading channel, the argument structure of the electric energy meter of addition are added to its institute
Behind the structure chained list in the meter reading channel of access.Meter reading channel design chained list establishes meter reading channel catalogue while foundation, use
In the storage file catalogue of subsequent acquisition data.After being updated based on the structure chained list that meter reading channel is unit, plant stand electric energy
The electric energy meter accessed in amount acquisition terminal is installed.
Carry out the peace of meter specification when electric energy meter is installed according to the meter specification parameter in parameters of electric energy meter structural body first
Dress calls meter specification to install function, to the acquisition process letter in parameters of electric energy meter structural body in meter specification installation function
Number pointer carries out assignment.
According to meter reading channel number parameter decision meter reading channel in parameters of electric energy meter structural body in electric energy meter installation process
It is whether enabled, if meter reading channel is to enable for the first time, opens meter reading channel and create meter reading channel binary signal
Amount.If meter reading channel is enabled, last meter parameter is updated to current parameters of electric energy meter in meter reading channel design chained list
And the electric energy meter quantity in meter reading channel adds one;Current electric energy meter is updated to meter reading channel design in parameters of electric energy meter structural body
Last electric energy meter in chained list, next electric energy meter is sky, current electricity in parameters of electric energy meter structural body in parameters of electric energy meter structural body
Next electric energy meter in energy table structure is updated to current electric energy meter.
Meter reading channel binary semaphore creates when meter reading channel enables for the first time in electric energy meter installation process, in meter reading
This semaphore is successfully obtained in the acquisition tasks of channel indicates the enabled success of meter reading channel, can carry out subsequent electric energy meter number
According to timing acquiring operation processing.
Electric energy meter data acquisition is initiated in step 2, plant stand electric energy acquisition terminal as unit of meter reading channel and handles task,
Electric energy meter data acquisition processing task will not exit after initiating for the first time, this task is by memory-resident, until in the meter reading channel
All electric energy meters are deleted and finish backed off after random.
It in electric energy meter data acquisition processing task, can all judge whether the data of acquisition in need every second, judge
Foundation is preset automatic data collection time interval.The interval of this second is by distributing for each meter reading channel
The control of one binary signal amount, in the second that real-time clock provides interrupts, the primary semaphore can be discharged each second, and
The binary signal amount that can be provided by system in data acquisition process task obtains function and directly acquires the semaphore.Also
Say in plain data acquisition process task it is to hang up, only when real-time clock interrupt service routine discharges binary signal
Amount, just will do it the acquisition and processing of electric energy meter data.So the acquisition interval time of timing acquiring can set since one second
It sets.
Step 3, when meeting the requirements the time of Timing Data Acquisition, just carry out meter reading channel in electric energy meter corresponding data
Acquisition operation.The data element in parameters of electric energy meter structural body is called, data type is structural body, defines letter in structural body
Number pointer.It is realized in module in specification, defines acquisition function and by acquisition function assignment in parameters of electric energy meter structural body
Acquire function data element.It acquires and calls universal data collection function in function, this acquisition function is a structural body.
The acquisition power function structural body of definition is passed in the form of parameter in universal data collection function, in this acquisition
Appearance is divided into six parts: generated energy acquisition, requirement/time of origin acquisition, instantaneous flow acquisition, rate of qualified voltage acquisition, logout
Acquisition, state alarm collection, this six part provide an acquisition function by electric energy meter specification respectively.More convenient pair of difference in this way
The equipment of specification is called from stipulations storehouse, and carries out the initialization in meter reading channel to acquisition meter reading channel according to device parameter
Operation.Data conversion collected from electric energy meter at the format of Uniform provisions, it is put into buffer area, so as in store tasks
It saves.
As shown in Figure 1, being the logical procedure diagram of meter reading channel data acquisition tasks of the invention, comprising the following steps:
2.1, judge whether electric energy meter quantity is greater than 0 in meter reading channel, if it is, turn in next step, if not, turn 2.10;
2.2, judge whether successfully to obtain meter reading channel binary semaphore, if it is, turn in next step, if not, turn
2.10;
2.3, judge whether first electric energy meter pointer parameter effective in meter reading channel, if it is, turn in next step, if
It is no, turn 2.8;
2.4, judge whether current time arrives the automatic data collection time, if it is, turn in next step, if not, turn 2.7;
2.5, electric energy meter device parameter is obtained, meter reading channel is initialized and obtains copy reading data information;
2.6, data acquisition process, data acquisition after according in parameters of electric energy meter structure to the decimal digits of data and unit
Be set for the processing of data, and be put into appointed buffer;
2.7, read chained list in next parameters of electric energy meter pointer, determine whether effectively, if it is, turn in next step, if
It is no, turn 2.5;
2.8, judge whether initiate store tasks, if it is, turn in next step, if not, turn 2.1;
2.9, judge initiate deposit whether several tasks succeed, if not, turn in next step, if it is, turn 2.1;
2.10, terminate meter reading channel data acquisition tasks and exit.
Wherein, meter reading channel parameters, parameters of electric energy meter, acquisition function are defined as follows based on implementation method above:
Meter reading channel parameters structure:
Parameters of electric energy meter structure:
Acquire function:
General acquisition process function structure:
Meter specification realizes definition acquisition function structure body in module:
Correlation function in above-mentioned definition can be realized by C/C++ language etc..
Claims (9)
1. the automatic data collection implementation method of plant stand electric energy acquisition terminal, which comprises the following steps:
Step 1, addition needs to acquire the electric energy meter of data in plant stand electric energy acquisition terminal, accesses acquisition terminal with electric energy meter
Meter reading channel be managed for unit, there is a unique corresponding meter reading channel number in each meter reading channel;
The Parameters data structure of each electric energy meter in one meter reading channel, is managed by meter reading channel design chained list, for every
A meter reading channel provides a structure chained list, and the argument structure of the electric energy meter of addition is added to the meter reading channel that it is accessed
Behind structure chained list;
Electric energy meter data acquisition is initiated in step 2, plant stand electric energy acquisition terminal as unit of meter reading channel and handles task, it is each
Second judge whether that the data of acquisition in need, judgment basis are preset automatic data collection time interval;
Step 3, when meeting the requirements the time of Timing Data Acquisition, the corresponding data for just carrying out electric energy meter in meter reading channel is adopted
Collection operation.
2. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 1, which is characterized in that
The method of the acquisition operation of the corresponding data of electric energy meter is in progress meter reading channel described in step 3:
The data element in parameters of electric energy meter structural body is called, data type is structural body, defines function pointer in structural body;
It is realized in module in specification, defines acquisition function and by acquisition function assignment to the acquisition letter in parameters of electric energy meter structural body
Number data element;It acquires and calls universal data collection function in function, this acquisition function is a structural body.
3. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 2, which is characterized in that
The acquisition power function structural body of definition is passed in the form of parameter in universal data collection function, this acquisition content is divided into six
Part: generated energy acquisition, requirement/time of origin acquisition, instantaneous flow acquisition, rate of qualified voltage acquisition, logout acquisition, state
Alarm collection, this six part provide an acquisition function by electric energy meter specification respectively;Data collected from electric energy meter are turned
The format for changing Uniform provisions into, is put into buffer area.
4. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 3, which is characterized in that
Described in step 3 progress meter reading channel in electric energy meter corresponding data acquisition operation the following steps are included:
2.1, judge whether electric energy meter quantity is greater than 0 in meter reading channel, if it is, turn in next step, if not, turn 2.10;
2.2, judge whether successfully to obtain meter reading channel binary semaphore, if it is, turn in next step, if not, turn 2.10;
2.3, judge whether first electric energy meter pointer parameter effective in meter reading channel, if it is, turn in next step, if not, turn
2.8;
2.4, judge whether current time arrives the automatic data collection time, if it is, turn in next step, if not, turn 2.7;
2.5, electric energy meter device parameter is obtained, meter reading channel is initialized and obtains copy reading data information;
2.6, data acquisition process, according to setting to the decimal digits of data and unit in parameters of electric energy meter structure after data acquisition
Surely the processing of data is carried out, and is put into appointed buffer;
2.7, read chained list in next parameters of electric energy meter pointer, determine whether effectively, if it is, turn in next step, if not, turn
2.5;
2.8, judge whether initiate store tasks, if it is, turn in next step, if not, turn 2.1;
2.9, judge initiate deposit whether several tasks succeed, if not, turn in next step, if it is, turn 2.1;
2.10, terminate meter reading channel data acquisition tasks and exit.
5. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 1-4,
It is characterized in that, meter reading channel design chained list establishes meter reading channel catalogue while foundation, the storage text for subsequent acquisition data
Part catalogue.
6. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 5, which is characterized in that
The installation of meter specification is carried out according to the meter specification parameter in parameters of electric energy meter structural body, calls meter specification that function is installed,
Assignment is carried out to the acquisition process function pointer in parameters of electric energy meter structural body in meter specification installation function.
7. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 6, which is characterized in that
In electric energy meter installation process whether according to meter reading channel number parameter decision meter reading channel in parameters of electric energy meter structural body
It enables, if meter reading channel is to enable for the first time, opens meter reading channel and create meter reading channel binary semaphore;If copied
Table channel is enabled, then last meter parameter is updated to current parameters of electric energy meter in meter reading channel design chained list and meter reading is logical
Electric energy meter quantity in road adds one;Current electric energy meter is updated in meter reading channel design chained list finally in parameters of electric energy meter structural body
Electric energy meter, next electric energy meter is sky in parameters of electric energy meter structural body, in parameters of electric energy meter structural body in current electric energy meter structure
Next electric energy meter be updated to current electric energy meter.
8. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 7, which is characterized in that
Electric energy meter data acquisition processing task will not exit after initiating for the first time, this task is by memory-resident, until in the meter reading channel
All electric energy meters are deleted and finish backed off after random.
9. the automatic data collection implementation method of plant stand electric energy acquisition terminal according to claim 8, which is characterized in that
One second interval is controlled by the binary signal amount distributed for each meter reading channel, is provided in real-time clock
In interruption, the primary binary signal amount can be discharged each second, and binary system letter can be obtained in data acquisition process task
Number amount;
It is to hang up in plain data acquisition process task, only when real-time clock interrupt service routine discharges binary signal
Amount, just will do it the acquisition and processing of electric energy meter data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910022089.4A CN109741592B (en) | 2019-01-10 | 2019-01-10 | Automatic data acquisition implementation method for station electric energy acquisition terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910022089.4A CN109741592B (en) | 2019-01-10 | 2019-01-10 | Automatic data acquisition implementation method for station electric energy acquisition terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109741592A true CN109741592A (en) | 2019-05-10 |
CN109741592B CN109741592B (en) | 2020-12-08 |
Family
ID=66364259
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910022089.4A Expired - Fee Related CN109741592B (en) | 2019-01-10 | 2019-01-10 | Automatic data acquisition implementation method for station electric energy acquisition terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109741592B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112614331A (en) * | 2020-12-14 | 2021-04-06 | 杭州海兴电力科技股份有限公司 | Method for reading electric energy meter event and electric energy meter event reading system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050035877A1 (en) * | 2003-08-11 | 2005-02-17 | Duk-Soo Kim | Automatic meter reading system and method for transmitting meter reading data in the same |
CN2906782Y (en) * | 2005-07-13 | 2007-05-30 | 浙江大学 | Embedded processor-based automatic remote electricity metering terminal |
CN201097378Y (en) * | 2007-07-06 | 2008-08-06 | 国电龙源电气有限公司 | Carrier power energy collection terminal |
CN101707399A (en) * | 2009-11-20 | 2010-05-12 | 深圳市科陆电子科技股份有限公司 | Method and system for acquiring electric energy information |
CN102014118A (en) * | 2010-08-13 | 2011-04-13 | 深圳市科陆电子科技股份有限公司 | Method for reading multiple electric energy meters generally |
CN202948266U (en) * | 2012-11-23 | 2013-05-22 | 深圳市航天泰瑞捷电子有限公司 | Electricity acquisition embedded soft system and terminal device |
CN203192219U (en) * | 2013-03-26 | 2013-09-11 | 沈阳时尚实业有限公司 | Electric energy meter collector with rapid reading function |
CN105959288A (en) * | 2016-05-27 | 2016-09-21 | 姹や寒 | Network protocol conversion method for power grid system and intercommunication method of power grid system |
US9792812B1 (en) * | 2016-02-12 | 2017-10-17 | King Fahd University Of Petroleum And Minerals | Method for correcting electricity meter readings |
CN108108236A (en) * | 2017-12-19 | 2018-06-01 | 宁波三星医疗电气股份有限公司 | A kind of efficient meter register method for electric power acquisition terminal |
-
2019
- 2019-01-10 CN CN201910022089.4A patent/CN109741592B/en not_active Expired - Fee Related
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050035877A1 (en) * | 2003-08-11 | 2005-02-17 | Duk-Soo Kim | Automatic meter reading system and method for transmitting meter reading data in the same |
CN2906782Y (en) * | 2005-07-13 | 2007-05-30 | 浙江大学 | Embedded processor-based automatic remote electricity metering terminal |
CN201097378Y (en) * | 2007-07-06 | 2008-08-06 | 国电龙源电气有限公司 | Carrier power energy collection terminal |
CN101707399A (en) * | 2009-11-20 | 2010-05-12 | 深圳市科陆电子科技股份有限公司 | Method and system for acquiring electric energy information |
CN102014118A (en) * | 2010-08-13 | 2011-04-13 | 深圳市科陆电子科技股份有限公司 | Method for reading multiple electric energy meters generally |
CN202948266U (en) * | 2012-11-23 | 2013-05-22 | 深圳市航天泰瑞捷电子有限公司 | Electricity acquisition embedded soft system and terminal device |
CN203192219U (en) * | 2013-03-26 | 2013-09-11 | 沈阳时尚实业有限公司 | Electric energy meter collector with rapid reading function |
US9792812B1 (en) * | 2016-02-12 | 2017-10-17 | King Fahd University Of Petroleum And Minerals | Method for correcting electricity meter readings |
CN105959288A (en) * | 2016-05-27 | 2016-09-21 | 姹や寒 | Network protocol conversion method for power grid system and intercommunication method of power grid system |
CN108108236A (en) * | 2017-12-19 | 2018-06-01 | 宁波三星医疗电气股份有限公司 | A kind of efficient meter register method for electric power acquisition terminal |
Non-Patent Citations (2)
Title |
---|
朱宪伟: "江苏电力用户用电信息采集终端设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
郑宇斌: "基于嵌入式网络通信的电能量遥测系统", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112614331A (en) * | 2020-12-14 | 2021-04-06 | 杭州海兴电力科技股份有限公司 | Method for reading electric energy meter event and electric energy meter event reading system |
Also Published As
Publication number | Publication date |
---|---|
CN109741592B (en) | 2020-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102855293B (en) | Mass data processing method of electric vehicle and charging/battery swap facility system | |
CN107992367B (en) | Modbus serial port data processing method | |
CN105939376A (en) | Smart electric meter management system and method based on cloud computing | |
CN103366311A (en) | Data fusion processing method based on transformer substation multi-system | |
CN201859537U (en) | Multifunctional bandwidth power carrier concentrator | |
CN109101685B (en) | Multi-medium energy equipment modeling method suitable for comprehensive energy management and control system | |
CN103632224A (en) | Automatic management system of electric power meter | |
CN202837399U (en) | Synchronized phasor measurement apparatus | |
CN205384728U (en) | Intelligence concentrator data acquisition device | |
Lv et al. | Design of cloud data warehouse and its application in smart grid | |
CN102169343B (en) | Programmed remote operation system and method of grid centralized monitoring center | |
CN204066111U (en) | A kind of quick retrieval system of magnanimity electric-power metering data | |
CN109741592A (en) | The automatic data collection implementation method of plant stand electric energy acquisition terminal | |
CN108228749A (en) | A kind of quick migration method of general time series data | |
CN110636107A (en) | Power grid data interaction system based on 5g communication and interaction method thereof | |
CN109271566A (en) | A kind of computer data processing system | |
CN102707174B (en) | Detection system and method of operation state of resistor type superconductive current limiter | |
CN110262351A (en) | A kind of configuration method | |
CN203504578U (en) | Automatic meter-reading device | |
CN110910276A (en) | Power dispatching data integration system | |
CN105825332A (en) | Cloud computing based electric energy metering monitoring platform and method thereof | |
CN202383198U (en) | Multi-channel alternating current electric quantity metering device | |
CN202059410U (en) | Electrical network concentrator | |
Huang et al. | Research on key technologies of electricity trading platform of next generation | |
CN102495279A (en) | Metering device for multipath alternating current electric quantities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201208 Termination date: 20220110 |