Read Out File Information (Filedate, Filetime, Filesize, Filestat, Fileinfo) - Siemens SINUMERIK 828D Programming Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

1.22
Read out file information (FILEDATE, FILETIME, FILESIZE,
FILESTAT, FILEINFO)
Function
The
out specific file information such as date/time of the last write access, current file size, file
status or all of this information.
Note
The file must be stored in the NCK's static user memory (passive file system).
Condition
The currently set protection level must be equal to or greater than the show right of the
superordinate directory. If this is not the case, access is denied with an error message
(return value of error variable = 13).
Syntax
DEF INT <error>
DEF STRING[<string length>] <result>
FILE....(<error>,"<file name>",<result>)
Significance
FILEDATE
FILETIME
FILESIZE
FILESTAT
FILEINFO
<error>
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0

1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)

,
,
FILEDATE
FILETIME
FILESIZE
:
The
FILEDATE
the specified file.
:
The
FILETIME
the specified file.
:
The
FILESIZE
:
The
FILESTAT
regard to read, write and execution rights.
:
The
FILEINFO
which can be read out using
FILESTAT
:
Variable for returning the error value (call-by-reference parameter)
Type.
Value:
,
, and
FILESTAT
FILEINFO
command returns the date of the last write access to
command returns the time of the last write access to
command returns the current size of the specified file.
command returns the status of the specified file with
command returns all file information for the specified file
FILEDATE
.
INT
0
No error
1
Path not allowed
2
Path not found
3
File not found
4
Incorrect file type
13
Insufficient access rights
22
String length of the result variable (
small.
Flexible NC programming
commands can be used to read
,
,
, and
FILETIME
FILESIZE
<result>
) is too
143

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents