Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I'm trying to implement the gearchange hal component with the gs2 component to change the gearing and direction when I change gears on my supermax knee mill. I have hal files setup and I created 2 pyvcp toggle (checkboxes) buttons to toggle the gearchange select pin and the gearchange direction input pin:
- net gearchange-select gearchange.0.sel
- net gearchange-select pyvcp.gchange-chkbtn
- net gearchange-dir => gearchange.0.dir-in
- net gearchange-dir <= pyvcp.gch-dir-chkbtn
- Also, I set the gearchange reverse to true (1):
- setp gearchange.0.reverse 1 #reverse direction in 2nd gear.
- My question - is the gearchange reverse automatically 'done for me?' I guess I need some sort of hal network (like an or or mux) to change the following directions based on the gearchange.0.dir-out pin??:
- net gs2-fwd spindle-vfd.spindle-fwd <= motion.spindle-forward
- net gs2-rev spindle-vfd.spindle-rev <= motion.spindle-reverse
- I've posted an abridged hal file here: http://pastebin.com/Qtb3AJMm
- Pictures of the pyvcp buttons: http://imgur.com/gallery/evN9K/
- Links:
- http://linuxcnc.org/docs/html/man/man9/gearchange.9.html
- http://linuxcnc.org/docs/html/man/man9/motion.9.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement