
------------------------------------------------------------------------------
1.34 Read tool offset amount. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_rdtofs
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_rdtofs( short number, short type, short length,
struct odbtool *buf ) ;
struct odbtool {
short datano ; /* Offset number. */
short 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]
EW_OK( 0) Successful.
EW_LENGTH( 2) Incorrect data block length "length".
EW_NUMBER( 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".
EW_ATTRIB( 4) Incorrect offset type "type".
EW_NOOPT( 6) There are no additional tool offset options required
for the specified offset number to be read.
Related options (M Series)
- Number of tool
compensation
values (32)/64/99/200/400/499/999 sets
- Tool compensation memory (A)/B/C
Related options (T Series)
- Number of tool
compensation
values (32)/64/99/200/400/499/999 sets
- Tool-nose radius compensation
- Tool geometry compensation and wear compensation
- Y-axis offset
Marked item by "()" is the basic function.
EW_BUSY(-1) It has been failed to read tool offset amount because
the other application program has already started
writing tool offset amount.