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|
|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
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.
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).
It is lack of free area in CNC memory.
Make enough free area in CNC memory.
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"
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.