Siemens Sinumerik 840D sl Programming Manual page 157

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

Advertisement

1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)
<result>:
Example
Program code
N10 DEF INT ERROR
N20 STRING[32] RESULT
N30 FILEINFO(ERROR,"/_N_MPF_DIR/_N_TESTFILE_MPF",RESULT)
N40 IF ERROR <>0
N50 MSG("ERROR"<<ERROR<<"ON FILEINFO COMMAND")
N60 M0
N70 ENDIF
...
The example could return the following result in the RESULT result variable, for example:
"77777 12345678 26.05.00 13:51:30"
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
Result variable (call-by-reference parameter)
Variable in which the requested file information is stored.
Type:
STRING
INT
Flexible NC programming
With:
FILEDATE
Format: "dd.mm.yy"
⇒ string length must be 8.
FILETIME
Format: "hh:mm.ss"
⇒ string length must be 8.
FILESTAT
Format: "rwxsd"
(r: read, w: write, x: execute,
s: show, d: delete)
⇒ string length must be 5.
FILEINFO
Format: "rwxsd nnnnnnnn dd.mm.yy
hh:mm:ss"
⇒ string length must be 32.
With:
FILESIZE
The file size is output in bytes.
Comments
; Definition of error variables.
; Definition of result variables.
; Filename with domain, file
identifier and path
specification.
; Error evaluation
157

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents