Is there a sample hal file available for SPINX1 ?

More
07 May 2014 09:08 #46668 by johns00056
Will the Mesa SPINX1 spindle control board work with a software pwmgen component?

Do I need to set pwmgen.0.pwm-freq ?

Here is what I have so far--no movement happens, yet, when I command the spindle to start.


loadrt pwmgen output_type=1
addf pwmgen.update servo-thread
addf pwmgen.make-pulses servo-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 => hm2_5i25.0.7i84.0.1.output-02 #to PWM on spinx1############################
# Set the spindle's top speed in RPM
setp pwmgen.0.scale 1800


#net spindle-enable => hm2_5i25.0.7i84.0.1.output-01 ##enable spinx1#this is not right, I think I need to connect the enable pin to ground

net spindle-fwd motion.spindle-forward => hm2_5i25.0.7i84.0.1.output-00 #on is forward##off is reverse####


#net spindle-rev motion.spindle-reverse => parport.0.pin-17-out

Please Log in or Create an account to join the conversation.

More
07 May 2014 09:34 - 07 May 2014 09:34 #46669 by PCW
The SPINX1 expects TTL level signals so will likely not work well with 7I84 outputs

It also like PWM rates of about 5KHz so is best driven with a hardware pwmgen

What existing hardware/daughtercards do you have? Probably the best solution is to get the PWM,DIR, and /ENA directly from your FPGA card or from a directly connected daughtercard.
Last edit: 07 May 2014 09:34 by PCW.

Please Log in or Create an account to join the conversation.

More
07 May 2014 09:48 #46670 by johns00056
I have 5i25, 2 of 7i85 and 2 of 7i84

. I also have a spare 5i25 available.

Please Log in or Create an account to join the conversation.

More
07 May 2014 10:06 - 07 May 2014 10:10 #46671 by PCW
How many encoders/sserial interfaces do you need?

(you could probably steal a couple 7I85 sserial TX pins as PWM,DIR,ENA)

(with a 5I25 config with PWM gens on those pins)

another option is a 7I83 (though its overkill)
Last edit: 07 May 2014 10:10 by PCW.

Please Log in or Create an account to join the conversation.

More
07 May 2014 20:17 #46685 by johns00056
Thanks for the help.

I am going to go with a 7i83.

I have 3 extra encoder counters and 3 extra sserial interfaces available but I don't want to mess with a custom firmware config.

Please Log in or Create an account to join the conversation.

Time to create page: 0.210 seconds
Powered by Kunena Forum