Programming commands
6.3 Functions
● Without return value:
6.3.11
File accesses: RDFILE, WRFILE, RDLINEFILE, WRLINEFILE
Description
The RDFILE and WRFILE functions are available for read and write access to files with INI
syntax.
The RDLINEFILE and WRLINEFILE functions are available for read and write access to
individual lines of a file.
Programming
Syntax:
Description:
Parameter:
Syntax:
Description:
Parameter:
Syntax:
Description:
Parameter:
Syntax:
Description:
118
VAR1 = 1
File was not loaded without return value.
SP("//NC/MPF.DIR/MYPROG.MPF")
"File name + path", "Section", "Key" )
RDFILE(
Reading from a file
File name + path
Section
Key
(Value, "File name + path", "Section", "Key")
WRFILE
Writing to a file
Value
File name + path
Section
Key
("File name + path", Line number)
RDLINEFILE
Reading a line from a file
File name + path
Line number
(Value, "File name + path")
WRLINEFILE
Writing of a line at the end of a file
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Path and file name
Section in the INI file
Key in the INI file
Value to be written
Path and file name
Section in the INI file
Key in the INI file
Path and file name
Line number
Numbering begins at 0 for the
first line.
SINUMERIK Integrate Run MyScreens