
ICPDAS
I-8092F Software User Manual
128
Fig. A-29 Management for Position Register and Software Limit
i8092_SET_LP
Format:
void
i8092_SET_LP(
unsigned char
CardNo,
WORD
axis,
long
dwdata)
Function:
Set the logic position counter, it can be set zero to reset the counter values.
Parameters:
cardNo
is the board number.
axis
is the motion axis code, as shows in Table 2-1, only set for single axis.
dwdata
: input value for logic position counter. Data range: -2
31
~+2
31
.
Example:
//Clear the logic position counter value.
i8092_SET_LP(1,
0x1,
0);
i8092_SET_LP(1, 0x2, 0)