1.22
Read out file information (FILEDATE, FILETIME, FILESIZE,
1.22
FILESTAT, FILEINFO)
Function
The FILEDATE, FILETIME, FILESIZE, FILESTAT, and FILEINFO commands can be used
to read 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:
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)
The FILEDATE command returns the date of the last write access to
the specified file.
The FILETIME command returns the time of the last write access to
the specified file.
The FILESIZE command returns the current size of the specified file.
The FILESTAT command returns the status of the specified file with
regard to read, write and execution rights.
The FILEINFO command returns all file information for the specified
file which can be read out using FILEDATE, FILETIME, FILESIZE,
and FILESTAT.
Flexible NC programming
159