On Sun, 2008-11-09 at 09:24 -0800, Kirk Wallace wrote: > On Sun, 2008-11-09 at 16:51 +0000, Leslie Newell wrote: > > Hi Kirk, > > > > > Will the tool posts move independently, or like a gang tool lathe? > > > > > > > Basically gang tooling. The rear tool post is mounted on the rear of the > > X slide. In most cases it is fitted with a parting tool. > > > > Les > > So you just need to have the polarity of the X axis (and maybe the > spindle direction) switch when the rear tool is selected? Thinking > aloud ... > > (from my > http://www.wallacecompany.com/cnc_lathe/HNC/emc2/configs/hnc_io-3a.hal > ) > ... > # create signals for tool loading loopback > linkpp iocontrol.0.tool-prepare iocontrol.0.tool-prepared > linkpp iocontrol.0.tool-change turret.0.position-change > linkpp turret.0.position-changed iocontrol.0.tool-changed > ... > > Instead of turret.0.position-change, you could have > check-for-rear-tool.0.check and /.checked, .rear-tool. You would have to > stick to a range of tool numbers that would be considered rear tools. > > Then in the spindle section, use check-for-rear-tool.0.check.rear-tool > to change the sense of the spindle direction. > > ("newsig" is old, should update to use "net" properly) > ... > ### SPINDLE ### > # connect spindle fwd/rev to I/O controller > newsig SpindleFwd bit > newsig SpindleRev bit > newsig SpindleDACen bit > > (insert HAL component to switch spindle sense)
http://www.linuxcnc.org/docview/html//man/man9/not.9.html > net SpindleFwd motion.spindle-forward > linksp SpindleFwd parport.0.pin-01-out > linksp SpindleFwd or2.0.in0 > > linksp SpindleRev motion.spindle-reverse > linksp SpindleRev parport.0.pin-02-out > linksp SpindleRev or2.0.in1 > ... > > I haven't thought much about this, but it might work. > > > Kirk > http://wallacecompany.com/machine_shop/ Dooh, I missed the important part the axis reversal. I the more I think about this part, the more I think you should forget what I wrote. If you reverse the motor outputs it will move the motor in the proper direction but screw up the machine position. Sorry about that. I need to add an input from my brain to my mouth (fingers) with maybe a delay component. Kirk http://wallacecompany.com/machine_shop/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users