
ICPDAS
I-8092F Software User Manual
15
2.7 Setting the Motion Stop Method When Limit Switch Is
Sensed
void
i8092MF_LIMITSTOP_MODE (
BYTE
cardNo
,
WORD
axis
,
BYTE
nMode
)
Description:
This function sets the motion stop mode of the axes when the
corresponding limit switches are detected.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nMode:
0: stop immediately; 1: decelerating to stop
Return:
None
Example:
i8092MF_LIMITSTOP_MODE(1, AXIS_X, 0);
//set X axis to stop immediately if any limit switch on X axis is triggered.
2.8 Setting the Trigger Level of the NHOME Sensor
void
i8092MF_SET_NHOME(
BYTE
cardNo
,
WORD
axis
,
BYTE
nNHEdge
)
Description:
This function sets the trigger level of the near home sensor (NHOME).
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nNHEdge
: Active level setting for the near home sensor.
0 = low active;
1 = high active
Return:
None
Example:
i8092MF_SET_NHOME(1, AXIS_XY, 0);
//set the trigger level of NHOME of X and Y axes on module 1 to be active low.