
------------------------------------------------------------------------------
1.36 Read tool offset amount (range specified). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_rdtofsr
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_rdtofsr( short s_number, short type, short e_number,
short length, struct iodbto *buf ) ;
struct iodbto {
short datano_s ; /* Start offset number. */
short type ; /* Offset type. */
short datano_e ; /* End offset number. */
union {
long m_ofs[N] ; /* M Series individual. */
long m_ofs_a[N] ; /* M Series Memory A all. */
long m_ofs_b[2*N] ; /* M Series Memory B all. */
long m_ofs_c[4*N] ; /* M Series Memory C all. */
short t_tip[N] ; /* T Series individual, */
/* direction of imaginary */
/* tool nose. */
long t_ofs[N] ; /* T Series individual. */
struct {
short tip ;
long data[4] ;
} t_ofs_a[N] ; /* T Series Memory A all. */
struct {
short tip ;
long data[8] ;
} t_ofs_b[N] ; /* T Series Memory B all. */
} u ;
} ;
/* N is number of the offset amounts to be read. */
[Arguments]
s_number Start offset number.
type Offset type.
e_number End offset number.
length Data block length.
buf Buffer in which the offset amounts are stored.