PathPilot GUI & Spindle control with VFD

More
11 Aug 2016 01:39 - 11 Aug 2016 01:40 #78591 by bill.anderson
I have a Mesa 5i25 -> Gecko g540 -> PWM VFD that works fine (finally) in Linuxcnc. I am having trouble getting it to work with PathPilot which is expecting stepgen 4 to generate frequency outputs to the spindle.
I can't figure out how to interface the GUI buttons with the hal file in order to turn it on using the PWM. I also need to understand how to enable, disable and set the limits. There is logic in the hal file and in the post gui hal file
that looks like it might be involved.

Thanks for any enlightenment
bill anderson
Last edit: 11 Aug 2016 01:40 by bill.anderson. Reason: clarification

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

More
11 Aug 2016 08:34 - 11 Aug 2016 08:36 #78598 by racedirector
This line connects the spindle speed to the PathPilot display on mine. Took me a while to figure that one out!

I run an Hitachi X200 VFD via modbus but it should be similar connecting it to the display at least
net spindle-speed-out scale.0.in motion.spindle-speed-out tormach.spindle-speed-out 

And i connected my VFD to PP like this:
# Blacksheep Woodworks Addition for x200 VFD
loadusr -Wn x200 mb2hal config=x200vfd.ini

loadrt scale count=1
addf scale.0 servo-thread
setp scale.0.gain .16666667


net spindle-speed-out scale.0.in motion.spindle-speed-out tormach.spindle-speed-out 
net x200-freq x200.frequency.00 <= scale.0.out

net x200-run x200.run.00 <= motion.spindle-on
net spindle-at-speed x200.at-speed.00 <= motion.spindle-at-speed

setp x200.direction.00 0

Cheers
Bruce
Last edit: 11 Aug 2016 08:36 by racedirector.

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

Moderators: cncbasher
Time to create page: 0.059 seconds
Powered by Kunena Forum