------------------------------------------------------------------------------
1.50 Read pitch error compensation data (range specified). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_rdpitchr
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_rdpitchr( short s_number, short e_number, short length,
struct iodbpi *buf ) ;
struct iodbpi {
short datano_s ; /* Start pitch error compensation */
/* data number. */
short dummy ; /* Not used. */
short datano_e ; /* End pitch error compensation */
/* data number. */
char data[N] ; /* Pitch error compensation data. */
} ; /* N is the amount of compensation */
/* data to be read. */
[Arguments]
s_number Start pitch error compensation number.
e_number End pitch error compensation number.
length Data block length ( =6+(number of compensation data to
be read) )
buf Buffer in which the pitch error compensation data are
stored.
[Return]
EW_OK( 0) Successful.
EW_LENGTH( 2) Incorrect data block length "length".
EW_NUMBER( 3) Incorrect pitch error compensation number "s_number"
or "e_number".
[Description]
Reads the pitch error compensation data stored in the CNC within the
specified range.
Specify the start pitch error compensation data number in "s_number"
and the end one in "e_number" with binary format.
The pitch error compensation data are stored in "buf.data" with signed
binary format. (The negative value is represented as 2's complement.)