Hello Guest it is April 18, 2021, 02:05:30 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - beedoebeedoe

Pages: 1
General Mach Discussion / Re: Rotational speed
« on: January 26, 2015, 07:41:13 AM »
So there is no "Correction Diameter" box. It's all about setting the steps correctly?

General Mach Discussion / Re: Rotational speed
« on: January 23, 2015, 03:16:00 PM »
What is meant by "correction diameter"? How is that set?

General Mach Discussion / Re: Closed Loop Spindle Control (Step/Dir)
« on: August 29, 2014, 10:55:05 AM »
Problem identified.  My coupling was slipping and catching making appear to not have any torque I have secured the current coupling and ordered a proper coupling.  Things are looking good so far. :)

General Mach Discussion / Re: Closed Loop Spindle Control (Step/Dir)
« on: August 25, 2014, 10:27:49 AM »
So I did more tinkering. I had the Closed Loop Spindle Control option checked and and after I unchecked it I had much better results. However, solving one issue lead to others, but on the bright side I think I know how to fix it.  On the bench test the motor appeared to have decent torque, but when I mounted the motor to the spindle drive it acted like it had very little torque.  The motor is rated at 9inlb at 1317RPM and for the speeds I am running I should have around 10inlb. I am thinking that the encoder resolution has something to do with it because when I apply 45V to the motor it definitely has the torque.  When I follow geckodrive's optimal encoder line count formula I come up with a line count below 255.  So, I am thinking that a 200 cpr encoder will fix my torque and speed display issues.  I just need to verify that having too high of a CPR will cause these types of issues before ordering a new one. 

General Mach Discussion / Re: Closed Loop Spindle Control (Step/Dir)
« on: August 20, 2014, 09:24:13 PM »
So something weird has happened. I have managed to get an rpm to display using the A (or B) pulse and the Z index without using any of those three suggestions.  I started to make a pulse stretcher like the one here http://electronics.stackexchange.com/questions/46922/lengthening-a-5-ns-pulse but didn't seem to do anything. So then I increased the baud rate to 115200 and the kernel frequency to 100khz. I also switched the index from active low to active high. This switch was probably what did it.   I am using the z index signal from the encoder and it seems to be pretty accurate.  I have set spindle speed to 5, 10, 20, 30, 40, and 50 rpms and compared it to measured values and they were very close.  Still confused as to why its working but I guess I shouldn't complain.  I tried using the A signal with a massive pulley ratio thinking it would be more accurate but I got non linear results. 

I would like to know why setting the steps per unit to 4000 in the motor tuning seems to work. If I use different values the actual rpm varies greatly from the requested.
Also, control gets really weird when I up the rpms to anything over 60rpm. 

The only issues I have now are setting values for the PID. Changing from one rpm to another can be quite interesting. I found this guide  https://controls.engin.umich.edu/wiki/index.php/PIDTuningClassical and will try to use it to find the magic numbers.

General Mach Discussion / Closed Loop Spindle Control (Step/Dir)
« on: August 19, 2014, 11:25:46 AM »
I have two issues.
One, is I cannot understand why the display rpms don't ever change. I can tell Mach3 S400 and change to S1000 and see a change in motor rpms but the display rpms stay at 2. I am very confused as to why this dosen't change at all when I know the encoder signals are valid. I have also wondered why I have to use an index signal instead of an encoder from the encoders tab. Seems like I would have better control over rpms with A and B encoder pulses rather than a index pulse per rev. If it is possible to use A and B signals for encoder, How do I do that?
 I have played with numerous settings and the only thing that seems to change the displayed rpms is the pully setup but again the display value stays the same when I tell Mach3 to change rpms with the "S" command.
Two, I am having trouble understanding the setup for closed loop control for the spindle. I have a feeling this will be easier once I get the rpm display to be correct.   I have complete control over my other axes, which are stepper driven, and all that remains is the spindle. :(

My spindle is a DC servo motor driven by a G320X geckodrive.
The encoder is 2500count/rev with A,B, and Z(index) pulses http://www.quantumdev.com/products/optical_encoders/qd200.html
I have the index set to pin 15 under inputs tab in Ports and Pins menu.

Thanks in advance.

Pages: 1