GoranP Posted May 22, 2018 at 01:01 PM Share Posted May 22, 2018 at 01:01 PM 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? Quote Link to comment Share on other sites More sharing options...
borg Posted May 30, 2018 at 07:56 AM Share Posted May 30, 2018 at 07:56 AM 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.