
------------------------------------------------------------------------------
1.11 Start input NC program. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_upstart
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_upstart( long number ) ;
[Arguments]
number Program number.
[Return]
EW_OK( 0) Successful.
EW_DATA( 5) The specified NC program is not registered in CNC.
EW_PROT( 7) Tape memory of CNC is protected.
EW_BUSY(-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).
- An NC program is running (automatic operation signal
OP<F000#7> is on).
- Background editing is in progress or the MDI mode has
been selected.
- A P/S 000 or P/S 101 alarm condition has occurred.
[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)".