Write: Write File - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

1.18

WRITE: Write file

1.18
Function
Using the WRITE command, data (e.g., measurement results for measuring cycles) can be
appended to the end of the specified file.
The files created can
• be read, edited, and deleted by all users,
• be written into the parts program being executed.
The blocks are inserted at the end of the file, after M30.
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 (error=13)
Programming
WRITE(VAR INT error, CHAR[160] filename, CHAR[200] STRING)
Parameters
Machine manufacturer
The WRITE command can be used to store blocks from the parts program in a file. The file
size for log files (KB) is specified in the machine data.
The MD 11420: LEN_PROTOCOL_FILE sets the maximum length of the log files in KB. This
length is applicable for all files created using the WRITE command.
Once the file reaches the specified length, an error message is output and the STRING is
not saved. If there is sufficient free memory, a new file can be created.
WRITE
error
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Add data at the end of the specified file
Error variable for return
0: No error
1: Path not allowed
2: Path not found
3: File not found
4: Incorrect file type
10: File is full
11: File is in use
12: No resources available
13: No access rights
20: Other error
Flexible NC programming
1.18 WRITE: Write file
1-61

Advertisement

Table of Contents
loading

Table of Contents