
The unit of the work origin offset amount is as follows.
IS-B IS-C
-------------------------------+---------------+---------------
Linear axis (metric input) 0.001 [mm] 0.0001 [mm]
Linear axis (inch input) 0.0001 [inch] 0.00001 [inch]
Rotation axis 0.001 [deg] 0.0001 [deg]
[Example]
The following program reads and displays the work origin offset amounts
of G54 to G59 for all the axes (up to 32 axes).
#include <data.h>
#include <fwindow.h>
#include <stdio.h>
#include <stdlib.h>
short example( void )
{
struct iodbzo *buf ;
short ret, idx1, idx2 ;
buf = (struct iodbzo *)malloc( 6+4*32*6 ) ;
ret = cnc_rdzofsr( 1, -1, 6, 6+4*32*6, buf ) ;
if ( !ret ) {
for ( idx1 = 0 ; idx1 < 6 ; idx1++ ) {
printf( "G%d", idx1+54 ) ;
for ( idx2 = 0 ; idx2 < MAX ; idx2++ )
printf( " %8ld", buf->data[idx1*32+idx2] ) ;
putchar( '¥n' ) ;
}
}
free( buf ) ;
return ( ret ) ;
}