110
Motion Control Theory
// 2. Start home move
return_code = APS_home_move( axis_id );
//Start homing
if
( return_code != ERR_NoError )
{
/* Error handling */
}
// 3. Wait for home move done,
do
{
Sleep(
100
);
msts = APS_motion_status( axis_id );
// Get motion status
msts = ( msts >> MTS_NSTP ) &
1
;
// Get motion done bit
}
while
( msts ==
1
);
// 4. Check home move success or not
msts = APS_motion_status( axis_id );
// Get motion status
msts = ( msts >> MTS_ASTP ) &
1
;
// Get abnormal stop bit
if
( msts ==
1
)
{
// Error handling ...
I32 stop_code;
APS_get_stop_code( axis_id, &stop_code );
}
else
{
// Homing success.
}
}
Содержание PCI-8254
Страница 2: ...ii Revision History Revision Date Description 2 00 2014 08 13 First release ...
Страница 8: ...viii Table of Contents Important Safety Instructions 209 Getting Service 211 ...
Страница 12: ...xii List of Figures ...
Страница 14: ...xiv List of Tables ...
Страница 24: ...10 Introduction ...
Страница 54: ...40 Getting Start with The Installation ...
Страница 78: ...64 Signal Connection ...
Страница 111: ...Motion Control Theory 97 PCI 8254 PCI 8258 MCP2 Bode plot page ...
Страница 165: ...Motion Control Theory 151 PCI 8254 PCI 8258 Example Figure 4 55 Continuous interpolation examples ...
Страница 222: ...208 Motion Control Theory ...