Siemens SINUMERIK 840D sl Programming Manual page 161

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

Advertisement

<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, 06/2009, 6FC5398-2BP20-0BA0
1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)
Result variable (call-by-reference parameter)
Variable in which the requested file information is stored.
Type:
STRING
With:
INT
With:
Flexible NC programming
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.
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
161

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents