Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 339 -
------------------------------------------------------------------------------
1.4 Output NC program to be registered (conditional). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_cdownload
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_cdownload( char *data, int number ) ;
[Arguments]
data NC program data (ASCII string).
number Character number of NC program data (1 - 256).
[Return]
0 Successful.
1 The start-up procedure of CNC for registering NC program has
not been completed, or no start-up command has been commanded.
2 Incorrect character number "number".
5 Incorrect NC program data. This code is returned under one of
following conditions.
- The same program number is already registered.
- A character which is unavailable for NC program is detected.
- When TV check is effective, a block which includes odd
characters (including 'LF' at the end of the block) is
detected.
8 No more NC program can be stored because tape memory of CNC is
full.
10 The buffer for NC program to be registered in CNC is full.
Retry to register the same data again.
[Description]
Outputs NC program to be registered to CNC.
This is same as "Output NC program to be registered(cnc_download)"
except that this returns ERROR 10 without waiting in the library
when the library can not send data because the buffer of CNC is full.
Refer "cnc_download" function for format of output data, etc.