
34
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
3.3 MONTHLY ENERGY METERS
The reading of the values of the energy meters relevant to the previous three months is feasible by
reading the data stored in the three tables described below. The tables have the same structure:
they are composed of 14 32-bytes pages where the total and partial meter values are stored on the
first day of the month at 0.00.00. The storing order of the table is the following (assuming, for
example, to begin the WM4 use in January): January data = table A, February data = table B, March
data = table C, April data = table A (overwriting the January data), and so on.
Pages structure:
Page 1: the initial 16 bytes, grouped 4 by 4, are the four-total meter LSB part
(KWh+ ,KWh-, Kvarh+, Kvarh-)
Page 2: the initial 20 bytes, grouped 5 by 5, are the four-winter tariff 1 partial meters values
Page 3: the initial 20 bytes, grouped 5 by 5, are the four-winter tariff 2 partial meters values
Page 4: the initial 20 bytes, grouped 5 by 5, are the four-winter tariff 3 partial meters values
Page 5: the initial 20 bytes, grouped 5 by 5, are the four-winter tariff 4 partial meters values
Page 6: the initial 20 bytes, grouped 5 by 5, are the four-summer tariff 1 partial meters values
Page 7: the initial 20 bytes, grouped 5 by 5, are the four-summer tariff 2 partial meters values
Page 8: the initial 20 bytes, grouped 5 by 5, are the four-summer tariff 3 partial meters values
Page 9: the initial 20 bytes, grouped 5 by 5, are the four-summer tariff 4 partial meters values
Page 10: the initial 20 bytes, grouped 5 by 5, are the four-holiday tariff 1 partial meters values
Page 11: the initial 20 bytes, grouped 5 by 5, are the four-holiday tariff 2 partial meters values
Page 12: the initial 20 bytes, grouped 5 by 5, are the four-holiday tariff 3 partial meters values
Page 13: the initial 20 bytes, grouped 5 by 5, are the four-holiday tariff 4 partial meters values
Page 14: the initial 4 bytes are the four-total meter MSB part, then 10 not used bytes follow, then the
following two bytes are relevant respectively to the year and month when the table were stored.
How to reconstruct the energy meter values:
The energy values have to be reconstructed according to the procedure described in paragraph 2.5.
The value of byte 5, multiplied by 1000000000, must be added to the byte1-byte2-byte3-byte4 value
and the sum divided by 100.
- Total meters: byte5 is stored at page 14 of the relevant monthly table. byte1-byte2-byte3-byte4
are stored at page 1 (byte 1 has the lower address).
- Partial meters: byte5 and byte1-byte2-byte3-byte4 are consecutively stored starting from the
address of the required meter (byte 5 has the lower address, then byte 1 is stored, etc.).
To obtain the energy consumption relevant to a given month, the tables relevant to the end and the
beginning of that month must be read, and the difference between the respective values must be
carried out.
Kommentare zu diesen Handbüchern