
A file can only be loaded if the currently set access level (see
) permits the
reading or writing of a file. Access rights are determined when a file is created or
changed (see
Table 153: Load file definition
Byte
Value
Description
0 to 7
Variable
Name of the file to be loaded
Offset-based access enables it to be determined whether or not a verification of the
checksums is carried out by the DSL motor feedback system when a file is loaded.
If an error is detected when the verification is carried out, the motor feedback system
responds to the "long message" with an error message (4315h, see
the verification is not carried out, it is not certain that subsequent read access to the
loaded file will produce valid data.
Table 154: Selection of the offset for load file
Offset value
Description
0000h
Checksums are verified
0010h
Checksums are not verified
Other values
Reserved
Table 155: Example of loading a file (in this example: Loading a file with the name "FILE1")
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
F
I
L
E
1
00
00
00
1D
30
00
00
01
Wait for FREL = 1
Read
8.10.2
Read/write file
Read and write access to a user file is possible via this resource. Direct read access to
read/write file returns the defining values:
Table 156: Read/write file defining values
Defining value
Offset
Value
RID
131h
Resource name
0
"RWFILE"
Data size
1
8 (Total size depends on file size)
Read access level
2
0 (User determines actual access level)
Write access level
3
0 (User determines actual access level)
Time overrun
4
140
Data type
5
0Bh - string
Mandatory
yes
Before a file can be read or written to, the file must be loaded (see
).
Read or write procedures can be carried out by access to any addresses within the file.
If an address given for reading causes the file size to be exceeded, an error message is
returned. If an address given for writing causes the file size to be exceeded, the file is
automatically enlarged. The largest address allowed for this attachment of data is the
size of the file.
MOTOR FEEDBACK SYSTEM RESOURCES
8
8017595/ZTW6/2018-01-15 | SICK
T E C H N I C A L I N F O R M A T I O N | HIPERFACE DSL
®
127
Subject to change without notice