Siemens SINUMERIK 828D Programming Manual page 145

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

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, 07/2010, 6FC5398-2BP40-0BA0
1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)
Flexible NC programming
Comments
; Definition of error variables.
; Definition of result variables.
; Filename with domain, file
identifier and path
specification.
; Error evaluation
145

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents