8144_home_move – ADLINK PCI-8144 User Manual
Page 130
120
Function Library
_8144_home_move
Description:
This function is used to perform a software based home return
operation. The homing status can be checked by the
“_8144_home_status” function.
Syntax:
I16 _8144_home_move( I16 AxisNo, F64 StrVel, F64
MaxVel, F64 Tacc, I16 AccType );
B_8144_home_move( ByVal AxisNo As Integer, ByVal
StrVel As Double,ByVal MaxVel As Double,
ByVal Tacc As Double, ByVal AccType As
Integer );
Parameters:
I16 AxisNo
: Axis number of Target Axis.
F64 StrVel
: Start homing velocity. Unit: pulse/second.
F64 MaxVel
: Maximum homing velocity. Unit: pulse/second.
F64 Tacc
: Acceleration time. Unit: second.
I16 AccType
: Curve type of acceleration.
0: T-curve
1: S-curve
Return Values:
Example:
F64 StrVel = 100;
F64 MaxVel = 100000;
F64 Tacc = 0.1;
I16 AccType = 0;
I16 ret = _8144_home_move(AxisNo, StrVel, MaxVel,
Tacc, AccType );
//…
I16 HomeStatusInBit;
_8144_home_status(AxisNo, &HomeStatusInBit );
// check home status.