Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 359 -
------------------------------------------------------------------------------
1.16 Start input NC program. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_upstart
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_upstart( int number ) ;
[Arguments]
number Program number.
[Return]
0 Successful.
5 The specified NC program is not registered in CNC.
7 Tape memory of CNC is protected.
-1 Start command for input of NC program to be uploaded has been
rejected.
This code is returned under one of following conditions.
- CNC is executing other requested command (downloading,
comparing, uploading or reading program directory).
- The NC program is being executed. (Automatic operating
signal "OP"<F000#7> is "ON".)
- The operation mode of CNC is background editing mode or MDI
mode.
- P/S 000 or P/S 101 alarm is set.
[Description]
Requests CNC to start reading of NC program (uploading).
Specify the program number of NC program to be uploaded in "number"
with binary format.
[Example]
See example of "Input NC program(cnc_upload)".