CN102692536A - Multi-step charging electricity meter device - Google Patents

Multi-step charging electricity meter device Download PDF

Info

Publication number
CN102692536A
CN102692536A CN2011100672556A CN201110067255A CN102692536A CN 102692536 A CN102692536 A CN 102692536A CN 2011100672556 A CN2011100672556 A CN 2011100672556A CN 201110067255 A CN201110067255 A CN 201110067255A CN 102692536 A CN102692536 A CN 102692536A
Authority
CN
China
Prior art keywords
module
communication
electric weight
incident
initialization
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.)
Pending
Application number
CN2011100672556A
Other languages
Chinese (zh)
Inventor
刘方升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING HUAYU HONGBO TECHNOLOGY CO LTD
Original Assignee
BEIJING HUAYU HONGBO TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING HUAYU HONGBO TECHNOLOGY CO LTD filed Critical BEIJING HUAYU HONGBO TECHNOLOGY CO LTD
Priority to CN2011100672556A priority Critical patent/CN102692536A/en
Publication of CN102692536A publication Critical patent/CN102692536A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention relates to a multi-step charging electricity meter device control system, comprising a program initialization module, a clock and display refreshing and processing module, a communication frame command processing module, an electricity quantity computation, storage and settlement processing module, wherein the electricity quantity computation, storage and settlement processing module comprises an electricity quantity decimal event and an electricity quantity integral event; the clock and display refreshing and processing module comprises a second event, a minute event, a half-hour event, and an hour event; and the communication frame command processing module comprises a communication receiving frame event and a communication sending frame event. The multi-step charging meter device provided by the invention is a soul of a prepaid multi-step electricity pricing watt-hour meter system, a nerve center of the system, and a command and control center of the whole system. The whole system can be ensured to run correctly and reliably by adopting the control system of the invention, and accurately multi-step charging is realized.

Description

