
ICPDAS
I-8092F Software User Manual
131
i8092_GET_CA
Format:
WORD
i8092_GET_CA(
unsigned char
CardNo,
WORD
axis)
Function:
The function can read the current drive acceleration will be set in read registers
RR6 and RR7. When the driving stops, the value becomes 0. The data value
will increase from zero to the setting value of drive acceleration (A).
Parameters:
cardNo
is the board number.
axis
is the motion axis code, as shows in Table 2-1, only set for single axis.
Example:
//
Read the current acceleration for the X, Y axes.
i8092_READ_CA(1, 0x1);
i8092_READ_CA(1, 0x2);
i8092_SET_CP
i8092_SET_CM
Format:
void
i8092_SET_CP(
unsigned char
CardNo,
WORD
axis,
long
dwdata)
void
i8092_SET_CM(
unsigned char
CardNo,
WORD
axis,
long
dwdata)
Function:
Set the COMP+/- registers value to be the positive direction software limit.
Parameters
:
cardNo
is the board number.
axis
is the motion axis code/name, as shows in Table 2-1,
dwdata
is the COMP+ register value.
Data range: -2
31
~+2
31
.
Example:
//Set the positive direction software limit to be 100000 for the X, Y axes.
i8092_SET_COMPP(1, 0x3, 100000);
//Set the positive direction software limit to be 100000 for the X, Y axes.
i8092_SET_COMPM(1, 0x3, 100000);