Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 533 -
------------------------------------------------------------------------------
1.87 Register tool life management data (tool group). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_wrtoolgrp
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_wrtoolgrp( int toolno, struct odbtool *buf ) ;
struct odbtool {
int datano ; /* Tool group number. */
int type ; /* Tool life counter type. */
long data ; /* Tool life value. */
} ;
[Arguments]
toolno Tool number.
buf Buffer in which the tool management data are stored.
[Return]
0 Successful.
3 Incorrect tool group number "buf.datano".
4 Incorrect tool number "toolno".
5 Incorrect tool life value "buf.data". Incorrect tool life
counter type "buf.type" (for only T Series).
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.