The watt-hour meter device of stage charging
Technical field
The present invention relates to a kind of power measurement device, specifically, relate to the control system of a species stage electricity price electric energy meter.
Background technology
Existing pre-paying kilowatt-hour meter comprises contact cassette and contactless two kinds.Wherein, contact cassette ammeter is by variety of ways such as magnetic card, electricity card and CPU cards, and its principal feature is to combine with the plug-in card machine through various cards, and transmission information is each other accomplished message exchange.The occasion that contact cassette ammeter is used in civilian single-phase circuit system mostly, is convenient to carry out the plug-in card operation.Yet; For the big three-phase supply of use amount, ammeter is loaded in the metering cabinet, power distribution cabinet of sealing, and metering cabinet, power distribution cabinet also possibly be installed on the high-tension electricity line source or the electric pole eminence nearby; Contact cassette ammeter all has difficulties on operation, safety and electricity bill control, and measures inaccurate.Contactless ammeter adopts means transmission ammeter information such as infrared signal mostly, can realize remote copying, but its poor anti jamming capability, and transmission reliability receives bigger restriction, and owing to be interfered, measures inaccurate.Except hardware is transformed, same needs of control system that are used to control this hardware system are correct reliable, therefore just need to design the control system that a cover and ammeter are complementary
Summary of the invention
The objective of the invention is to have above-mentioned deficiencies such as anti-interference is poor, metering is inaccurate, the watt-hour meter device of the stage charging of a kind of strong interference immunity, accurate measurement is provided to existing prepayment meter.
Technical scheme of the present invention is: a kind of watt-hour meter device control system of stage charging, described control system comprise program initialization module, clock, demonstration refresh process module, communication frames command processing module, electric weight computing storage and settlement handler module; In electric weight computing storage and settlement handler module; It comprises electric weight decimal incident and electric weight integer incident; When corresponding types (Zong Feng Pinggu is anti-) electric pulse is accumulated to 0.01kWh, electric weight decimal incident takes place, and the electric weight decimal adds 1 and preserve the little logarithmic data of electric weight; When electric weight decimal generation carry, the electric weight integral part takes place should carry out simultaneously and handles in electric weight integer incident; Clock, show in the refresh process module, comprise a second incident, minute incident, half an hour incident and hour incident, second incident through timer regularly 1S excite; In communication frames command processing module algorithm, it comprises communication received frame incident and communication transmit frame incident, when program inquiring finishes flag set to the communication received frame; Communication received frame incident takes place, and program is carried out the judgement of communication format, if communication format is correct; Carry out the comparison of address again, if the address field in the communication frames is this machine address or broadcast address, expression is to the communication of this machine; Then program is carried out the explanation and the execution of communication command, simultaneously if the return data frame is put communication transmission sign; Be ready to send Frame, then the generation of Frame incident is sent in communication, starts and sends data.
Preferably, described program initialization module comprises MCU parts initialization module and ammeter parts initialization module; Wherein MCU parts initialization module comprises configuration of I/O control model and clock frequency divider initialization module; House dog, external interrupt 1, comparer interrupt initialization module, and RTC and timer 0,1 initialization module and serial ports interrupt, the keyboard interrupt initialization module; Ammeter parts initialization module comprises the port initialization module; Show initialization module, external clock chip initiation module, afterpulse data and each electric quantity data recover module; Clock data and demonstration control data recover module; Period rate initialization process module, historical electric weight initialization process module allows the initialization process module during school.
Preferably; Described clock, demonstration refresh process module comprise to be upgraded system data; Mistake is recovered and the data detection module of the operation carried out; When incident takes place, events corresponding is carried out the incident execution module of program response, carry out other execution modules that the communication channel acquiescence is recovered, the period rate detects, the electric weight clearing detect.
Preferably, described communication frames command processing module comprises communication event generation judge module, communication frames format detection module, and ammeter address detection module explains and execution module to communication command that then the Frame module is sent in communication.
Preferably, described electric weight computing storage and settlement handler module comprise that the processing of electric weight integer and storage module, the processing of electric weight decimal and memory module, electric pulse processing module, the low byte processing of electric weight integer and storage module, electric weight decimal storage area pointer upgrade judge module.
Preferably, described electric weight computing storage and settlement handler module also comprise a comparer interrupt module.
Beneficial effect of the present invention is: the present invention is the soul of pre-payment step electricity price electric energy meter system, and it is the nerve center of system, and it is control, the command centre of total system.Utilize this control system can guarantee correct, the operation reliably of total system, realize that ladder charges accurately.
Description of drawings
Accompanying drawing 1 is the structured flowchart of specific embodiment of the invention ladder Changeable electric meter;
Accompanying drawing 2 is the workflow block diagram of specific embodiment of the invention control system;
Accompanying drawing 3 is the workflow block diagram of specific embodiment of the invention initialization module;
Accompanying drawing 4 is specific embodiment of the invention clock, the workflow block diagram that shows refresh module;
Accompanying drawing 5 is the workflow block diagram of specific embodiment of the invention communication frames command processing module;
Accompanying drawing 6 is the workflow block diagram of computing storage of specific embodiment of the invention electric weight and settlement handler module;
Accompanying drawing 7 is the workflow block diagram of specific embodiment of the invention comparer interrupt module.
Embodiment
Embodiment of the present invention: as shown in Figure 1: a kind of watt-hour meter device of stage charging; Described electric energy meter circuit comprises power circuit, metering circuit, communicating circuit and MCU circuit, and described power circuit comprises independently circuit of three of MCU power circuits, metering power circuit and RS485 communication power supply circuit; Described metering circuit comprises a computation chip circuit that is connected with MCU, and the tested voltage pick-up circuit and the circuit-under-test pick-up circuit that are connected respectively at the computation chip circuit; Described communicating circuit comprise with the communication channel commutation circuit of the two-way UNICOM of MCU and respectively with two-way RS485 communication channel that is connected of communication channel commutation circuit and infrared communication passage; Described MCU circuit comprises battery undervoltage detection circuit, system's power-fail detection circuit and the 12C bus circuit that is connected with MCU respectively, and with the two-way ICP circuit that is connected of MCU.
The watt-hour meter device control system of above-mentioned stage charging as shown in Figure 2 comprises program initialization module, clock, demonstration refresh process module, communication frames command processing module, electric weight computing storage and settlement handler module; In electric weight computing storage and settlement handler module; It comprises electric weight decimal incident and electric weight integer incident; When corresponding types (Zong Feng Pinggu is anti-) electric pulse is accumulated to 0.01kWh, electric weight decimal incident takes place, and the electric weight decimal adds 1 and preserve the little logarithmic data of electric weight; When electric weight decimal generation carry, the electric weight integral part takes place should carry out simultaneously and handles in electric weight integer incident; Clock, show in the refresh process module, comprise a second incident, minute incident, half an hour incident and hour incident, second incident through timer regularly 1S excite; In communication frames command processing module algorithm, it comprises communication received frame incident and communication transmit frame incident, when program inquiring finishes flag set to the communication received frame; Communication received frame incident takes place, and program is carried out the judgement of communication format, if communication format is correct; Carry out the comparison of address again, if the address field in the communication frames is this machine address or broadcast address, expression is to the communication of this machine; Then program is carried out the explanation and the execution of communication command, simultaneously if the return data frame is put communication transmission sign; Be ready to send Frame, then the generation of Frame incident is sent in communication, starts and sends data.
As shown in Figure 3, described program initialization module comprises MCU parts initialization module and ammeter parts initialization module; Wherein the initialization of MCU parts is the initialized part of whole procedure, and it is the initialization of the used MCU resource of total system, make program when operation can be correct operation MCU parts, reach expected objective.MCU parts initialization module comprises configuration of I/O control model and clock frequency divider initialization module, and house dog, external interrupt 1, comparer interrupt initialization module, and RTC and timer 0,1 initialization module and serial ports interrupt, the keyboard interrupt initialization module.Each parts initialization of ammeter is that the associated components to ammeter, relevant variable carry out initialization, and particularly electric quantity data recovers extremely important, makes the ammeter operate as normal.Ammeter parts initialization module comprises the port initialization module; Show initialization module, external clock chip initiation module, afterpulse data and each electric quantity data recover module; Clock data and demonstration control data recover module; Period rate initialization process module, historical electric weight initialization process module allows the initialization process module during school.
As shown in Figure 4, clock, demonstration refresh module program are carried out routine processes according to the time, when time interval 1S; Second incident takes place, and carries out a second event handling, when the time interval is minute; Divide clock time to take place, carry out a minute event handling, equally half an hour in the time interval and hour the time; Half an hour and hour incident take place, and carry out event handling.Described clock, demonstration refresh process module comprise to be upgraded system data; Mistake is recovered and the data detection module of the operation carried out; When incident takes place; Events corresponding is carried out the incident execution module of program response, carry out other execution modules that the communication channel acquiescence is recovered, the period rate detects, the electric weight clearing detect.
As shown in Figure 5, described communication frames command processing module comprises communication event generation judge module, communication frames format detection module, and ammeter address detection module explains and execution module to communication command that then the Frame module is sent in communication.The communication frames command processing module is through judging whether whether set decision communication event takes place the communication event sign; When communication event takes place; Whether according to the communication rule, it is correct to detect the communication frames form, and relatively whether the ammeter address carries out the communication of this machine simultaneously; When inlet communication frames correct format when carrying out the communication of this machine and broadcast communication, then communication command is made an explanation and carries out communication command simultaneously and operate.After communication command was finished, whether program detects will carry out communication transmission Frame, sends if carry out communication, then prepares communication data, starts sending function.
As shown in Figure 6; Electric weight computing storage and settlement handler module are to carry out the electric quantity metering routine processes, and the order that electric weight is handled is followed successively by that the processing of electric weight integer and storage, the processing of electric weight decimal and storage, electric pulse are handled, the low byte processing of electric weight integer and storage, electric weight decimal storage area pointer upgrade and judge.Electric weight integer low byte is handled and stored is in power supply power-fail; The program that prevents is adding 1 and when preserving to the electric weight integer; Therefore the electric weight decimal is not preserved the generation power down, and the possibility that causes system to measure the electric energy of 1kWh detects two electric weight integer low bytes when unequal more when system's electric weight recovers; The zero clearing of electric weight decimal is handled the generation of dealing with problems.Electric weight decimal storage area pointer upgrades judges it is because the erasable phenomenon of the frequent generation of the storage area of electric weight decimal; Cause the life-span of EEPROM to be lowered; So way of the multizone of sampling; When detecting current storage area and damage, change down to a storage area, prolong the life-span of pre-payment step electricity price electric energy meter.
Comparer interrupt module as shown in Figure 7 is to be used for carrying out the electric pulse data protection, causes that when supply voltage descends comparer interrupts being called power down, at this moment should protect the electric pulse data.When the comparison state of power supply electrifying, power supply power-fail, comparer 2 overturns, infrared communication causes supply voltage to descend can causing that comparer interrupts taking place; Therefore when designing program, should tell power supply power-fail takes place; Thereby really carry out protected data, avoid program error to carry out.

Claims (6)

1. the watt-hour meter device control system of a stage charging, it is characterized in that: described control system comprises program initialization module, clock, demonstration refresh process module, communication frames command processing module, electric weight computing storage and settlement handler module; In electric weight computing storage and settlement handler module; It comprises electric weight decimal incident and electric weight integer incident; When corresponding types (Zong Feng Pinggu is anti-) electric pulse is accumulated to 0.01kWh, electric weight decimal incident takes place, and the electric weight decimal adds 1 and preserve the little logarithmic data of electric weight; When electric weight decimal generation carry, the electric weight integral part takes place should carry out simultaneously and handles in electric weight integer incident; Clock, show in the refresh process module, comprise a second incident, minute incident, half an hour incident and hour incident, second incident through timer regularly 1S excite; In communication frames command processing module algorithm, it comprises communication received frame incident and communication transmit frame incident, when program inquiring finishes flag set to the communication received frame; Communication received frame incident takes place, and program is carried out the judgement of communication format, if communication format is correct; Carry out the comparison of address again, if the address field in the communication frames is this machine address or broadcast address, expression is to the communication of this machine; Then program is carried out the explanation and the execution of communication command, simultaneously if the return data frame is put communication transmission sign; Be ready to send Frame, then the generation of Frame incident is sent in communication, starts and sends data.
2. the watt-hour meter device control system of stage charging as claimed in claim 1, it is characterized in that: described program initialization module comprises MCU parts initialization module and ammeter parts initialization module; Wherein MCU parts initialization module comprises configuration of I/O control model and clock frequency divider initialization module; House dog, external interrupt 1, comparer interrupt initialization module, and RTC and timer 0,1 initialization module and serial ports interrupt, the keyboard interrupt initialization module; Ammeter parts initialization module comprises the port initialization module; Show initialization module, external clock chip initiation module, afterpulse data and each electric quantity data recover module; Clock data and demonstration control data recover module; Period rate initialization process module, historical electric weight initialization process module allows the initialization process module during school.
3. the watt-hour meter device control system of stage charging as claimed in claim 1; It is characterized in that: described clock, demonstration refresh process module comprise to be upgraded system data; Mistake is recovered and the data detection module of the operation carried out; When incident takes place, events corresponding is carried out the incident execution module of program response, carry out other execution modules that the communication channel acquiescence is recovered, the period rate detects, the electric weight clearing detect.
4. the watt-hour meter device control system of stage charging as claimed in claim 1; It is characterized in that: described communication frames command processing module comprises communication event generation judge module; Communication frames format detection module; Ammeter address detection module explains and execution module to communication command that then the Frame module is sent in communication.
5. the watt-hour meter device control system of stage charging as claimed in claim 1 is characterized in that: described electric weight computing storage and settlement handler module comprise that the processing of electric weight integer and storage module, the processing of electric weight decimal and memory module, electric pulse processing module, the low byte processing of electric weight integer and storage module, electric weight decimal storage area pointer upgrade judge module.
6. the watt-hour meter device control system of stage charging as claimed in claim 5, it is characterized in that: described electric weight computing storage and settlement handler module also comprise a comparer interrupt module.
CN2011100672556A 2011-03-21 2011-03-21 Multi-step charging electricity meter device Pending CN102692536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100672556A CN102692536A (en) 2011-03-21 2011-03-21 Multi-step charging electricity meter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100672556A CN102692536A (en) 2011-03-21 2011-03-21 Multi-step charging electricity meter device

