Setting The Encoder Related Parameters - ICP DAS USA I-8092F User Manual

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

Advertisement

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
Description:
This function clears the software limits.
Parameters:
cardNo:
axis:
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
Description:
This function sets the encoder input related parameters.
Parameters:
cardNo:
axis:
nMode:
nDivision:
nZEdge:
ICPDAS
cardNo,
Module number
Axis or axes (Please refer to Table 2-1)
BYTE
Module number
Axis or axes (Please refer to Table 2-1)
Encoder input type: 0 = A quad B; 1 = up/down
Division setting for A quad B input signals:
0 = 1/1
1 = 1/2
2 = 1/4
Sets the trigger level for the Z phase
0 = low active;
1 = high active
WORD
axis)
WORD
cardNo,
axis,
BYTE
nDivision,
nZEdge)
17
I-8092F Software User Manual
BYTE
nMode,

Advertisement

Table of Contents
loading

Table of Contents