| Electronic Components Datasheet Search |
|
UM0402 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0402 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 35 page ![]() Firmware features UM0402 10/35 4 Firmware features 4.1 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 } Tariff rates are defined in EEPROM_Union structure in EEPROM.c file in the same order as tariff times. For example, 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 }, { 2.001, // Tariff rate defined for A2 {0, 0} // kWh_Energy and Pulse count initialized to 0 }, { 2.852, // Tariff rate defined for A3 {0, 0} // kWh_Energy and Pulse count initialized to 0 }, { 0.0, // Not Defined {0, 0} }, }, To set and change the tariff, a function Set_TARIFF() is called every second. Energy consumption is calculated as total and for each tariff. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |