![background image](http://html2.mh-extra.com/html/icp-das-usa/i-8092f/i-8092f_user-manual_3531635017.webp)
ICPDAS
I-8092F Software User Manual
17
Example:
i8092MF_SET_SLMT(1, AXIS_XY, 20000, -3000, 0);
//set the forward software limit as 20000 and the reverse
//software limit as -3000 for all axes on module 1.
void
i8092MF_CLEAR_SLMT(
BYTE
cardNo
,
WORD
axis
)
Description:
This function clears the software limits.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
Return:
None
Example:
i8092MF_CLEAR_SLMT(1, AXIS_XY);
//clear the software limits for all axes on module 1.
2.11 Setting the Encoder Related Parameters
void
i8092MF_SET_ENCODER(
BYTE
cardNo
,
WORD
axis
,
BYTE
nMode
,
BYTE
nDivision
,
BYTE
nZEdge
)
Description:
This function sets the encoder input related parameters.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nMode
:
Encoder input type: 0 = A quad B; 1 = up/down
nDivision
: Division setting for A quad B input signals:
0 = 1/1
1 = 1/2
2 = 1/4
nZEdge
:
Sets the trigger level for the Z phase
0 = low active; 1 = high active