
Doc# E149701 B - 17
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
# Points Hi 00
# Points Lo 7D
Repeat Count 04
Function Code 0x23 is a user defined Modbus function code, which has a format simi-
lar to Function Code 0x03, except for the inclusion of a "repeat count." The repeat
count (RC) is used to indicate that the same N registers should be read RC number of
times. (See the Number of Repeats bullet on page B-14.)
NOTES:
• By itself this feature would not provide any advantage, as the same data will be
returned RC times. However, when used with auto-incrementing, this function con-
denses up to 8 requests into 1 request, which decreases communication time, as
fewer transactions are being made.
• In the Shark® 200 meter repeat counts are limited to 8 times for Modbus RTU, and
4 times for Modbus ASCII.
The response for Function Code 0x23 is the same as for Function Code 0x03, with the
data blocks in sequence.
IMPORTANT! Before using function code 0x23, always check to see if the current
connection supports it. Some relay devices do not support user defined function
codes; if that is the case, the message will stall. Other devices don't support 8 repeat
counts.
B.5.4.3: Log Retrieval Procedure
The following procedure documents how to retrieve a single log from the oldest record
to the newest record, using the "normal" record type (see Scope). All logs are
retrieved using the same method. See Section B.5.4.4 for a Log Retrieval example.
NOTES:
• This example uses auto-increment.
• In this example, Function Code 0x23 is not used.
• You will find referenced topics in Section B.5.3. Block Definitions.
Comentarios a estos manuales