EasyManua.ls Logo

Siemens SINUMERIK 828D

Siemens SINUMERIK 828D
822 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Flexible NC programming
1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
145
Example
Program code Comments
N10 DEF INT ERROR ; Definition of error variables.
N20 STRING[32] RESULT ; Definition of result variables.
N30 FILEINFO(ERROR,"/_N_MPF_DIR/_N_TESTFILE_MPF",RESULT) ; Filename with domain, file
identifier and path
specification.
N40 IF ERROR <>0 ; Error evaluation
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"

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Related product manuals