Publications (1)

Publication Number Publication Date
CN102692536A true CN102692536A (en) 2012-09-26

Family

ID=46858129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100672556A Pending CN102692536A (en) 2011-03-21 2011-03-21 Multi-step charging electricity meter device

Country Status (1)

Country Link
CN (1) CN102692536A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103487619A (en) * 2013-07-16 2014-01-01 深圳市航天泰瑞捷电子有限公司 Electric energy data storage method
CN103792422A (en) * 2012-11-02 2014-05-14 苏州工业园区新宏博通讯科技有限公司 Electric energy meter
CN105357072A (en) * 2015-11-16 2016-02-24 杭州佳和电气股份有限公司 Electric power meter with functions of realizing optoelectronic isolation and preventing RS485 communication bus occupation faults
CN112763777A (en) * 2020-12-28 2021-05-07 华立科技股份有限公司 Electric quantity storage method, device, equipment and medium for intelligent electric meter

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490627A (en) * 2002-10-18 2004-04-21 上海华龙信息技术开发中心 Data collecting and processing method of kilowatt meter for varied charge rates
CN2662259Y (en) * 2003-11-21 2004-12-08 天津市浩源电能计量技术开发有限公司 Three-phase full-electronic pre-charged time division watt-hour meter
JP2006292338A (en) * 2005-04-15 2006-10-26 Chugoku Electric Manufacture Co Ltd Current-carrying control device, standard time matching device, hot water storage type electric water heater system, heat pump type water heater system, watt-hour meter, hot water storage type electric water heater, and heat pump type water heater
CN201060226Y (en) * 2007-04-30 2008-05-14 五洲明珠股份有限公司潍坊浩特电气分公司 Single-phase smart card type pre-payment multi-rate meter
CN201903569U (en) * 2010-08-25 2011-07-20 浙江恒业电子有限公司 Single-phase remote charge-controlled intelligent electric energy meter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1490627A (en) * 2002-10-18 2004-04-21 上海华龙信息技术开发中心 Data collecting and processing method of kilowatt meter for varied charge rates
CN2662259Y (en) * 2003-11-21 2004-12-08 天津市浩源电能计量技术开发有限公司 Three-phase full-electronic pre-charged time division watt-hour meter
JP2006292338A (en) * 2005-04-15 2006-10-26 Chugoku Electric Manufacture Co Ltd Current-carrying control device, standard time matching device, hot water storage type electric water heater system, heat pump type water heater system, watt-hour meter, hot water storage type electric water heater, and heat pump type water heater
CN201060226Y (en) * 2007-04-30 2008-05-14 五洲明珠股份有限公司潍坊浩特电气分公司 Single-phase smart card type pre-payment multi-rate meter
CN201903569U (en) * 2010-08-25 2011-07-20 浙江恒业电子有限公司 Single-phase remote charge-controlled intelligent electric energy meter

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103792422A (en) * 2012-11-02 2014-05-14 苏州工业园区新宏博通讯科技有限公司 Electric energy meter
CN103487619A (en) * 2013-07-16 2014-01-01 深圳市航天泰瑞捷电子有限公司 Electric energy data storage method
CN105357072A (en) * 2015-11-16 2016-02-24 杭州佳和电气股份有限公司 Electric power meter with functions of realizing optoelectronic isolation and preventing RS485 communication bus occupation faults
CN112763777A (en) * 2020-12-28 2021-05-07 华立科技股份有限公司 Electric quantity storage method, device, equipment and medium for intelligent electric meter

