Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:06:24 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  SmoothStepper USB (Moderator: Warp9TD)
| | |-+  How to use closed loop spindle rpm with SS
Pages: 1 2 3 »   Go Down
Print
Author Topic: How to use closed loop spindle rpm with SS  (Read 2542 times)
0 Members and 1 Guest are viewing this topic.
maddios
Active Member

Offline Offline

Posts: 18


View Profile
« on: October 20, 2010, 04:37:12 PM »

Hi guys,

I've got my spindle operating in PWM output mode from mach3 with SS, and I have an opto-interrupter reading from a single gap wheel for rpm feedback to mach3. I can control rpm from within mach3 and I see a readout show up. Currently I'm trying to setup closed loop operation but I'm unable to make it do anything (it's just ingoring any settings in the section). Any suggestions where I can try to look? or does the SS not support closed loop right now?

Thanks
Logged
Jeff_Birt
Active Member

Offline Offline

Posts: 809




View Profile WWW
« Reply #1 on: October 21, 2010, 09:47:19 AM »

I suspect you really don't want closed loop operation. What you are likely after is Mach syncing with the spindle speed. Look at the Spindle tab in Ports&Pins.
Logged

Happy machining , Jeff Birt
 
maddios
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #2 on: October 21, 2010, 10:58:00 AM »

Yeah, I've tried every combination of those checkboxes under spindle setup and mach just ignores them, or at least I see zero effect.
spindle rpm will show 2500 in the DRO for example but mach has been asked to do 2000 and I see zero adjustment in pwm to get it to match.

Eugene
Logged
Jeff_Birt
Active Member

Offline Offline

Posts: 809




View Profile WWW
« Reply #3 on: October 21, 2010, 11:05:46 AM »

OK, that is not closed loop either Smiley It is just PWM output.

There was a post a few weeks ago here about getting PWM running properly. I'll see if I can find it later and link to it here.

Here is the link: http://www.cjh.com.au/PWM%20Spindle%20Control%20using%20Mach3.pdf

« Last Edit: October 21, 2010, 11:10:04 AM by Jeff_Birt » Logged

Happy machining , Jeff Birt
 
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #4 on: October 21, 2010, 11:23:44 AM »

So what this boils down to is there is no way in Mach to control spindle speed with the index signal? Or am I missing it?

The doc linked by Jeff talks about tuning spindle speed and stuff, but I don't think it mentions if we can actually adjust the spindle speed to the index signal. I guess that is "closed loop" and it simply doesn't work. It seems that if one has an index signal to Mach, Mach should adjust the spindle PWM to achieve the commanded S RPM.

My problem is if I have a pulley setup, say Pulley 7, to 300-3000 RPM, at 2000 I'm pretty close, but at 1000 I'm low and at 3000 I'm high. If we can't have index feedback for spindle speed, what's the correct way to adjust linearity? I've read to delete linearity.dat and not use Calibrate Spindle. Is there a way to get the linearity better?

All PWM control with SS is done in SS settings, right? Mach settings ignored?
Logged
maddios
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #5 on: October 21, 2010, 11:30:11 AM »

That's precisely my problem, DC motors are by nature not linear. So there needs to be some way of adjusting pwm linearity not just max/min like the doc you linked to suggests. I tried to use the caibration screen but as soon as I click AutoCal my spindle turns off and mach goes into an EStop condition and calibration stops, not sure if that's because AutoCal thinks it's done and just powers off the spindle (having not done anything) or if something is screwy because i'm using an SS.

My original question was same as one from thosj, the index signal doesn't seem to "correct" mach 3's pwm output based on the actual rpm being reported vs rpm requested.

btw, thanks jeff, I've actually read that doc you've linked, and there was a lot of info in there that I needed to get this far. Smiley
Logged
Jeff_Birt
Active Member

Offline Offline

Posts: 809




View Profile WWW
« Reply #6 on: October 21, 2010, 11:46:46 AM »

Actaully, DC motors ARE quite linear in speed w.r.t. input voltage. Speed controllers and/or PWM to voltage circuits are not linear many times though. If you set it up open circuit does mach's PWM output change in response to your commanded speed?
Logged

Happy machining , Jeff Birt
 
maddios
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #7 on: October 21, 2010, 12:01:54 PM »

Yeah, well, they're pretty linear, but not perfectly, and that's true, my error could be anywhere in the system, as i'm using an SS -> G540 -> KBMM-125 (motor speed control)  -> motor.

I can control motor rpm within mach 3 with the S word, but the motor rpm is never what I actually want, it's correct at around 1800 rpm, but then at s3000 actual rpm is like 6k and at s1000 actual is like 340 so there seems to be a pretty epic curve. I'm using an ac/dc motor with a max rpm of 30k, i believe it was removed from a vacuum cleaner it doesn't have permanent magnets, but rather a coil.
Logged
maddios
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #8 on: October 21, 2010, 12:06:20 PM »

Guess I should give a little more background here, I know for a fact that my G540 outputs its 0-10v vfd signal non linearly, as in when I request s2000 I get 2.4v and when I do s1000 i get 1.6 which is WAY off, and then when I do s3000 I get 3.8v.

I'm going to put a scope on my setup and try to determine if my PWM is possibly incorrect coming out of the SS, or maybe I have excessive noise feeding back from the KBMM-125.

My question was really a more theoretical, in a situation like this, true closed loop control would be able to adjust out all of this error and dial in the correct speed via the PID algorithm, but I've till now been unable to get the adjustment to happen at all.
Logged
Jeff_Birt
Active Member

Offline Offline

Posts: 809




View Profile WWW
« Reply #9 on: October 21, 2010, 07:39:36 PM »

I think maybe you have configuration problems. I have had the G540 VFD out hooked up to a KBIC and I seem to recall it was not more than 100 RPM off all along the scale. Do you have the tach sensor on the motor or spindle?
Logged

Happy machining , Jeff Birt
 
Pages: 1 2 3 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!