Siemens SINUMERIK 840D sl Programming Manual page 573

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

FILESTAT:
FILEINFO:
<Error>:
<file name>:
<result>:
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Returns a file with regard to the following rights for the status:
● Read (r: read)
● Write (w: write)
● Execute (x: execute)
● Show (s: show)
● Delete (d: delete)
Note:
These protection levels are specific properties of the passive file system. When
accessing an external program memory, FILESTAT therefore supplies default
access rights (77777).
For a file, supplies the sum of the information, which can be read out
via FILEDATE, FILETIME, FILESIZE and FILESTAT
Variable for returning the error value (call-by-reference parameter)
Type.
VAR INT
Value:
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 (<result>) is too small.
Name of the file from which the file information is to be read out
Type:
CHAR[160]
The absolute path can be specified before the actual file name. If a path is not
specified, the file is searched for in the current directory (= directory of selected
program).
Rules regarding path data, see "Addressing program memory files (Page 554)".
Result variable (Call-By-Reference parameter)
Variable in which the requested file information is stored.
Type:
VAR CHAR[8]
VAR CHAR[8]
VAR INT
VAR CHAR[5]
VAR CHAR[32]
at
FILEDATE
Format: "dd.mm.yy"
at
FILETIME
Format: "hh.mm.ss"
at
FILESIZE
The file size is output in bytes.
at
FILESTAT
Format: "rwxsd"
(r: read, w: write, x: execute, s: show,
d: delete)
at
FILEINFO
Format: "rwxsd nnnnnnnn dd.mm.yy
hh:mm:ss"
Work preparation
3.5 File handling
573

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents