
Doc
#
E166703
E-19
E: Retrieving Logs
Electro
Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
Electro
Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
b. Verify that the record index incremented by Records Per Window. The record
index of the retrieved window is the index of the first record in the window. This
value will increase by Records Per Window each time the window is read, so it
should be 0, N, N x 2, N x 3. . . for each window retrieved.
• If the record index matches the expected record index, go to step 2c
(Compute next expected record index).
• If the record index does not match the expected record index, then go to
step 1d (Write the retrieval information), where the record index will be
the same as the expected record index. This will tell the MP200 unit to
repeat the records you were expecting.
c. Compute next Expected Record Index.
• If there are no remaining records after the current record window, go to
step 3 (Disengage the log).
• Compute the next expected record index by adding Records Per Window,
to the current expected record index. If this value is greater than the
number of records, re-size the window so it only contains the remaining
records and go to step 1d (Write the retrieval information), where the
Records Per Window will be the same as the remaining records.
3. Disengage the log: write the Log Number (of log being disengaged) to the Log
Index and 0 to the Enable bit [0xC34F, 1 register].