Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 358 -
------------------------------------------------------------------------------
1.15 Stop output NC program to be executed. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_dncend
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_dncend( void ) ;
[Arguments]
------
[Return]
0 Successful.
1 The start-up procedure of CNC for executing NC program has not
been completed, or no start-up command has been commanded.
5 Incorrect NC program data.
-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.
ERROR 5 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)".