Jump to content

Recommended Posts

Geschrieben

In my project I have two stepper motors, and controllers. The control program am I doing in Python.

 

It had been very nice to have cam-functions in these modules.

With cam-function I mean a programmable functionality that let me set a position. When these position is passed, in one or other direction, it should trigger a callback function that inform me that we have passed this position and if we are more or less than the given position.

 

My questions :

- is this something that could be fullfilled without a firmware update?

(I have tried to do this with use of callback_all_data, but it seems to load the system to much.. ).

- Has somebody an idea how to make it nice, with low computer load and fast execution?

Geschrieben

So you want to go in the direction of a position and get a callback if you have reached the position but not stop at the position, right?

 

With the current API you could drive forward/backward and either poll "get_current_position" or use the "all_data"-callback. I don't see any easier way.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...