
------------------------------------------------------------------------------
1.10 Stop output NC program to be executed. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_dncend
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_dncend( void ) ;
[Arguments]
------
[Return]
EW_OK( 0) Successful.
EW_FUNC( 1) The start-up procedure of CNC for executing NC program
has not been completed, or no start-up command has been
commanded.
EW_DATA( 5) Incorrect NC program data.
EW_RESET(-2) The CNC has been reset.
[Description]
Notices the end of DNC operation to CNC.
'%' must be output as NC command data before calling this function.
Execute this stopping command after the CNC's operation has been
completed and reset. If this command is executed during CNC is
operating, the function-call waits until the end of operation and
resetting. Check "OP" signal(F000#7) to find whether CNC has been
reset or not. When "OP" signal is "0", CNC is has been reset.
EW_DATA which has been issued during processing of "Output NC program
to be executed" may be returned.
The return value of this function is usually "-2" because CNC is
reset at the end of DNC operation.
[Example]
See example of "Output NC program to be executed(cnc_dnc)".