Similar Documents

Publication Publication Date Title
CN103646468B (en) The metering and billing system of electric automobile wireless charging and electric energy metrical charging method
CN101339682B (en) CPU card three phase electronic type pre-payment step electricity price electrical energy meter
CN102081118B (en) Real-time metering two-way communication intelligent ammeter
CN102411090A (en) Self-checking electronic energy meter and self-checking method thereof
CN205068599U (en) One -phase fee -controlling intelligent electric energy meter
CN105243746A (en) Switching method for charge control modes of single-phase intelligent electric energy meter
CN110398708A (en) A kind of site intelligent electrical energy meter fault diagnostic method
CN102324144A (en) Intelligent waterproof water meter with radio frequency (RF) card
CN102692536A (en) Multi-step charging electricity meter device
CN101393667A (en) Pre-payment management device for intelligent IC card
CN106230484A (en) Wisdom electric energy terminal and control method thereof
CN202285025U (en) One-phase fee-control smart electricity meter
CN104181386A (en) Single-phase fee charged intelligent ammeter
CN202142131U (en) Radio frequency card intelligent waterproof water meter
CN202434049U (en) Water meter data acquirer
CN105279855A (en) Intelligent gas meter with NFC radio frequency CPU card
CN201955840U (en) Local single-phase prepaid intelligent electric energy meter
CN202421328U (en) Self-testing electronic electricity meter
CN204143550U (en) NFC radio frequency CPU card intelligent gas meter
CN201060514Y (en) Three-phase smart card type electric energy meter for farm irrigation
CN102163349A (en) IC card meter charging system
CN201819953U (en) Single-phase carrier prepayment electronic ammeter
CN109407039A (en) Intelligent electric meter and its system, self-diagnosing method and fault detection method
CN105513311A (en) Electric power system data acquisition device
CN210244364U (en) Indoor high-power supply low-count special transformer user power utilization inspection simulation platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120926