Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 411 -
------------------------------------------------------------------------------
1.41 Read tool offset amount. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_rdtofs
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_rdtofs( int number, int type, int length,
struct odbtool *buf ) ;
struct odbtool {
int datano ; /* Offset number. */
int type ; /* Offset type. */
long data ; /* Offset data. */
} ;
[Arguments]
number Offset number.
type Offset type.
length Data block length ( =8 ).
buf Buffer in which the offset amount is stored.
[Return]
0 Successful.
2 Incorrect data block length "length".
3 Incorrect offset number "number".
(This return code is returned in case that any value
except 1,..,(maximum number of offset) was specified in offset
number "number".
4 Incorrect offset type "type".
6 There are no additional tool offset options required for the
specified offset number to be read.
The related options (M Series)
- Tool offset memory (32)/64/99/200/400/499/999 sets
- Tool offset type (A)/B/C
The related options (T Series)
- Tool offset memory (16)/32/64/99 sets
- Nose radius compensation
- Tool geometry offset and tool wear offset
- Y axis offset
Marked item by "()" is the basic function.
-1 It has been failed to read tool offset amount because
the other application program has already started writing
tool offset amount.