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

Compare with Current View Page History

Version 1 Next »

Problem

Hallo,
können Sie mir bitte ein Beispiel schicken, in dem deutlich wird wie ich den aktuellen Achsstatus, dh Enabled und Homed-Status abfragen kann.


Solution

der Befehl zur Abfrage des Enabled- und Homed-Status lautet: 

  1. 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);

 

2. 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