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.
 

Welcome, Guest
Username: Password: Remember me
Forum Header

TOPIC: PWM not quite working

PWM not quite working 25 Feb 2010 01:23 #2056

  • gordoflash
  • gordoflash's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi, I have installed the EMC2 with the Ubuntu live CD and have successfully got my mill to move all 3 axis.

I use a Digispeed from Homann Designs to control a VFD.

Using the Step Config Wizard and reading the Integrator Manual V2.3, I have the following functions working on my mill.

Move all 3 axis.
Find Home and limit switches.
ChargePump.
Estop.
PWM for the spindle.

My problem with the PWM is that when I type into MDI "S1000 M3" The spindle works ok, if I type "S1000 M4" I get the correct signal to reverse the VFD but there is no PWM signal to the Digispeed.

The Integrator Manual says to do this--

loadrt pwmgen output_type=0
addf pwmgen.update servo-thread
addf pwmgen.make-pulses base-thread
net spindle-speed-cmd motion.spindle-speed-out => pwmgen.0.value
net spindle-on motion.spindle-on => pwmgen.0.enable
net spindle-pwm pwmgen.0.pwm => parport.0.pin-09-out
setp pwmgen.0.scale 1800 # Change to your spindle’s top speed in RPM

But the Step Config Wizard produces this--
*** highlights areas I'm not sure about that differ from above.

loadrt pwmgen output_type=0
addf pwmgen.update servo-thread
addf pwmgen.make-pulses base-thread
net spindle-cmd <= motion.spindle-speed-out => pwmgen.0.value ***
net spindle-enable <= motion.spindle-on => pwmgen.0.enable ***
net spindle-pwm <= pwmgen.0.pwm ***
setp pwmgen.0.pwm-freq 50.0
setp pwmgen.0.scale 7000.0
setp pwmgen.0.offset 0.0
setp pwmgen.0.dither-pwm true
net spindle-fwd motion.spindle-forward => parport.1.pin-14-out
net spindle-rev motion.spindle-reverse => parport.1.pin-16-out
setp parport.1.pin-01-out-invert 1
net spindle-pwm => parport.1.pin-01-out

This system is working on a demo version of Mach3. I hope to get my mill working correctly on EMC2 as from what I've seen it's smoother motion and cleaner screen layout appeals

I can attach the hal files if more info is needed.

My next challenge is to get my pendant functioning.

Thanks
The administrator has disabled public write access.

Re:PWM not quite working 04 Feb 2011 08:12 #6988

  • leintz
  • leintz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
I have the same problem...did you foud any solution ?
Last Edit: 04 Feb 2011 08:55 by leintz.
The administrator has disabled public write access.

Re:PWM not quite working 04 Feb 2011 14:02 #6998

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4139
  • Thank you received: 141
  • Karma: 130
Can you (both?) paste the full HAL config to www.pastebin.com or www.pastebin.ca (depending on which is working at the moment).
The administrator has disabled public write access.

Re:PWM not quite working 03 Ott 2011 05:08 #13625

  • leintz
  • leintz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
so...I did it...anyway...here is my HAL (attached) 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:PWM not quite working 03 Ott 2011 18:24 #13636

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4139
  • Thank you received: 141
  • Karma: 130
Is it working now, or do you still have problems?
The administrator has disabled public write access.

Re:PWM not quite working 03 Ott 2011 23:02 #13638

  • leintz
  • leintz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
no, it does not work...

in CW mode PWM works nicely but CCW mode PWM output has very narrow pulses...if I try to increase spindle speed...pulses become (pulse length is almost minimum) shorter and disapear at all...pwm works like an oposite direction...
Last Edit: 04 Ott 2011 04:04 by leintz.
The administrator has disabled public write access.
Time to create page: 1.141 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.