![background image](http://html2.mh-extra.com/html/icp-das-usa/i-8092f/i-8092f_user-manual_3531635086.webp)
ICPDAS
I-8092F Software User Manual
86
6.5.7 Setting the COMPARE value
void
i8092MF_SET_COMPARE(
BYTE
cardNo,
WORD
axis,
WORD
nSELECT,
WORD
nTYPE,
long
data
)
Description:
This function sets the values of COMPARE registers. Howerer, it will disable
the functions of software limits.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nSELECT
:
Select the COMPARE register
0 COMP+
1
COPM-
nTYPE
:
Select the souece for comparison
0 Position(P) = LP
1 Position(P) = EP
data
:
Set the COMPARE value: -2,147,483,648 ~ +2,147,483,647
Return:
None
Example:
i8092MF_SET_COMPARE(cardNo, AXIS_X, 0, 1, 5000);
//Set the comparison function for X-Axis.
//Set the compared source to be
EP; and
the COMP+ value to 5000.