Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 347 -
------------------------------------------------------------------------------
1.9 Output NC program to be compared (conditional). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_cverify
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_cverify( 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 comparing 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.
- Any difference has been detected during comparing process.
- The target program to be compared is selected in foreground.
- 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.
10 The buffer for NC program to be compared in CNC is full. Retry
to compare the same data again.
[Description]
Outputs NC program to be compared with already registered one to CNC.
This is same as "Output NC program to be compared(cnc_verify)" 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.