Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 06:06:24 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
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
« previous
next »
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
Posts: 18
How to use closed loop spindle rpm with SS
«
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
Posts: 809
Re: How to use closed loop spindle rpm with SS
«
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
Check out
www.soigeneris.com
maddios
Active Member
Offline
Posts: 18
Re: How to use closed loop spindle rpm with SS
«
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
Posts: 809
Re: How to use closed loop spindle rpm with SS
«
Reply #3 on:
October 21, 2010, 11:05:46 AM »
OK, that is not closed loop either
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
Check out
www.soigeneris.com
thosj
Active Member
Offline
Posts: 200
Re: How to use closed loop spindle rpm with SS
«
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
Posts: 18
Re: How to use closed loop spindle rpm with SS
«
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.
Logged
Jeff_Birt
Active Member
Offline
Posts: 809
Re: How to use closed loop spindle rpm with SS
«
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
Check out
www.soigeneris.com
maddios
Active Member
Offline
Posts: 18
Re: How to use closed loop spindle rpm with SS
«
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
Posts: 18
Re: How to use closed loop spindle rpm with SS
«
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
Posts: 809
Re: How to use closed loop spindle rpm with SS
«
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
Check out
www.soigeneris.com
Pages:
1
2
3
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...