ICPDAS
I-8092F Software User Manual
18
Return:
None
Example:
i8092MF_SET_ENCODER(1, AXIS_XY, 0, 0, 0);
//set the encoder input type as A quad B; the division is 1;
//and the Z phase is low active.
void
i8092MF_SET_EN_DIR(BYTE
cardNo
, WORD
axis
, BYTE
nDir
)
Description:
This function sets the encoder input direction.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nDir
: Encoder input direction: 0=positive dir; 1= negative dir
Return:
None
Example:
i8092MF_SET_EN_DIR(1, AXIS_XY, 0);
//set the encoder input direction to positive direction;
2.12 Setting the Servo Driver (ON/OFF)
void
i8092_SERVO_ON(
BYTE
cardNo
,
WORD
axis
)
Description:
This function outputs a DO signal (ENABLE) to enable the motor driver.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
Return:
None
Example:
i8092_SERVO_ON(1,
AXIS_XY);
//enables all drivers on module 1.