Hello,
I try to run my milling machine with a Beaglebone black. I got the setup 
for all 3 axes but I am struggling with the spindle. I would like the PWM 
on the gpio P8.12, but whatever I try, LinuxCNC doesn't start anymore.
Here my spindle setup in the HAL:

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
#net spindle-pwm pwmgen.0.pwm => parport.0.pin-09-out
#net spindle-pwm pwmgen.0.pwm => bb_gpio.p8.out-12

setp pwmgen.0.pwm-freq  2000.0
setp pwmgen.0.scale     10000.0
setp pwmgen.0.offset    0.0
setp pwmgen.0.dither-pwm true

net spindle-cw <= motion.spindle-forward
net spindle-brake <= motion.spindle-brake

#setp pwmgen.0.pwm         0x4C
#setp pwmgen.0.pwm => bb_gpio.p8.out-12
#setp pwmgen.0.pin         0x4C
#setp [PRUCONF](DRIVER).pwmgen.0.pin         0x4C
#net spindle-pwm => bb_gpio.p8.out-12

Could anyone help me please? I would really appreciate since I'm trying a 
while now.
Thank you!
Alex

my mill: https://www.alex-handfest.de/sonst/sonst_cnchf2.html

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/d4e5b12d-e64b-4d5a-9def-472cd87fa9e1n%40googlegroups.com.

Attachment: my-mill.ini
Description: Binary data

Attachment: my-mill.hal
Description: Binary data

Reply via email to