Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 414 -
------------------------------------------------------------------------------
1.42 Write tool offset amount. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_wrtofs
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_wrtofs( int number, int type, int length, long data ) ;
[Arguments]
number Offset number.
type Offset type.
length Data block length ( =8 ).
data Offset data.
[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 written. (See "Read tool offset
amount(cnc_rdtofs)" for details.)
-1 Attempted to execute this function while the other low-speed
window function is being executed.
Retry after completing currently executed window's process.