Siemens SINUMERIK 828D Commissioning Manual page 850

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

Advertisement

Generating user dialogs
1.9 Predefined functions
Function name
Reading a file
98
Description
The function reads the contents of the specified file into a string varia‐
ble.
The number of characters to be read can optionally be specified as a
second parameter.
Attribute:
return - name of the local variable
Parameter:
progname - file name
number of characters - number of characters to be read in bytes (op‐
tional):
Syntax:
<function name="doc.readfromfile" return="<string
var>"> progname, number of characters </function>
Example:
<let name = "my_var" type="string" ></let>
NC file system
<function name=" doc.readfromfile "
return="my_var"> _T"n:\mpf\test.mpf" </function>
CompactFlash card
<function name=" doc.readfromfile "
return="my_var"> _T"f:\appl\test.mpf" </function>
or
<function name=" doc.readfromfile "
return="my_var"> _T".\test.mpf" </function>
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Easy XML

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents