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.
| Address | Point ID | Description | Options/Range | Units | Type | R/W | Notes |
|---|---|---|---|---|---|---|---|
| File Transfer Control Blocks | |||||||
| 63120-63151 | File Request Block | ||||||
| +0 | File function | 1 = ACK - acknowledgement 3 = set file position 5 = reset file position 7 = find 11 = read file 127 = erase file | UINT16 | R/W | 1 - 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 | ||
| +1 | File ID | F2 | UINT16 | R/W | |||
| +2 | Section number (functions 3, 5, 11) | 0-7, 0xFFFF = use channel ID | UINT16 | R/W | |||
| +3 | Section channel ID (functions 3, 5, 11) | F6, F7 | UINT16 | R/W | |||
| +4 | Record sequence number (functions 3, 11) | 0-65535 | UINT16 | R/W | The record sequence number with function 11 does not change the file position (see Note 2). | ||
| +5 | Request variation (function 11) | 0 | UINT16 | R/W | See file response headings | ||
| +6 | Find key: N/A | UINT16 | R/W | ||||
| +7 | Find key: N/A | UINT16 | R/W | ||||
| +8, 9 | Find key: Start time, seconds since 1/1/1970 | F1 | sec | UINT32 | R/W | Note 3 | |
| +10, 11 | Find key: Start time, fractional seconds in µsec | µsec | UINT32 | R/W | Note 3 | ||
| +12, 13 | Find key: End time, seconds since 1/1/1970 | F1 | sec | UINT32 | R/W | Note 3 | |
| +14, 15 | Find key: End time, fractional seconds in µsec | µsec | UINT32 | R/W | Note 3 | ||
| +16-31 | Reserved | UINT16 | R/W | ||||
| 63152-63799 | File Response Block | ||||||
| Data transfer area [0 – 647] | UINT16 | R | |||||
| 64944-64951 | File Info Request Block | ||||||
| +0 | File function | 9 = read file info | UINT16 | R/W | |||
| +1 | File ID | F2 | UINT16 | R/W | |||
| +2 | Section number | 0-7, 0xFFFF = use channel ID | UINT16 | R/W | |||
| +3 | Section channel ID | F6, F7 | UINT16 | R/W | |||
| +4 | Not used | 0 | UINT16 | R/W | |||
| +5 | Request variation | 0, 1, 2 | UINT16 | R/W | |||
| +6-7 | Reserved | UINT16 | R/W | ||||
| 64952-65151 | File Info Response Block | ||||||
| Data transfer area [0 - 199] | UINT16 | R | |||||
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
| Address | Point ID | Description | Options/Range | Units | Type | R/W | Notes |
|---|---|---|---|---|---|---|---|
| File Info Response Block (Variation 0 – File info) | |||||||
| 64952-64959 | Block Heading | ||||||
| +0 | File function | 9 | UINT16 | R | |||
| +1 | File ID | 16 | UINT16 | R | |||
| +2 | Section number | 0-31 | UINT16 | R | |||
| +3 | Section channel ID | F6, F7 | UINT16 | R | |||
| +4 | Maximum number of records in the block | 1 | UINT16 | R | |||
| +5 | Record size, words | 36 | UINT16 | R | |||
| +6 | Request variation | 0 | UINT16 | R | |||
| +7 | Reserved | 0 | UINT16 | R | |||
| 64960-64997 | File Info | ||||||
| +0 | File type | 0 | UINT16 | R | |||
| +1 | File attributes | F3 | UINT16 | R | |||
| +2 | File (section) status | F4 | UNT16 | R | |||
| +3 | Number of sections in the file | 0-32 | UINT16 | R | 0 = non-partitioned file | ||
| +4,5 | File channel mask (channels 1-32), bitmap | F8, F9 | UINT32 | R | |||
| +6,7 | File channel mask (channels 33-64), bitmap | F8, F9 | UINT32 | R | |||
| +8 | Number of records in the file | 0-65535 | UINT16 | R | |||
| +9 | Number of records until the end of the file | 0-65535 | UINT16 | R | |||
| +10 | Current record (read position) sequence number | 0-65535 | UINT16 | R | |||
| +11 | Current write position sequence number | 0-65535 | UINT16 | R | |||
| +12 | First (oldest) record sequence number | 0-65535 | UINT16 | R | |||
| +13 | Last (newest) record sequence number | 0-65535 | UINT16 | R | |||
| +14,15 | Last record time, seconds since 1/1/1970 | F1 | sec | UINT32 | R | ||
| +16,17 | Last record time, fractional seconds | µsec | UINT32 | R | |||
| +18,19 | First record time, seconds since 1/1/1970 | F1 | sec | UINT32 | R | ||
| +20,21 | First record time, fractional seconds | µsec | UINT32 | R | |||
| +22,23 | Null | 0 | UINT32 | R | |||
| +24,25 | Null | 0 | µsec | UINT32 | R | ||
| +26,27 | Null | 0 | sec | UINT32 | R | ||
| +28,29 | Null | 0 | µsec | UINT32 | R | ||
| +30 | Maximum number of records | 0-65535 | UINT16 | R | |||
| +31 | Number of parameters per data section record | 0-16 | UINT16 | R | |||
| +32 | Section record size, bytes | Byte | UINT16 | R | |||
| +33 | File record size, bytes | Byte | UINT16 | R | |||
| +34,35 | Allocated file size, bytes | Byte | UINT32 | R | |||
| File Info Response Block (Variation 1 – Current record info) | |||||||
| 64952-64959 | Block Heading | ||||||
| +0 | File function | 9 | UINT16 | R | |||
| +1 | File ID | F2 | UINT16 | R | |||
| +2 | Section number | 0-31 | UINT16 | R | |||
| +3 | Section channel ID | F6, F7 | UINT16 | R | |||
| +4 | Maximum number of records in the block | 1 | UINT16 | R | |||
| +5 | Record size, words | 8 | UINT16 | R | |||
| +6 | Request variation | 1 | UINT16 | R | |||
| +7 | Reserved | 0 | UINT16 | R | |||
| 64960-64997 | File Info | ||||||
| +0 | File (section) status | F4 | UNT16 | R | |||
| +1 | Number of records in the file | 0-65535 | UINT16 | R | |||
| +2 | Number of records until the end of the file | 0-65535 | UINT16 | R | |||
| +3 | Current record (read position) sequence number | 0-65535 | UINT16 | R | |||
| +4,5 | Current record time, seconds since 1/1/1970 | F1 | sec | UINT32 | R | ||
| +6,7 | Current record time, fractional seconds | µsec | UINT32 | R | |||
| File Info Response Block (Variation 2 – Data log record structure) | |||||||
| 64952-64959 | Block Heading | ||||||
| +0 | File function | 9 | UINT16 | R | |||
| +1 | File ID | 1,16 | UINT16 | R | |||
| +2 | Section number | 0-7 | UINT16 | R | |||
| +3 | Section channel ID | F6, F7 | UINT16 | R | |||
| +4 | Number of records in the block | 1 | UINT16 | R | |||
| +5 | Record size, words | 18 | UINT16 | R | |||
| +6 | Request variation | 2 | UINT16 | R | |||
| +7 | Reserved | 0 | UINT16 | R | |||
| 64960-64997 | File Info | ||||||
| +0 | Not used | 0 | UINT16 | R | |||
| +1 | Number of fields in a data record | 1-9 | UINT16 | R | |||
| +2 | Field 1 parameter ID | 0-0xFFFF | UINT16 | R | |||
| +3 | Field 2 parameter ID | 0-0xFFFF | UINT16 | R | |||
| … | |||||||
| +10 | Field 9 parameter ID | 0-0xFFFF | UINT16 | R | |||
| Event Log Response Block | |||||||
| 63152-63159 | Block Heading | ||||||
| +0 | Last file function | 1, 3, 5, 11 | UINT16 | R | |||
| +1 | File ID | 0 | UINT16 | R | |||
| +2 | Section number | 0 | UINT16 | R | |||
| +3 | Section channel ID | 0 | UINT16 | R | |||
| +4 | Maximum number of records in the block | 32 | UINT16 | R | |||
| +5 | Record size, words | 12 | UINT16 | R | |||
| +6 | Request variation | 0 | UINT16 | R | |||
| +7 | Reserved | 0 | UINT16 | R | |||
| 63160-63543 | Event Log Records | ||||||
| +0 | Record status | F5 | INT16 | R | |||
| +1 | Record sequence number | 0-65535 | UINT16 | R | |||
| +2,3 | Trigger time, seconds since 1/1/1970 | F1 | sec | UINT32 | R | ||
| +4,5 | Trigger time, fractional seconds in µsec | µsec | UINT32 | R | |||
| +6 | Event number | 1-65535 | UINT16 | R | |||
| +7 | Event point/source ID | F19 | UINT16 | R | |||
| +8 | Event effect | F20 | UINT16 | R | |||
| +9 | Reserved | 0 | UINT16 | R | |||
| +10,11 | Value triggered | INT32 | R | ||||
| 63160-63171 | Record #1 | ||||||
| ... | |||||||
| 63532-63543 | Record #32 | ||||||
| Data Log Response Block | |||||||
| 63152-63159 | Block Heading | ||||||
| +0 | Last file function | 1, 3, 5, 11 | UINT16 | R | |||
| +1 | File ID | 1,16 | UINT16 | R | |||
| +2 | Section number | 0-7 | UINT16 | R | |||
| +3 | Section channel ID | F6 | UINT16 | R | |||
| +4 | Maximum number of records in the block | 8 for regular log, 4 for profile log | UINT16 | R | |||
| +5 | Record size, words | 8 + 2× Number of parameters | UINT16 | R | |||
| +6 | Request variation | 0 | UINT16 | R | |||
| +7 | Reserved | 0 | UINT16 | R | |||
| 63160-63367 | Data Log Records | ||||||
| +0 | Record status | F5 | INT16 | R | |||
| +1 | Record sequence number | 0-65535 | UINT16 | R | |||
| +2,3 | Record time, seconds since 1/1/1970 | F1 | sec | UINT32 | R | ||
| +4,5 | Record time, fractional seconds in µsec | µsec | UINT32 | R | |||
| +6 | Trigger event type | F22 | INT16 | R | |||
| +7 | Trigger event number | 0 | UINT16 | R | |||
| +8,9 | Log value #1 | INT32 | R | ||||
| +10,11 | Log value #2 | INT32 | R | ||||
| … | R | ||||||
| 63160-… | Record #1 (variable length) | ||||||
| ... | |||||||
| Record #8 (variable length) | |||||||
| RT Waveform Response Block | |||||||
| 63152-63159 | Block Heading | ||||||
| +0 | Last file function | 1, 3, 5, 11 | UINT16 | R | |||
| +1 | File ID | 128 | UINT16 | R | |||
| +2 | Section number | 0-9 | UINT16 | R | |||
| +3 | Section channel ID | F7 | UINT16 | R | |||
| +4 | Maximum number of records in the block | 1 | UINT16 | R | |||
| +5 | Record size, words | 640 | UINT16 | R | |||
| +6 | Request variation | 0 | UINT16 | R | |||
| +7 | Reserved | 0 | UINT16 | R | |||
| 63160-63799 | Waveform Record | ||||||
| +0 | Record status | F5 | INT16 | R | |||
| +1 | Record sequence number | 0 | UINT16 | R | |||
| +2,3 | Start time, seconds since 1/1/1970 | F1 | sec | UINT32 | R | ||
| +4,5 | Start time, fractional seconds | µsec | UINT32 | R | |||
| +6,7 | Trigger time, seconds since 1/1/1970 | F1 | sec | UINT32 | R | ||
| +8,9 | Trigger time, fractional seconds | µsec | UINT32 | R | |||
| +10 | Record series number | 1-65535 | UINT16 | R | |||
| +11 | Record serial number in a series | 0-65535 | UINT16 | R | |||
| +12 | Trigger event type | 0 | UINT16 | R | |||
| +13 | Trigger event number | 0 | UINT16 | R | |||
| +14 | Source point ID (generic) | See Generic Data in Section 3.4 | UINT16 | R | |||
| +15 | Trigger reference sample index | 0–511 | UINT16 | R | |||
| +16 | Sampling rate, µsec/sample | 600-27000 | ×0.1µsec | UINT16 | R | ||
| +17 | Sampling rate, samples/cycle | 32, 64, 128 | UINT16 | R | |||
| +18 | Sampling frequency | 4500 – 6500 | ×0.01Hz | UINT16 | R | ||
| +19 | Channel offset, sampling units | 0 | INT16 | R | |||
| +20,21 | Channel multiplier, primary units | See Generic Data in Section 3.4 | UINT32 | R | |||
| +22 | Channel divisor, sampling units | 4095 | UINT16 | R | |||
| +23 | Length of a sample series, data points | 512 | UINT16 | R | |||
| +24-127 | Not used | 0 | UINT16 | R | |||
| +128 | Sample Series | ||||||
| +128-639 | Sample data series points [0...511] | -4096 - 4095 | INT16 | R | 1 | ||
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.