If the remaining EEPROM memory space is insufficient to accept the enlarged file,
access is stopped and an error message is returned (4314h, see
).
By setting the length value for a long message, 2, 4 or 8 bytes can be read, or written in
a long message.
The data from a read access or the data for a write access is stored in the long mes‐
sage buffer.
Table 157: Definition of reading and writing a file
Byte
Value
Description
7 to 0
Variable
Data from, or for a file
The offset value indicates the target address for the read or write access. It should be
noted that the files may be a maximum of 32768 bytes in size.
Table 158: Offset value for reading or writing a file
Offset value
Description
0 to 32767
Address for the read or write access
Table 159: Reading or writing to a file (in this example: write 8 bytes to address 0033h)
Transaction
Register
P
C_BUFFER0
P
C_BUFFER1
P
C_BUFFER2
P
C_BUFFER3
P
C_BUFFER4
P
C_BUFFER5
P
C_BUFFER6
P
C_BUFFER7
P
C_ADD_H
P
C_ADD_L
P
C_OFF_H
P
C_OFF_L
P
C_C
TR
L
Write
11
22
33
44 55
66
77
88
3D
31
00
33
01
Wait for FREL = 1
Read
8.10.3
File status
This resource returns the status of the currently loaded file (see
). Direct
read access to file status returns the defining values:
Table 160: File status defining values
Defining value
Offset
Value
RID
132h
Resource name
0
"FILESTAT"
Data size
1
4
Read access level
2
0
Write access level
3
15
Time overrun
4
70
Data type
5
14h – structure with 4 bytes
Mandatory
yes
A read access to "file status" returns the file access rights and the size of the file.
The file status is given in the following format:
Table 161: Definition of reading and writing a file
Byte
Value
Description
3/2
0000 to FFFFh
File size in bytes
1
Reserved for later use
0, bits 7 to 4
Write access rights
8
MOTOR FEEDBACK SYSTEM RESOURCES
128
T E C H N I C A L I N F O R M A T I O N | HIPERFACE DSL
®
8017595/ZTW6/2018-01-15 | SICK
Subject to change without notice