Reads the NC program by line basis.
This function tries to read the amount of lines which is specified by (*line_len), but when the actual read character size reaches to the number of (*data_len) in this function, the reading process is aborted.
And if the end character of the last line (EOB('\n')) is not finished to read, the last line is not counted as the read line count.
When the reset processing is executed in CNC, the processing interrupts can be selected according to the parameter LES(No.11353#3).
Inc case of parameter LES(No.11353#3)=0 : The process is not interrupted.
Inc case of parameter LES(No.11353#3)=1 : The process is interrupted.
When you read from 1st to 3rd line of the following program, you have to specify more than 33 as the read character size. If you specify 30 as the character size, the read line count would be 2 because the 3rd line had not been read completely. Then 30 characters would be set in the specified buffer.O1234 ; N001 G01 X0. F100 ; N002 X20. ; N003 X50. ; N004 X80. ; N005 M30 ; %
The conditions of the function about CNC mode and the kind of program are as follows.
|MDI mode||Other mode|
|Not selected program||O||O|
This function works normally if OP signal is 1 but STL signal is 0 (for example, feed hold stopping, single block stopping, etc).
When you use this function for the MDI program or the selected program in the following situations, the execution pointer goes to the top of the specified line by line_no.
- MDI program in MDI mode.
- Selected program in EDIT mode.
- Selected program in TJOG/THND mode with the playback option.
And alse by using cnc_setlibopt function, you can force the execution pointer not to be moved.
Universal Fanuc Driver
Fanuc Focas Library CD
Specify the library handle. See "Library handle" for details.
Program path makes of the "drive name","path name" and "file name".
Please refer to "General Description (Specifying the folder and file name for FS30i, 0i-D/F and PMi-A.)" for details of the file name.
If the value of "prog_name" is NULL, the previous progaram name is specifed.
When you use this function for the MDI program , you have to be specifed the "MDI".
Specify the line number to read from.
When you read from the first line of a program, you have tospecify 0.
When you specify other than the existing line number, you get EW_DATA error as the return code.
Specify the address to the buffer to read the program text.
Specify the amount of lines to read.
After calling this function, the actual read line count is set.
Specify the size of character to read.
After calling this function, the actual read character size is set.
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
The major error codes are as follows.
|Return code||Meaning/Error handling|
CNC is searching the program text right now.
In order to get more information for this err_no return value, execute cnc_getdtailerr function. The following detail status will be set onto the member, err_no of ODBERR structure.
The extended driver/library function is necessary.
CNC parameter is a state of write-protection(O8000-/O9000- protection, encoding).
CNC is in the emergency stop.
As for the other return codes or the details, see "Return status of Data window function"
For HSSB connection,
This function is related to the following CNC parameter.
See the manual of CNC parameter for details.
11353#3 (influenced by setting)
|P (Punch press)||-|
|Power Mate i-D|
|Power Mate i-H|
|Power Motion i-A||H|
|"O"||:||Both Ethernet and HSSB|
|"X"||:||Cannot be used|
Note) 0i-C does not support the HSSB function.
cnc_wrpdf_line cnc_del_pdfline cnc_pdf_searchword cnc_pdf_searchresult cnc_setlibopt