ICPDAS
I-8092F Software User Manual
129
i8092_SET_EP
Format:
void
i8092_SET_EP(
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 real position counter, Data range: -2
31
~+2
31
.
Example:
//Clear the logic position counter value.
i8092_SET_EP(1, 0x1, 0); i8092_SET_EP(1, 0x2, 0);
long
i8092_GET_LP
Format:
long
i8092_GET_LP(
unsigned char
CardNo,
WORD
axis)
Function:
The function can read he current value of logic position counter, and it will be set in
read registers RR6 and RR7.
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 logic position counter for the X, Y axes.
i8092_GET_LP(1,
0x1);
i8092_GET_LP(1,
0x2);