Steppers and servos

More
02 Sep 2011 13:53 #12908 by doug6949
Steppers and servos was created by doug6949
Please excuse me if this has been discussed before, and point me to the appropriate thread or instructions.

I purchased a 5i20, 7i33, (2x)7i37 package for a kneemill with a rotary axis. This gives me the four needed servo axis' and plenty of I/O.

Now I need a step/dir output, probably from the D510MO parallel port, to raise and lower the knee. This is only for positioning, not coordinated motion. I intend to use the knee for tool length compensation as the quill only gives me 5 inches of travel.

My question concerns the practicality of using the parallel port in S/D mode while also having 4 axis servo control thru the Mesa cards. Is this advisable, easy, doable within pncconf?

Thanks;
Doug

Please Log in or Create an account to join the conversation.

More
02 Sep 2011 21:31 #12918 by cncbasher
Replied by cncbasher on topic Re:Steppers and servos
Doug,
the 5i20 has 72 pins available , and is a pci card direct to the pc buss , so you dont need to use the parrallel port , use 2 of the general purpose io pins available
you may need to customise the firmware for the 5I20 to obtain the required uses , but that should not be too much of a problem .

shout if you need a customised BIT file to suit , your requirements .
i'd need a list of how many servo , stepgens , pwm gen , io pins etc , to produce one
at trhe moment i dont have a 5I20 to test with , so it would be compiled and up to you to test etc

Please Log in or Create an account to join the conversation.

More
03 Sep 2011 00:55 - 03 Sep 2011 00:57 #12919 by andypugh
Replied by andypugh on topic Re:Steppers and servos
doug6949 wrote:

Now I need a step/dir output, probably from the D510MO parallel port, to raise and lower the knee. This is only for positioning, not coordinated motion.

Why step, and not servo?
Anyway, it is possible to run a base thread with a 5i20 and use spare 5i20 pins and software step generation to drive steppers. No need to complicate matters with a parallel port.
it is also possible that there is a suitable firmware with stepgens, encoders and pwms. However, I don't appear to have 5i20 firmwares on this machine.

You might find this thread interesting:
thread.gmane.org/gmane.linux.distributions.emc.user/26042
Last edit: 03 Sep 2011 00:57 by andypugh.

Please Log in or Create an account to join the conversation.

More
03 Sep 2011 02:57 #12920 by cmorley
Replied by cmorley on topic Re:Steppers and servos
firmware SVST4_8 has 8 PWM, 8 encoders, and 4 step gens (maximum)

Not sure if rooting step pulses through the 7i37 works well (timing wise) - maybe Peter will chime in.

Anyways to answer your original question. Yes you could have software stepping thru the parallel port with servo controls thru Mesa's board.
but there is probably better combinations ( as noted).
PNCconf will not build configs that include software stepping and assuming you would like the knee as W it won't help there either.
But it cans build the servo XYZA machine (get that running happily) and then you can hand edit in either a software or hardware stepping knee control.
You could build a hardware stepper base dummy config with PNCconf and copy one axis over, changing it to W axis.
Or you could use stepconf to build a config and copy one axis over for W if you want software steppers.
I'm glancing over a few details but I think this is doable with only a little trouble and I'm sure you will find help here.

Hmm maybe PNCconf should expand to include UVW axis..

Chris M

Please Log in or Create an account to join the conversation.

More
03 Sep 2011 03:07 #12921 by doug6949
Replied by doug6949 on topic Re:Steppers and servos
Thank you both for the informative replies. I was under the apparently mistaken impression that the 5i20/7i37 was not fast enough for step generation.

I could use a servo, as I already have plenty of new SEM motors and Copley drives. But that would be five axis. I would have to lose one 7I37 or replace the 5i20 with a 5i22 to make room for the extra 7i33. I guess the good news is that I would have extra channels should I decide to add rigid tapping.

If I go with a servo for the knee I would prefer to use a linear scale and not a rotary encoder. Do you think a 5 micron scale would provide enough gain for loop stability (velocity mode with tach)? A 1 micron scale is twice the money.

Doug

Please Log in or Create an account to join the conversation.

More
03 Sep 2011 03:21 #12922 by doug6949
Replied by doug6949 on topic Re:Steppers and servos
Chris;

You must have hit the send button about three seconds ahead of me.

In the process of answering Basher and Andy I realized the servo is probably a better approach anyway. The knee drive can come along after I have the system running. By then I should be comfortable enough with the HAL to do a hand edit.

The board swap is not a significant expense. Not having to install a second power supply for the stepper makes this a more sensible approach. The cabinet is already crowded.

Doug

Please Log in or Create an account to join the conversation.

More
03 Sep 2011 07:36 #12924 by cncbasher
Replied by cncbasher on topic Re:Steppers and servos
Doug,
the 7I37 is slow for steppers , however you only need to redirect the stepper pins used to not use the 7I37 .
use a stepper drive with opto isolation built in etc , i.e just come off the back of the idc connections to feed to the stepper , and you will be fine

or you may well find the 7i37 works fine for your needs of course

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.164 seconds
Powered by Kunena Forum