Siemens SINUMERIK 828D Commissioning Manual page 851

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Function name
Writing to a file
Deleting a file
Easy XML
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Description
The function writes the contents of a string variable to the file specified.
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
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>
Generating user dialogs
1.9 Predefined functions
99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents