
ICPDAS
I-8092F Software User Manual
163
i8092_HOME_STEP3
Format:
void
i8092_HOME_STEP3(
unsigned char
cardNo,
WORD
axis,
WORD
nType,
WORD
nDir)
Function:
Use the signal (IN2) to operate the home search.
Parameter:
cardNo
is the board number.
axis
is the motion axis code/name.
nType
is the specified the encoder z-phase signal (IN2) executed or not.
nType= 0, non-execution;
nType=1, execution.
nDir
is the operation direction of the step.
nDir=0,
positive;
nDir=1,
negative
Example
:
//Set the step 3 enabled and negative direction of the home search
i8092_HOME_STEP3(1, 0xf, 1, 1);
i8092_HOME_STEP4
Format:
void
i8092_HOME_STEP4(
unsigned char
cardNo,
WORD
axis,
WORD
nType,
WORD
nDir)
Function:
Set the offset drive in the last step.
Parameter:
cardNo
is the board number.
axis
is the motion axis code/name.
nType
is the specified the near home signal (IN0) executed or not.
nType= 0, non-execution; nType=1, execution.
nDir
is the operation direction of the step.
nDir=0, positive; nDir=1, negative
Example:
//
Set the step 4 enabled and – negative direction of the home search
i8092_HOME_STEP4(1, 0xf, 1, 1);