63
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
Provided
by
Northeast
Power
Systems,
Inc.
www.nepsi.com