Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 423 -
------------------------------------------------------------------------------
1.45 Read work origin offset. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_rdzofs
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_rdzofs( int number, int axis, 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]
number Offset number ( 0, 1,..,6, 7,..,306 ).
axis Axis number ( =(1,..,amount of controlled axes),
or -1 ).
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.
The related options;
- Work coordinate system ( G54 through G59 )
- Work coordinate system 48 sets ( G54.1P1-P48 )
- Work coordinate system 300 sets ( G54.1P1-P300 )
- Controlled axes expansion
-1 It has been failed to read work origin offset amount because
the other application program has already started writing
work origin offset amount.