Thread: PWM output on CNC BOB
Threaded View
-
23-04-2021 #2
For the bob you are using you will have to put 12-24V on the centre two terminals ( near the relay) in order to get the 0-10V out as well. It also need the 12-24v for the inputs to work
I know this is not the same bob but it might give you a clue
# SPINDLE S
#*******************
setp pid.s.Pgain [SPINDLE_9]P
setp pid.s.Igain [SPINDLE_9]I
setp pid.s.Dgain [SPINDLE_9]D
setp pid.s.bias [SPINDLE_9]BIAS
setp pid.s.FF0 [SPINDLE_9]FF0
setp pid.s.FF1 [SPINDLE_9]FF1
setp pid.s.FF2 [SPINDLE_9]FF2
setp pid.s.deadband [SPINDLE_9]DEADBAND
setp pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp pid.s.error-previous-target true
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
#net spindle-vel-cmd-rpm <= motion.spindle-speed-out
#net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-enable <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb-rps => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable
# ---Setup spindle at speed signals--- on bob relay pin DB 17
setp hm2_7i92.0.gpio.024.is_output 1
net spindle-enable hm2_7i92.0.gpio.024.out
sets spindle-at-speed true
#Below sets position of relay contacts on power up
setp hm2_7i92.0.gpio.024.invert_output true
#PWM Generator signal/setup
setp hm2_7i92.0.pwmgen.pwm_frequency 1500
setp hm2_7i92.0.pwmgen.00.output-type 1
setp hm2_7i92.0.pwmgen.00.scale 5000
setp hm2_7i92.0.pwmgen.00.enable true
net spindle-speed motion.spindle-speed-out-abs hm2_7i92.0.pwmgen.00.value
############
It might be easier to make another stepconf junk config then copy from that junk hal file the bits you need...Clive
The more you know, The better you know, How little you know
Thread Information
Users Browsing this Thread
There are currently 3 users browsing this thread. (0 members and 3 guests)
Similar Threads
-
Question on Servo power output.
By Zadig in forum General DiscussionReplies: 6Last Post: 24-08-2017, 01:13 PM -
Output voltage from mains driver?
By JW1977 in forum Motor Drivers & ControllersReplies: 8Last Post: 24-03-2017, 01:33 PM -
Output direct to machine
By picyman in forum VectricReplies: 4Last Post: 16-02-2014, 11:04 PM -
HPGL driver output
By 2006Nobull in forum Computer SoftwareReplies: 6Last Post: 07-10-2012, 08:49 PM -
2 Machines 1 Switch for the output - Connections
By Ian Hart in forum General ElectronicsReplies: 7Last Post: 02-04-2010, 02:33 PM
Bookmarks