Page 35
= Key 1
= Key 2
= Key 3
= Maximum or consumption = Minimum or supply
Read data sets
The reading of data sets is controlled by the following
addresses:
Read address
19000
dez
(Index
231
).
The first 4 Bytes provide the contents of the ring buffer
pointer.
The next 12 Bytes provide the first data set, which the
pointer points on.
The ring buffer pointer is increased
automatically
by the
number of read Bytes, but the first four Bytes are not
included.
Write address
19000
dez
(Index
10
)
.
Set ring buffer pointer on a data set of the ring buffer.
If the ring buffer pointer is overwritten by 0000, it points
on the last read beginning of ring buffer with address
19008
dez
(Index
235
).
Read address
19002
dez
(Index
232
)
.
Read a number (4 Bytes) of data sets from that address
on, on which the pointer points. The ring buffer pointer
is increased
automatically
by the number of read Bytes.
The number of read Bytes must be divisible by 12.
Read address
19004
dez
(Index
233
)
.
Provides that address (4 Bytes), on which the actual
pointer points.
Read address
19006
dez
(Index
234
)
.
Read a number of data sets, from that address on, on
which the pointer points. The ring buffer pointer is not
increased.
Read address
19008
dez
(Index
235
)
.
Delivers the number (4 Bytes) of the Bytes saved in ring
buffer. If you divide this number by 12, the result is the
number of the saved data sets.
The ring buffer pointer is set to the last data set in ring
buffer. The contents of this pointer is therefore zero.
Overwrite address
19010
dez (Index
11
) with 2 Bytes
with a content by choice
New data sets are written into the ring buffer uncom-
pressed. If data were saved before in a compressed form,
the ring buffer will be deleted.
Read address
19010
dez (Index
236
).
Delivers the storage format of the ring buffer in 2 Bytes.
00=compressed ring buffer
01=uncompressed ring buffer
Overwrite address
19020
dez (Index
12
) with 2 Bytes
with a content by choice.
New data sets are written into the ring buffer compressed.
If data were saved before in a uncompressed form, the
ring buffer will be deleted.
Overwrite address
19030
dez (Index
13
) with 2 Bytes
with a content by choice.
The ring buffer will be deleted.
E
xample 1: Read the last saved data set.
Read adress
19008
dez
(Index
235
). The ring buffer
pointer (0000) is set to the last data set in ring buffer.
Read 12 Bytes from address
19006
dez
(Index
234
). 12
Bytes correspond to one data set. The ring buffer pointer
is not increased.
Example 2: Read all saved data sets.
1.) Read address
19008
dez
(Index
235
). The number of
saved Bytes is read. If you divide the result by 12, the
number corresponds to the saved data sets. The pointer
points to the last saved data set in ring buffer.
2.) Read the content of the Bytes in ring buffer by address
19002
dez
(Index
232
). With the MODBUS-Protocol, at
maximum 240 Bytes=20 data sets can be read per
reading. The number of read Bytes must be divisible by
12.
The ring buffer pointer is increased automatically by the
number of read Bytes and points to the next data set,
which has not been read yet.
3.) Repeat reading of address
19002
dez
(Index
232
) as
long as all data sets have been read.
Attention!
If a failure appeared during data transmission, the
complete procedure must be repeated, starting
with step 1.
Example 3: Read all saved data sets.
1.) Read address
19008
dez
(Index
235
). Reads the num-
ber of saved Bytes in ring buffer. Divided by 12, the num-
ber of saved data sets is the result. The pointer points to
the last saved data set.
2.) Read address
19000
dez
(Index
231
). The first 4 Bytes
refer to the actual address of the pointer. The next 12
Bytes provide the first data set of the ring buffer. With
MODBUS-Protockol you can read 244Bytes (4Byte + 20
data sets) at maximum per reading.
3.) Repeat reading address
19000
dez
(Index
231
) as long
as all data sets have been read.
Attention!
If a failure occured during data transmission, the
last actual address of the ring buffer pointer must
be written on address
19000
dez
(Index
10
) and the
last reading procedure must be repeated.