Siemens SINUMERIK 840DE sl Commissioning Manual page 1135

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

Advertisement

Parameter:
Note
● The files must not be in the file system of the NC (data management).
● If the file does not exist, or the end of the file is reached or other errors occur, the variables
FILE_ERR and ERR are set accordingly. You can check whether a file exists first with the
Exist Program (EP) file function.
● The processed file is generated in "UTF-8" coding (without BOM (Byte Order Mask). When
reading a file, it is expected in "UTF-8" coding.
● You can delete the file explicitly when required with the Delete Program (DP) file function.
Examples
Reading from an INI file:
Requirement/assumption:
Content of file C:/tmp/myfile.ini:
<...>
[MyData]
MyName=Daniel
<...>
MyVar = RDFILE("C:/tmp/myfile.ini", "MyData", "MyName")
Result:
MyVar now contains the value "Daniel".
Writing to an INI file:
Requirement/assumption:
VARS=12
WRFILE(VARS, "C:/tmp/myfile.ini", "MySession", "NrOfSessions")
Result:
Content of file C:/tmp/myfile.ini:
<...>
[MySession]
NrOfSessions=12
<...>
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Value
File name + path
Programming commands
6.3 Functions
Value to be written
Path and file name
149

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents