Description
Writes the NC program by line basis.
You cannot change a program file name in the top of the program.
If you try to change it, you get EW_DATA ad the return code.
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 write.
When you write to the first line(Program Name or Program Number) of a program, you have to specify 0.
Specify the pointer to the buffer holding the program text.
According to the following attentions, full the buffer with ASCII codes before writing.
- Do not use except the meaning code for CNC.
- Do not use the small letter of alphabets.
- Do not use '%' (EOR).
Specify the size of character to write.
This function checks the free area in CNC memory beforewriting.
If there is no more than (this character size + 100) in this area,
this function returns EW_OVRFLOW as the return code without writing.
The character number you can write at the once is up to 200.
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). |
|||||||||||||||||||||
(8) |
It is lack of free area in CNC memory. Make enough free area in CNC memory. |
|||||||||||||||||||||
(12) |
||||||||||||||||||||||
(13) |
MDI edit or Background edit processing in CNC side. |
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_del_pdfline cnc_pdf_searchword cnc_pdf_searchresult