Programming commands
6.3 Functions
Reading the 4th line of a file:
Requirement/assumption:
Content of c:/tmp/myfile.mpf:
R[0]=0
F3500 G1
MYLOOPIDX1: X0 y-50 Z0
X150 Y50 Z10
R[0]=R[0]+1
GOTOB MYLOOPIDX1
M30
MyVar = RDLINEFILE("C:/tmp/myfile.mpf", 4)
Result:
MyVar now contains the value "
Writing at the end of a file:
Requirement/assumption:
VARX=123
VARY=456
WRLINEFILE("F100 X" << VARX << " Y" << VARY, "C:/tmp/mypp.mpf")
Result:
Content of c:/tmp/mypp.mpf:
<...>
F100 X123 Y456
6.3.12
Dialog line (DLGL)
Description
It is possible to configure short texts (messages or input tips) for output in the dialog line of the
dialog in response to certain situations.
Possible number of characters in the default font size: approx. 50
120
R[0]=R[0]+1"
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
SINUMERIK Integrate Run MyScreens