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 28, 2012, 10:20:56 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
Mach Discussion
General Mach Discussion
Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
Pages:
1
2
3
»
Go Down
« previous
next »
Author
Topic: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine (Read 576 times)
0 Members and 1 Guest are viewing this topic.
CheddarChunk
Active Member
Offline
Posts: 12
Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
on:
December 06, 2011, 06:27:18 PM »
I'm trying to use a brushless DC Servo motor as my spindle motor and control it with step and direction pulses from Mach3 to a SmoothStepper and Leadshine Driver. After a couple weeks of struggling I could really use some help. So far i can only get the motor to spin at about 1.5 rev/second max no matter what the settings.
My set up:
Windows XP
Mach3 R3.043.022 (lockdown)
SmoothStepper USB Driver 2.08.14
Plug In: SmoothStepper_v17efb
Motor Driver: Leadshine ACS606
Motor: Leadshine BLM57180 (180W brushless DC Servo Motor)
1000 encoder counts per rev
max motor vel: 3000 rpm
Mach/SS settings:
port and pin: Spindle: Step/direction
Motor Tuning: Spindle:
Step/unit: 4000 (assuming this is step pulse per rev?)
Vel: 3000 (assuming this is RPM of the motor and not the spindle?)
Accel: 500
pulley: 25000 max (I'll explain below)
The bottom line is that with these settings the motor will only move within a narrow band of commanded speeds. At S-500 it will turn at about 1 rev/second, at S-875 it will turn at about 1.5 rev/second. Logically i want to set the pulley to 3000 max which should give me a 1:1 motor to spindle ratio which would be nice for development, but within this band the motor will only move slightly at around S-100. Above or below these speeds it just doesn't turn.
Originally (before I got the SS) i though this limitation was because of the high number of pulses needed and the limitations of Mach and the Parallel port. I have the spindle port on the SS set to allow 256k Hz to the spindle which would be sufficient to run the motor at 3000rpm.
I've also set the pulse width in the SS config to 1us as suggested by the Leadshine controller documentation.
Using the Leadshine controller tuning software i can get the motor to spin at 3000 rpm so i don't think its a wiring issue.
The last thing i can think of is that the leadshine controller doc suggests that the direction pulse must lead the step pulse by 5us min. I've tried every combination of step and Dir pulse settings in the motor tuning and it has no effect. Is there a way to control how much the direction pulse will lead the step pulse?
any help would be greatly appreciated.
Kyle
Logged
-Kyle-
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #1 on:
December 06, 2011, 10:00:07 PM »
I would first do away with the potential complexities of treating it as a spindle motor, and just set it up in Mach3 as a linear axis drive, and see if you can get that to work.
DIR timing should not be an issue unless you're reversing the direction. It should still work fine in ONE direction ,as the DIR pin will never be changing state.
Regards,
Ray L.
Logged
Regards,
Ray L.
CheddarChunk
Active Member
Offline
Posts: 12
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #2 on:
December 06, 2011, 11:08:11 PM »
thanks for the suggestion Ray.
I just tried running the motor as the Y axis with these Motor tuning Settings:
Steps/unit: 4000
Velocity: 3000
the motor will only turn when i run at 3% or 6% of the full velocity (so 90 rpm or 180 rpm respectively). The crazy thing is that at 90 RPM it runs CCW and at 180 RPM it runs CW? WTF?
Logged
-Kyle-
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #3 on:
December 06, 2011, 11:57:24 PM »
What happens if you change the ActiveLow setting for the DIR signal in Ports&Pins?
Regards,
Ray L.
Logged
Regards,
Ray L.
CheddarChunk
Active Member
Offline
Posts: 12
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #4 on:
December 07, 2011, 12:41:02 AM »
If I switch it in mach then i get no motion. If switch it in the motor driver then I get reversed motion.
Logged
-Kyle-
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #5 on:
December 07, 2011, 01:08:32 AM »
Quote from: CheddarChunk on December 07, 2011, 12:41:02 AM
If I switch it in mach then i get no motion. If switch it in the motor driver then I get reversed motion.
Are you sure you don't have Step and Dir swapped? I can't see what else could explain what you're reporting. You might want to try either swapping the wires or the pin assignments in Mach3, and giving it a try. It would explain what you're seeing.
Regards,
Ray L.
Logged
Regards,
Ray L.
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #6 on:
December 07, 2011, 02:57:33 AM »
One thing is to check what you have in the SS config for the spindle frequency, for your 4000 steps per rev and 3000 rpm it will require 200KHz so use the 256KHz option.
Next thing to say is an acceleration of 500 sounds very high to me for a spindle, try more like 20 and see how you go then increase a bit if it works.
Hood
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #7 on:
December 07, 2011, 09:31:07 AM »
Quote from: Hood on December 07, 2011, 02:57:33 AM
One thing is to check what you have in the SS config for the spindle frequency, for your 4000 steps per rev and 3000 rpm it will require 200KHz so use the 256KHz option.
Next thing to say is an acceleration of 500 sounds very high to me for a spindle, try more like 20 and see how you go then increase a bit if it works.
Hood
Hood,
For a rotary axis, isn't acceleration in RPM/sec^2? If so, 500 is not very high.
Regards,
Ray L.
Logged
Regards,
Ray L.
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #8 on:
December 07, 2011, 10:08:04 AM »
Try it and see Ray, my lathe has a servo on the spindle using the ESS and accel set to 40 and it gets to 2000 rpm in about 1 second. Its got a heavy chuck on it (250mm dia) and would hate to see what it would try to do at accel of 500
Beaver and Bridgeport mills also have servo spindles but with SS and Scorpion respectively, both are 4000 rpm with 60 for accel and again both get to top speed in about 1 second or so.
Hood
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,348
Re: Brushless DC Servo Spindle Speed Control w/ Smooth Stepper and Leadshine
«
Reply #9 on:
December 07, 2011, 10:16:32 AM »
Hood,
Hmmmm.... I wonder what the units are then?
In any case, if that were the problem here, the motor shouldn't be spinning at all, and the servo should simply be faulting instantly, no? I don't see how it could just spin slowly, as reported.
Regards,
Ray L.
Logged
Regards,
Ray L.
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...