Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 425 -
------------------------------------------------------------------------------
1.46 Write work origin offset. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_wrzofs
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_wrzofs( int length, struct iodbaxis *buf ) ;
struct iodbaxis {
int datano ; /* Offset number. */
int type ; /* Axis number. */
long data[N] ; /* Offset data. */
} ; /* N is the amount of controlled
axes. */
[Arguments]
length Data block length ( =4+4*(amount of axes to be read)).
buf Buffer in which the offset amount is stored.
[Return]
0 Successful.
2 Incorrect data block length "length".
3 Incorrect of offset number "number". (Any data other than
0,..,6 or 7,..,306 has been specified.)
4 Incorrect axis number "axis".
Any data other than -1 or (1,..,amount of controlled axes) has
been specified.
6 There are no required options.
(See "Read work origin offset(cnc_rdzofs)" 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.