EM133-XM · MODBUS REGISTER MAP

EM133-XM Modbus: File transfer registers

Section 3.9 of the EM133-XM Modbus protocol guide. Printed heading: “3.9 File Transfer Registers”.

Transcribed from the SATEC document EM133, EM133-XM Multifunction Meter Modbus Communications Protocol Reference Guide, BG0640 Rev. A1, August 2021 (PDF, 84 pages, 1.7 MB). This section is on pages 69–73 of the PDF. If this page and the PDF differ, the PDF is right; tell us through the contact form.

AddressPoint IDDescriptionOptions/RangeUnitsTypeR/WNotes
File Transfer Control Blocks
63120-63151File Request Block
+0File function1 = ACK - acknowledgement
3 = set file position
5 = reset file position
7 = find
11 = read file
127 = erase file
UINT16R/W1 - clears the file transfer block
3 - changes the file position
5 - sets the file position at the first
(oldest) record
7 - finds a record matching an event
or/and time (see Note 3)
11 - opens the file for reading from
the present file position
+1File IDF2UINT16R/W
+2Section number (functions 3, 5, 11)0-7, 0xFFFF = use channel IDUINT16R/W
+3Section channel ID (functions 3, 5, 11)F6, F7UINT16R/W
+4Record sequence number (functions 3, 11)0-65535UINT16R/WThe record sequence number with
function 11 does not change the file
position (see Note 2).
+5Request variation (function 11)0UINT16R/WSee file response headings
+6Find key: N/AUINT16R/W
+7Find key: N/AUINT16R/W
+8, 9Find key: Start time, seconds since 1/1/1970F1secUINT32R/WNote 3
+10, 11Find key: Start time, fractional seconds in µsecµsecUINT32R/WNote 3
+12, 13Find key: End time, seconds since 1/1/1970F1secUINT32R/WNote 3
+14, 15Find key: End time, fractional seconds in µsecµsecUINT32R/WNote 3
+16-31ReservedUINT16R/W
63152-63799File Response Block
Data transfer area [0 – 647]UINT16R
64944-64951File Info Request Block
+0File function9 = read file infoUINT16R/W
+1File IDF2UINT16R/W
+2Section number0-7, 0xFFFF = use channel IDUINT16R/W
+3Section channel IDF6, F7UINT16R/W
+4Not used0UINT16R/W
+5Request variation0, 1, 2UINT16R/W
+6-7ReservedUINT16R/W
64952-65151File Info Response Block
Data transfer area [0 - 199]UINT16R
NOTES:

1. File sections for partitioned (multi-section) files, like Billing/TOU profile log files, can be requested either by a section number, or by a section channel ID. If a section number is set to 0xFFFF, the section channel ID will be used to identify the section. The section number will be returned in the response block. If a section number is written, then the corresponding channel ID will be returned in the file response block.

2. The record sequence number with function 11 (Read-File) does not change the file position and is used only as a reference to track the order of records. The file transfer block will continue to hold the same data until it is acknowledged, or until the file position is explicitly moved to another record. For multi-section, the Read-File request, which addresses a different file section, will refill the transfer block with data of the record from the requested file section with the identical sequence number. After acknowledgment, the file position will be moved to the next record.

3. Function 7 (Find) puts into the file request block the sequence number of the first record in the file that matches the event time. Any one of the find keys can be omitted by setting it to 0. If one or a number of find keys are omitted, the device will use the remaining keys to locate the matching record. If the record could not be found, the device responds to the write request with the exception code 3 (illegal data). The status of the operation can be read through the file status word in the file info block.

File Response Blocks
AddressPoint IDDescriptionOptions/RangeUnitsTypeR/WNotes
File Info Response Block (Variation 0 – File info)
64952-64959Block Heading
+0File function9UINT16R
+1File ID16UINT16R
+2Section number0-31UINT16R
+3Section channel IDF6, F7UINT16R
+4Maximum number of records in the block1UINT16R
+5Record size, words36UINT16R
+6Request variation0UINT16R
+7Reserved0UINT16R
64960-64997File Info
+0File type0UINT16R
+1File attributesF3UINT16R
+2File (section) statusF4UNT16R
+3Number of sections in the file0-32UINT16R0 = non-partitioned file
+4,5File channel mask (channels 1-32), bitmapF8, F9UINT32R
+6,7File channel mask (channels 33-64), bitmapF8, F9UINT32R
+8Number of records in the file0-65535UINT16R
+9Number of records until the end of the file0-65535UINT16R
+10Current record (read position) sequence number0-65535UINT16R
+11Current write position sequence number0-65535UINT16R
+12First (oldest) record sequence number0-65535UINT16R
+13Last (newest) record sequence number0-65535UINT16R
+14,15Last record time, seconds since 1/1/1970F1secUINT32R
+16,17Last record time, fractional secondsµsecUINT32R
+18,19First record time, seconds since 1/1/1970F1secUINT32R
+20,21First record time, fractional secondsµsecUINT32R
+22,23Null0UINT32R
+24,25Null0µsecUINT32R
+26,27Null0secUINT32R
+28,29Null0µsecUINT32R
+30Maximum number of records0-65535UINT16R
+31Number of parameters per data section record0-16UINT16R
+32Section record size, bytesByteUINT16R
+33File record size, bytesByteUINT16R
+34,35Allocated file size, bytesByteUINT32R
File Info Response Block (Variation 1 – Current record info)
64952-64959Block Heading
+0File function9UINT16R
+1File IDF2UINT16R
+2Section number0-31UINT16R
+3Section channel IDF6, F7UINT16R
+4Maximum number of records in the block1UINT16R
+5Record size, words8UINT16R
+6Request variation1UINT16R
+7Reserved0UINT16R
64960-64997File Info
+0File (section) statusF4UNT16R
+1Number of records in the file0-65535UINT16R
+2Number of records until the end of the file0-65535UINT16R
+3Current record (read position) sequence number0-65535UINT16R
+4,5Current record time, seconds since 1/1/1970F1secUINT32R
+6,7Current record time, fractional secondsµsecUINT32R
File Info Response Block (Variation 2 – Data log record structure)
64952-64959Block Heading
+0File function9UINT16R
+1File ID1,16UINT16R
+2Section number0-7UINT16R
+3Section channel IDF6, F7UINT16R
+4Number of records in the block1UINT16R
+5Record size, words18UINT16R
+6Request variation2UINT16R
+7Reserved0UINT16R
64960-64997File Info
+0Not used0UINT16R
+1Number of fields in a data record1-9UINT16R
+2Field 1 parameter ID0-0xFFFFUINT16R
+3Field 2 parameter ID0-0xFFFFUINT16R
…
+10Field 9 parameter ID0-0xFFFFUINT16R
Event Log Response Block
63152-63159Block Heading
+0Last file function1, 3, 5, 11UINT16R
+1File ID0UINT16R
+2Section number0UINT16R
+3Section channel ID0UINT16R
+4Maximum number of records in the block32UINT16R
+5Record size, words12UINT16R
+6Request variation0UINT16R
+7Reserved0UINT16R
63160-63543Event Log Records
+0Record statusF5INT16R
+1Record sequence number0-65535UINT16R
+2,3Trigger time, seconds since 1/1/1970F1secUINT32R
+4,5Trigger time, fractional seconds in µsecµsecUINT32R
+6Event number1-65535UINT16R
+7Event point/source IDF19UINT16R
+8Event effectF20UINT16R
+9Reserved0UINT16R
+10,11Value triggeredINT32R
63160-63171Record #1
...
63532-63543Record #32
Data Log Response Block
63152-63159Block Heading
+0Last file function1, 3, 5, 11UINT16R
+1File ID1,16UINT16R
+2Section number0-7UINT16R
+3Section channel IDF6UINT16R
+4Maximum number of records in the block8 for regular log, 4 for profile logUINT16R
+5Record size, words8 + 2× Number of parametersUINT16R
+6Request variation0UINT16R
+7Reserved0UINT16R
63160-63367Data Log Records
+0Record statusF5INT16R
+1Record sequence number0-65535UINT16R
+2,3Record time, seconds since 1/1/1970F1secUINT32R
+4,5Record time, fractional seconds in µsecµsecUINT32R
+6Trigger event typeF22INT16R
+7Trigger event number0UINT16R
+8,9Log value #1INT32R
+10,11Log value #2INT32R
…R
63160-…Record #1 (variable length)
...
Record #8 (variable length)
RT Waveform Response Block
63152-63159Block Heading
+0Last file function1, 3, 5, 11UINT16R
+1File ID128UINT16R
+2Section number0-9UINT16R
+3Section channel IDF7UINT16R
+4Maximum number of records in the block1UINT16R
+5Record size, words640UINT16R
+6Request variation0UINT16R
+7Reserved0UINT16R
63160-63799Waveform Record
+0Record statusF5INT16R
+1Record sequence number0UINT16R
+2,3Start time, seconds since 1/1/1970F1secUINT32R
+4,5Start time, fractional secondsµsecUINT32R
+6,7Trigger time, seconds since 1/1/1970F1secUINT32R
+8,9Trigger time, fractional secondsµsecUINT32R
+10Record series number1-65535UINT16R
+11Record serial number in a series0-65535UINT16R
+12Trigger event type0UINT16R
+13Trigger event number0UINT16R
+14Source point ID (generic)See Generic Data in Section 3.4UINT16R
+15Trigger reference sample index0–511UINT16R
+16Sampling rate, µsec/sample600-27000×0.1µsecUINT16R
+17Sampling rate, samples/cycle32, 64, 128UINT16R
+18Sampling frequency4500 – 6500×0.01HzUINT16R
+19Channel offset, sampling units0INT16R
+20,21Channel multiplier, primary unitsSee Generic Data in Section 3.4UINT32R
+22Channel divisor, sampling units4095UINT16R
+23Length of a sample series, data points512UINT16R
+24-127Not used0UINT16R
+128Sample Series
+128-639Sample data series points [0...511]-4096 - 4095INT16R1

1 To restore the original sampled data in the channel units (e.g., Volts, Amps), the following conversion should be applied:

Sampled Data [primary units] = (Data Sample − Channel Offset) × Channel Multiplier / Channel Divisor (Equation typed from the PDF page.)

NOTE

If a file is read through a TCP connection, your assignments for the transfer will be effective only within the current connection socket. Since the device cannot guarantee that your next connection will be made through the same socket, you should not make any assumptions regarding the present block settings. When you open a new connection, always check the file status and pointers before reading file records.