
------------------------------------------------------------------------------
1.35 Write tool offset amount. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_wrtofs
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_wrtofs( short number, short type, short length, long data ) ;
[Arguments]
number Offset number.
type Offset type.
length Data block length ( =8 ).
data Offset data.
[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 written. (See
"Read tool offset amount(cnc_rdtofs)" for details.)
EW_BUSY(-1) An attempt was made to execute this command when other
window processing of a low-speed type was in progress.
Execute the command after the window processing has
ended.