EasyManuals Logo

Siemens SINUMERIK ONE MCP 2400.4c Programming Manual

Siemens SINUMERIK ONE MCP 2400.4c
1334 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
Page #569 background imageLoading...
Page #569 background image
<file name>: Name of the file to be deleted
Type: STRING
The absolute path can be specified before the actual file name. If a path is not
specified, the file is searched for in the current directory (= directory of selected
program).
Rules regarding path data, see "Addressing program memory files (Page 554)".
Example
Program code Comment
N10 DEF INT ERROR ; Definition of error variables.
N15 STOPRE ; Preprocessing stop.
N20 DELETE(ERROR,"/_N_SPF_DIR/_N_TEST1_SPF") ; Deletes file TEST1 in the sub-
program directory.
N30 IF ERROR ; Error evaluation.
N40 MSG("error for DELETE command:" <<ERROR)
N50 M0
N60 ENDIF
3.5.3 Read lines in the file (READ)
The READ command reads one or several lines in the specified file and stores the information
read in a STRING type array. In this array, each read line occupies an array element.
Requirement
The currently set protection level must be equal to or greater than the READ right of the file. If
this is not the case, access is denied with an error message (return value of error variable = 13).
Syntax
DEF INT <error>
DEF STRING[<string length>] <result>[<n>,<m>]
READ(<error>,"<file name>",<start line>,<number of lines>,<result>)
Work preparation
3.5 File handling
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 569

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals