PathPilot GUI & Spindle control with VFD

More
10 years 2 months ago #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

Please Log in to join the conversation.

More
10 years 2 months ago #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
Code:
net spindle-speed-out scale.0.in motion.spindle-speed-out tormach.spindle-speed-out

And i connected my VFD to PP like this:
Code:
# 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

Please Log in to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum