Example
Program code Comment
N10 DEF INT ERROR ; Definition of error varia-
bles.
N20 STRING[32] RESULT ; Definition of result varia-
bles.
N30 FILEINFO(ERROR,"/_N_MPF_DIR/_N_TESTFILE_MPF",RE-
SULT)
; File name with domain, file
ID and path data.
N40 IF ERROR <> 0 ; Error evaluation
N50 MSG("ERROR"<<ERROR<<"FOR FILE INFORMATION COM-
MAND")
N60 M0
N70 ENDIF
...
In the result variables RESULT, the example could supply the following result:
"77777 12345678 26.05.00 13:51:30"
Work preparation
3.5 File handling
NC programming
574 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0