
[Description]
Reads the difference between the position commanded by the program and
the one processed by acceleration/deceleration procedure of the CNC's
controlled axis, i.e. the acceleration/deceleration delay amount.
Specify one of (1,..,amount of controlled axes) for each axis or -1
for all axes as axis number in "axis".
The acceleration/deceleration delay amount is stored in "buf.data"
with signed binary format. (The negative value is represented as 2's
complement.)
The acceleration/deceleration delay amount of specified axis is stored
in "buf.data[0]" in case of reading one axis's data.
The unit of the acceleration/deceleration delay amount is as follows.
IS-B IS-C
-----------------------+---------------+---------------
Linear axis(mm 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]
[Example]
The following program displays the acceleration/deceleration delay
amount of all axes (amount of axes = MAX).
#include <data.h>
#include <fwindow.h>
#include <stdio.h>
void example( void )
{
struct iodbaxis buf ;
unsigned int idx ;
cnc_accdecdly( -1, 4+4*MAX, &buf ) ;
for ( idx = 0 ; idx < MAX ; idx++ )
printf( "%u:%8ld¥n", idx, buf.data[idx] ) ;
}