
ICPDAS
I-8092F Software User Manual
162
i8092_HOME_STEP1
Format:
void
i8092_HOME_STEP1(
unsigned char
cardNo,
WORD
axis,
WORD
nType,
WORD
nDir)
Function:
Use the near home signal (IN0) to operate the home search.
Parameters:
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 1 enabled and – negative direction of the home search
i8092_HOME_STEP1(1, 0xf, 1, 1);
i8092_HOME_STEP2
Format:
void
i8092_HOME_STEP2(
unsigned char
cardNo,
WORD
axis,
WORD
nType,
WORD
nDir)
Function:
Use the home signal (IN1) to operate the home search.
Parameters:
cardNo
is the board number.
axis
is the motion axis code/name.
nType
is the specified the home signal (IN1) 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 2 enabled and – negative direction of the home search
i8092_HOME_STEP2(1, 0xf, 1, 1);