Siemens SINUMERIK 808D ADVANCED Series Commissioning Manual page 361

Hide thumbs Also See for SINUMERIK 808D ADVANCED Series:
Table of Contents

Advertisement

Function name
doc.writetofile
doc.remove
Commissioning Manual
6FC5397-4EP10-0BA8, 07/2018
Description
The function writes the contents of a string variable to the file speci-
fied.
Parameter:
progname - file name
str1 - string
Syntax:
<function name="doc.writetofile" > progname, str1
</function>
Example:
<let name = "my_var" type="string" > file content
</let>
NC file system
<function
name="doc.writetofile">_T"n:\mpf\test.mpf", my_var
</function>
CompactFlash card
<function
name="doc.writetofile">_T"f:\appl\test.mpf", my_var
</function>
or
<function name="doc.writetofile">_T".\test.mpf",
my_var </function>
The function removes the file specified from the directory.
Parameter:
progname - file name
Note:
The file name is case-sensitive for a file on the CF card.
Syntax:
<function name="doc.remove" > progname </function>
Example:
NC file system
<function name="doc.remove">_T"n:\mpf\test.mpf"
</function>
CompactFlash card
<function name="doc.remove">_T"f:\appl\test.mpf"
</function>
or
<function name="doc.remove">_T".\test.mpf"
</function>
361

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 808d advanced t

Table of Contents