
ICPDAS
I-8092F Software User Manual
39
5.2 Using an Limit Switch as the HOME sensor
void
i8092MF_HOME _LIMIT(
BYTE
cardNo
,
WORD
axis
,
WORD
nType
)
Description:
This function sets the Limit Switch to be used as the HOME sensor.
Parameters:
cardNo
:
Module number
axis
:
Axis axes (Please refer to Table 2-1)
nType
:
0: Does not use the LIMIT SWITCH as the HOME sensor;
1: Use the LIMIT SWITCH as the HOME sensor
Return:
None
EXAMPLE:
i8092MF_ HOME_LIMIT(1, AXIS_X, 0);
//Do not use the Limit Switch as the HOME sensor.
5.3 Setting the Homing Mode
void
i8092MF_SET_HOME_MODE(
BYTE
cardNo
,
WORD
axis
,
WORD
nStep1
,
WORD
nStep2
,
WORD
nStep3
,
WORD
nStep4
,
long
data
)
Description:
This function sets the homing method and other related parameters.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nStep1
:
0: Step 1 is not executed
1: Moves in a positive direction
2: Moves in a negative direction
nStep2
:
0: Step 2 is not executed
1: Moves in a positive direction
2: Moves in a negative direction
nStep3
:
0: Step 3 is not executed
1: Moves in a positive direction