File Handling; Write File (Write) - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

3.5

File handling

3.5.1

Write file (WRITE)

The WRITE command writes sets/data from the NC program at the end of a file (log file) in the
passive file system or to external program memory. This can also be the program that is
presently being executed.
Note
If no such file exists in the program memory, one will be created and can be written to using
the WRITE command.
Requirement
The currently set protection level must be equal to or greater than the WRITE 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>
...
WRITE(<error>,"<file name>"/"<ExtG>","<set/data>")
Meaning
WRITE:
<error>:
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Command for appending a block or data to the end of the specified file.
Parameter 1: Variable for returning the error value
Type:
INT
Value:
0
No error
1
Path not permitted
2
Path not found
3
File not found
4
Incorrect file type
10
File is full
11
The file is in use
12
No resources available
13
No access rights
14
Missing or unsuccessful EXTOPEN for the output device
15
Error when writing to an external device
16
Invalid external path has been programmed
Work preparation
3.5 File handling
565

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents