Doc
#
E149701
B-19
B: Modbus Map and 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
a. Read the Log Status Block.
i.. Read the contents of the specific logs' status block [, 16
reg] (see Log Headers).
ii. Store the # of Records Used, the Record Size, and the Log Availabil-
ity.
iii. If the Log Availability is not 0, stop Log Retrieval; this log is not
available at this time. If Log Availability is 0, proceed to step 1b
(Engage the log).
This step is done to ensure that the log is available for retrieval, as well as
retrieving information for later use.
b. Engage the log: write log to engage to Log Number, 1 to Enable, and the desired
mode to Scope (default 0 (Normal)) [0xC34F, 1 reg]. This is best done as a
single-register write.
This step will latch the first (oldest) record to index 0, and lock the log so that
only this port can retrieve the log, until it is disengaged.
c. Verify the log is engaged: read the contents of the specific logs' status block
[, 16 reg] 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 reg].
Содержание Shark 200
Страница 1: ...V 1 24 March 15 2018 ...
Страница 2: ...This page intentionally left blank ...