
------------------------------------------------------------------------------
1.4 Stop output NC program to be registered. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_dwnend
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_dwnend( void ) ;
[Arguments]
------
[Return]
EW_OK( 0) Successful.
EW_FUNC( 1) The start-up procedure of CNC for registering NC
program has not been completed, or no start-up command
has been commanded.
EW_DATA( 5) Incorrect NC program data in previous output. 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.
- No more programs can be registered because there is
no space for them.
EW_OVRFLOW( 8) NC programs which have been output previously could
not registered because tape memory of CNC is full.
[Description]
Notices the end of NC program registration to CNC.
'%' must be output as NC program data before calling this function.
5 or 8 which has been issued during processing of "Output NC program
to be registered" may be returned.
This function doesn't return until the registration process of CNC
is completed.
The registration process is completed even if the return code is not
"0".
[Example]
See example of "Output NC program to be registered(cnc_download)".