NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

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
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum General General LinuxCNC Questions Reverse spindle no pwm

Welcome, Guest
Username: Password: Remember me

TOPIC: Reverse spindle no pwm

Reverse spindle no pwm 19 Mar 2012 22:58 #18657

  • grandixximo
  • grandixximo's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Karma: 0
I'm trying to get a spindle work in both directions, but i do not get any pwm output when i start the spindle in M4

i'm using pdm mode with no offset and a scale of 18900

max-dc 0.4

the spindle at maximum speed is roughly 6500RPM

i do not use outputs to turn the spindle on, the spindle is stopped at pwm 0

Also i am using the soft start hal lines

and i only connected net spindle-rev motion.spindle-reverse => parport.0.pin-17-out


any help???
The administrator has disabled public write access.

Re:Reverse spindle no pwm 20 Mar 2012 00:27 #18658

  • grandixximo
  • grandixximo's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Karma: 0
Attached i made a simple stepconf to demonstrate what i mean, check pin curr-dc of pwmgen and notice that you get a value only when the spindle is going clockwise nothing when you go ccw This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re:Reverse spindle no pwm 20 Mar 2012 07:59 #18665

  • grandixximo
  • grandixximo's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Karma: 0
Resolved using abs component in hal to have the spindle speed always positive.
The administrator has disabled public write access.

Re:Reverse spindle no pwm 20 Mar 2012 10:10 #18670

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 86
  • Karma: 134
This has come up before, I wish I could figure out a good place in the manual to say something about this...

John
The administrator has disabled public write access.

Re:Reverse spindle no pwm 20 Mar 2012 10:27 #18672

  • PCW
  • PCW's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1649
  • Thank you received: 86
  • Karma: 116
Isn't this a bug/ommission in stepconf that it does not set the PWM mode correctly?
The administrator has disabled public write access.

Re:Reverse spindle no pwm 20 Mar 2012 18:57 #18675

  • grandixximo
  • grandixximo's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Karma: 0
I think a good place to add this in the docs would be here

linuxcnc.org/docs/html/examples_spindle....#Spindle%20Direction

it says that all you have to do is connect a pin to have the spindle running in the opposite direction, but actually if you don't hijack the spindle speed out with abs you will not get any frequency out of pwmgen
The administrator has disabled public write access.
Time to create page: 0.902 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.