
data[1][0] - data[1][7] (Output unit)
IS-B IS-C
-------------------------------+---------------+---------------
Linear axis (metric output) 0.001 [mm] 0.0001 [mm]
Linear axis (inch output) 0.0001 [inch] 0.00001 [inch]
Rotation axis 0.001 [deg] 0.0001 [deg]
The array size of each members of "iodbovl.data" is always 32
regardless of the amount of controlled axes. In case that the amount
of controlled axes is less than 32, no data are stored in the members
corresponding with the axes No. (amount of controlled axes + 1),..,32.
[Example]
Assume that each axis of a three-axis system has a manual override
amount listed below:
Input unit Output unit
First axis 4.7246 120.005
Second axis -1.9732 -50.119
Third axis 0.0031 0.080
On the assumption stated above, the following program displays the
values listed below (on the assumption that the inch input, metric
output, and increment system conform to IS-B):
0: 47246 120005
1: -19732 -50119
2: 31 80
#include <data.h>
#include <fwindow.h>
#include <stdio.h>
void example( void )
{
struct iodbovl buf ;
short idx;
cnc_rdmovrlap ( -1, 260, &buf ) ;
for ( idx = 0 ; idx < 3 ; idx ++ ) {
printf ( "%d:%8ld %8ld¥n",
idx, buf.data[0][idx], buf.data[1][idx] ) ;
}
}