33
= Key1
= Key 2 = Key 3
= Max. value or consumption = Min. value or supply
Read data sets
The reading of data sets is controlled by the following addresses:
Read address 19000dez.
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 19000dez.
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.
Read address 19002dez.
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 19004dez.
Provides that address (4 Bytes), on which the actual
pointer points.
Read address 19006dez.
Read a number of data sets, from that address on,
on which the pointer points. The ring buffer pointer
is not increased.
Read address 19008dez.
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 19010dez with 2 Bytes with a
content by choice
New data sets are written into the ring buffer uncompressed. If data were saved before in a compressed
form, the ring buffer will be deleted.
Read address 19010dez.
Delivers the storage format of the ring buffer in 2
Bytes.
00=compressed ring buffer
01=uncompressed ring buffer
Overwrite address 19020dez 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 19030dez with 2 Bytes with a
content by choice.
The ring buffer will be deleted.
Example 1: Read the last saved data set.
Read adress 19008
dez. The ring buffer pointer
(0000) is set to the last data set in ring buffer.
Read 12 Bytes from address 19006
dez. 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. 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. 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 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. Reads the number of
saved Bytes in ring buffer. Divided by 12, the number of saved data sets is the result. The pointer
points to the last saved data set.
2.) Read address 19000
dez. 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 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
and the last reading procedure must be
repeated.