NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC PnCConf Wizard Alternate Spindle control using Step/Direction

Welcome, Guest
Username: Password: Remember me

TOPIC: Alternate Spindle control using Step/Direction

Re:Alternate Spindle control using Step/Direction 19 Jul 2012 09:11 #22213

  • PCW
  • PCW's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 1660
  • Thank you received: 87
  • Karma: 116
You should be able to "Y"the signals
are the encoder signals single ended or differential?
The administrator has disabled public write access.

Re:Alternate Spindle control using Step/Direction 19 Jul 2012 09:56 #22215

  • johnjsb
  • johnjsb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
i have to use differential for the drive.
www.cnc4pc.com/Store/osc/product_info.ph...4_78&products_id=337
so i would imagine since it drives 100meters it should have plenty of power to feed both.
if i got time tonight i'll hook it up to my servo on the bench.
got 3phase breaker in for my super nice bridgeport.
i know i know what the hell am im fooling with this little thing for.
well its a test for 2 much larger conversions.:ohmy:
The administrator has disabled public write access.

Re:Alternate Spindle control using Step/Direction 20 Jul 2012 22:44 #22262

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
One problem I have noticed is that when you command M05 or (strangely) S0, there is no ramping to zero.
I should explain that pncconf sets the stepgen in velocity mode and sets acceleration and velocity limits.
This is because linuxcnc it's self does not do any ramping of the spindle.

But M05 disables the stepper enable pin and apparently so does S0.
The step gen is designed to stop as quickly as possible - not the best thing with a large chuck....

We need a ramp-to-zero-speed pin for the step gen or linuxcnc needs to plan the spindle ramping - for an elegant solution.

There are surely ways around this by using a bunch of components to monitor enable, and modify commanded speed.
Or if your step drive has an enable pin that lets the motor free wheel that would work too..

Chris M
The administrator has disabled public write access.

Re:Alternate Spindle control using Step/Direction 20 Jul 2012 23:13 #22263

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
hmm maybe I should connect the spindle enable pin to machine-is-on signal.
Then the spindle would ramp up and down unless the machine was turned off or estopped.

I think I'll test that....
The administrator has disabled public write access.

Re:Alternate Spindle control using Step/Direction 21 Jul 2012 08:03 #22269

  • PCW
  • PCW's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 1660
  • Thank you received: 87
  • Karma: 116
If the stepgen is used for spindle this make more sense
Also you should be able to set the stepgen maxaccel to
some low value so it ramps slowly when given stepped
velocity commands
The administrator has disabled public write access.

Re:Alternate Spindle control using Step/Direction 21 Jul 2012 11:35 #22290

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1489
  • Thank you received: 40
  • Karma: 89
oh yes velocity and acceleration limits work great.
Oh course the stepgens doesn't use them if you set the enable false.
I connected the motion.spindle-on pin to the stepgens enable, so if you turn off the spindle or set the speed to zero
it actually disabled the stepgen which then stoped immediately.
The administrator has disabled public write access.
Moderators: cmorley
Time to create page: 0.915 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.