Description
Deletes the NC program by line basis.
When you specify the line including a program file name(ex."Oxxxx" or "<xxxx>"), this function deletes the character after a file name, but doesn't delete a file name.
Example)
You have the following program you are going to delete by line basis.When you delete 3 lines from the line number 0 for the above program, then you get the following result.O1234(TEST PROGRAM) ; G01 X0. F100 ; X20. ; M30 ; %
O1234 M30 ; %
The conditions of the function about CNC mode and the kind of program are as follows.
EDIT mode | MDI mode | Other mode | |
MDI program | × | O | × |
Selected program | O | × | × |
Not selected program | O | O | O |
If you have the playback option, TJOG/THND mode is the same as EDIT.
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 line specified by line_no.
- MDI program in MDI mode.
- Selected program in EDIT mode.
- Selected program in TJOG/THND mode with the playback option.
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.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
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 delete.
When you delete 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 line number to delete.
If you set the value of "line_len" over the registed lines,
it is deleted the lines from the specified line number to the preceding last line.
The last line (%) is not deleted.
Return
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 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
(-1) |
CNC is searching the program text right now. |
|||||||||
(5) |
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.
|
|||||||||
(6) |
The extended driver/library function is necessary. |
|||||||||
(7) |
CNC parameter is a state of write-protection (O8000-/O9000- protection, encoding). |
|||||||||
(12) |
||||||||||
(13) |
- CNC is in the emergency stop. |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
CNC parameter
This function is related to the following CNC parameter.
See the manual of CNC parameter for details.
11353#3 (influenced by setting)
CNC mode
Available CNC
0i-A | 0i-B/C(Note) | 0i-D | 0i-F | 15 | 15i | 16 | 18 | 21 | 16i-A | 18i-A | 21i-A | 16i-B | 18i-B | 21i-B | 30i-A | 30i-B | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
M (Machining) | |||||||||||||||||
T (Turning) | - | ||||||||||||||||
LC (Loader) | - | - | - | - | - | - | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | - | |||||
L (Laser) | - | - | - | - | ||
W (Wire) | - | - |
Power Mate i-D | |
Power Mate i-H | |
Power Motion i-A | H |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.
See Also
cnc_rdpdf_line cnc_wrpdf_line cnc_pdf_searchword cnc_pdf_searchresult