Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 552 -
When the tool is set as cleared status or skipped status, the
condition of tool changes as follows.
Setting Before After
---------------+---------------+---------------
Skipped (#) Not used ( )
Cleared Skipped (#) Using (@)
Used (*) Not used ( )
---------------+---------------+---------------
Not used ( ) Skipped (#)
Skipped Using (@) Skipped (#)
Used (*) Skipped (*)
This function is effective for only M Series.
[Example]
The following program alters the tool information of the specified
tool group and tool use-order number.
#include <data.h>
#include <fwindow.h>
#include <stdio.h>
/* grpno/useno are GROUP/USE-ORDER index number to be written in. */
/* status is new tool status to be written. */
int example( int grpno, int useno, long status )
{
struct odbtool buf ;
int ret ;
buf.datano = grpno ;
buf.type = useno ;
buf.data = status ;
ret = cnc_wrt2info( &buf ) ;
if ( !ret )
printf( "New tool status %ld has been written.\n",
buf.data ) ;
else
printf( "ERROR!(%d)\n", ret ) ;
return ( ret ) ;
}