In "directory", only those files are listed that are accessible at the access level set (read
or write access).
In addition, by accessing "directory", the current size of the filled and empty user stores
can be read.
It should be noted that due to the file header, the user files normally fill more physical
stores than their pure data content.
The type of data required by the user is set in the offset value during read access to
this resource.
Table 171: Offset value for "directory"
Bits
Value
Definition
14 – 8
Reserved for later use
7 – 0
00h
Return number of files as well as filled and empty
01h
user stores
02h
Return name of first user file
Return name of second user file
…
…
FFh
Return name of 255th user file
The "directory" basic data (offset = 00h) is returned in the long message buffer as fol‐
lows:
Table 172: Definition of "directory" ("directory" basic data)
Byte
Value
Description
7/6
Reserved for later use
5/4
0 – 65535
Number of filled bytes in the user store
3/2
0 – 65535
Number of empty bytes in the user store
1
Reserved for later use
0
0 – 255
Number of user files
The data from the user files (offset > 00h) is returned in the long message buffer as
follows:
Table 173: Definition of "directory" (data from user files)
Byte
Value
Description
7 – 0
Variable
File name
Table 174: "Directory" (in this example: Read directory basic data - 2 user files, 123h bytes filled,
1E40h bytes empty)
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
7D
34
00
00
01
Wait for FREL = 1
Read
# file
02h
00
Empty
store
1E40h
Used
store
0123h
00
00
8
MOTOR FEEDBACK SYSTEM RESOURCES
132
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