You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Problem

Hello,
Can you please send me an example that shows how I can query the current axis status, i.e. enabled and homed status.

Solution

The command to query the enabled and homed status is: 

printf("Retrieving Homedstatus for the first axis.\n");

if (!A3200StatusGetItem(handle, 0, STATUSITEM_AxisStatus, AXISSTATUS_Homed, &HomedAxis)) { PrintError(); goto cleanup; }

printf("Homed X-Axis : %f\n", HomedAxis);


printf("Retrieving Enabledstatus for the first axis.\n");

if (!A3200StatusGetItem(handle, 0, STATUSITEM_DriveStatus, DRIVESTATUS_Enabled, &EnabledAxis)) { PrintError(); goto cleanup; }

printf("Enabled X-Axis : %f\n", EnabledAxis);



  • No labels