Jump to content

How to get cam functions with a stepper module


Recommended Posts

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?

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...