ICPDAS
I-8092F Software User Manual
166
i8092_HOME _MODE
Format
:
void
i8092_HOME
_
MODE(
unsigned char
cardNo,
WORD
axis,
WORD
Hometype)
Function
:
Home search demo function.
Parameters
:
cardNo
is the board number.
axis
is the motion axis code, as shows in Table 2-1.
HomeType
is one of the 8 combination cases of various homing steps. 8 cases are
defined in the following table.
Table A-9 Signals for home search types
Home Type
Comment
0
Dir-, hardware signal used: home, near home, limit-
1
Dir+, hardware signal used: home, near home, limit+
2
Dir-, hardware signal used: home, limit- (step1 disabled)
3
Dir+, hardware signal used: home, limit+ (step1 disabled)
4
Dir-, hardware signal used: home, near home, limit-, encoder-Z
5
Dir+, hardware signal used: home, near home, limit+, encoder-Z
6
Dir-, hardware signal used: home, limit-, encoder-Z
7
Dir+, hardware used: home, limit+, encoder-Z
Example
:
//Set the type 0 of the home search for all axes.
i8092_HOME_DEMO(1,
0xf,
0);
//Start the home search motion.
i8092_HOME_START(1,
0xf);