Channel Sample Block Definition (4098 Bytes); Parsing A Waveform Capture - Electro Industries Shark 200 Installation & Operation Manual

Upgradeable fully featured power & energy meter
Hide thumbs Also See for Shark 200:
Table of Contents

Advertisement

Channel Sample Block Definition (4098 bytes)

Parsing a Waveform Capture

To parse the waveform capture, follow this procedure:
1. Download the entire capture. When engaging the log for retrieval, the number of
records will always be 1, and the repeat count will always be 4. Because of the
large records (970 bytes), you must use Function Code 0x23, with 4 repeat counts.
An example request message would be: 0123C351007C04. See B.5.4.3: Log
Retrieval Procedure on page B-18, for details.
It may take a while to get a response, so if you get a Slave Busy Modbus exception,
try again.
2. The data that comes back will be the window index and window data, repeated 4
times. For each block, you must check that the window status and window index
are correct.
If the window status is 0xFF, then the data is not ready, and you should request
that record again. See B.5.4.4: Log Retrieval Example on page B-21, for an exam-
ple of this point.
3. Once you know you have the right data, check the waveform record header to
make sure you have received the correct record and then parse the data by copying
out the window data and skipping the window indices.
You should be receiving waveform records sequentially, from 0 to 25. If the number
is out of order, or invalid, then the waveform may be corrupt, and you should
retrieve the waveform capture from the beginning by manually setting the record
index to start at.
Once you know you have the right record, from window index 0 the first 8 bytes
(the timestamp and record info) must be skipped. This will result in a stripping of
Electro Industries/GaugeTech
Electro Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
The Leader In Power Monitoring and Smart Grid Solutions
Channel ID (2b)
Sample 2 (2b)
Sample 4 (2b)
...
Sample 2046 (2b)
Sample 2047 (2b)
Sample 2048 (2b)
Doc
B: Modbus Map and Retrieving Logs
Sample 1 (2b)
Sample 3 (2b)
Sample 5 (2b)
...
#
E149701
B-45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Shark 200t

Table of Contents