Home

Single-phase multi tariff energy meter

image

Contents

1. alajalS o S3 2 A Name 2 5 Ss s 2 K dE 5 2 8 3 5 Index o 1 57 58 59 60 365 If the particular year is a leap year then 59th index data will be filled by 29th Feb maximum demand otherwise index will be incremented by 2 which leaves the 59th index maximum demand data as it was 4 2 2 Month type maximum demand In this type the storing period is chosen and programmed to be one month As an example the maximum load period is chosen and programmed to be 15 minutes The maximum demand of a day is calculated as in the previous case If the first day the absolute maximum demand is 150 kW and the second day it is 75 kW the meter keeps the value of the 150 kW of the previous day as the maximum demand value If the third day the maximum demand is 200 kW the meter stores 200 kW with new date and time instead of the 150 kW as maximum demand of the month At the end of the month the meter stores only one value of maximum demand and calculates average maximum demands using the MD values of each month Then at the end of the month the meter calculates and stores e maximum demand of the month e average maximum demands of all types In EEPROM the storing of month type MD for each month is defined as below Name JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Index 0 1 2 3 4 5 6 7 8 9 10 11 4 2 3 Quarter type maximum demand 12 35 In this type the storing
2. e 8 o dad al gd ta dal ddd dad s ds ga aa Ad aa gg a amp 8 a 8 25 35 Schematics UMO402 26 35 Figure 5 Measurement section schematic R6 7 C15 C16 C17 D9 1 y SA 50 CONI Mains 230 VAC C18 A 1NF U 1U U3 IROSTRMJ H MON Sel MOP Scs w Vddd Syn Vss CLKout K Vec CLKin VOTP Vdda Vin Yi J4 RBA AK 4 2 1 no mounted C20 2 R9 gt R10 gt gt 194304MHZ Kimmes 10NF R13 1K M4 CURRENT TRANSFORME 1M R12 NZ RIB IK ex gt 20 2 Ess c T 15PH 15PF 2 2 1 no mounted R16 R17 i 10NF R18 R20 1K CURRENT TRANSFORMER 4 1 Y R21 R22 R23 PHASE 4 PHASE 270K 270K 200K R24 470 MAINS 230 Vac Figure 6 Power supply section schematic Di2 45 0V D I D2 600v pd 1N4148 Lo Eege T 1004F LL4148 c3 ka PFD T 5 0VB D4 BAT49 L1 BC1 cz 50V R3 2 RTI 470UH 100MA 22NF 25V 25V 22E L78LO5AC DI3 ag EI D5 De Ut 10UF 100NF 0 25W R4 SK B di 8 T 1 Pi TJ gt Sino 1 m Au 7 VIN veu 1 CONI E Ae do re ont xi GND GND Le 104148 1UF 1UF p VBD D8 No NG C10 011 50V 50V C8 ge 100uF 25V T 100uF RVI VIPER12ADIP wia arr 100NF T 7 k fa 275V 8 6J A 25V 10V 25V Sle L2 1uH 150mA 1
3. N UM0402 y User manual Single phase multi tariff energy meter Introduction This user manual describes the functions and features of the single phase multi tariff energy meter The reference board is an integrated system designed to provide a complete ready to use energy meter application It is a medium end solution for power metering using the ST72F321 microcontroller the M41T94 Real Time Clock the M95256 EEPROM and the STPM14 energy meter ASSP device The multi tariff energy meter reference board implements several features including multi tariff management absolute and average maximum demand calculation two types of tamper management and power failure management It can therefore be used as a platform for evaluation and development of meter applications The aim of this guide is to provide m Procedures for getting the reference board functioning quickly m Anoverview of the implementation of meter main features m The information required to be able to customize meter features April 2007 Rev 1 1 35 www st com Contents UM0402 Contents 1 O skoki iwa ii Ra Gas goi RAGE E ea EA 4 1 1 Safety rules Mer TC 4 1 2 ODVE MONS oua cusa ek pd SAGRA OW Ee ERR ee AG EE RE ee eee ee 4 1 3 Multi tariff meter description 4 1 4 Multi tariff meter features 6 1 5 Recommended reading 6 1 6 Obtaining tech
4. if the number of tariffs defined in EEPROM Union structure is 3 as in the above case the tariff rate should be defined as below 3 000 Tariff rate defined for A1 0 0 kWh Energy and Pulse count initialized to 0 s 2 001 Tariff rate defined for A2 10 0 kWh Energy and Pulse count initialized to 0 2 2 852 Tariff rate defined for A3 0 0 kWh Energy and Pulse count initialized to 0 0 0 Not Defined To set and change the tariff a function set TARIFF is called every second Energy consumption is calculated as total and for each tariff UMO402 Firmware features 4 2 4 2 1 Maximum demand management and configuration The maximum demand MD is the maximum continuous load kW which remains for a certain period This period is programmable and can be chosen from 1 minute up to 60 minutes There are three types of absolute maximum demand which are defined a Daily based b Monthly based c Quarterly based According to this selection the absolute maximum demand will be calculated and stored for each day or for each month or for each quarter in a 12 month base Out of these three options one can be selected by the user in the ib h file by preprocessor directive in the same way it is possible to program the period of constant load An example definition is given below define type for MD defineMD_minutes 1 defineDAY1 defineONE_MONTH 1 defineTHRE
5. 2 E 6 a 8 RS 5 Index 0 1 57 58 59 60 365 4 4 3 Storage specific for month type MD 16 35 2 pages of 64 Bytes are used for storing 12 structures of EEPROM AMD Union data type Current EEPROM MD Union structure contains the Maximum Demand information of the current month So there are 96 Bytes 12x8 Bytes of data present in EEPROM related to month type Maximum Demand EEPROM MD Union structure of EEPROM AMD Union data type is stored as below Table 5 EEPROM month type MD information reden Description Data Type 380h Absolute MD unsigned int 382h Time Ab MD Sec Min Hour volatile unsigned char 385h Date Ab MD Day Month Year volatile unsigned char Firmware features UMO402 In EEPROM 12 EEPROM_MD_Union structures each having 8 Bytes of data are stored as below Name JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Index 0 1 2 3 4 5 6 7 8 9 10 11 4 4 4 Storage specific for quarter type maximum demand 2 pages of 64 Bytes are used for storing 12 structures of EEPROM AMD Union data type for Maximum demand information of each month and 1 page of 64 Bytes are used for storing 4 structures of EEPROM AMD Union data type for Maximum demand information of 4 three months blocks Current EEPROM MD Union structure contains the Ma
6. 4L 4 vovv Y Figure 7 Memory and RTC section schematic 5 0VB 5 0VB U4 8 Veo S 1 EMEM 2 SC SCL Z HOLD Q T Cc w BH 5 D Vss C27 M95256 100NF aj C28 Yo XI BT2 BATTERY 3V xo NE NRST NIRQ FT OUT WDI THS NRSTIN1 SDI NRSTIN2 SQW VBAT SCL Vss SDO M41T94 030 100nF UMO402 Schematics Figure 8 IR and reset schematic 5 0V A 5 0V R39 A 39 XI OSCH z ue c33 2 osoz D10 id 3 100nF w BE x 16 MHZ os U7A x R30 3k A IROUT 1 2 2 Q3 BC847 a 5 0VB RM 74HC04 ss 5 0V 5 0V R35 4 7K pu z R29 10k 10K m R40 IRIN 220 C31 A 2 d Q2 10NF SW2 o BC847 Y a a 1 a PHOTO MEN E Figure 9 Connectors and LCD schematic 5 0VB J6 d d J7 VOTP coma 30 1 A PA4 1 ml al wl w coms 29 2 FA 2 PEE ES Xow2 25 3 7 Ke 4 25825868 Pa 5 PS Nw 5 KREE Po 6 07 ww ma 5 COM4 Por 24 S PDS 5 0V NPD H TOMS 1 PDZ sa 2 PDS EE ToM2 PDO 22 9 Or ji 9 TOMI T TB6 2 10 PB7 10 T TE ba Wiem Ca ml al wl w PB 19 12 PB3 alalala mr 18 13 per a LU R JA gegegeg Kb js EE ai APARPAPA b osci 5 0VB d l LCD DE7936 V 8 S MEP gt 7 1 RESET zd 6 5 I
7. by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2007 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Singapore Spain Sweden Switzerland United Kingdom United States of America www st com 35 35 D
8. ee RE RR 18 2 35 DI UMO402 Contents 5 1 2 IR MOGe sc ta A aa WA 18 5 1 3 LCD display 2259 ey ta a A E as E Rd 19 5 2 Power failure functioning 22 5 2 1 damper MOS c a ty wap ERR ROO ERE ROUGE E Rida eee 22 5 2 2 IR MOJE nube do a attt etos Ge os Secor eed 22 5 2 3 LCD Display 23 sete BIER Ee AEN eed eek A o kah AE A 22 5 3 LCD icons description socer IR Rx RR enews 22 6 Additional features 24 6 1 STPM14 programming ini znani banka bene a need KE ER EE 24 6 2 In circuit programming scs eme EN A DIE 3 n e Rn ER n eran 24 Appendix A Schematics eee eee 25 Appendix B BONUS page aka REG be a SR X ICI E emcees 28 Appendix C ET TT EE EN 7 REVISION history 3 sve vau loci sa haa aaa P edes EN als 34 ky 3 35 Overview UMO402 1 1 1 2 1 3 4 35 Overview Safety rules This board can be connected to mains voltage 220V In the case of improper use wrong installation or malfunction there is a danger of serious personal injury and damage to property All operations such as transport installation and commissioning as well as maintenance should be carried out only by skilled technical personnel regional accident prevention rules must be observed Danger Due to the risk of death when using this prototype on mains voltage 220V only skilled technical personnel who are familiar with the ins
9. of the application e Easy application debug J1 10 pins connector is available for ICP functionality UMO402 Schematics Appendix A Figure 4 Schematics Microcontroller section schematic PD4 PD5 PD6 PD7 NLCD C24 100nF 45 0VB 5 0VB nF 5 0VB E z E o m amp a 2 R38 sl 8 5l 8 E Ae a 5 0VB 2 9 9 a g gt 10k U6 Ojo S oc os n E s s 3 a 5 5 65 5 x 2 r a a 6 Z jA a S OI ih Cy up 100nF C13 a per lt NERTC aeeP gga gr a 8 3 ZA los 1 3 lu o 2 48 Pes ag E O 2 Vss_1 EMEM 2 ore SS BE vad iL Rl SW e E ki PEG 3 uA 46 Pes em PA3 TMPD PE7 ad I2c pag LE swi PBO ei0 IRQBUTT ZE 5 pwwa PBO i pay 44 al s PBI IRQRTC se 8 Pww2 PB1 pao HE PE PB2 ei2 ma DEL pwM1 PB2 SSPc7 HE 5 PB3 ICCCLK CL 8 pwmo PB3 zej pos soknccoLk LUKO v A SU PB4 DI T8463 ARTOLK PB POS MOSI AINI4 08 PB5 ICCDATA DO 10 ARTIC1 PB5 CA MISO ICCDATA LZ z s PB6 11 ei3 38 COM R7 0 ARTIC2 PB6 ST72F321 BR6 PCS ICAP1 B send 12 pg PCZ ICAP2_B PDO COM3 13 AINO PDO PCI OCMP1 B AINI3 H PDI COM4 H AINt PDI xs COMES pas 385 HH l o H ve LI PD2 15 AIN2 PD2 a SE vss o H A oi o N gt PDS E 18 AING PD3 EN sla Ee K Vado z 100nF 5 ove 3 xo X OE A 8 8 S ZE al g T EZ E s o a a o S B 5 s Sa 5 o Z Z Z Z 6 9 9 9 9 5 o 8 S Se Se ZS 2 SS SS
10. period is chosen and programmed to be three months Let suppose that the maximum load period is chosen and programmed to be 15 minutes The maximum demand of each month is calculated as in the previous case Moreover at the end of each month the maximum demand of the quarter is calculated as the maximum demand of the three months of the quarter and average maximum demands are calculated using the MD values of each month Summarizing at the end of month meter calculates and stores e maximum demand of the month maximum demand of the quarter e average maximum demands of all types UMO402 Firmware features In EEPROM in the case of three months type MD the storing of month wise maximum demand and three month wise maximum demand is defined as below Name JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Index 0 1 2 3 4 5 6 7 8 9 10 11 Name JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Index 0 1 2 3 4 3 Date and time configuration RTC date and time can be set by the firmware itself There is a RTC_init function which initializes the RTC with the specified date and time The date and time to be initialized in RTC should be specified in RTC_table 10 array The definition of array is as below RTC table 0 write command and 7 bit address 0x00 0x80 RTC table 1 Seconds up to 0 01 in BCD format value given by user RTC table 2 ST and Seconds in BCD f
11. the LCD processes measurements coming from the ASSP and manages RTC and EEPROM functionalities for example saving relevant data in EEPROM before moving to halt mode during power down It also manages maximum demand calculation on a daily monthly or three month base ky UMO402 Overview A 16 MHz crystal is used for obtaining an 8 MHz CPU clock for the micro This meter has SPI EEPROM M95256 with 256 Kb of memory and SPI RTC M41T94 for date and time functions 3V rechargeable battery is used to supply RTC for when the line power is down and the battery is fully discharged Figure 1 Multi tariff meter board The board has a Viper12 based switching power supply When line power is not available power to the application is supplied by 4 8V rechargeable battery An LCD display is present with 24x4 segments customized for electricity meter use This board also supports IRDA protocol IEC62056 21 mode C There are two 10 pin connectors one to program STPM14 internal OTP registers and one for microcontroller ICP Two jumpers are used for the microcontroller reset and to simulate a box tamper A push button is used to display various parameters on the LCD display 30 seconds after the switch is pressed without further activity the LCD screen once again displays the first screen showing accumulated kWh and eventual error symbols However repeated presses of the button cycle through the display of additional inf
12. 0 A1 Tariff symbol A1 Tariff symbol e 1 Tariff 10 Consumption for 0000000 0 l 1st tariff slot kWh Measure Unit 7 Phase 1 11 iss 2nd tariff 9000 00 A2 Tariff symbol A2 Tariff symbol 2 Tariff 12 Consumption for 5550000 6 2nd tariff slot kWh Measure Unit 7 Phase 1 13 da 3rd tariff 5 000 000 A3 Tariff symbol A3 Tariff symbol 3 Tariff 14 Consumption for 6550000 o 3rd tariff slot kWh Measure Unit 1 Phase 1 15 gt 4th tariff 5000 00 A4 Tariff symbol A4 Tariff symbol 4 Tariff 16 Consumption for 6550600 o 4th tariff slot kWh Measure Unit 1 Phase 1 The next block of information is repeated 12 times the first block displayed is current month data the others are past months going backwards for 1 year ky UMO402 Multi tariff meter operation a Index i 0 refers to current month it increases by one each button press up to 11 for past months information Table 9 LCD Month Information Screen n Data Format Symbol Meaning i A Active energy Consumption 17 i 11 under tamper 0000000 0 kWh Measure Unit mode 1 Phase 1 18 i 11 pit box tamper dd mm yy E bottom Tamper indicator event date 1 E bottom Tamper indicator 19 i 11 First Box tamper hh mm ss event time Min Time indicator 20 i 11 tast box tamper dd mm yy E bottom Tamper indicator event date E bottom Tamper indicator 21 i 11 Pant box tamper hh mm ss event time Min Time indic
13. 768 kHz Crystal THT MicroTechnolo XTAL002995 RS gy 64 1 U6 ST72F321BR6 SMD ST ST72F321BR6T6 30 35 a Layout UM0402 Figure 11 Bottom layer 32 35 DI UM0402 Layout Figure 12 Components layer SA NE C BE calm O m mesz ae ales GI CHOCO R37 E Sr 000000000000000 17 vz ta ca Er le 9 RILI IN aT en Ho oo oo oo oo 15 ppp 5W2U FZPL EE d cat a STPMO1 Ke MULTITARIFF 0000081 v00000 a 33 35 Revision history UMO402 7 34 35 Revision history Table 13 Document revision history Date 17 Apr 2007 Revision 1 Initial release Changes UMO402 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursuant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any i
14. CCCLK 4 3 ICCDATA d ICP CONNETCTOR C32 100NF 27 35 BOM list UMO402 Appendix B BOM list Table 12 BOM list 2 D o E o 6 9 2 Sod o s e 6 gt 3 3 8 og 2 S 2 o gd 5 Sz t 303 a a58 S 3 5 Or S 2 5752 3 ego amp E Ki a 5 533 z o EE S 50 PCB mount NiMH 1 1 BT1 battery 4 8V 150mAh THT VARTA 55615604940 RS 422 400 BR2032H2A lithium 2 1 BT2 coincell 3V 190mAh THT Panasonic BR2032 1GURS RS 597 396 3 THT 2 54mm pitch 3 3 C1 C10 C11 100uF 25V electrolytic Diameter 7mm 4 1 C2 22 nF 25V ceramic SMD 0805 THT 2 54mm pitch 5 1 C3 10uF 50V electrolytic Diameter 5mm C4 C9 C27 C3 2 C5 C12 C19 z 6 11 C24 C25 C30 100 nF 25V ceramic SMD 0805 C33 R THT 3 5mm pitch 7 2 C6 C7 1uF 450V electrolytic Diameter 8mm THT 2 54mm pitch 8 1 C8 47uF 25V Diameter 5mm C13 C14 C20 9 5 C23 C31 10nF 25V ceramic SMD 0805 10 1 C15 1nF 50V ceramic SMD 0805 11 3 C16 C17 C18 1uF 25V ceramic SMD 0805 12 4 ME 15 pF 25V ceramic SMD 0805 13 1 C26 33nF 25V ceramic SMD 0805 14 1 DZ1 zener 9 1V 0 5W SMD DO 213 15 1 DZ2 zener 10V 0 5W SMD DO 213 16 2 D2 D8 STTH1L06 SMD SMA ST STTH1L06A DIOTEC 17 4 o 1 D12 D 11 4448 Small signal diode SMD 1206 SEMICONDU LL4148 Distrelec 601496 CTOR 18 1 D4 BAT49 SMD MELF ST TMBAT 49 GF1M Rectifier diode 1A General 19 2 D5 D6 36008 e SMD DO214 Semiconducto G
15. D display Below is a table listing all the information available for display on the LCD Each screen of data is displayed one at a time following a press of the push button Once the push button has been pressed if it is not pressed in another 30 seconds the LCD returns to the first screen screen 0 Table 8 LCD Common Information Screen n Data Format Symbol Meaning A Active energy kWh Measure Unit 7 Phase 1 0 Energy 0000000 0 A1 A2 A3 A4 Current tariff Consumption E bottom Tamper detected Negative Power Direction X No Load Condition detected Instantaneous P Power 1 power 00000 000 consumption kW Measure Unit Average maximum P Power 2 demand for last 3 00000 000 months kW Measure Unit Average maximum P Power g AE 00000 000 second last 3 kW Measure Unit months Average maximum P Power 4 demand for third 3 00000 000 months kW Measure Unit 19 35 Multi tariff meter operation UMO402 20 35 Table 8 LCD Common Information Screen n Data Format Symbol Meaning Average maximum P Power 5 demand for fourth 00000 000 Average maximum P Power 6 demand for last 6 00000 000 months kW Measure Unit Average maximum P Power 7 demand for last 9 00000 000 months kW Measure Unit Average maximum P Power 8 demand for last 12 00000 000 months kW Measure Unit 9 bes etstiarif 5000 0
16. E_MONTHS 1 In every case the average of these maximum demands is calculated and stored for a year as last three months average maximum demand second last three months average maximum demand third last three months average maximum demand fourth last three months average maximum demand last six months average maximum demand last nine months average maximum demand e lasttwelve months average maximum demand In the following paragraphs the three types of MD will be explained in detail Day type maximum demand In this type the storing period is chosen and programmed to be one day As an example the maximum load period is chosen and programmed to be 15 minutes If on the first day e g 25th Dec 06 there is a continuous load of 150 kW for 15 minutes starting from 10 15PM to 10 30PM and another one of 200 kW for 10 minutes starting from 11 11PM to 11 21PM the meter stores the value of 150 kW as the maximum demand of that day with date 25th Dec 06 and time 22 30 00 in 24Hour HH MM SS format The meter acts the same way for each day Average maximum demands are calculated using the MD values of each day Then at the end of the month the meter calculates and stores e maximum demand for each day of the month e average maximum demands of all types 11 35 Firmware features UM0402 In EEPROM the storing of the day type MD for each day is defined as below
17. F1M RS 269 451 r 20 1 D9 3mm red LED THT 21 1 D10 IR Emitting Diode 5mm THT VISHAY TSAL6100 5 way 2 row header 0 1in 22 1 JA1 J6 pitch 7mm pin 10 PIN strip THT line 2 way 1 row header 0 1in 23 2 JP1 SW2 pitch 7mm pin 2 PIN strip line THT for jumper 28 35 r UMO402 BOM list Table 12 BOM list continued 2 x NSE o 6 9 2 BO Y o sl E 5 SE gt 3 23808 B 3 F o See Be i P i E io EB n 9 a 35 a S S S o aS se 50 24 12 J1J2 m header 0 1in pitch 7mm THT DCT108 1 2500 12 50 0 1 OSWELL 25 2 J4 J5 100A CURRENT THT www oswell c DCT108B TRANSFORMER om cn Display 26 1 J7 LCD DE7936 V THT Elektronik DE 7936 V GmbH Power Use SMD Inductor SLF10145T 27 j1 pet 1MH SMD TER 102MR29 PF 28 1 L2 jumper wire 470uH 0 24A Miniature axial 29 1 L1BC1 dd THT RS 240 545 BRIGT LED ELECTRONIC 30 1 01 SILICON PHOTO DIODE THT S CORP BPD BQA314 www brightle d com tw BC847 NPN general purpose 31 2 Q2 08 ae SMD SOT23 10R 1W ROX1S metal oxide Tyco 32 1 RFI k THT Electronics ROX1SJ10R RS 214 0879 ilm resistor Neohm 33 1 RVI 275V 8 6J SMD varistor SMD DO214AB EPCOS B72650M271K72 Distrelec 730096 R1 R2 R29 R3 34 6 6 R38 R41 10kQ SMD 0805 35 1 R3 22EQ SMD 1206 36 1 R4 5KQ SMD 1206 37 2 R5 R7 02 SMD 0805 38 1 R6 7500 1 SMD 0805 39 4 SZER 1kQ 1 SMD 0805 40 R9 R16 pie A Profes
18. OM during power down also Single point and fast calibration of STPM14 for Class 1 meter Recommended reading This documentation describes how to use the Multi Tariff Meter Reference Board Additional information can be found in the following documents STPM14 datasheet Components datasheets inDART STX for ST7 User s Manuals IEC 62056 IrDA Protocol Mode C IrDA module for Multitariff Meter user manual Obtaining technical support Technical assistance is provided free to all customers For technical assistance documentation information and updates about products and services please refer to your local ST distributor office UMO402 Getting started 2 Getting started 2 1 Multi tariff meter checklist The Multi tariff meter reference kit includes the following items e Reference design board Figure 1 e STPM14 programmer e Aninteractive CD ROM with software and documentation 2 2 Equipment requirements To operate the multi tariff meter reference board it is necessary to use a 220 V 50 Hz AC supplier or a simple connection to the line voltage 2 3 Installing the hardware Connect the board to line and neutral wires of voltage source and to load as displayed below The line and neutral voltage source wires can be either connected to a plug to be plugged into the line socket or to an AC voltage source providing 220 VAC Figure 2 Multi tariff meter board connections AC Source N 7 35 Hard
19. and 1st three unsigned int 08h Av Max Demmand 2nd three unsigned int OAh Av Max Demmand 3rd three unsigned int 0Ch Av Max Demmand 4th three unsigned int 0Eh Av Max Demmand last six unsigned int 10h Av Max Demmand last nine unsigned int 12h Av Max Demmand last twelve unsigned int 14h IROTAMPER Bool 14h TMPD Bool 14h E TAMPER Bool 14h First Fraud Bool 14h First Box Bool 14h Installation Check Bool 15h Total No Tarrifs unsigned char 16h Tarrif Time 0 Hour Min Sec unsigned char 19h Tarrif Time 1 Hour Min Sec unsigned char 1Ch Tarrif_Time 2 Hour Min Sec unsigned char 1Fh Tarrif_Time 3 Hour Min Sec unsigned char 22h Tarrif 0 Tarrif_Rate float 26h Tarrif 0 kWh Energy Tarrif volatile unsigned long 2Ah Tarrif 0 Pulse Count Tarrif volatile unsigned int 2Ch Tarrif 1 Tarrif Rate float 30h Tarrif 1 kWh Energy Tarrif volatile unsigned long 34h Tarrif 1 Pulse Count Tarrif volatile unsigned int 36h Tarrif 2 Tarrif Rate float 3Ah Tarrif 2 kWh Energy Tarrif volatile unsigned long 3Eh Tarrif 2 Pulse Count Tarrif volatile unsigned int 40h Tarrif 3 Tarrif Rate float 44h Tarrif 3 kWh Energy Tarrif volatile unsigned long 48h Tarrif 3 Pulse Count Tarrif volatile unsigned int 4Ah Index Month Data volatile unsigned char 4Bh Index day three mon Data volatile unsigned int 14 35 a UMO402 Firmware features d Table 2 EEPROM common information patie Description Data Type 4Dh p
20. ator 224i 11 EISE Maud tamper dd mm yy E bottom Tamper indicator event date i E bottom Tamper indicator 234i 11 ER neta tamper hh mm ss event time Min Time indicator 24 i 11 Last maua tamper dd mm yy E bottom Tamper indicator event date E bottom Tamper indicator 25 i 11 Last nang tamper hh mm ss event time Min Time indicator f E top Power failure 26 i 11 Total Tamper Time wt wm ze indicator Box Fraud Min Time indicator E top Power failure 274111 IS Euer hhhh mm ss indicator Failure Time Min Time indicator The next block of information is repeated 4 12 or 12 or 365 times if the MD mode is quarterly or monthly or daily based respectively The first block displayed is current quarter or month or day the others are previous data going backwards for 1 year e Quarterly AMD case j from 0 to 15 displays 12 months 4 quarters information e Monthly AMD case j from 0 to 11 e Daily AMD case j from 0 to 365 Index i 0 refers to current quarter month or day it increases by one each button press up to the maximum for each case for past information 21 35 Multi tariff meter operation UMO402 5 2 5 2 1 5 2 2 5 2 3 5 3 22 35 Table 10 LCD AMD Information Screen n Data Format Icon Meaning P Power 1494j 3 Absolute 00000 000 maximum demand kW Measure Unit 150 j 3 vania dd mm yy occurrence 151 j 3 Time ot hh mm ss Min Time indicator occurrence Operat
21. d power on the board by plugging it into the AC line socket or by powering on the AC source to which line and neutral wires are connected During normal operation the meter is supplied with the line voltage the microcontroller is in Run Mode and all devices are powered on The red LED just below the LCD blinks with a frequency proportional to active power measured by STPM14 pulse constant is set to 1000imp kWh and the LCD displays active energy measured current tariff and other symbols as listed below in details Tamper mode The meter is able to detect and manage two types of tamper e box tamper when the box is opened This event can be simulated with jumper J1 e fraud tamper The STPM14 metering device is also able to detect tamper on the line or voltage wire Ifa difference between currents in line and neutral wire is detected the device enters tamper mode In normal mode the current averages with a 50 multiplex ratio between the two channels In tamper mode only the higher current is used for energy computation and the other current is monitored only to check if tamper is still present For more details about line tamper please refer to STPM14 datasheet Both box and line tamper events are detected by the microcontroller which also records their timestamp and other sensitive data During a tamper event the LCD displays the E bottom tamper symbol The energy computation is still performed and increases the total energy mo
22. e unsigned char 9Bh Last Tamper Date Fraud Day Month Year volatile unsigned char 9Eh Total Tamper Time Sec Min volatile unsigned char AOh Total_Tamper_Time Hour_Tamper_Time Hour volatile unsigned int A2h Power_Failure_Time Sec Min volatile unsigned char A5h Power_Failure_Time Hour_Tamper_Time Hour volatile unsigned int 15 35 Firmware features UM0402 In EEPROM twelve EEPROM month Union structures each having 38 Bytes are stored as below Name JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Index 0 1 2 3 4 5 6 7 8 9 10 11 4 4 2 Storage specific for day type MD 46 pages of 64 Bytes are used for storing 366 structures of EEPROM AMD Union data type Current EEPROM MD Union structure contains the Maximum Demand information of the current day So there are 2928 Bytes 366x8 Bytes of data present in EEPROM related to day type Maximum Demand EEPROM MD Union structure of EEPROM AMD Union data type is stored as below Table 4 EEPROM day type MD information EEPROM Address Description Data Type 380h Absolute MD unsigned int 382h Time Ab MD Sec Min Hour volatile unsigned char 385h Date Ab MD Day Month Year volatile unsigned char In EEPROM 366 EEPROM MD Union structures each having 8 Bytes of data are stored as below alajalS o SS 9 2 8 8 Name 3 2 Ss s
23. ion during power failure During a normal operating mode the meter is supplied with the line voltage the microcontroller is in Run Mode and all devices are powered on If a power down occurs the meter is supplied by 4 8 V battery In this case the micro moves to HALT mode and LCD EEPROM and STPM14 are switched off As the micro senses the voltage going down and before moving to HALT mode it saves in EEPROM all data Tamper mode During power failure the STPM14 metering device is switched off Then line tamper is not available but box tamper is still recognized by the meter The behavior of the meter is the same of that during power up as described in Section 5 1 1 Tamper mode on page 18 IR Mode The functioning of IrDA module during power down is the same of that described above except that it is necessary to wake up the micro from HALT mode to send a specific command LCD Display During power down LCD is normally switched off When the push button is pressed micro wakes up and the LCD displays the information listed above Once the push button has been pressed if it is not pressed in 30 seconds the micro returns to halt mode and the LCD is switched off again LCD icons description The LCD can display different icons which meaning is shown below UMO402 Multi tariff meter operation Table 11 LCD Icons a Icon Meaning A Active Energy P Active Power kWh Energ
24. meters continued Parameter Min Typ Max Units Test Conditions or Comments Data set up time tps 20 ns Data hold time tpy 0 ns Data driver on time ton 20 ns Data driver off time torr 20 ns SYN active width tsyn 1000 ns 3 2 Mechanical outlines The size of PCB of the module can be seen from an appended drawing The overall volume is determined by the size of maximal element which is a current transformer LxW xH lt 70 mm x 46 mm x 30 mm 9 35 Firmware features UM0402 4 4 1 10 35 Firmware features Multi Tariff management and configuration It is possible to define up to four tariffs to apply to the energy count The number of tariffs must be defined in EEPROM Union structure in the EEPROM c file Tariff change time should also be given in the EEPROM Union structure in 24 hour HH MM SS format Tariff times in the EEPROM c file should be defined in increasing order starting from the first definition For example if the number of tariffs defined in EEPROM Union structure is 3 we should give three tariff times in increasing order starting from first as shown below 0x05 0x00 0x00 Change of tariff from A3 to A1 at 5 00 AM 0x10 0x30 0x00 Change of tariff from A1 to A2 at 10 30 AM 0x21 0x00 0x00 Change of tariff from A2 to A3 at 9 00 PM 0x00 0x00 0x00 Not defined j Tariff rates are defined in EEPROM Union structure in EEPROM c file in the same order as tariff times For example
25. nical support 6 2 Getting started Add 88 dg eg ERE a ale Rech Ra ea 7 2 1 Multi tariff meter checklist 7 2 2 Equipment requirements 7 2 3 Installing the hardware 7 3 Hardware Features L Lana 8 3 1 Electrical parameters gu SIN EIS tirade ca dukes ete eka ee REGERE A 8 3 2 Mechanical outlines 9 4 Firmware features eu rrr 10 4 1 Multi Tariff management and configuration 10 4 2 Maximum demand management and configuration 11 4 2 1 Day type maximum demand 11 4 2 2 Month type maximum demand 12 4 2 3 Quarter type maximum demand 12 4 3 Date and time configuration 13 4 4 Memory structure 13 4 4 1 Common storage for all maximum demand types 13 4 4 2 Storage specific for day type MD 16 4 4 3 Storage specific for month type MD 16 4 4 4 Storage specific for quarter type maximum demand 17 5 Multi tariff meter operation 18 5 1 Normal operation scores center bw eee Dey Seen ecco aon eee tia ee 18 5 1 1 Tamper mode si sie ui dee dE A RC Oe
26. ntellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted
27. ormat value given by user RTC table 3 Minutes in BCD format value given by user RTC table 4 CEB CB and Hours in BCD format value given by user RTC table 5 Day of week value given by user RTC table 6 Date of month in BCD format value given by user RTC table 7 Month in BCD format value given by user RTC table 8 Year value given by user RTC table 9 calibration value value given by user For more information please refer to M41T94 datasheet of RTC used in the board Date and time can also be set by using the IRDA protocol Please refer to the IEC 62056 PROTOCOL MODE C user manual 4 4 Memory structure The meter sensitive data are stored in EEPROM M95256 256 Kbit EEPROM is used Below are details on memory organization 4 4 1 Common storage for all maximum demand types There is some common data stored at the start of EEPROM This data is saved in 89 Bytes of EEPROM Union structure of EEPROM DATA Union data type and represents the energy count the average maximum demand application flags tariff definitions energy counts and power down information Two pages of 64 Bytes are used for storing these 89 Bytes as shown below ky 13 35 Firmware features UMO402 Table 2 EEPROM common information a Description Data Type 00h kWh Energy unsigned long 04h Pulse Count unsigned int 06h Av Max Demm
28. ormation See Table 8 on page 19 for full details on the parameters displayed on the LCD 5 35 Overview UMO402 1 4 1 5 1 6 6 35 Multi tariff meter features Cost effective and flexible based on STPM14 Fulfils class 1 accuracy for Ib 5A and Imax 80A according to IEC 61036 1996 A1 2000 Static meter for active energy classes 1 and 2 Operating Voltage range 220V 20 Continuously detects and displays No load condition Reverse direction and fraud amp case Tamper conditions Configurable number of tariffs 1 to 4 and Maximum demand Type day type one month type or three month type Accumulated data for whole meter life Total kWh consumption Average MDs Total number of Tariffs Tariff time slots consumption under different tariff rates power failure date time Data for last 12 months Consumption under Tamper mode for each month First last Case fraud Tamper Date time total Tamper time and power failure accumulating time for each month Data for Absolute Maximum Demand Absolute MD Date Time according toType of MD requested SW LCD driver for 24X4 segments LCD glass with contrast control RTC with SPI exists for real Date Time EEPROM with SPI for storing 256 Kbit of data Case tamper detection in power down also External switch to see all the data stored into EEPROM sequentially even when AC power is not available Battery backup to detect tampering and see all the parameters stored in EEPR
29. ower_down_date Day Month Year volatile unsigned char 50h power_down_time Sec Min Hour volatile unsigned char 53h pwr_dn_index_year volatile unsigned char 54h pwr_dn_index_mon volatile unsigned char 55h Index_Box_Tamper volatile unsigned int 57h Index_Fraud_Tamper volatile unsigned int Twelve pages of 64 Bytes are used for storing 456 Bytes 12x38 Bytes of EEPROM month Union structure of EEPROM DATA Month Union data type Each page of 64 Bytes of EEPROM is separately storing 38 Bytes of data related to each month The information stored for each month is Energy consumption during tamper First and last box tamper time and date First and last line tamper time and date Total month tamper time Total month power down time EEPROM month Union structure is stored as below Table 3 EEPROM common information for each month pridie Description Data Type 80h kWh Energy Tamp volatile unsigned long 84h Pulse Count Tamp volatile unsigned int 86h First Tamper Time Box Sec Min Hour volatile unsigned char 89h First Tamper Date Box Day Month Year volatile unsigned char 8Ch Last Tamper Time Box Sec Min Hour volatile unsigned char 8Fh Last Tamper Date Box Day Month Year volatile unsigned char 92h First Tamper Time Fraud Sec Min Hour volatile unsigned char 95h First Tamper Date Fraud Day Month Year volatile unsigned char 98h Last Tamper Time Fraud Sec Min Hour volatil
30. reover the meter computes and stores the total amount of energy consummated during tamper events for each month IR Mode The meter implements a simple IrDA communication compliant with IEC 62056 protocol mode C using two led as transmitter and receiver In this way it is possible to read all information stored in EEPROM as energy consumption tamper information and MD data or to change application parameters without opening the meter case or stopping its operation A firmware library has been developed to communicate through a hand held unit HHU connected to PC serial port with a GUI interface UMO402 Multi tariff meter operation With a predefined command set sent by the GUI and the HHU to the microcontroller it is possible to read from a specified EEPROM memory location read from microcontroller RAM write in a specified EEPROM memory location reset all EEPROM memory locations set RTC time and date The GUI allows the baud rate to be set from 300 to 19200 bps the parity odd even communication port data format and other communication parameters Two windows are available in the GUI showing data sent and received from the microcontroller in hexadecimal and ASCII format For further details about the implemented IrDA protocol refer to the EC 62056 Protocol Mode C document For the operation of the GUI and the command set please refer to the IrDA module for multi tariff meter user manual LC
31. sional MELF SMD minimeli 1206 BEYSCHLAG MMA0204 Distrelec 713010 41 4 R10 R17 no mounted 42 1 R1 2 2kQ 1 SMD 0805 43 2 R12 R37 1MQ 1 SMD 0805 44 2 R14 R18 quide Professional MELF SMD minimeli 1206 BEYSCHLAG MMA0204 Distrelec 713153 45 1 R19 150kQ SMD 0805 270KQ 1 Professional PRA 46 2 R21 R22 MELF resistor SMD minimelf 1206 BEYSCHLAG MMA0204 Distrelec 713132 200kQ 1 Professional xd y 47 1 R23 MELF resistor SMD minimelf 1206 BEYSCHLAG MMA0204 Distrelec 713129 48 1 R24 a Professional MELF SMD minimelt 1206 BEYSCHLAG MMAO204 Distrelec 713066 ky 29 35 BOM list UM0402 Table 12 BOM list continued ee x NSE o 6 9 2 BO Y o z 5 S 9 3 005 3 E o 3 o to 5 Z HE E 3 225 E 333 o H E E a S 53 z o aS Ss 50 R25 R26 R27 49 8 R28 R31 R32 56kQ SMD 0805 R33 R34 50 1 R30 3kQ SMD 0805 51 1 R35 4 7kQ SMD 0805 52 1 R39 390 SMD 1206 53 1 R40 2200 SMD 0805 479 1520 54 1 SW1 6x6mm r a tactile switch THT Tyco 8 1437565 5 RS 55 1 U1 VIPER12 SMD SO8 ST VIPer12AS E 56 1 U2 L78L05AC SMD SO8 ST L78LO5ACD13TR 57 1 U3 STPM14 SMD TSSOP20 ST STPM14 58 1 U4 M95256 SMD SO8 ST M95256MW6P 59 1 U5 M41T94 SMD SO16 ST M41T94MQ6E 526 6154 60 1 U7 74HC04 SMP SOP sT M74HC04M1R 61 1 X1 16 MHZ Resonator THT Murata CSTLS16M0X55 RS 335026 62 1 Y1 4 194304 MHZ Quartz THT AURIS HC 49 US SMD Distrelec 226 1443 C MAC 63 1 Y2 32
32. tallation mounting commissioning and operation of power electronic systems and have the qualifications needed to perform these functions may use this prototype Conventions The lowest analog and digital power supply voltage is called Vas All voltage specifications for digital input output pins are referred to as Vse The highest OTP writing power supply voltage is Vorp The highest power supply voltage of the device is Vcc Positive currents flow into a pin Sinking means that the current flows to the pin while sourcing means that the current flows from the pin Timing specifications of signals treated by the device are relative to the CLKOUT This signal is fed from a 4 194 MHz on board crystal oscillator Timing specifications of SPI interface signals are relative to the SCLNLC which need not to be in phase with CLKOUT A positive logic convention is used in all equations Multi tariff meter description The single phase multi tariff energy meter reference board is designed using STPM14 metering ASSP and ST72F321BR6 microcontroller The STPM14 belongs to STPM1x metering devices family It measures the active energy that is output as a pulse train with a frequency proportional to the measured power It supports tamper detection monitoring both phase and neutral line wires where two current transformers are used as current sensors The clock to STPM14 is supplied by a crystal of frequency 4 194304 MHz The microcontroller drives
33. ware Features UMO402 3 3 1 8 35 Hardware Features Electrical parameters The following table summarizes the electrical parameters which are specified for Voc 3 6V Tam 25 C unless otherwise noted Table 1 Electrical parameters Parameter Min Typ Max Units E PE Target applications Nominal line voltage Vom 140 220 300 Vnus Nominal frequency F 45 0 50 0 65 0 Hz Nominal line current Iyom 2 Arms Maximal line current wax 20 30 Arms Ambient temperature TayB 40 25 85 C Class of accuracy 0 2 0 5 Digital inputs FM Op ll 1 Valid also for IO pins Voltage input low Vu 0 3 0 25Vcc when they are used as Voltage input high Vu 0 75Vcc 5 3 y pus Digital outputs Voltage output low VoL 0 4 V loL 2mA Voltage output high Voy Voc 0 4 V lon 2mA Transition time tra 5 ns C 50pF Vcc 3 2V OTP programming No programming level Vyorp DE V Internally generated Programming level Vyorp 14 20 V Programming current lyorp 1 1 5 3 mA To program 1 bit at a time Programming time twe 100 200 300 S To program 1 bit at a time Power supply Supply level Voc 3 165 3 6 5 5 V Quiescent current lec 4 5 6 mA No loads Supply level Vopa 2 85 3 3 15 V C 100nF Vec 3 2V Nominal freguency F 45 0 50 0 65 0 Hz Power on reset Vccpon 2 5 V SPI interface timings Data write speed feci 100 kHz a Hardware Features UMO402 Table 1 Electrical para
34. ximum Demand information of the current month and EEPROM MD Union Three Mon structure contains the maximum demand of the current block of three months So there are 128 964 32 Bytes 12x8 4x8 Bytes of data present in EEPROM related to three months type Maximum Demand EEPROM MD Union structure of EEPROM AMD Union data type is stored as below Table 6 EEPROM quarter type MD information EEPROM Address Description Data Type 380h Absolute MD unsigned int 382h Time Ab MD Sec Min Hour volatile unsigned char 385h Date Ab MD Day Month Year volatile unsigned char In EEPROM 12 EEPROM MD Union structures each having 8 Bytes of data are stored as below Name JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Index 0 1 2 3 4 5 6 7 8 9 10 11 EEPROM MD Union Three Mon structure of EEPROM AMD Union data type is stored as below Table 7 EEPROM quarter type MD information EEPROM Address Description Data Type 400h Absolute_MD unsigned int 402h Time_Ab_MD Sec Min Hour volatile unsigned char 405h Date_Ab_MD Day Month Year volatile unsigned char In EEPROM 4 EEPROM_MD_Union_Three_Mon structures each having 8 Bytes of data are stored as below Name JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC Index 0 1 2 3 ky 17 35 Multi tariff meter operation UMO402 5 5 1 18 35 Multi tariff meter operation Normal operation Connect the meter to the voltage source and to the load as shown in Figure 2 on page 7 an
35. y Measure Unit kW Power Measure Unit 1 Phase 1 A1 A1 tariff A2 A2 tariff A3 A3 tariff A4 A4 tariff E bottom Tamper indicator E top Power failure indicator A Negative Power Direction indicator X No Load Condition indicator Min Time indicator 23 35 Additional features UM0402 6 6 1 6 2 24 35 Additional features STPM14 programming All the configuration bits that control the operation of the STPM14 device can be written ina temporary or permanent way respectively in the so called shadow registers or in the OTP memory through a serial interface Software PC GUI is available with the reference board to write calibration and configuration bits in the device A parallel hardware programmer interfaces the PC and the reference board through J2 10 pins connector as shown in Figure 3 Figure 3 Board connected to parallel hardware interface a For more details on calibration and configuration bits please refer to STPM14 datasheet For more details on GUI interface please refer to user manual UMO128 In circuit programming The ICP feature allows you to update the contents of Flash program memory when the chip is already plugged into the application board ICP programming uses the ICC In Circuit Communication serial protocol to interface a programming tool like inDART ICP offers the following benefits e In circuit debugging e Real time code execution without probes e Customization

Download Pdf Manuals

image

Related Search

Related Contents

Horizon Fitness FITNESS T701 User's Manual  Controlador TeeJet 854  User manual  ANTIBACTERIAL HAND VAC  Analox 1000 Oxygen Analyser    Installation Guide  説明書pdf  

Copyright © All rights reserved.
Failed to retrieve file