1
Flexible NC Programming 02.98
1.19 READ: Read lines in file
as from SW 5.2
1
840D
NCU 571
840D
NCU 572
NCU 573
810D
840Di
Siemens AG 2000. All rights reserved
1-84
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
Function
All files can be deleted by means of the DELETE
command, irrespective of whether they were created
using the WRITE command or not. Files that were
created using a higher access authorization can also
be deleted with DELETE.
Programming example
N10 DEF INT ERROR
;
N20 DELETE(ERROR,"TEST1")
; Delete file TEST1
N30 IF ERROR
;
N40 MSG ("Error with DELETE command:"
<<ERROR)
;
N50 M0
;
N60 ENDIF
;
...
1.19 READ: Read lines in file (as from SW 5.2)
Programming
READ(var int error, string[160] file, int line, int number, var
string[255] result[])
The READ command reads one or several lines in the file specified and stores the information
read in an array of type STRING. In this array, each read line occupies an array element.