Jump to content

control 2 motors simultanuously using the same interface


Recommended Posts

Hi,

I'm working on a program to implement and controle two stepper motors ( MG17) using the same interface, my problem is that I can not control both of them in same time.

If I use the jogging button of one of them ( for exemple: the 1st motor) , the interface shows that they are both controlled, but in reality just the 1st is running .. and vice versa.

Thank you for helping me.

vitesse.vi

Link to comment

PreReply note, don't presume that the people reading will have the driver or the knowledge of how the driver operates.

That being said, are you sure that you can run 2 at the same time with that driver?

Sure you might be able to code it up, but sometimes people don't think about the obvious, like doing the same thing in parallel.

And to your point of it looking like your controlling both, when I look at the code, I see you controlling each independently. the only thing tying both together is the SetPositionOffset method.

And if I presume anything about that method and the behavior that your describing, then it's not the method you need to be calling.

Perhaps if you want to call both at once you need to use the GetPosition method on the second one.

<a href="http://content.screencast.com/users/NJKirchner/folders/Jing/media/ddc19c30-b098-4476-9f00-17066785f95f/2011-07-29_1531.png"><img'>http://content.screencast.com/users/NJKirchner/folders/Jing/media/ddc19c30-b098-4476-9f00-17066785f95f/2011-07-29_1531.png"><img class="embeddedObject" src="http://content.screencast.com/users/NJKirchner/folders/Jing/media/ddc19c30-b098-4476-9f00-17066785f95f/2011-07-29_1531.png" width="660" height="502" border="0" /></a>

Good luck

~,~

The Captain

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...

Important Information

By using this site, you agree to our Terms of Use.