
ICPDAS
I-8092F Software User Manual
16
2.9 Setting Trigger Level of the Home sensor
void
i8092MF_SET_HOME_EDGE(
BYTE
cardNo
,
WORD
axis
,
BYTE
nHEdge
)
Description:
This function sets the trigger level of the home sensor (HOME).
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nHEdge
:
Active level setting for the home sensor.
0 = low active; 1 = high active
Return:
None
Example:
i8092MF_SET_HOME_EDGE(1, AXIS_XY, 1);
//set the trigger level as high active for all home sensors on module 1.
2.10 Setting and Clearing the Software Limits
void
i8092MF_SET_SLMT(
BYTE
cardNo
,
WORD
axis
,
long
dwFL
,
long
dwRL
,
BYTE
nType
)
Description:
This function sets the software limits.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
dwFL
:
Value of the forward software limit
(-2,147,483,648 ~ +2,147,483,647)
dwRL
:
Value of the reverse software limit
(-2,147,483,648 ~ +2,147,483,647)
nType
:
Position counter to be compared:
0 = logical position counter (LP), i.e., the command position
1 = encoder position counter (EP), i.e., the real position
Return:
None