Write: Write File (As From Sw 4.3) - Siemens sinumerik 840d Programming Manual

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

02.98
1
840D
840D
NCU 571
NCU 572
NCU 573
1.17

WRITE: Write file (as from SW 4.3)

Programming
WRITE(var int error, char[160] filename, char[200] string)
The WRITE command appends a block to the end of the specified file.
Explanation of the parameters
error
filename
string
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition

1.17 WRITE: Write file (as from SW 4.3)

810D
840Di
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 being used
12
No free resources
13
No access rights
20
Other error
Name of file in which the string is to be written.
The file name can be specified with path and file identifier. Path names
must be absolute, that is, starting with "/". If the file name does not
contain a domain identifier (_N_), it is added accordingly. If no identifier
(_MPF, _SPF or _CYC) is specified, _MPF is automatically added. If
there is no path specified, the file is saved in the current directory
(= directory of selected program). The file name length can be up to 32
bytes, the path length up to 128 bytes.
Example:
PROTFILE
_N_PROTFILE
_N_PROTFILE_MPF
/_N_MPF_DIR_/_N_PROTFILE_MPF/
Text to be written. Internally LF is then added; this means that the text is
lengthened by one character.
Flexible NC Programming
1
1-81

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents