Setting The Compare Value - ICP DAS USA I-8092F User Manual

2-axis motion control module
Hide thumbs Also See for I-8092F:
Table of Contents

Advertisement

6.5.7 Setting the COMPARE value

void i8092MF_SET_COMPARE(BYTE
Description:
This function sets the values of COMPARE registers. Howerer, it will disable
the functions of software limits.
Parameters:
cardNo:
axis:
nSELECT:
nTYPE:
data:
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
ICPDAS
WORD
nTYPE,
Module number
Axis or axes (Please refer to Table 2-1)
Select the COMPARE register
0
COMP+
1
COPM-
Select the souece for comparison
0
Position(P) = LP
1
Position(P) = EP
Set the COMPARE value: -2,147,483,648 ~ +2,147,483,647
EP; and
WORD
cardNo,
axis,
long
data)
the COMP+ value to 5000.
86
I-8092F Software User Manual
WORD
nSELECT,

Advertisement

Table of Contents
loading

Table of Contents