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

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming

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

Example
Program code
N10 DEF BOOL RESULT
N20 RESULT=ISFILE("TESTFILE")
N30 IF(RESULT==FALSE)
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
or:
Program code
N10 DEF BOOL RESULT
N20 RESULT=ISFILE("TESTFILE")
N30 IF(NOT ISFILE("TESTFILE"))
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
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).
Requirement
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).
150
,
,
FILEDATE
FILETIME
FILESIZE
Comment
; Definition of result variables.
Comment
; Definition of result variables.
,
, and
FILESTAT
FILEINFO
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
commands can be used to read
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents