
Doc
#
E166703
E-18
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
c. Verify the log is engaged: read the contents of the specific logs' status block
[, 16 registers] again to see if the log is engaged for the current port
(see Log Availability). If the Log is not engaged for the current port, repeat step
1b (Engage the log).
d. Write the retrieval information.
i. Compute the number of records per window, as follows:
RecordsPerWindow = (246 \ RecordSize)
• If using 0x23, set the repeat count to 2-8. Otherwise, set it to 1.
• Since we are starting from the beginning for retrieval, the first
record index is 0.
ii. Write the Records per window, the Number of repeats (1), and
Record Index (0) [0xC350, 3 registers].
This step tells the MP200 unit what data to return in the window.
2. Retrieve the records:
a. Read the record index and window: read the record index, and the data window
[0xC351, 125 registers].
• If the MP200 unit Returns a Slave Busy Exception, repeat the request.
• If the Window Status is 0xFF, repeat the request.
• If the Window Status is 0, go to step 2b (Verify record index).
NOTES:
• We read the index and window in 1 request to minimize communication
time, and to ensure that the record index matches the data in the data
window returned.
• Space in the window after the last specified record (RecordSize x Record-
PerWindow) is padded with 0xFF, and can be safely discarded.
Содержание MP200
Страница 1: ...V 1 07 November 5 2018 ...
Страница 2: ...This page intentionally left blank ...