hit counter script

Siemens SINUMERIK 828D Commissioning Manual page 1049

Hide thumbs Also See for SINUMERIK 828D:
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
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Value
File name + path
Programming commands
6.3 Functions
Value to be written
Path and file name
119

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents

Save PDF