Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 549 -
------------------------------------------------------------------------------
1.95 Write tool life management data (tool information 1). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_wrt1info
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_wrt1info( struct odbtool *buf ) ;
struct odbtool {
int datano ; /* Tool group number. */
int type ; /* Tool number. */
long data ; /* Tool information. */
} ;
[Arguments]
buf Buffer in which the tool management data are stored.
[Return]
0 Successful.
3 Incorrect tool group number "buf.datano".
4 Incorrect tool number "buf.type".
5 The specified tool number is not registered in the specified
tool group.
6 The required option (Tool life management or Tool number
expansion for tool life management (512 sets in total, only
M Series)) is not added.
-1 Attempted to execute this function while the other low-speed
window function is being executed.
Retry after completing currently executed window's process.
[Description]
Write the tool information of the specified tool group and tool number.
Specify the tool group number, the tool number and the tool information
in each "buf.datano", "buf.type" and "buf.data" with binary format.
buf.data Setting
---------------+------------------------------
1 Set tool as cleared status.
2 Set tool as skipped status.