Siemens SINUMERIK 840D sl Programming Manual page 82

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

Advertisement

Flexible NC programming
1.22 FILEDATE/TIME/SIZE/STAT/INFO: File information
result
Examples
N10 DEF INT ERROR
N20 STRING[32] RESULT
...
N30 FILEINFO(ERROR, "TESTFILE", RESULT)
...
N30 FILEINFO(ERROR, "TESTFILE_MPF",
RESULT)
...
N30 FILEINFO(ERROR,"_N_TESTFILE_MPF",
RESULT)
...
N30 FILEINFO
(ERROR,"/_N_MPF_DIR/_N_TESTFILE_MPF",
RESULT)
...
N40 IF ERROR <>0
N50 MSG("ERROR "<<ERROR<<"
WITH FILE INFO COMMAND")
N60 M0
N70 ENDIF
...
Returns in the RESULT event variable: "77777 12345678 26.05.00 13:51:30"
1-68
Variable with the result in which the file information is
saved
(Call-by-reference parameter) of a STRING type for:
FILEDATE, the length must be 8, format is "dd.mm.yy"
FILETIME, the length must be 8, format is "hh:mm.ss"
FILESTAT, the length must be 5, format is "rwxsd"
FILEINFO, the length must be 32, format is
"rwxsd nnnnnnnn dd.mm.yy hh:mm:ss"
(Call-by-reference parameter) of a INT type for:
FILESIZE, file size is output in bytes
"rwxsd" (read, write, execute, show, delete)
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
;error variable
;result variable
;file name without domain and file
;identifier
;file name without domain and with
;file identifier
;file name with domain and file
;identifier
;file name with domain and file
;identifier and path specification
;error evaluation
Job planning

Advertisement

Table of Contents
loading

Table of Contents