Siemens SINUMERIK 840DE sl Commissioning Manual page 835

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Function name
Writing to a file
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Description
The function writes the contents of a string variable to the file specified.
The file name should be written in lowercase letters.
Files in other directories are accessed via a relative path that uses the
appl or dvm directory as a starting point.
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>
Generating user dialogs
1.10 Predefined functions
117

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents